345 lines
6.8 KiB
SCSS
Raw Normal View History

2021-04-08 22:59:05 +08:00
/* Date/Time Menu */
.clock-display-box {
spacing: 2px;
.clock {
padding-left: $base_padding * 2;
padding-right: $base_padding * 2;
}
}
// overall menu
#calendarArea {
2021-05-24 19:34:56 +08:00
padding: $base_padding * 2 0;
2021-04-08 22:59:05 +08:00
}
// Calendar menu side column
.datemenu-calendar-column {
spacing: $base_spacing;
border: 0 solid $borders_color;
padding: 0 $base_padding * 2;
&:ltr {margin-right: $base_margin * 2; border-left-width: 0; }
&:rtl {margin-left: $base_margin * 2; border-right-width: 0; }
.datemenu-displays-section { padding-bottom: 0; }
.datemenu-displays-box {
spacing: $base_spacing;
}
}
.world-clocks-header,
.weather-header,
.events-section-title {
color: $alt_fg_color;
font-weight: bold;
}
.datemenu-today-button,
.datemenu-displays-box,
.message-list-sections {
margin: 4px 8px;
}
/* today button (the date) */
.datemenu-today-button {
border: none;
box-shadow: none;
background: none;
2021-04-13 21:43:33 +08:00
padding: $base_padding;
2021-05-24 19:36:24 +08:00
margin: 0 12px;
2021-04-08 22:59:05 +08:00
text-shadow: none;
color: $alt_fg_color;
2021-04-13 21:43:33 +08:00
border-radius: $mn_radius;
2021-04-08 22:59:05 +08:00
&:hover, &:focus {
color: $fg_color;
2021-04-10 18:05:02 +08:00
background-color: if($variant == 'light', rgba($popover_bubble_bg, 1), rgba(lighten($popover_bubble_bg, 5%), 1));
2021-04-08 22:59:05 +08:00
}
&:active {
color: $fg_color;
2021-04-13 21:43:33 +08:00
background-color: if($variant == 'light', darken($popover_bubble_bg, 1%), lighten($popover_bubble_bg, 3%));
2021-04-08 22:59:05 +08:00
}
// weekday label
.day-label {
@include font(title);
font-weight: bold;
}
// date label
.date-label {
@include font(headline);
}
}
/* Calendar */
.calendar {
border: none;
box-shadow: none;
2021-04-10 18:05:02 +08:00
background-color: $popover_bubble_bg;
2021-04-14 14:41:22 +08:00
padding: $base_padding !important;
2021-05-24 19:34:56 +08:00
margin: 0 12px !important;
2021-04-08 22:59:05 +08:00
text-shadow: none;
border-radius: $mn_radius;
// month
.calendar-month-label {
2021-04-14 14:41:22 +08:00
margin: 0;
padding: $base_padding 0;
2021-04-08 22:59:05 +08:00
color: $fg_color;
font-weight: bold;
2021-04-14 14:41:22 +08:00
font-size: 1em !important;
2021-04-08 22:59:05 +08:00
text-align: center;
text-shadow: none;
&:focus { background-color: $divider_color; }
}
// prev/next month icons
2021-04-10 18:05:02 +08:00
.calendar-change-month-back,
.calendar-change-month-forward {
2021-04-14 14:41:22 +08:00
padding: 2px !important;
margin: 0 !important;
2021-04-10 18:05:02 +08:00
StIcon {
2021-04-14 14:41:22 +08:00
icon-size: $base_icon_size !important;
2021-04-10 18:05:02 +08:00
}
2021-04-08 22:59:05 +08:00
}
.pager-button {
width: $menuitem_size;
height: $menuitem_size;
margin: 2px;
2021-04-13 20:02:40 +08:00
border-radius: $circular_radius;
2021-04-08 22:59:05 +08:00
background-color: transparent;
color: $fg_color;
&:hover, &:focus { background-color: $divider_color; }
&:active { background-color: $track_color; }
}
.calendar-day-base {
@include font(caption);
text-align: center;
width: $menuitem_size;
height: $menuitem_size;
padding: 2px;
margin: 2px;
2021-04-13 20:02:40 +08:00
border-radius: $circular_radius;
2021-04-08 22:59:05 +08:00
color: $alt_fg_color;
font-feature-settings: "tnum";
&:hover, &:focus { background-color: $divider_color; }
&:active {
color: $alt_fg_color;
background-color: $track_color;
border-color: transparent; //avoid jumparound due to today
}
&:selected {
color: $fg_color;
background-color: $track_color;
border-color: transparent; //avoid jumparound due to today
}
&.calendar-day-heading { //day of week heading
width: $menuitem_size;
height: $menuitem_size - 7px;
margin-top: 2px;
padding: 7px 0 0;
2021-04-13 20:02:40 +08:00
border-radius: $circular_radius;
2021-04-08 22:59:05 +08:00
background-color: transparent;
color: $hint_fg_color;
@include font(caption);
font-weight: bold;
text-align: center;
}
}
.calendar-day { //border collapse hack - see calendar.js
border-width: 0;
}
.calendar-day-top {
border-top-width: 0;
}
.calendar-day-left {
border-left-width: 0;
}
.calendar-work-day {}
.calendar-nonwork-day {
color: $disabled_fg_color;
}
// Today
.calendar-today {
font-weight: bold;
2021-04-14 14:41:22 +08:00
color: $alt_fg_color !important;
background-color: rgba($fg_color, 0.1);
2021-04-08 22:59:05 +08:00
border: none;
&:hover, &:focus {
2021-04-14 14:41:22 +08:00
background-color: rgba($fg_color, 0.15);
color: $fg_color !important;
2021-04-08 22:59:05 +08:00
}
2021-04-14 14:41:22 +08:00
&:active {
background-color: darken($primary_color, 5%);
color: $light_fg_color !important;
}
&:selected {
2021-04-08 22:59:05 +08:00
background-color: $primary_color;
2021-04-14 14:41:22 +08:00
color: $light_fg_color !important;
2021-04-08 22:59:05 +08:00
&:hover, &:focus {
2021-04-14 14:41:22 +08:00
background-color: lighten($primary_color, 8%);
color: $light_fg_color !important;
2021-04-08 22:59:05 +08:00
}
}
}
.calendar-day-with-events {
color: $hint_fg_color;
background-image: url("assets/calendar-today.svg");
&.calendar-work-day {
color: $hint_fg_color;
font-weight: bold;
}
}
.calendar-other-month-day {
color: $disabled_fg_color;
opacity: 0.5;
}
.calendar-week-number {
width: 22px;
height: 16px;
margin: 6px 6px 6px 4px;
padding: 0 0;
border-radius: $bt_radius;
background-color: if($variant == 'light', rgba(black, 0.05), rgba(white, 0.05));
color: $hint_fg_color;
font-size: inherit;
font-weight: bold;
text-align: center;
}
}
.world-clocks-button,
.weather-button,
.events-button {
2021-04-10 18:05:02 +08:00
@extend %popover_bubble;
2021-04-14 14:41:22 +08:00
padding: $base_padding * 2 !important;
2021-05-24 19:34:56 +08:00
margin: 2px 4px !important;
2021-04-08 22:59:05 +08:00
}
// Events
.events-button {
.events-box {
2021-04-13 19:42:12 +08:00
spacing: $base_spacing;
2021-04-08 22:59:05 +08:00
}
.events-list {
2021-04-13 19:42:12 +08:00
spacing: 2 * $base_spacing;
2021-04-08 22:59:05 +08:00
text-shadow: none;
}
.events-title {
color: $hint_fg_color;
font-weight: bold;
text-shadow: none;
}
.event-time {
color: $hint_fg_color;
font-feature-settings: "tnum";
2021-04-13 19:42:12 +08:00
@include fontsize($base_font_size - 2);
2021-04-08 22:59:05 +08:00
}
}
// World Clock
.world-clocks-button {
.world-clocks-city {
color: $hint_fg_color;
font-weight: bold;
2021-04-13 19:42:12 +08:00
@include fontsize($base_font_size - 1);
2021-04-08 22:59:05 +08:00
}
.world-clocks-time {
color: $hint_fg_color;
font-feature-settings: "tnum";
2021-04-13 19:42:12 +08:00
@include fontsize($base_font_size - 1);
2021-04-08 22:59:05 +08:00
&:ltr { text-align: right; }
&:rtl { text-align: left; }
}
.world-clocks-timezone {
color: $hint_fg_color;
font-feature-settings: "tnum";
2021-04-13 19:42:12 +08:00
@include fontsize($base_font_size - 2);
2021-04-08 22:59:05 +08:00
}
}
.world-clocks-grid,
.weather-grid {
spacing-rows: 0.4em;
spacing-columns: 0.8em;
}
// Weather
.weather-button {
2021-04-14 14:41:22 +08:00
margin-bottom: 6px !important;
2021-04-08 22:59:05 +08:00
.weather-box {
2021-04-13 19:42:12 +08:00
spacing: $base_spacing + $base_margin;
2021-04-08 22:59:05 +08:00
}
.weather-header-box {
2021-04-13 19:42:12 +08:00
spacing: $base_spacing;
2021-04-08 22:59:05 +08:00
}
.weather-header {
color: $alt_fg_color;
font-weight: bold;
&.location {
font-weight: normal;
color: $hint_fg_color;
2021-04-13 19:42:12 +08:00
@include fontsize($base_font_size - 2);
2021-04-08 22:59:05 +08:00
}
}
.weather-grid {
2021-05-24 19:34:56 +08:00
spacing-rows: $base_spacing;
spacing-columns: $base_spacing * 2;
2021-04-08 22:59:05 +08:00
}
.weather-forecast-time {
color: $alt_fg_color;
font-feature-settings: "tnum";
2021-04-13 19:42:12 +08:00
@include fontsize($base_font_size - 3);
2021-04-08 22:59:05 +08:00
font-weight: normal;
padding-top: 0.2em;
padding-bottom: 0.4em;
}
.weather-forecast-icon {
icon-size: 32px;
}
.weather-forecast-temp {
font-weight: bold;
}
}