mirror of
https://github.com/discourse/discourse.git
synced 2024-12-15 20:03:44 +08:00
332 lines
5.6 KiB
SCSS
332 lines
5.6 KiB
SCSS
.discourse-local-date {
|
|
&.cooked-date {
|
|
color: $primary;
|
|
cursor: pointer;
|
|
border-bottom: 1px dashed $primary-medium;
|
|
white-space: nowrap;
|
|
|
|
.d-icon {
|
|
color: $primary;
|
|
}
|
|
|
|
&.past {
|
|
border-bottom-color: $primary-low-mid;
|
|
}
|
|
|
|
&.past[data-countdown] {
|
|
color: $primary-medium;
|
|
}
|
|
}
|
|
}
|
|
|
|
#d-popover {
|
|
.locale-dates-previews {
|
|
max-width: 360px;
|
|
.preview {
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding: 5px;
|
|
|
|
.timezone {
|
|
font-weight: 700;
|
|
}
|
|
|
|
&.current {
|
|
background: $tertiary-low;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.discourse-local-dates-create-modal-footer {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: flex-start;
|
|
|
|
&:before,
|
|
&:after {
|
|
content: none;
|
|
}
|
|
|
|
.cancel-action {
|
|
margin: 0 5px 5px 0;
|
|
}
|
|
|
|
.btn + .cancel-action {
|
|
margin-left: 1em;
|
|
}
|
|
|
|
.advanced-mode-btn {
|
|
margin-left: auto;
|
|
}
|
|
}
|
|
|
|
.discourse-local-dates-create-modal {
|
|
box-sizing: border-box;
|
|
min-height: 320px;
|
|
display: flex;
|
|
flex-direction: row;
|
|
padding: 0.5em;
|
|
|
|
.picker-panel {
|
|
padding: 5px;
|
|
border: 1px solid $primary-low;
|
|
}
|
|
|
|
.date-picker {
|
|
display: flex;
|
|
flex-direction: column;
|
|
width: auto;
|
|
box-sizing: border-box;
|
|
|
|
.pika-single {
|
|
position: relative !important;
|
|
flex: 1;
|
|
display: flex;
|
|
border: 0;
|
|
}
|
|
}
|
|
|
|
.form {
|
|
flex: 1 0 0px;
|
|
|
|
label {
|
|
font-weight: 700;
|
|
}
|
|
|
|
.date-time-configuration {
|
|
display: flex;
|
|
|
|
.fake-input {
|
|
display: none;
|
|
}
|
|
|
|
.timezone-input {
|
|
width: 100%;
|
|
|
|
&.is-expanded {
|
|
.select-kit-header {
|
|
border: 1px solid $primary-medium;
|
|
}
|
|
}
|
|
|
|
.select-kit-header {
|
|
padding: 0.5em 0.5em;
|
|
border: 1px solid $primary-low;
|
|
|
|
.d-icon {
|
|
margin-right: 1em;
|
|
}
|
|
|
|
.caret-icon {
|
|
margin-right: 0;
|
|
}
|
|
}
|
|
}
|
|
|
|
.date-time-control {
|
|
position: relative;
|
|
display: flex;
|
|
border: 1px solid $primary-low;
|
|
|
|
&.is-filled,
|
|
&.is-selected {
|
|
.date-time {
|
|
color: $primary;
|
|
background: $secondary;
|
|
}
|
|
|
|
.d-icon {
|
|
color: $primary-high;
|
|
}
|
|
}
|
|
|
|
&.from {
|
|
border-radius: 5px 5px 0 0;
|
|
|
|
.date-time {
|
|
border-radius: 5px 5px 0 0;
|
|
}
|
|
|
|
&.is-selected {
|
|
border-color: $tertiary;
|
|
}
|
|
}
|
|
|
|
&.to {
|
|
border-radius: 0 0 5px 5px;
|
|
margin-bottom: 1em;
|
|
|
|
.date-time {
|
|
border-radius: 0 0 5px 5px;
|
|
padding-right: 3em;
|
|
}
|
|
|
|
&.is-selected {
|
|
border-color: $tertiary;
|
|
}
|
|
}
|
|
|
|
.date-time {
|
|
color: $primary-medium;
|
|
background: $primary-very-low;
|
|
}
|
|
|
|
.d-icon {
|
|
position: absolute;
|
|
margin-top: auto;
|
|
margin-bottom: auto;
|
|
left: 0.5em;
|
|
top: 0;
|
|
bottom: 0;
|
|
color: $primary-medium;
|
|
}
|
|
|
|
.delete-to-date {
|
|
position: absolute;
|
|
margin-top: auto;
|
|
margin-bottom: auto;
|
|
right: 0;
|
|
width: 30px;
|
|
top: 0;
|
|
bottom: 0;
|
|
color: $primary-high;
|
|
border-radius: 0 0 5px 0;
|
|
}
|
|
|
|
.date-time {
|
|
padding: 1em 0.5em 1em 2em;
|
|
border: 0;
|
|
outline: none;
|
|
flex: 1;
|
|
@include ellipsis;
|
|
width: 100%;
|
|
text-align: left;
|
|
}
|
|
}
|
|
|
|
.inputs-panel {
|
|
flex: 1;
|
|
}
|
|
|
|
.picker-panel {
|
|
z-index: 1;
|
|
background: $secondary;
|
|
width: 200px;
|
|
box-sizing: border-box;
|
|
margin-left: 1em;
|
|
}
|
|
|
|
.time-pickers {
|
|
display: flex;
|
|
justify-content: center;
|
|
flex: 1;
|
|
margin-top: 1em;
|
|
align-items: center;
|
|
padding: 0.25em;
|
|
border-top: 1px solid $primary-low-mid;
|
|
box-sizing: border-box;
|
|
|
|
.d-icon {
|
|
color: $primary-medium;
|
|
}
|
|
|
|
.time-picker {
|
|
outline: none;
|
|
box-shadow: none;
|
|
margin: 0;
|
|
box-sizing: border-box;
|
|
width: 100%;
|
|
border: 0;
|
|
}
|
|
}
|
|
}
|
|
|
|
.preview {
|
|
text-align: center;
|
|
margin-top: 0;
|
|
margin-bottom: 0.5em;
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 0.5em;
|
|
flex-wrap: wrap;
|
|
|
|
b {
|
|
margin-right: 0.5em;
|
|
}
|
|
|
|
b + p {
|
|
margin: 0;
|
|
display: inline-block;
|
|
}
|
|
}
|
|
|
|
.recurrence {
|
|
.recurrence-input {
|
|
width: 300px;
|
|
}
|
|
}
|
|
}
|
|
|
|
.validation-error {
|
|
margin-bottom: 0.5em;
|
|
}
|
|
|
|
.format {
|
|
.format-input {
|
|
width: 280px;
|
|
}
|
|
}
|
|
|
|
.formats {
|
|
list-style: none;
|
|
padding: 0;
|
|
margin: 0;
|
|
.format {
|
|
.previewed-format {
|
|
color: $primary-medium;
|
|
}
|
|
}
|
|
}
|
|
|
|
.control-group.recurrence,
|
|
.control-group.format,
|
|
.control-group.timezones {
|
|
margin-top: 1em;
|
|
}
|
|
|
|
.timezones-input {
|
|
width: 99%;
|
|
}
|
|
}
|
|
|
|
html:not(.mobile-view) {
|
|
.fixed-modal .discourse-local-dates-create-modal.modal-body {
|
|
width: 600px;
|
|
max-height: 400px !important;
|
|
}
|
|
}
|
|
|
|
html.mobile-view {
|
|
.fixed-modal .discourse-local-dates-create-modal.modal-body {
|
|
max-height: 400px !important;
|
|
|
|
.date-time-configuration {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.picker-panel {
|
|
width: 100%;
|
|
margin: 0 0 1em 0;
|
|
|
|
.pika-single {
|
|
justify-content: center;
|
|
}
|
|
}
|
|
|
|
.time-picker {
|
|
padding-top: 6px;
|
|
}
|
|
}
|
|
}
|