Ghost/ghost/admin/app/styles/components/power-calendar.css
Kevin Ansfield 4562476d4e Switched "Last seen" filter back to standard datepicker without shortcuts (#2296)
refs https://github.com/TryGhost/Team/issues/1418

- drops the block usage of `<GhDatePicker>` for the "Last seen" input that added shortcut buttons
  - not a full revert of https://github.com/TryGhost/Admin/pull/2291 as allowing block usage of the component is still useful for other component customisation
- removes CSS related to the calendar-with-shortcut buttons as we don't have any other use-cases for it at the moment
2022-03-08 20:13:33 +00:00

243 lines
5.2 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;
font-size: 1.35rem;
font-weight: 600;
}
.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;
height: 23px;
}
.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;
height: 23px;
}
.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.65;
}
.ember-power-calendar-weekdays {
color: var(--midlightgrey);
}
.ember-power-calendar-day {
color: var(--midgrey);
}
.ember-power-calendar-nav {
padding: 0 4px 8px;
height: 32px;
}
.ember-power-calendar-nav-control {
position: relative;
bottom: 2px;
line-height: 1;
font-size: 150%;
color: var(--black);
}
.ember-power-calendar-nav-control:focus {
color: color-mod(var(--black) l(+10%));
}
.ember-power-calendar-day--current-month {
color: var(--darkgrey);
}
.ember-power-calendar-day--today,
.ember-power-calendar-day:not([disabled]):hover {
background-color: var(--whitegrey);
border-radius: 3px;
}
.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(--green) l(+30%));
color: var(--darkgrey);
border-radius: 3px;
}
.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(--green) 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(--green) l(+40%));
}
.ember-power-calendar-day--focused {
box-shadow: inset 0px -2px 0px 0px var(--green);
}
.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-content {
min-width: 212px;
padding: 12px;
}
.ember-power-datepicker-trigger:focus {
outline: none;
}
/* Input+Datepicker component */
.gh-date-picker {
position: relative;
display: flex;
flex-direction: column;
}
svg.gh-date-picker-cal-icon {
display: block;
position: absolute;
right: 0;
top: 9px;
font-size: 1.3rem;
}