After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
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:
 
 
Reported: 2016-04-27 09:22 UTC by Will Cooke
Modified: 2017-04-17 18:20 UTC
See Also:
GNOME target: ---
GNOME version: ---



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.