mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-29 07:09:48 +03:00
735f6eb66f
refs. https://github.com/TryGhost/Ghost/issues/11445 - fixed input field background colors in Post Settings menu in darkmode - applied color variables to day picker calendar component - fixed colors of day picker calendar in darkmode
216 lines
4.8 KiB
CSS
216 lines
4.8 KiB
CSS
.ember-power-calendar {
|
|
box-sizing: border-box;
|
|
position: relative;
|
|
}
|
|
|
|
.ember-power-calendar-nav {
|
|
box-sizing: border-box;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.ember-power-calendar-nav * {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.ember-power-calendar-days,
|
|
.ember-power-calendar-days * {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.ember-power-calendar-nav-title {
|
|
flex: 1;
|
|
text-align: center;
|
|
}
|
|
|
|
.ember-power-calendar-row {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.ember-power-calendar-weekday {
|
|
-webkit-appearance: none;
|
|
flex: 1 1 100%;
|
|
padding: 0;
|
|
background-color: transparent;
|
|
background-color: initial;
|
|
border: none;
|
|
border: initial;
|
|
outline: none;
|
|
outline: initial;
|
|
justify-content: center;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.ember-power-calendar-day {
|
|
-webkit-appearance: none;
|
|
background-color: transparent;
|
|
background-color: initial;
|
|
border: none;
|
|
border: initial;
|
|
outline: none;
|
|
outline: initial;
|
|
flex: 1 1 100%;
|
|
font-size: inherit;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 0;
|
|
}
|
|
|
|
.ember-power-calendar-nav-control {
|
|
-webkit-appearance: none;
|
|
background-color: transparent;
|
|
background-color: initial;
|
|
border: none;
|
|
border: initial;
|
|
outline: none;
|
|
outline: initial;
|
|
font-size: inherit;
|
|
}
|
|
|
|
/* Theme styles */
|
|
.ember-power-calendar {
|
|
font-size: 14px;
|
|
line-height: 1.42857;
|
|
}
|
|
|
|
.ember-power-calendar-weekdays {
|
|
color: var(--darkgrey);
|
|
}
|
|
|
|
.ember-power-calendar-day {
|
|
color: var(--midgrey);
|
|
}
|
|
|
|
.ember-power-calendar-nav {
|
|
line-height: 2;
|
|
}
|
|
|
|
.ember-power-calendar-nav-control {
|
|
line-height: 1;
|
|
font-size: 150%;
|
|
color: var(--blue);
|
|
}
|
|
|
|
.ember-power-calendar-nav-control:focus {
|
|
transform: scale(1.2);
|
|
color: color-mod(var(--blue) l(+10%));
|
|
}
|
|
|
|
.ember-power-calendar-day--current-month {
|
|
color: var(--middarkgrey);
|
|
background-color: color-mod(var(--lightgrey) l(+4%));
|
|
}
|
|
|
|
.ember-power-calendar-day--today,
|
|
.ember-power-calendar-day:not([disabled]):hover {
|
|
background-color: var(--lightgrey);
|
|
}
|
|
|
|
.ember-power-calendar-day--other-month:not([disabled]):hover {
|
|
color: var(--midgrey);
|
|
}
|
|
|
|
.ember-power-calendar-day--selected,
|
|
.ember-power-calendar-day--selected:not([disabled]):hover {
|
|
font-weight: bold;
|
|
background-color: color-mod(var(--blue) l(+30%));
|
|
color: var(--middarkgrey);
|
|
}
|
|
|
|
.ember-power-calendar-day--selected.ember-power-calendar-day--range-start,
|
|
.ember-power-calendar-day--selected.ember-power-calendar-day--range-end {
|
|
background-color: color-mod(var(--blue) l(+40%));
|
|
}
|
|
|
|
.ember-power-calendar-day--selected.ember-power-calendar-day--range-start:hover,
|
|
.ember-power-calendar-day--selected.ember-power-calendar-day--range-end:hover {
|
|
background-color: color-mod(var(--blue) l(+40%));
|
|
}
|
|
|
|
.ember-power-calendar-day--focused {
|
|
box-shadow: inset 0px -2px 0px 0px var(--blue);
|
|
}
|
|
|
|
.ember-power-calendar-day--interactive[disabled] {
|
|
opacity: 0.4;
|
|
}
|
|
|
|
/*
|
|
@mixin ember-power-calendar(
|
|
$cell-size: null,
|
|
$cell-width: $cell-size,
|
|
$cell-height: $cell-size,
|
|
$cell-with-spacing-width: $cell-width + 2px,
|
|
$row-padding-top: 0,
|
|
$row-padding-bottom: 0,
|
|
$row-padding-left: 0,
|
|
$row-padding-right: 0,
|
|
$row-width: $cell-with-spacing-width * 7 - 2px + $row-padding-left + $row-padding-right) {
|
|
|
|
width: $row-width;
|
|
.ember-power-calendar-week:first-child {
|
|
&[data-missing-days="1"] {
|
|
padding-left: $cell-with-spacing-width * 1;
|
|
}
|
|
&[data-missing-days="2"] {
|
|
padding-left: $cell-with-spacing-width * 2;
|
|
}
|
|
&[data-missing-days="3"] {
|
|
padding-left: $cell-with-spacing-width * 3;
|
|
}
|
|
&[data-missing-days="4"] {
|
|
padding-left: $cell-with-spacing-width * 4;
|
|
}
|
|
&[data-missing-days="5"] {
|
|
padding-left: $cell-with-spacing-width * 5;
|
|
}
|
|
&[data-missing-days="6"] {
|
|
padding-left: $cell-with-spacing-width * 6;
|
|
}
|
|
}
|
|
.ember-power-calendar-week:last-child {
|
|
&[data-missing-days="1"] {
|
|
padding-right: $cell-with-spacing-width * 1;
|
|
}
|
|
&[data-missing-days="2"] {
|
|
padding-right: $cell-with-spacing-width * 2;
|
|
}
|
|
&[data-missing-days="3"] {
|
|
padding-right: $cell-with-spacing-width * 3;
|
|
}
|
|
&[data-missing-days="4"] {
|
|
padding-right: $cell-with-spacing-width * 4;
|
|
}
|
|
&[data-missing-days="5"] {
|
|
padding-right: $cell-with-spacing-width * 5;
|
|
}
|
|
&[data-missing-days="6"] {
|
|
padding-right: $cell-with-spacing-width * 6;
|
|
}
|
|
}
|
|
.ember-power-calendar-day, .ember-power-calendar-weekday {
|
|
max-width: $cell-width;
|
|
max-height: $cell-height;
|
|
width: $cell-width;
|
|
height: $cell-height;
|
|
}
|
|
.ember-power-calendar-weekdays, .ember-power-calendar-week {
|
|
height: $cell-height + 2px;
|
|
padding-left: $row-padding-left;
|
|
padding-right: $row-padding-right;
|
|
}
|
|
}
|
|
|
|
.datepicker-small {
|
|
@include ember-power-calendar($cell-size: 30px);
|
|
}
|
|
*/
|
|
|
|
|
|
/* Datepicker */
|
|
.ember-power-datepicker-trigger:focus {
|
|
outline: none;
|
|
}
|