Merge pull request #412 from megax/patch2

GTK 3.20 :: Calendar rewirte
This commit is contained in:
Khurshid Alam
2016-05-08 18:30:57 +05:30
3 changed files with 59 additions and 15 deletions
+7
View File
@@ -53,6 +53,13 @@
outline-color: transparent;
}
%undecorated_button {
border-color: transparent;
background-color: transparent;
background-image: none;
box-shadow: none;
}
%linked_middle {
border-radius: 0;
border-left-style: none;
+52 -8
View File
@@ -4,20 +4,64 @@
@include exports("calendar") {
calendar {
padding: $spacing;
padding: 1px 3px;
outline-offset: -1px;
&:indeterminate { color: mix($fg_color, $bg_color, .5); }
color: $text_color;
&.view, &.highlight, &.header, &.button {
&, &:focus, &:hover, &:disabled {
border: 0;
background-color: transparent;
background-image: none;
&.view {
&, &:backdrop { @extend %undecorated_button; }
}
&:selected {
@extend %selected_items;
border-radius: $roundness;
}
&.header {
border-bottom: 1px solid transparentize($black, .9);
border-radius: 0;
&:backdrop { border-color: transparentize($black, .9); }
}
&.button {
@extend %undecorated_button;
color: alpha($fg_color, .55);
&:hover {
@extend %undecorated_button;
color: $fg_color;
}
&:backdrop {
@extend %undecorated_button;
color: alpha($backdrop_fg_color, .55);
}
&:disabled {
@extend %undecorated_button;
color: alpha($insensitive_fg_color, .55);
}
}
&.highlight { color: $selected_bg_color; }
&:indeterminate,
&:indeterminate:backdrop { color: mix($fg_color, $bg_color, .5); }
&.highlight,
&.highlight:backdrop {
font-size: smaller;
color: $selected_bg_color;
}
&:backdrop {
color: $backdrop_text_color;
}
}
/* gnome-calendar */
-7
View File
@@ -185,13 +185,6 @@
}
}
%undecorated_button {
border-color: transparent;
background-color: transparent;
background-image: none;
box-shadow: none;
}
/*********
! Popover