From 39b65b363e39a8dd0f58e0f6c786131ab71db29b Mon Sep 17 00:00:00 2001 From: Dries Date: Tue, 24 Jan 2012 21:00:59 -0500 Subject: [PATCH] - Patch #1269586 by Everett Zufelt, ericduran: Use .js instead of html.js in CSS. --- core/modules/color/color.admin-rtl.css | 2 +- core/modules/color/color.admin.css | 2 +- core/modules/contextual/contextual.css | 2 +- core/modules/openid/openid-rtl.css | 4 ++-- core/modules/openid/openid.css | 8 ++++---- core/modules/overlay/overlay-child.css | 4 ++-- core/modules/system/system.base-rtl.css | 4 ++-- core/modules/system/system.base.css | 10 +++++----- core/modules/system/system.theme-rtl.css | 4 ++-- core/modules/system/system.theme.css | 4 ++-- core/themes/bartik/color/preview.css | 2 +- core/themes/bartik/css/style-rtl.css | 4 ++-- core/themes/bartik/css/style.css | 4 ++-- core/themes/seven/style.css | 6 +++--- 14 files changed, 30 insertions(+), 30 deletions(-) diff --git a/core/modules/color/color.admin-rtl.css b/core/modules/color/color.admin-rtl.css index 07b754ea5d3..d5bfbe83a7a 100644 --- a/core/modules/color/color.admin-rtl.css +++ b/core/modules/color/color.admin-rtl.css @@ -43,6 +43,6 @@ float: right; right: -10px; } -html.js #preview { +.js #preview { float: right; } diff --git a/core/modules/color/color.admin.css b/core/modules/color/color.admin.css index 981cff85d7e..e9aee919f93 100644 --- a/core/modules/color/color.admin.css +++ b/core/modules/color/color.admin.css @@ -78,7 +78,7 @@ #preview { display: none; } -html.js #preview { +.js #preview { display: block; position: relative; float: left; /* LTR */ diff --git a/core/modules/contextual/contextual.css b/core/modules/contextual/contextual.css index cdb85ec04bc..42858924262 100644 --- a/core/modules/contextual/contextual.css +++ b/core/modules/contextual/contextual.css @@ -25,7 +25,7 @@ div.contextual-links-wrapper { top: 2px; z-index: 999; } -html.js div.contextual-links-wrapper { +.js div.contextual-links-wrapper { display: block; } a.contextual-links-trigger { diff --git a/core/modules/openid/openid-rtl.css b/core/modules/openid/openid-rtl.css index 861f6d7d19d..8eecb7e640b 100644 --- a/core/modules/openid/openid-rtl.css +++ b/core/modules/openid/openid-rtl.css @@ -7,8 +7,8 @@ #user-login .openid-links { padding-right: 0; } -html.js #user-login-form li.openid-link, -html.js #user-login li.openid-link { +.js #user-login-form li.openid-link, +.js #user-login li.openid-link { margin-right: 0; } #user-login-form li.openid-link a, diff --git a/core/modules/openid/openid.css b/core/modules/openid/openid.css index 48b170fbb94..913d4964555 100644 --- a/core/modules/openid/openid.css +++ b/core/modules/openid/openid.css @@ -8,8 +8,8 @@ div.form-item-openid-identifier { display: block; } -html.js #user-login-form div.form-item-openid-identifier, -html.js #user-login div.form-item-openid-identifier { +.js #user-login-form div.form-item-openid-identifier, +.js #user-login div.form-item-openid-identifier { display: none; } #user-login-form ul { @@ -32,8 +32,8 @@ html.js #user-login div.form-item-openid-identifier { display: none; list-style: none; } -html.js #user-login-form li.openid-link, -html.js #user-login li.openid-link { +.js #user-login-form li.openid-link, +.js #user-login li.openid-link { display: block; margin-left: 0; /* LTR */ } diff --git a/core/modules/overlay/overlay-child.css b/core/modules/overlay/overlay-child.css index d047535415d..a402938b922 100644 --- a/core/modules/overlay/overlay-child.css +++ b/core/modules/overlay/overlay-child.css @@ -1,9 +1,9 @@ -html.js { +.js { background: transparent !important; overflow-y: scroll; } -html.js body { +.js body { background: transparent !important; margin-left: 0; margin-right: 0; diff --git a/core/modules/system/system.base-rtl.css b/core/modules/system/system.base-rtl.css index 8dd006833a6..c1489951939 100644 --- a/core/modules/system/system.base-rtl.css +++ b/core/modules/system/system.base-rtl.css @@ -8,10 +8,10 @@ * Autocomplete. */ /* Animated throbber */ -html.js input.form-autocomplete { +.js input.form-autocomplete { background-position: 0% 2px; } -html.js input.throbbing { +.js input.throbbing { background-position: 0% -18px; } diff --git a/core/modules/system/system.base.css b/core/modules/system/system.base.css index bca79ee490f..2fe1cba3c13 100644 --- a/core/modules/system/system.base.css +++ b/core/modules/system/system.base.css @@ -29,12 +29,12 @@ white-space: pre; } /* Animated throbber */ -html.js input.form-autocomplete { +.js input.form-autocomplete { background-image: url(../../misc/throbber.gif); background-position: 100% 2px; /* LTR */ background-repeat: no-repeat; } -html.js input.throbbing { +.js input.throbbing { background-position: 100% -18px; /* LTR */ } @@ -43,13 +43,13 @@ html.js input.throbbing { * * @see collapse.js */ -html.js fieldset.collapsed { +.js fieldset.collapsed { border-bottom-width: 0; border-left-width: 0; border-right-width: 0; height: 1em; } -html.js fieldset.collapsed .fieldset-wrapper { +.js fieldset.collapsed .fieldset-wrapper { display: none; } fieldset.collapsible { @@ -201,7 +201,7 @@ tr .ajax-progress-throbber .throbber { * For anything you want to hide on page load when JS is enabled, so * that you can use the JS to control visibility and avoid flicker. */ -html.js .js-hide { +.js .js-hide { display: none; } diff --git a/core/modules/system/system.theme-rtl.css b/core/modules/system/system.theme-rtl.css index 97def54c6bb..03c93f3e934 100644 --- a/core/modules/system/system.theme-rtl.css +++ b/core/modules/system/system.theme-rtl.css @@ -41,12 +41,12 @@ th { /** * Collapsible fieldsets. */ -html.js fieldset.collapsible > legend .fieldset-legend { +.js fieldset.collapsible > legend .fieldset-legend { background-position: 98% 75%; padding-left: 0; padding-right: 15px; } -html.js fieldset.collapsed > legend .fieldset-legend { +.js fieldset.collapsed > legend .fieldset-legend { background-image: url(../../misc/menu-collapsed-rtl.png); background-position: 98% 50%; } diff --git a/core/modules/system/system.theme.css b/core/modules/system/system.theme.css index 7121813ba88..a3461d60c9c 100644 --- a/core/modules/system/system.theme.css +++ b/core/modules/system/system.theme.css @@ -173,11 +173,11 @@ abbr.form-required, abbr.tabledrag-changed, abbr.ajax-changed { * * @see collapse.js */ -html.js fieldset.collapsible > legend .fieldset-legend { +.js fieldset.collapsible > legend .fieldset-legend { background: url(../../misc/menu-expanded.png) 5px 65% no-repeat; /* LTR */ padding-left: 15px; /* LTR */ } -html.js fieldset.collapsed > legend .fieldset-legend { +.js fieldset.collapsed > legend .fieldset-legend { background-image: url(../../misc/menu-collapsed.png); /* LTR */ background-position: 5px 50%; /* LTR */ } diff --git a/core/themes/bartik/color/preview.css b/core/themes/bartik/color/preview.css index dc408e00f05..7861a1972eb 100644 --- a/core/themes/bartik/color/preview.css +++ b/core/themes/bartik/color/preview.css @@ -9,7 +9,7 @@ /* ---------- Preview Styles ----------- */ -html.js #preview { +.js #preview { clear: both; float: none !important; } diff --git a/core/themes/bartik/css/style-rtl.css b/core/themes/bartik/css/style-rtl.css index 1a6b17b11c3..d04e9c62d05 100644 --- a/core/themes/bartik/css/style-rtl.css +++ b/core/themes/bartik/css/style-rtl.css @@ -220,10 +220,10 @@ ul.action-links li a { } /* Animated throbber */ -html.js input.form-autocomplete { +.js input.form-autocomplete { background-position: 1% 4px; } -html.js input.throbbing { +.js input.throbbing { background-position: 1% -16px; } diff --git a/core/themes/bartik/css/style.css b/core/themes/bartik/css/style.css index 05a2758782f..cafd744579f 100644 --- a/core/themes/bartik/css/style.css +++ b/core/themes/bartik/css/style.css @@ -1306,10 +1306,10 @@ input.form-button-disabled:active, } /* Animated throbber */ -html.js input.form-autocomplete { +.js input.form-autocomplete { background-position: 100% 4px; /* LTR */ } -html.js input.throbbing { +.js input.throbbing { background-position: 100% -16px; /* LTR */ } diff --git a/core/themes/seven/style.css b/core/themes/seven/style.css index 7470a8ad3e1..1a85b38b3cc 100644 --- a/core/themes/seven/style.css +++ b/core/themes/seven/style.css @@ -565,7 +565,7 @@ fieldset .fieldset-wrapper { fieldset.collapsed { background-color: transparent; } -html.js fieldset.collapsed { +.js fieldset.collapsed { border-width: 1px; height: auto; } @@ -722,10 +722,10 @@ select.form-select:focus { box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1), 0 0 8px rgba(220, 220, 220, 0.4); outline-color: rgba(0, 116, 189, 0.5); } -html.js input.form-autocomplete { +.js input.form-autocomplete { background-position: 100% 4px; } -html.js input.throbbing { +.js input.throbbing { background-position: 100% -16px; } ul.action-links {