7 Commits

Author SHA1 Message Date
gugl
d6ad0fe30d Fix the alert close size problem in material theme
The problem was casued by .close class in _bootswatch.scss. The
size is 34px while correct size should 19.5px. Patch the fix to
have a smaller size.

When alert message has one line the close button is centered now.
When alert message has multiple lines, the close button is at the
right upper corner of the message box.

Change-Id: Ic5af8ae7e2b4ed0e136fad205a03b3f2368f72a9
Closes-bug: #1550066
2017-05-02 14:16:59 -07:00
eric
44132fa19e Fix issues with new roboto-font path changes
Change-Id: I84dc96847adb73280b3c87e57818d0facabd6038
2016-11-18 19:56:46 +00:00
Richard Jones
348069364c Re-work static_settings to clean up
This patch reduces duplication arbitrary directory choices for
xstatic package locations in the static directory.

It moves the xstatic configuration from the library into the
settings file, and the supporting functions move to
the openstack_dashboard.utils.settings module. Having the xstatic
module list in settings allows deployers to add new modules.

It standardises the paths the files are served from, reducing
potential conflicts.

It simplifies the interaction with the xstatic modules, and also uses
the new MAIN variable if present to determine the entry points used.

Since some of the xstatic packages were installed into special
snowflakes directories (not following a pattern) the references to
those (bootstrap_scss and font_awesome) have been fixed.

Change-Id: Ia5be0e96fff1a4ddd6058d6b030ddf96da4b46e7
2016-08-18 16:28:57 +03:00
Diana Whitten
6a72d2c44b Material Design: New LI Tweaks
Some things on the new LI needed tweaking for material design:

 * Help Icon Strangeness -- Snazz added
 * Material Icon Alignment -- Removed Custom Size
 * Required Icon Size Strangeness - Specificity Required

Change-Id: I09620f25192352ab47dd329e8a594a9fd091a6a3
partial-bug: 1538491
2016-03-03 17:24:52 +00:00
Diana Whitten
a516ca0c55 Clean up horizon.scss - Organize Imports
A major part of the css reorg is a better organization of the css
styles themselves. horizon.scss should be a global import level file.

Organize the Component Imports alphabetically.  Also, standardize
quotes to match.

Change-Id: I39e62135d1200db56c46449c274d2acdccb72a00
Partially-Implements: blueprint horizon-theme-css-reorg
2016-01-26 14:46:24 -07:00
Diana Whitten
39e75e2bab Upgrade to Bootswatch 3.3.5.3
Bootswatch 3.3.5.2 is trying to load external assets from
googleapis.com

Bootswatch 3.3.5.3 makes this variable configurable, so we should
update and take advantage of this configuration.

Change-Id: Ib0a61af9568c44ec15aa4bd8bb85bc5699ddc05b
Closes-Bug: #1492070
2015-09-04 20:16:53 +00:00
Diana Whitten
a1b645830f Theming Mechanism now supports 3rd party themes
In order to facilitate the bulk of the CSS Reorg effort, it was
extremely beneficial to quickly toggle between many different themes
in order to validate proper cascading inheritance.  This work
prompted the following example theme.

The 'material' theme gives an example of how to make use of a 3rd
party theme using the theming functionality.  In addition to
incorporating a theme, loaded as a static asset using
requirements.txt, it also gives examples of how to cleanly override
styles, variables, icon fonts and Django templates.

This theme is replacing 'blue' as the example of how to use a theme
other than 'default'.

To use this theme, add the theme to your local_settings.py:
CUSTOM_THEME_PATH = 'themes/material', recollect and recompress your
static files.

Change-Id: Ic67189de5aac5ca541ad6fe82b823e8fcf318bd0
Partially-Implements: blueprint horizon-theme-css-reorg
2015-09-02 07:47:15 -07:00