diff options
author | Scott González <scott.gonzalez@gmail.com> | 2012-06-13 16:38:25 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2012-06-13 16:38:25 -0400 |
commit | 664777d0aa14381cb5c640be828ca12b9ce64efc (patch) | |
tree | 7bfee70d42a6e6351693e1214e6e2ebcd0461d9e /themes | |
parent | 6d9c77a26857d8bb0c4ea742163b026325dbc8c1 (diff) | |
download | jquery-ui-664777d0aa14381cb5c640be828ca12b9ce64efc.tar.gz jquery-ui-664777d0aa14381cb5c640be828ca12b9ce64efc.zip |
Theme: Remove !important from tabs and button styles. Fixes #8396 - Use of !important in jquery-ui.css should be avoided.
Diffstat (limited to 'themes')
-rw-r--r-- | themes/base/jquery.ui.button.css | 3 | ||||
-rw-r--r-- | themes/base/jquery.ui.tabs.css | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/themes/base/jquery.ui.button.css b/themes/base/jquery.ui.button.css index 87340658a..0f3eab474 100644 --- a/themes/base/jquery.ui.button.css +++ b/themes/base/jquery.ui.button.css @@ -7,7 +7,8 @@ * * http://docs.jquery.com/UI/Button#theming */ -.ui-button { display: inline-block; position: relative; padding: 0; margin-right: .1em; text-decoration: none !important; cursor: pointer; text-align: center; zoom: 1; overflow: visible; } /* the overflow property removes extra width in IE */ +.ui-button { display: inline-block; position: relative; padding: 0; margin-right: .1em; cursor: pointer; text-align: center; zoom: 1; overflow: visible; } /* the overflow property removes extra width in IE */ +.ui-button, .ui-button:link, .ui-button:visited, .ui-button:hover, .ui-button:active { text-decoration: none; } .ui-button-icon-only { width: 2.2em; } /* to make room for the icon, a width needs to be set here */ button.ui-button-icon-only { width: 2.4em; } /* button elements seem to need a little more width */ .ui-button-icons-only { width: 3.4em; } diff --git a/themes/base/jquery.ui.tabs.css b/themes/base/jquery.ui.tabs.css index 6a5c455f9..2f12da74a 100644 --- a/themes/base/jquery.ui.tabs.css +++ b/themes/base/jquery.ui.tabs.css @@ -9,7 +9,7 @@ */ .ui-tabs { position: relative; padding: .2em; zoom: 1; } /* position: relative prevents IE scroll bug (element with position: relative inside container with overflow: auto appear as "fixed") */ .ui-tabs .ui-tabs-nav { margin: 0; padding: .2em .2em 0; } -.ui-tabs .ui-tabs-nav li { list-style: none; float: left; position: relative; top: 0; margin: 1px .2em 0 0; border-bottom: 0 !important; padding: 0; white-space: nowrap; } +.ui-tabs .ui-tabs-nav li { list-style: none; float: left; position: relative; top: 0; margin: 1px .2em 0 0; border-bottom: 0; padding: 0; white-space: nowrap; } .ui-tabs .ui-tabs-nav li a { float: left; padding: .5em 1em; text-decoration: none; } .ui-tabs .ui-tabs-nav li.ui-tabs-active { margin-bottom: -1px; padding-bottom: 1px; } .ui-tabs .ui-tabs-nav li.ui-tabs-active a, .ui-tabs .ui-tabs-nav li.ui-state-disabled a, .ui-tabs .ui-tabs-nav li.ui-tabs-loading a { cursor: text; } |