2019-12-18 16:25:03 -05:00
|
|
|
/* Date/Time Menu */
|
|
|
|
|
|
|
|
// overall menu
|
2022-02-07 13:22:40 -05:00
|
|
|
#calendarArea {
|
2022-02-21 14:21:53 -05:00
|
|
|
padding: $base_padding - 2px;
|
2022-02-07 13:22:40 -05:00
|
|
|
}
|
2019-12-18 16:25:03 -05:00
|
|
|
|
|
|
|
// Calendar menu side column
|
|
|
|
.datemenu-calendar-column {
|
2022-02-07 13:22:40 -05:00
|
|
|
spacing: $base_padding;
|
2022-02-07 12:37:54 -05:00
|
|
|
&:ltr {padding-left: $base_padding;}
|
|
|
|
&:rtl {padding-right: $base_padding;}
|
2022-02-07 13:22:40 -05:00
|
|
|
.datemenu-displays-box {spacing: $base_padding;}
|
2019-12-18 16:25:03 -05:00
|
|
|
}
|
|
|
|
|
2020-02-06 08:08:33 -05:00
|
|
|
/* today button (the date) */
|
|
|
|
.datemenu-today-button {
|
2022-02-02 13:17:42 -05:00
|
|
|
@include card($flat: true);
|
2020-02-06 08:08:33 -05:00
|
|
|
padding: $base_padding * 1.5;
|
|
|
|
|
|
|
|
// weekday label
|
|
|
|
.day-label {
|
2022-02-07 13:22:40 -05:00
|
|
|
@extend %heading;
|
2020-02-06 08:08:33 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
// date label
|
|
|
|
.date-label {
|
2022-02-07 13:22:40 -05:00
|
|
|
@extend %title_2;
|
2020-02-06 08:08:33 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-12-18 16:25:03 -05:00
|
|
|
/* Calendar */
|
|
|
|
.calendar {
|
2022-02-07 12:37:54 -05:00
|
|
|
@include card(flat);
|
2022-02-07 13:22:40 -05:00
|
|
|
margin-top: 0;
|
2019-12-18 16:25:03 -05:00
|
|
|
|
2022-02-07 12:37:54 -05:00
|
|
|
// month header
|
|
|
|
.calendar-month-header {
|
2019-12-19 10:38:27 -05:00
|
|
|
|
2022-02-07 12:37:54 -05:00
|
|
|
// prev/next month icons
|
|
|
|
.calendar-change-month-back StIcon,
|
|
|
|
.calendar-change-month-forward StIcon {
|
|
|
|
icon-size: $base_icon_size;
|
|
|
|
}
|
2019-12-19 10:38:27 -05:00
|
|
|
|
2022-02-07 12:37:54 -05:00
|
|
|
// month label
|
|
|
|
.calendar-month-label {
|
2022-02-07 13:22:40 -05:00
|
|
|
color: lighten($fg_color,5%);
|
|
|
|
@extend %heading;
|
|
|
|
padding: 8px 0;
|
2022-02-07 12:37:54 -05:00
|
|
|
}
|
|
|
|
.pager-button {
|
|
|
|
background-color: transparent;
|
|
|
|
height: 32px;
|
|
|
|
width: 32px;
|
|
|
|
margin: 2px;
|
|
|
|
border-radius: $base_border_radius - 2px;
|
|
|
|
&:hover, &:focus {background-color: $hover_bg_color;}
|
|
|
|
&:active {background-color: $active_bg_color;}
|
|
|
|
}
|
2019-12-19 10:38:27 -05:00
|
|
|
}
|
|
|
|
|
2022-04-26 12:45:40 -04:00
|
|
|
$calendar_day_size: 3em;
|
2019-12-19 10:38:27 -05:00
|
|
|
|
|
|
|
.calendar-day-base {
|
|
|
|
text-align: center;
|
|
|
|
margin: 2px;
|
2022-02-07 13:22:40 -05:00
|
|
|
padding: 0 !important;
|
|
|
|
height: $calendar_day_size !important;
|
|
|
|
width: $calendar_day_size !important;
|
|
|
|
border-radius: 99px;
|
2022-05-27 14:09:45 -04:00
|
|
|
transition-duration: 100ms;
|
2022-02-07 13:22:40 -05:00
|
|
|
@extend %numeric;
|
|
|
|
@extend %smaller;
|
2021-12-28 08:46:54 -05:00
|
|
|
|
2022-02-07 12:37:54 -05:00
|
|
|
&:hover {background-color: $hover_bg_color;}
|
|
|
|
&:focus {
|
|
|
|
background-color: mix($bg_color, $selected_bg_color, 80%);
|
|
|
|
color: $selected_fg_color;
|
2022-02-07 13:22:40 -05:00
|
|
|
box-shadow:inset 0 0 0 2px transparentize($selected_bg_color, 0.4);
|
2022-02-07 12:37:54 -05:00
|
|
|
}
|
|
|
|
|
2019-12-19 10:38:27 -05:00
|
|
|
&:active,&:selected {
|
2022-02-07 12:37:54 -05:00
|
|
|
color: $active_fg_color;
|
|
|
|
background-color: $active_bg_color;
|
|
|
|
&:focus {
|
|
|
|
background-color: mix($active_bg_color, $selected_bg_color, 80%);
|
|
|
|
}
|
2019-12-19 10:38:27 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
// day of week heading
|
|
|
|
&.calendar-day-heading {
|
2021-12-28 08:46:54 -05:00
|
|
|
color: $insensitive_fg_color;
|
|
|
|
padding-top: $base_padding;
|
|
|
|
height: 16px !important; // force heading to be smaller height
|
2022-02-07 13:22:40 -05:00
|
|
|
font-weight: bold;
|
|
|
|
@extend %smaller;
|
2019-12-19 10:38:27 -05:00
|
|
|
}
|
|
|
|
}
|
2020-02-06 07:42:13 -05:00
|
|
|
|
2022-02-07 13:22:40 -05:00
|
|
|
.calendar-day {}
|
2022-02-07 12:37:54 -05:00
|
|
|
.calendar-work-day {}
|
2022-02-07 13:22:40 -05:00
|
|
|
.calendar-nonwork-day {color: $insensitive_fg_color;}
|
2022-02-07 12:37:54 -05:00
|
|
|
.calendar-other-month-day {
|
|
|
|
color: transparentize($fg_color, 0.5);
|
|
|
|
&.calendar-nonwork-day {
|
|
|
|
color: transparentize($insensitive_fg_color, 0.5);
|
|
|
|
}
|
2021-12-28 08:46:54 -05:00
|
|
|
}
|
2020-02-06 07:42:13 -05:00
|
|
|
|
2019-12-19 10:38:27 -05:00
|
|
|
// Today
|
|
|
|
.calendar-today {
|
|
|
|
background-color: $selected_bg_color;
|
2022-02-07 13:22:40 -05:00
|
|
|
font-weight: 800;
|
2021-12-28 08:46:54 -05:00
|
|
|
color: $selected_fg_color !important;
|
2019-12-19 10:38:27 -05:00
|
|
|
|
|
|
|
&:hover,&:focus {
|
|
|
|
background-color:lighten($selected_bg_color, 3%);
|
2021-12-28 08:46:54 -05:00
|
|
|
color: inherit;
|
2019-12-19 10:38:27 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
&:active,&:selected {
|
|
|
|
background-color: $selected_bg_color;
|
2021-12-28 08:46:54 -05:00
|
|
|
color: inherit;
|
2020-02-06 07:42:13 -05:00
|
|
|
|
2019-12-19 10:38:27 -05:00
|
|
|
&:hover,&:focus {
|
|
|
|
background-color:lighten($selected_bg_color, 3%);
|
2021-12-28 08:46:54 -05:00
|
|
|
color: inherit;
|
2019-12-19 10:38:27 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-02-06 07:42:13 -05:00
|
|
|
|
2019-12-19 10:38:27 -05:00
|
|
|
.calendar-day-with-events {
|
2022-02-07 12:37:54 -05:00
|
|
|
background-image: if($variant == 'light', url("resource:///org/gnome/shell/theme/calendar-today-light.svg"),url("resource:///org/gnome/shell/theme/calendar-today.svg"));
|
2021-12-28 08:46:54 -05:00
|
|
|
background-size: contain;
|
2019-12-19 10:38:27 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
.calendar-week-number {
|
2019-12-19 11:09:33 -05:00
|
|
|
@include fontsize($base_font_size - 4);
|
2019-12-19 10:38:27 -05:00
|
|
|
font-weight: bold;
|
2022-02-07 12:37:54 -05:00
|
|
|
font-feature-settings: "tnum";
|
2019-12-19 10:38:27 -05:00
|
|
|
margin: 6px;
|
2022-02-07 13:22:40 -05:00
|
|
|
padding: 0 $base_padding;
|
2022-02-07 12:37:54 -05:00
|
|
|
border-radius: 3px;
|
2019-12-19 10:38:27 -05:00
|
|
|
background-color: darken($bg_color, 2%);
|
2022-02-07 12:37:54 -05:00
|
|
|
color: $insensitive_fg_color
|
2019-12-19 10:38:27 -05:00
|
|
|
}
|
2019-12-18 16:25:03 -05:00
|
|
|
}
|
|
|
|
|
2020-05-14 16:24:36 -04:00
|
|
|
/* Events */
|
|
|
|
.events-button {
|
2022-02-02 13:17:42 -05:00
|
|
|
@include card;
|
2020-05-14 16:24:36 -04:00
|
|
|
padding: $base_padding * 2;
|
|
|
|
|
|
|
|
.events-box {
|
2022-02-07 13:22:40 -05:00
|
|
|
spacing: $base_padding;
|
2020-05-14 16:24:36 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
.events-list {
|
2022-02-07 13:22:40 -05:00
|
|
|
spacing: 2 * $base_padding;
|
2020-05-14 16:24:36 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
.events-title {
|
2022-02-07 13:22:40 -05:00
|
|
|
@extend %heading;
|
2021-12-28 08:46:54 -05:00
|
|
|
color: $insensitive_fg_color;
|
2020-05-14 16:24:36 -04:00
|
|
|
margin-bottom: $base_margin;
|
|
|
|
}
|
|
|
|
|
|
|
|
.event-time {
|
2022-02-07 13:22:40 -05:00
|
|
|
@extend %numeric;
|
|
|
|
@extend %caption;
|
2021-12-28 08:46:54 -05:00
|
|
|
color: $insensitive_fg_color;
|
2020-05-14 16:24:36 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-02-06 08:15:19 -05:00
|
|
|
/* World clocks */
|
|
|
|
.world-clocks-button {
|
2022-02-02 13:17:42 -05:00
|
|
|
@include card;
|
2020-02-06 08:15:19 -05:00
|
|
|
padding: $base_padding * 2;
|
|
|
|
|
|
|
|
.world-clocks-grid {
|
2022-02-07 13:22:40 -05:00
|
|
|
spacing-rows: $base_padding;
|
|
|
|
spacing-columns: $base_padding * 2;
|
2020-02-06 08:15:19 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
// title
|
|
|
|
.world-clocks-header {
|
2022-02-07 13:22:40 -05:00
|
|
|
@extend %heading;
|
2021-12-28 08:46:54 -05:00
|
|
|
color: $insensitive_fg_color;
|
2020-02-06 08:15:19 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
// city label
|
|
|
|
.world-clocks-city {
|
|
|
|
color: $fg_color;
|
|
|
|
}
|
|
|
|
|
|
|
|
// timezone time
|
|
|
|
.world-clocks-time {
|
2022-02-07 13:22:40 -05:00
|
|
|
@extend %heading;
|
|
|
|
@extend %numeric;
|
2020-02-06 08:15:19 -05:00
|
|
|
color: $fg_color;
|
2020-08-03 10:38:17 -04:00
|
|
|
|
2022-02-07 12:37:54 -05:00
|
|
|
&:ltr {text-align: right;}
|
|
|
|
&:rtl {text-align: left;}
|
2020-02-06 08:15:19 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
// timezone offset label
|
|
|
|
.world-clocks-timezone {
|
2022-02-07 13:22:40 -05:00
|
|
|
@extend %numeric;
|
|
|
|
@extend %caption;
|
2021-12-28 08:46:54 -05:00
|
|
|
color: $insensitive_fg_color;
|
2020-02-06 08:15:19 -05:00
|
|
|
}
|
|
|
|
}
|
2019-12-18 16:25:03 -05:00
|
|
|
|
|
|
|
/* Weather */
|
2020-02-06 08:08:33 -05:00
|
|
|
.weather-button {
|
2022-02-02 13:17:42 -05:00
|
|
|
@include card;
|
2020-02-06 08:08:33 -05:00
|
|
|
padding: $base_padding * 2;
|
|
|
|
|
|
|
|
.weather-box {
|
2022-02-07 13:22:40 -05:00
|
|
|
spacing: $base_padding + $base_margin;
|
2020-02-06 08:08:33 -05:00
|
|
|
}
|
2019-12-19 10:38:27 -05:00
|
|
|
|
2020-02-06 08:18:01 -05:00
|
|
|
.weather-header-box {
|
2022-02-07 13:22:40 -05:00
|
|
|
spacing: $base_padding;
|
2020-02-06 08:18:01 -05:00
|
|
|
}
|
|
|
|
|
2019-12-19 10:38:27 -05:00
|
|
|
.weather-header {
|
2021-12-28 08:46:54 -05:00
|
|
|
color: $insensitive_fg_color;
|
2022-02-07 13:22:40 -05:00
|
|
|
@extend %heading;
|
2020-02-06 07:42:13 -05:00
|
|
|
|
2019-12-19 10:38:27 -05:00
|
|
|
&.location {
|
|
|
|
font-weight: normal;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.weather-grid {
|
2022-02-07 13:22:40 -05:00
|
|
|
spacing-rows: $base_padding;
|
|
|
|
spacing-columns: $base_padding * 2;
|
2019-12-19 10:38:27 -05:00
|
|
|
}
|
|
|
|
|
2019-12-18 18:43:12 -05:00
|
|
|
.weather-forecast-time {
|
2022-02-07 13:22:40 -05:00
|
|
|
@extend %numeric;
|
|
|
|
@extend %caption;
|
2019-12-18 18:43:12 -05:00
|
|
|
color: darken($fg_color,30%);
|
2019-12-18 19:03:24 -05:00
|
|
|
padding-top: 0.2em;
|
|
|
|
padding-bottom: 0.4em;
|
2019-12-18 18:43:12 -05:00
|
|
|
}
|
|
|
|
|
2019-12-19 10:38:27 -05:00
|
|
|
.weather-forecast-icon {
|
2022-02-07 13:22:40 -05:00
|
|
|
icon-size: $large_icon_size;
|
2019-12-19 10:38:27 -05:00
|
|
|
}
|
|
|
|
|
2019-12-18 18:45:17 -05:00
|
|
|
.weather-forecast-temp {
|
2022-02-07 13:22:40 -05:00
|
|
|
@extend %heading;
|
2019-12-18 18:45:17 -05:00
|
|
|
}
|
2019-12-18 16:25:03 -05:00
|
|
|
}
|