Bug 765664 - .view style cannot be overridden by external CSS
.view style cannot be overridden by external CSS
Status: RESOLVED FIXED
Product: gnome-calendar
Classification: Applications
Component: User Interface
3.20.x
Other Linux
: Normal normal
: 3.26
Assigned To: GNOME Calendar maintainers
GNOME Calendar maintainers
:
Depends on:
Blocks:
  Show dependency tree
 
Reported: 2016-04-27 09:22 UTC by Will Cooke
Modified: 2017-04-17 18:20 UTC (History)
1 user (show)

See Also:
GNOME target: ---
GNOME version: ---


Attachments

Description Will Cooke 2016-04-27 09:22:24 UTC
We have a problem in Ubuntu where Calendar is showing white corners.  We tried to fix this by having CSS in our theme which sets the GcalWindow background-color to transparent.  This worked in the inspector but not when this was in the our theme's CSS itself. (http://bazaar.launchpad.net/~ubuntu-art-pkg/ubuntu-themes/trunk/view/head:/Ambiance/gtk-3.0/apps/calendar.css)

I worked around this by 1st removing the .views section from data/theme/gtk-styles.css and then adding this to the bottom of that file:

GcalWindow  {
    background-color: transparent;
}

I then reapplied the .views CSS from gtk-styles.css in our own theme CSS (i.e. I moved it from gtk-styles.css to our own theme CSS).

This issue is also reported in Launchpad where I have attached a couple of simple patches which do the above:  https://bugs.launchpad.net/ubuntu-themes/+bug/1565267
Comment 1 Georges Basile Stavracas Neto 2016-05-08 17:50:51 UTC
Thanks for the report. I removed the .views CSS class from out custom CSS, and now it's using the .view CSS class (which is provided by the theme).

Please, reopen this bug if the patch does not fix your issue.

Note You need to log in before you can comment on or make changes to this bug.