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