theme/calendar: Don't nest all card styles for code consistency
The inconsistent styling rules "some card styles are nested, but some are not" and "some card styles are nested, but some of their descendant styles are defined elsewhere" are very confusing. This commit stops nesting all card styles to make the coding style consistent and less confusing. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/957
This commit is contained in:
parent
c5bed7e963
commit
dbf1ffc9d4
@ -16,8 +16,23 @@
|
|||||||
&:ltr {margin-right: $base_margin * 2; border-left-width: 1px; }
|
&:ltr {margin-right: $base_margin * 2; border-left-width: 1px; }
|
||||||
&:rtl {margin-left: $base_margin * 2; border-right-width: 1px; }
|
&:rtl {margin-left: $base_margin * 2; border-right-width: 1px; }
|
||||||
|
|
||||||
// today button (the date)
|
.datemenu-displays-section {
|
||||||
.datemenu-today-button {
|
}
|
||||||
|
|
||||||
|
.datemenu-displays-box {
|
||||||
|
spacing: $base_spacing;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.events-section-title {
|
||||||
|
@include notification_bubble($flat: true);
|
||||||
|
color: desaturate(darken($fg_color,40%), 10%);
|
||||||
|
font-weight: bold;
|
||||||
|
padding: .4em;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* today button (the date) */
|
||||||
|
.datemenu-today-button {
|
||||||
@include notification_bubble($flat: true);
|
@include notification_bubble($flat: true);
|
||||||
padding: $base_padding * 1.5;
|
padding: $base_padding * 1.5;
|
||||||
|
|
||||||
@ -32,40 +47,12 @@
|
|||||||
@include fontsize($base_font_size+7);
|
@include fontsize($base_font_size+7);
|
||||||
font-weight: 1000;
|
font-weight: 1000;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// calendar
|
|
||||||
.calendar {
|
|
||||||
@include notification_bubble;
|
|
||||||
padding: $base_padding;
|
|
||||||
|
|
||||||
// more below for sub-elements
|
|
||||||
}
|
|
||||||
|
|
||||||
.datemenu-displays-section {
|
|
||||||
}
|
|
||||||
|
|
||||||
.datemenu-displays-box {
|
|
||||||
spacing: $base_spacing;
|
|
||||||
|
|
||||||
// world clocks and weather
|
|
||||||
.world-clocks-button,
|
|
||||||
.weather-button {
|
|
||||||
@include notification_bubble;
|
|
||||||
padding: $base_padding;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.events-section-title {
|
|
||||||
@include notification_bubble($flat: true);
|
|
||||||
color: desaturate(darken($fg_color,40%), 10%);
|
|
||||||
font-weight: bold;
|
|
||||||
padding: .4em;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Calendar */
|
/* Calendar */
|
||||||
.calendar {
|
.calendar {
|
||||||
|
@include notification_bubble;
|
||||||
|
padding: $base_padding;
|
||||||
|
|
||||||
// month
|
// month
|
||||||
.calendar-month-label {
|
.calendar-month-label {
|
||||||
@ -183,9 +170,13 @@
|
|||||||
|
|
||||||
|
|
||||||
/* Weather */
|
/* Weather */
|
||||||
.weather-box {
|
.weather-button {
|
||||||
|
@include notification_bubble;
|
||||||
|
padding: $base_padding * 2;
|
||||||
|
|
||||||
|
.weather-box {
|
||||||
spacing: $base_spacing + $base_margin;
|
spacing: $base_spacing + $base_margin;
|
||||||
padding:$base_padding;
|
}
|
||||||
|
|
||||||
.weather-header {
|
.weather-header {
|
||||||
color: desaturate(darken($fg_color,40%), 10%);
|
color: desaturate(darken($fg_color,40%), 10%);
|
||||||
@ -221,10 +212,14 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* World clocks */
|
/* World clocks */
|
||||||
.world-clocks-grid {
|
.world-clocks-button {
|
||||||
padding:$base_padding;
|
@include notification_bubble;
|
||||||
|
padding: $base_padding * 2;
|
||||||
|
|
||||||
|
.world-clocks-grid {
|
||||||
spacing-rows: $base_spacing;
|
spacing-rows: $base_spacing;
|
||||||
spacing-columns: $base_spacing * 2;
|
spacing-columns: $base_spacing * 2;
|
||||||
|
}
|
||||||
|
|
||||||
// title
|
// title
|
||||||
.world-clocks-header {
|
.world-clocks-header {
|
||||||
|
Loading…
Reference in New Issue
Block a user