Merge pull request #412 from megax/patch2

GTK 3.20 :: Calendar rewirte
pull/413/head
Khurshid Alam 2016-05-08 18:30:57 +05:30
commit 76a8fc2dee
3 changed files with 59 additions and 15 deletions

View File

@ -53,6 +53,13 @@
outline-color: transparent; outline-color: transparent;
} }
%undecorated_button {
border-color: transparent;
background-color: transparent;
background-image: none;
box-shadow: none;
}
%linked_middle { %linked_middle {
border-radius: 0; border-radius: 0;
border-left-style: none; border-left-style: none;

View File

@ -4,20 +4,64 @@
@include exports("calendar") { @include exports("calendar") {
calendar { calendar {
padding: $spacing; padding: 1px 3px;
outline-offset: -1px; outline-offset: -1px;
&:indeterminate { color: mix($fg_color, $bg_color, .5); } color: $text_color;
&.view, &.highlight, &.header, &.button { &.view {
&, &:focus, &:hover, &:disabled { &, &:backdrop { @extend %undecorated_button; }
border: 0; }
background-color: transparent;
background-image: none; &: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 */ /* gnome-calendar */

View File

@ -185,13 +185,6 @@
} }
} }
%undecorated_button {
border-color: transparent;
background-color: transparent;
background-image: none;
box-shadow: none;
}
/********* /*********
! Popover ! Popover