mirror of
https://github.com/vinceliuice/WhiteSur-gtk-theme.git
synced 2025-06-07 16:03:03 +00:00
344 lines
6.7 KiB
SCSS
344 lines
6.7 KiB
SCSS
![]() |
/* Date/Time Menu */
|
||
|
|
||
|
.clock-display-box {
|
||
|
spacing: 2px;
|
||
|
|
||
|
.clock {
|
||
|
padding-left: $base_padding * 2;
|
||
|
padding-right: $base_padding * 2;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// overall menu
|
||
|
#calendarArea {
|
||
|
padding: 12px 0;
|
||
|
}
|
||
|
|
||
|
// 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 {
|
||
|
// min-height: $menuitem_size * 2 - 4px * 2;
|
||
|
border: none;
|
||
|
box-shadow: none;
|
||
|
background: none;
|
||
|
padding: 4px 8px;
|
||
|
text-shadow: none;
|
||
|
color: $alt_fg_color;
|
||
|
|
||
|
&:hover, &:focus {
|
||
|
color: $fg_color;
|
||
|
background-color: if($variant == 'light', rgba(white, 1), rgba(lighten($base_color, 15%), 0.75));
|
||
|
}
|
||
|
|
||
|
&:active {
|
||
|
color: $fg_color;
|
||
|
background-color: if($variant == 'light', rgba(white, 0.65), rgba(lighten($base_color, 10%), 0.75));
|
||
|
}
|
||
|
|
||
|
// weekday label
|
||
|
.day-label {
|
||
|
@include font(title);
|
||
|
font-weight: bold;
|
||
|
}
|
||
|
|
||
|
// date label
|
||
|
.date-label {
|
||
|
@include font(headline);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* Calendar */
|
||
|
.calendar {
|
||
|
margin: 2px 12px;
|
||
|
border: none;
|
||
|
box-shadow: none;
|
||
|
background-color: if($variant == 'light', rgba(white, 0.75), rgba(lighten($base_color, 8%), 0.75));
|
||
|
padding: 4px 8px;
|
||
|
text-shadow: none;
|
||
|
border-radius: $mn_radius;
|
||
|
|
||
|
// month
|
||
|
.calendar-month-label {
|
||
|
margin: 2px;
|
||
|
padding: 6px 16px;
|
||
|
color: $fg_color;
|
||
|
font-weight: bold;
|
||
|
text-align: center;
|
||
|
text-shadow: none;
|
||
|
|
||
|
&:focus { background-color: $divider_color; }
|
||
|
}
|
||
|
|
||
|
// prev/next month icons
|
||
|
.calendar-change-month-back StIcon,
|
||
|
.calendar-change-month-forward StIcon {
|
||
|
icon-size: $base_icon_size;
|
||
|
}
|
||
|
|
||
|
.calendar-change-month-back { //arrow back
|
||
|
padding: 0 2px;
|
||
|
background-image: url("assets/calendar-arrow-left.svg");
|
||
|
&:rtl { background-image: url("assets/calendar-arrow-right.svg"); }
|
||
|
}
|
||
|
|
||
|
.calendar-change-month-forward { //arrow foreward
|
||
|
padding: 0 2px;
|
||
|
background-image: url("assets/calendar-arrow-right.svg");
|
||
|
&:rtl { background-image: url("assets/calendar-arrow-left.svg"); }
|
||
|
}
|
||
|
|
||
|
.pager-button {
|
||
|
width: $menuitem_size;
|
||
|
height: $menuitem_size;
|
||
|
margin: 2px;
|
||
|
border-radius: 100px;
|
||
|
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;
|
||
|
border-radius: 1000px;
|
||
|
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;
|
||
|
border-radius: 100px;
|
||
|
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;
|
||
|
color: $light_alt_fg_color;
|
||
|
background-color: $primary_color;
|
||
|
border: none;
|
||
|
|
||
|
&:hover, &:focus {
|
||
|
background-color:lighten($primary_color, 3%);
|
||
|
color: $light_alt_fg_color;
|
||
|
}
|
||
|
|
||
|
&:active, &:selected {
|
||
|
background-color: $primary_color;
|
||
|
color: $light_alt_fg_color;
|
||
|
|
||
|
&:hover, &:focus {
|
||
|
background-color:lighten($primary_color, 3%);
|
||
|
color: $light_alt_fg_color;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
.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 {
|
||
|
@extend %popover_bubble !optional;
|
||
|
padding: 12px;
|
||
|
margin: 2px 4px;
|
||
|
}
|
||
|
|
||
|
// Events
|
||
|
.events-button {
|
||
|
.events-box {
|
||
|
spacing: 6px;
|
||
|
}
|
||
|
|
||
|
.events-list {
|
||
|
spacing: 12px;
|
||
|
text-shadow: none;
|
||
|
}
|
||
|
|
||
|
.events-title {
|
||
|
color: $hint_fg_color;
|
||
|
font-weight: bold;
|
||
|
margin-bottom: 4px;
|
||
|
text-shadow: none;
|
||
|
}
|
||
|
|
||
|
.event-time {
|
||
|
color: $hint_fg_color;
|
||
|
font-feature-settings: "tnum";
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// World Clock
|
||
|
.world-clocks-button {
|
||
|
.world-clocks-city {
|
||
|
color: $hint_fg_color;
|
||
|
font-weight: bold;
|
||
|
font-size: 0.9em;
|
||
|
}
|
||
|
|
||
|
.world-clocks-time {
|
||
|
color: $hint_fg_color;
|
||
|
font-feature-settings: "tnum";
|
||
|
font-size: 1.2em;
|
||
|
|
||
|
&:ltr { text-align: right; }
|
||
|
&:rtl { text-align: left; }
|
||
|
}
|
||
|
|
||
|
.world-clocks-timezone {
|
||
|
color: $hint_fg_color;
|
||
|
font-feature-settings: "tnum";
|
||
|
font-size: 0.9em;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
.world-clocks-grid,
|
||
|
.weather-grid {
|
||
|
spacing-rows: 0.4em;
|
||
|
spacing-columns: 0.8em;
|
||
|
}
|
||
|
|
||
|
// Weather
|
||
|
.weather-button {
|
||
|
margin-bottom: 6px;
|
||
|
|
||
|
.weather-box {
|
||
|
spacing: 12px;
|
||
|
}
|
||
|
|
||
|
.weather-header-box {
|
||
|
spacing: 6px;
|
||
|
}
|
||
|
|
||
|
.weather-header {
|
||
|
color: $alt_fg_color;
|
||
|
font-weight: bold;
|
||
|
|
||
|
&.location {
|
||
|
font-weight: normal;
|
||
|
color: $hint_fg_color;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
.weather-grid {
|
||
|
spacing-rows: 6px;
|
||
|
spacing-columns: 12px;
|
||
|
}
|
||
|
|
||
|
.weather-forecast-time {
|
||
|
color: $alt_fg_color;
|
||
|
font-feature-settings: "tnum";
|
||
|
font-size: 9pt;
|
||
|
font-weight: normal;
|
||
|
padding-top: 0.2em;
|
||
|
padding-bottom: 0.4em;
|
||
|
}
|
||
|
|
||
|
.weather-forecast-icon {
|
||
|
icon-size: 32px;
|
||
|
}
|
||
|
|
||
|
.weather-forecast-temp {
|
||
|
font-weight: bold;
|
||
|
}
|
||
|
}
|