2019-12-18 21:25:03 +00:00
|
|
|
/* Date/Time Menu */
|
|
|
|
|
|
|
|
// overall menu
|
2022-02-07 17:37:54 +00:00
|
|
|
#calendarArea {}
|
2019-12-18 21:25:03 +00:00
|
|
|
|
|
|
|
// Calendar menu side column
|
|
|
|
.datemenu-calendar-column {
|
2020-02-06 12:42:13 +00:00
|
|
|
spacing: $base_spacing;
|
2021-12-28 13:46:54 +00:00
|
|
|
border: none;
|
|
|
|
border-style: solid;
|
|
|
|
border-color: $borders_color;
|
2019-12-19 15:38:27 +00:00
|
|
|
|
2022-02-07 17:37:54 +00:00
|
|
|
&:ltr {padding-left: $base_padding;}
|
|
|
|
&:rtl {padding-right: $base_padding;}
|
2019-12-18 21:25:03 +00:00
|
|
|
|
2022-02-07 17:37:54 +00:00
|
|
|
.datemenu-displays-box {spacing: $base_spacing;}
|
2019-12-18 21:25:03 +00:00
|
|
|
}
|
|
|
|
|
2020-02-06 13:08:33 +00:00
|
|
|
/* today button (the date) */
|
|
|
|
.datemenu-today-button {
|
2022-02-02 18:17:42 +00:00
|
|
|
@include card($flat: true);
|
2020-02-06 13:08:33 +00:00
|
|
|
padding: $base_padding * 1.5;
|
|
|
|
|
|
|
|
// weekday label
|
|
|
|
.day-label {
|
|
|
|
@include fontsize($base_font_size+1);
|
2021-12-28 13:46:54 +00:00
|
|
|
color: $insensitive_fg_color;
|
2020-02-06 13:08:33 +00:00
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
|
|
|
|
// date label
|
|
|
|
.date-label {
|
|
|
|
@include fontsize($base_font_size+7);
|
|
|
|
font-weight: 1000;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-12-18 21:25:03 +00:00
|
|
|
/* Calendar */
|
|
|
|
.calendar {
|
2022-02-07 17:37:54 +00:00
|
|
|
@include card(flat);
|
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 {
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
|
|
|
|
.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 15:38:27 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
$calendar_day_size: 32px;
|
|
|
|
|
|
|
|
.calendar-day-base {
|
2019-12-19 16:09:33 +00:00
|
|
|
@include fontsize($base_font_size - 3);
|
2019-12-19 15:38:27 +00:00
|
|
|
text-align: center;
|
|
|
|
margin: 2px;
|
2021-12-28 13:46:54 +00:00
|
|
|
height: $calendar_day_size;
|
|
|
|
width: $calendar_day_size;
|
2019-12-19 15:38:27 +00:00
|
|
|
border-radius: $calendar_day_size * 0.5 + 2px;
|
|
|
|
font-feature-settings: "tnum";
|
2021-12-28 13:46:54 +00:00
|
|
|
|
2022-02-07 17:37:54 +00:00
|
|
|
&:hover {background-color: $hover_bg_color;}
|
|
|
|
&:focus {
|
|
|
|
font-weight: 1000;
|
|
|
|
background-color: mix($bg_color, $selected_bg_color, 80%);
|
|
|
|
color: $selected_fg_color;
|
|
|
|
box-shadow: 0 0 0 2px transparentize($selected_bg_color, 0.4);
|
|
|
|
}
|
|
|
|
|
2019-12-19 15:38:27 +00:00
|
|
|
&:active,&:selected {
|
2022-02-07 17:37:54 +00:00
|
|
|
font-weight: 1000;
|
|
|
|
color: $active_fg_color;
|
|
|
|
background-color: $active_bg_color;
|
|
|
|
&:focus {
|
|
|
|
background-color: mix($active_bg_color, $selected_bg_color, 80%);
|
|
|
|
}
|
2019-12-19 15:38:27 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// day of week heading
|
|
|
|
&.calendar-day-heading {
|
2021-12-28 13:46:54 +00:00
|
|
|
color: $insensitive_fg_color;
|
|
|
|
padding-top: $base_padding;
|
|
|
|
height: 16px !important; // force heading to be smaller height
|
|
|
|
@include fontsize($base_font_size - 2);
|
2019-12-19 15:38:27 +00:00
|
|
|
}
|
|
|
|
}
|
2020-02-06 12:42:13 +00:00
|
|
|
|
2022-02-07 17:37:54 +00:00
|
|
|
.calendar-day {
|
|
|
|
border-width: 0; // border collapse hack - see calendar.js
|
2019-12-19 15:38:27 +00:00
|
|
|
}
|
|
|
|
|
2022-02-07 17:37:54 +00:00
|
|
|
.calendar-work-day {}
|
2019-12-19 15:38:27 +00:00
|
|
|
|
2022-02-07 17:37:54 +00:00
|
|
|
.calendar-nonwork-day {
|
|
|
|
color: $insensitive_fg_color;
|
2020-02-06 12:42:13 +00:00
|
|
|
}
|
|
|
|
|
2022-02-07 17:37:54 +00:00
|
|
|
.calendar-other-month-day {
|
|
|
|
color: transparentize($fg_color, 0.5);
|
|
|
|
&.calendar-nonwork-day {
|
|
|
|
color: transparentize($insensitive_fg_color, 0.5);
|
|
|
|
}
|
2021-12-28 13:46:54 +00:00
|
|
|
}
|
2020-02-06 12:42:13 +00:00
|
|
|
|
2019-12-19 15:38:27 +00:00
|
|
|
|
|
|
|
// Today
|
|
|
|
.calendar-today {
|
|
|
|
background-color: $selected_bg_color;
|
2022-02-07 17:37:54 +00:00
|
|
|
font-weight: 1000;
|
2021-12-28 13:46:54 +00:00
|
|
|
color: $selected_fg_color !important;
|
2019-12-19 15:38:27 +00:00
|
|
|
|
|
|
|
&:hover,&:focus {
|
|
|
|
background-color:lighten($selected_bg_color, 3%);
|
2021-12-28 13:46:54 +00:00
|
|
|
color: inherit;
|
2019-12-19 15:38:27 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&:active,&:selected {
|
|
|
|
background-color: $selected_bg_color;
|
2021-12-28 13:46:54 +00:00
|
|
|
color: inherit;
|
2020-02-06 12:42:13 +00:00
|
|
|
|
2019-12-19 15:38:27 +00:00
|
|
|
&:hover,&:focus {
|
|
|
|
background-color:lighten($selected_bg_color, 3%);
|
2021-12-28 13:46:54 +00:00
|
|
|
color: inherit;
|
2019-12-19 15:38:27 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-02-06 12:42:13 +00:00
|
|
|
|
2019-12-19 15:38:27 +00:00
|
|
|
.calendar-day-with-events {
|
2022-02-07 17:37:54 +00: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 13:46:54 +00:00
|
|
|
background-size: contain;
|
2020-04-06 15:43:51 +00:00
|
|
|
&.calendar-work-day {
|
2021-12-28 13:46:54 +00:00
|
|
|
color: lighten($fg_color,10%);
|
|
|
|
font-weight: bold;
|
2020-04-06 15:43:51 +00:00
|
|
|
}
|
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";
|
2019-12-19 15:38:27 +00:00
|
|
|
margin: 6px;
|
2022-02-07 17:37:54 +00:00
|
|
|
padding: $base_padding;
|
|
|
|
border-radius: 3px;
|
2019-12-19 15:38:27 +00:00
|
|
|
background-color: darken($bg_color, 2%);
|
2022-02-07 17:37:54 +00:00
|
|
|
color: $insensitive_fg_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 {
|
|
|
|
spacing: $base_spacing;
|
|
|
|
}
|
|
|
|
|
|
|
|
.events-list {
|
|
|
|
spacing: 2 * $base_spacing;
|
|
|
|
}
|
|
|
|
|
|
|
|
.events-title {
|
2021-12-28 13:46:54 +00:00
|
|
|
color: $insensitive_fg_color;
|
2020-05-14 20:24:36 +00:00
|
|
|
font-weight: bold;
|
|
|
|
margin-bottom: $base_margin;
|
|
|
|
}
|
|
|
|
|
|
|
|
.event-time {
|
2021-12-28 13:46:54 +00:00
|
|
|
color: $insensitive_fg_color;
|
2020-05-14 20:24:36 +00:00
|
|
|
font-feature-settings: "tnum";
|
|
|
|
@include fontsize($base_font_size - 1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
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 {
|
|
|
|
spacing-rows: $base_spacing;
|
|
|
|
spacing-columns: $base_spacing * 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
// title
|
|
|
|
.world-clocks-header {
|
2021-12-28 13:46:54 +00:00
|
|
|
color: $insensitive_fg_color;
|
2020-02-06 13:15:19 +00:00
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
|
|
|
|
// city label
|
|
|
|
.world-clocks-city {
|
|
|
|
color: $fg_color;
|
|
|
|
@include fontsize($base_font_size);
|
|
|
|
font-weight: normal;
|
|
|
|
}
|
|
|
|
|
|
|
|
// timezone time
|
|
|
|
.world-clocks-time {
|
|
|
|
font-weight: bold;
|
|
|
|
color: $fg_color;
|
2020-05-24 10:55:26 +00:00
|
|
|
font-feature-settings: "tnum";
|
2020-02-06 13:15:19 +00:00
|
|
|
@include fontsize($base_font_size);
|
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 {
|
2021-12-28 13:46:54 +00:00
|
|
|
color: $insensitive_fg_color;
|
2020-02-06 13:15:19 +00:00
|
|
|
font-feature-settings: "tnum";
|
|
|
|
@include fontsize($base_font_size - 1);
|
|
|
|
}
|
|
|
|
}
|
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 {
|
|
|
|
spacing: $base_spacing + $base_margin;
|
|
|
|
}
|
2019-12-19 15:38:27 +00:00
|
|
|
|
2020-02-06 13:18:01 +00:00
|
|
|
.weather-header-box {
|
|
|
|
spacing: $base_spacing;
|
|
|
|
}
|
|
|
|
|
2019-12-19 15:38:27 +00:00
|
|
|
.weather-header {
|
2021-12-28 13:46:54 +00:00
|
|
|
color: $insensitive_fg_color;
|
2019-12-19 15:38:27 +00:00
|
|
|
font-weight: bold;
|
2020-02-06 12:42:13 +00:00
|
|
|
|
2019-12-19 15:38:27 +00:00
|
|
|
&.location {
|
|
|
|
font-weight: normal;
|
2019-12-19 16:09:33 +00:00
|
|
|
@include fontsize($base_font_size - 1);
|
2019-12-19 15:38:27 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.weather-grid {
|
|
|
|
spacing-rows: $base_spacing;
|
|
|
|
spacing-columns: $base_spacing * 2;
|
|
|
|
}
|
|
|
|
|
2019-12-18 23:43:12 +00:00
|
|
|
.weather-forecast-time {
|
|
|
|
color: darken($fg_color,30%);
|
|
|
|
font-feature-settings: "tnum";
|
|
|
|
@include fontsize($base_font_size - 2);
|
|
|
|
font-weight: normal;
|
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 {
|
|
|
|
icon-size: $base_icon_size * 2;
|
|
|
|
}
|
|
|
|
|
2019-12-18 23:45:17 +00:00
|
|
|
.weather-forecast-temp {
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
2019-12-18 21:25:03 +00:00
|
|
|
}
|