Skip to content

Commit f6d894c

Browse files
committed
gnome-shell: Update calendar for GNOME Shell 42
1 parent 0b288f2 commit f6d894c

File tree

1 file changed

+41
-36
lines changed

1 file changed

+41
-36
lines changed

common/gnome-shell/42/sass/_common.scss

Lines changed: 41 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1050,51 +1050,58 @@ $ws_dot_inactive: $ws_indicator_height / 6;
10501050
@include datemenu_bubble;
10511051
padding: 0;
10521052

1053-
// month
1054-
.calendar-month-label {
1055-
color: $fg_color;
1056-
font-weight: bold;
1057-
padding: 8px 0;
1058-
&:focus {}
1059-
}
1053+
// month header
1054+
.calendar-month-header {
10601055

1061-
// prev/next month icons
1062-
.calendar-change-month-back,
1063-
.calendar-change-month-forward:rtl {
1064-
background-image: url("#{$asset_path}/misc/calendar-arrow-left.svg");
1065-
&:focus, &:hover { background-image: url("#{$asset_path}/misc/calendar-arrow-left-hover.svg"); }
1066-
&:active { background-image: url("#{$asset_path}/misc/calendar-arrow-left.svg"); }
1067-
}
1056+
// month label
1057+
.calendar-month-label {
1058+
color: $fg_color;
1059+
font-weight: bold;
1060+
padding: 8px 0;
1061+
&:focus {}
1062+
}
10681063

1069-
.calendar-change-month-forward,
1070-
.calendar-change-month-back:rtl {
1071-
background-image: url("#{$asset_path}/misc/calendar-arrow-right.svg");
1072-
&:focus, &:hover { background-image: url("#{$asset_path}/misc/calendar-arrow-right-hover.svg"); }
1073-
&:active { background-image: url("#{$asset_path}/misc/calendar-arrow-right.svg"); }
1074-
}
1064+
// prev/next month icons
1065+
.calendar-change-month-back,
1066+
.calendar-change-month-forward:rtl {
1067+
background-image: url("#{$asset_path}/misc/calendar-arrow-left.svg");
1068+
&:focus, &:hover { background-image: url("#{$asset_path}/misc/calendar-arrow-left-hover.svg"); }
1069+
&:active { background-image: url("#{$asset_path}/misc/calendar-arrow-left.svg"); }
1070+
}
10751071

1076-
.pager-button {
1077-
color: transparent;
1078-
background-color: transparent;
1079-
height: 32px;
1080-
width: 32px;
1081-
border-radius: 2px;
1082-
&:focus, &:hover, &:active { background-color: transparent; }
1072+
.calendar-change-month-forward,
1073+
.calendar-change-month-back:rtl {
1074+
background-image: url("#{$asset_path}/misc/calendar-arrow-right.svg");
1075+
&:focus, &:hover { background-image: url("#{$asset_path}/misc/calendar-arrow-right-hover.svg"); }
1076+
&:active { background-image: url("#{$asset_path}/misc/calendar-arrow-right.svg"); }
1077+
}
1078+
1079+
.pager-button {
1080+
color: transparent;
1081+
background-color: transparent;
1082+
height: 32px;
1083+
width: 32px;
1084+
border-radius: 2px;
1085+
&:focus, &:hover, &:active { background-color: transparent; }
1086+
}
10831087
}
10841088

10851089
$calendar_day_size: 27px;
10861090

10871091
.calendar-day-base {
10881092
@include fontsize($font-size * 0.8);
10891093
text-align: center;
1090-
width: $calendar_day_size;
1091-
height: $calendar_day_size;
1094+
width: $calendar_day_size !important;
1095+
height: $calendar_day_size !important;
10921096
padding: 0;
10931097
margin: 2px;
10941098
border-radius: $calendar_day_size * 0.5;
10951099
border: 0 solid transparent;
10961100
font-feature-settings: "tnum";
1097-
&:hover, &:focus { background-color: transparentize(black, 0.9); }
1101+
&:hover, &:focus {
1102+
background-color: transparentize(black, 0.9);
1103+
box-shadow: none;
1104+
}
10981105
&:active,&:selected {
10991106
color: $fg_color;
11001107
background-color: transparentize(black, 0.85);
@@ -1104,8 +1111,9 @@ $ws_dot_inactive: $ws_indicator_height / 6;
11041111
&.calendar-day-heading {
11051112
color: transparentize($fg_color, 0.15);
11061113
margin-top: 9px;
1114+
font-weight: normal;
11071115
@include fontsize($font-size * 0.7);
1108-
height: 23px;//adjusts bottom margin
1116+
height: 23px !important;//adjusts bottom margin
11091117
}
11101118
}
11111119

@@ -1156,15 +1164,12 @@ $ws_dot_inactive: $ws_indicator_height / 6;
11561164
.calendar-week-number {
11571165
@include fontsize($font-size * 0.7);
11581166
font-weight: bold;
1159-
height: 15px;
1160-
width: 19px;
1167+
font-feature-settings: "tnum";
11611168
border-radius: 2px;
11621169
margin: 6px;
1170+
padding: 0 4px;
11631171
background-color: if($variant!='dark', transparentize($fg_color,0.9), transparentize($fg_color,0.7));
11641172
color: if($variant!='dark', transparentize($fg_color,0.5), $bg_color);
1165-
1166-
&:ltr { margin-left: 10px; }
1167-
&:rtl { margin-right: 10px; }
11681173
}
11691174
}
11701175

0 commit comments

Comments
 (0)