2018-05-30 13:05:41 -04:00
|
|
|
.discourse-local-date {
|
2021-08-04 10:28:07 -04:00
|
|
|
> * {
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
|
|
|
|
2018-10-09 03:04:42 -04:00
|
|
|
&.cooked-date {
|
2020-08-04 11:14:33 -04:00
|
|
|
color: var(--primary);
|
2018-05-30 13:05:41 -04:00
|
|
|
cursor: pointer;
|
2020-08-04 11:14:33 -04:00
|
|
|
border-bottom: 1px dashed var(--primary-medium);
|
2019-07-30 02:04:30 -04:00
|
|
|
white-space: nowrap;
|
2018-10-11 17:02:44 -04:00
|
|
|
|
2018-11-26 16:49:57 -05:00
|
|
|
.d-icon {
|
2020-08-04 11:14:33 -04:00
|
|
|
color: var(--primary);
|
2018-05-30 13:05:41 -04:00
|
|
|
}
|
2018-10-09 10:45:32 -04:00
|
|
|
|
|
|
|
&.past {
|
2020-08-04 11:14:33 -04:00
|
|
|
border-bottom-color: var(--primary-low-mid);
|
2018-10-09 10:45:32 -04:00
|
|
|
}
|
2019-08-24 12:39:20 -04:00
|
|
|
|
|
|
|
&.past[data-countdown] {
|
2020-08-04 11:14:33 -04:00
|
|
|
color: var(--primary-medium);
|
2019-08-24 12:39:20 -04:00
|
|
|
}
|
2018-05-30 13:05:41 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-05-02 11:10:26 -04:00
|
|
|
div[data-tippy-root] {
|
2019-03-26 11:34:27 -04:00
|
|
|
.locale-dates-previews {
|
2018-11-26 08:20:32 -05:00
|
|
|
max-width: 360px;
|
2019-03-26 11:34:27 -04:00
|
|
|
.preview {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
padding: 5px;
|
2018-11-26 08:20:32 -05:00
|
|
|
|
2019-03-26 11:34:27 -04:00
|
|
|
.timezone {
|
|
|
|
font-weight: 700;
|
|
|
|
}
|
2018-11-26 08:20:32 -05:00
|
|
|
|
2019-03-26 11:34:27 -04:00
|
|
|
&.current {
|
2020-08-04 11:14:33 -04:00
|
|
|
background: var(--tertiary-low);
|
2018-11-26 08:20:32 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-10-05 23:11:52 -04:00
|
|
|
|
|
|
|
.download-calendar {
|
|
|
|
text-align: right;
|
|
|
|
cursor: pointer;
|
|
|
|
margin-top: 0.5em;
|
|
|
|
}
|
2018-11-26 08:20:32 -05:00
|
|
|
}
|
|
|
|
|
2018-05-30 13:05:41 -04:00
|
|
|
.discourse-local-dates-create-modal-footer {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: flex-start;
|
|
|
|
|
2018-06-08 05:49:31 -04:00
|
|
|
&:before,
|
|
|
|
&:after {
|
2018-05-30 13:05:41 -04:00
|
|
|
content: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.advanced-mode-btn {
|
|
|
|
margin-left: auto;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.discourse-local-dates-create-modal {
|
2020-02-19 11:08:15 -05:00
|
|
|
box-sizing: border-box;
|
2019-04-11 05:14:34 -04:00
|
|
|
min-height: 320px;
|
2018-05-30 13:05:41 -04:00
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
2019-04-02 08:39:20 -04:00
|
|
|
padding: 0.5em;
|
2018-05-30 13:05:41 -04:00
|
|
|
|
2019-04-11 05:14:34 -04:00
|
|
|
.picker-panel {
|
|
|
|
padding: 5px;
|
2020-08-04 11:14:33 -04:00
|
|
|
border: 1px solid var(--primary-low);
|
2019-04-11 05:14:34 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
.date-picker {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
width: auto;
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
|
|
|
.pika-single {
|
|
|
|
position: relative !important;
|
|
|
|
flex: 1;
|
|
|
|
display: flex;
|
|
|
|
border: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-05-30 13:05:41 -04:00
|
|
|
.form {
|
2019-01-21 13:40:55 -05:00
|
|
|
flex: 1 0 0px;
|
2018-05-30 13:05:41 -04:00
|
|
|
|
|
|
|
label {
|
|
|
|
font-weight: 700;
|
|
|
|
}
|
|
|
|
|
|
|
|
.date-time-configuration {
|
|
|
|
display: flex;
|
2018-06-11 07:16:03 -04:00
|
|
|
|
2019-04-11 05:14:34 -04:00
|
|
|
.fake-input {
|
|
|
|
display: none;
|
|
|
|
}
|
2019-03-28 11:34:56 -04:00
|
|
|
|
2019-04-11 05:14:34 -04:00
|
|
|
.timezone-input {
|
|
|
|
width: 100%;
|
2018-06-11 07:16:03 -04:00
|
|
|
|
2019-04-11 05:14:34 -04:00
|
|
|
&.is-expanded {
|
|
|
|
.select-kit-header {
|
2020-08-04 11:14:33 -04:00
|
|
|
border: 1px solid var(--primary-medium);
|
2019-04-11 05:14:34 -04:00
|
|
|
}
|
2018-06-11 07:16:03 -04:00
|
|
|
}
|
|
|
|
|
2019-04-11 05:14:34 -04:00
|
|
|
.select-kit-header {
|
|
|
|
padding: 0.5em 0.5em;
|
2020-08-04 11:14:33 -04:00
|
|
|
border: 1px solid var(--primary-low);
|
2019-04-11 05:14:34 -04:00
|
|
|
|
|
|
|
.d-icon {
|
|
|
|
margin-right: 1em;
|
|
|
|
}
|
|
|
|
|
|
|
|
.caret-icon {
|
|
|
|
margin-right: 0;
|
|
|
|
}
|
2018-06-11 07:16:03 -04:00
|
|
|
}
|
|
|
|
}
|
2018-05-30 13:05:41 -04:00
|
|
|
|
2019-04-11 05:14:34 -04:00
|
|
|
.date-time-control {
|
|
|
|
position: relative;
|
|
|
|
display: flex;
|
2020-08-04 11:14:33 -04:00
|
|
|
border: 1px solid var(--primary-low);
|
2019-04-11 05:14:34 -04:00
|
|
|
|
|
|
|
&.is-filled,
|
|
|
|
&.is-selected {
|
|
|
|
.date-time {
|
2020-08-04 11:14:33 -04:00
|
|
|
color: var(--primary);
|
|
|
|
background: var(--secondary);
|
2019-04-11 05:14:34 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
.d-icon {
|
2020-08-04 11:14:33 -04:00
|
|
|
color: var(--primary-high);
|
2019-04-11 05:14:34 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.from {
|
|
|
|
border-radius: 5px 5px 0 0;
|
|
|
|
|
|
|
|
.date-time {
|
|
|
|
border-radius: 5px 5px 0 0;
|
2018-05-30 13:05:41 -04:00
|
|
|
}
|
2019-04-11 05:14:34 -04:00
|
|
|
|
|
|
|
&.is-selected {
|
2020-08-04 11:14:33 -04:00
|
|
|
border-color: var(--tertiary);
|
2019-04-11 05:14:34 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.to {
|
|
|
|
border-radius: 0 0 5px 5px;
|
|
|
|
margin-bottom: 1em;
|
|
|
|
|
|
|
|
.date-time {
|
|
|
|
border-radius: 0 0 5px 5px;
|
|
|
|
padding-right: 3em;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.is-selected {
|
2020-08-04 11:14:33 -04:00
|
|
|
border-color: var(--tertiary);
|
2019-04-11 05:14:34 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.date-time {
|
2020-08-04 11:14:33 -04:00
|
|
|
color: var(--primary-medium);
|
|
|
|
background: var(--primary-very-low);
|
2022-08-15 14:50:07 -04:00
|
|
|
padding: 1em 0.5em 1em 2em;
|
|
|
|
border: 0;
|
|
|
|
outline: none;
|
|
|
|
flex: 1;
|
|
|
|
@include ellipsis;
|
|
|
|
width: 100%;
|
|
|
|
justify-content: flex-start;
|
|
|
|
&:focus {
|
|
|
|
background-color: var(--tertiary-50);
|
|
|
|
}
|
2019-04-11 05:14:34 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
.d-icon {
|
|
|
|
position: absolute;
|
|
|
|
margin-top: auto;
|
|
|
|
margin-bottom: auto;
|
|
|
|
left: 0.5em;
|
|
|
|
top: 0;
|
|
|
|
bottom: 0;
|
2020-08-04 11:14:33 -04:00
|
|
|
color: var(--primary-medium);
|
2019-04-11 05:14:34 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
.delete-to-date {
|
|
|
|
position: absolute;
|
|
|
|
margin-top: auto;
|
|
|
|
margin-bottom: auto;
|
|
|
|
right: 0;
|
|
|
|
width: 30px;
|
|
|
|
top: 0;
|
|
|
|
bottom: 0;
|
2020-08-04 11:14:33 -04:00
|
|
|
color: var(--primary-high);
|
2019-04-11 05:14:34 -04:00
|
|
|
border-radius: 0 0 5px 0;
|
|
|
|
}
|
2018-05-30 13:05:41 -04:00
|
|
|
}
|
|
|
|
|
2019-04-11 05:14:34 -04:00
|
|
|
.inputs-panel {
|
|
|
|
flex: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
.picker-panel {
|
|
|
|
z-index: 1;
|
2020-08-04 11:14:33 -04:00
|
|
|
background: var(--secondary);
|
2019-04-11 05:14:34 -04:00
|
|
|
width: 200px;
|
|
|
|
box-sizing: border-box;
|
2019-03-28 11:34:56 -04:00
|
|
|
margin-left: 1em;
|
2018-05-30 13:05:41 -04:00
|
|
|
}
|
|
|
|
|
2019-04-11 05:14:34 -04:00
|
|
|
.time-pickers {
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
flex: 1;
|
|
|
|
margin-top: 1em;
|
|
|
|
align-items: center;
|
|
|
|
padding: 0.25em;
|
2020-08-04 11:14:33 -04:00
|
|
|
border-top: 1px solid var(--primary-low-mid);
|
2019-04-11 05:14:34 -04:00
|
|
|
box-sizing: border-box;
|
|
|
|
|
|
|
|
.d-icon {
|
2020-08-04 11:14:33 -04:00
|
|
|
color: var(--primary-medium);
|
2021-04-26 05:05:46 -04:00
|
|
|
margin-right: 0.5em;
|
2019-04-11 05:14:34 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
.time-picker {
|
|
|
|
box-shadow: none;
|
2019-03-28 11:34:56 -04:00
|
|
|
margin: 0;
|
2019-04-11 05:14:34 -04:00
|
|
|
box-sizing: border-box;
|
|
|
|
width: 100%;
|
2018-05-30 13:14:31 -04:00
|
|
|
}
|
|
|
|
}
|
2018-05-30 13:05:41 -04:00
|
|
|
}
|
|
|
|
|
2019-03-28 11:34:56 -04:00
|
|
|
.preview {
|
|
|
|
text-align: center;
|
|
|
|
margin-top: 0;
|
2019-04-02 08:39:20 -04:00
|
|
|
margin-bottom: 0.5em;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
padding: 0.5em;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
|
|
|
|
b {
|
|
|
|
margin-right: 0.5em;
|
2022-02-02 17:41:42 -05:00
|
|
|
margin-left: 0.5em;
|
2019-04-02 08:39:20 -04:00
|
|
|
}
|
2019-03-28 11:34:56 -04:00
|
|
|
|
2019-04-02 08:39:20 -04:00
|
|
|
b + p {
|
|
|
|
margin: 0;
|
|
|
|
display: inline-block;
|
|
|
|
}
|
2018-05-30 13:05:41 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
.recurrence {
|
|
|
|
.recurrence-input {
|
2023-01-27 16:26:32 -05:00
|
|
|
width: 350px;
|
2018-05-30 13:05:41 -04:00
|
|
|
}
|
|
|
|
}
|
2018-06-08 05:49:31 -04:00
|
|
|
}
|
|
|
|
|
2019-04-02 08:39:20 -04:00
|
|
|
.validation-error {
|
|
|
|
margin-bottom: 0.5em;
|
|
|
|
}
|
|
|
|
|
2018-06-08 05:49:31 -04:00
|
|
|
.format {
|
|
|
|
.format-input {
|
|
|
|
width: 280px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.formats {
|
|
|
|
list-style: none;
|
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
|
|
|
.format {
|
|
|
|
.previewed-format {
|
2020-08-04 11:14:33 -04:00
|
|
|
color: var(--primary-medium);
|
2018-06-08 05:49:31 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.control-group.recurrence,
|
|
|
|
.control-group.format,
|
|
|
|
.control-group.timezones {
|
|
|
|
margin-top: 1em;
|
|
|
|
}
|
2018-05-30 13:05:41 -04:00
|
|
|
|
|
|
|
.timezones-input {
|
2023-01-27 16:26:32 -05:00
|
|
|
width: 350px;
|
2018-05-30 13:05:41 -04:00
|
|
|
}
|
|
|
|
}
|
2019-03-28 11:34:56 -04:00
|
|
|
|
2019-04-11 05:14:34 -04:00
|
|
|
html:not(.mobile-view) {
|
2019-06-16 02:48:07 -04:00
|
|
|
.fixed-modal .discourse-local-dates-create-modal.modal-body {
|
2021-11-09 14:56:05 -05:00
|
|
|
width: 40em; // using ems to scale with user font size
|
|
|
|
max-width: 100vw; // avoids overflow if someone has extreme font-sizes impacting width
|
2019-06-16 02:48:07 -04:00
|
|
|
max-height: 400px !important;
|
2019-04-11 05:14:34 -04:00
|
|
|
}
|
|
|
|
}
|
2019-04-02 08:39:20 -04:00
|
|
|
|
2019-04-11 05:14:34 -04:00
|
|
|
html.mobile-view {
|
2019-06-16 02:48:07 -04:00
|
|
|
.fixed-modal .discourse-local-dates-create-modal.modal-body {
|
|
|
|
max-height: 400px !important;
|
|
|
|
|
2019-04-11 05:14:34 -04:00
|
|
|
.date-time-configuration {
|
|
|
|
flex-direction: column;
|
|
|
|
}
|
2019-03-28 11:34:56 -04:00
|
|
|
|
2019-04-11 05:14:34 -04:00
|
|
|
.picker-panel {
|
|
|
|
width: 100%;
|
|
|
|
margin: 0 0 1em 0;
|
2019-03-28 11:34:56 -04:00
|
|
|
|
2019-04-11 05:14:34 -04:00
|
|
|
.pika-single {
|
|
|
|
justify-content: center;
|
2019-03-28 11:34:56 -04:00
|
|
|
}
|
|
|
|
}
|
2019-04-11 05:14:34 -04:00
|
|
|
|
|
|
|
.time-picker {
|
|
|
|
padding-top: 6px;
|
|
|
|
}
|
2019-03-28 11:34:56 -04:00
|
|
|
}
|
|
|
|
}
|