summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Müllner <fmuellner@gnome.org>2016-07-08 02:04:56 +0200
committerFlorian Müllner <fmuellner@gnome.org>2016-07-08 02:28:21 +0200
commitd184e5c44ed824ab62fc35a4a8d75cda1f387206 (patch)
tree08062cb6ed16088a789ac54ec3ee3863b530341c
parent31aac7f7b524786965e4c9a1890009ea362b9c87 (diff)
downloadgnome-shell-sass-d184e5c44ed824ab62fc35a4a8d75cda1f387206.tar.gz
calendar: Do not overload :active to mark selected day
We currently use the :active pseudo class to mark the selected day in the calendar. Whenever the selected date changes, the class is added to the corresponding button and removed from all others. However when the selected date doesn't change (i.e. when clicking the already selected date), the buttons are not updated and the use of the :active class conflicts with StButton's builtin handling of the class - the class is removed on the button up event and the button is deselected. Fix this by simply using a different pseudo class. https://bugzilla.gnome.org/show_bug.cgi?id=746867
-rw-r--r--_common.scss2
1 files changed, 1 insertions, 1 deletions
diff --git a/_common.scss b/_common.scss
index a974988..e4446ab 100644
--- a/_common.scss
+++ b/_common.scss
@@ -885,7 +885,7 @@ StScrollBar {
margin: 2px;
border-radius: 1.4em;
&:hover,&:focus { background-color: lighten($bg_color,5%); }
- &:active {
+ &:active,&:selected {
color: lighten($selected_fg_color,5%);
background-color: $selected_bg_color;
border-color: transparent; //avoid jumparound due to today