Mercurial > hg > isophonics-drupal-site
diff core/modules/settings_tray/css/settings_tray.theme.css @ 0:4c8ae668cc8c
Initial import (non-working)
author | Chris Cannam |
---|---|
date | Wed, 29 Nov 2017 16:09:58 +0000 |
parents | |
children | 1fec387a4317 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/core/modules/settings_tray/css/settings_tray.theme.css Wed Nov 29 16:09:58 2017 +0000 @@ -0,0 +1,70 @@ +/** + * @file + * Visual styling for Settings Tray module. + */ + +/* @todo remove the @imports when we find a better way to load these styles last. + * https://www.drupal.org/node/1945262. + */ + +/* Style the edit mode toolbar and tabs. */ +#toolbar-bar.js-settings-tray-edit-mode { + background-image: linear-gradient(to bottom,#0c97ed,#1f86c7); +} +.js-settings-tray-edit-mode .toolbar-item:not(.toolbar-icon-edit) { + color: #999; +} +.js-settings-tray-edit-mode .toolbar-item:not(.toolbar-icon-edit) .is-active { + color: #333; +} + +/* Style both the edit and editing states of the contextual links toggle tab. */ +.toolbar-tab > .toolbar-icon.toolbar-icon-edit.toolbar-item, +.toolbar-tab > .toolbar-icon.toolbar-icon-edit.toolbar-item.is-active, +.toolbar-tab > .toolbar-icon.toolbar-icon-edit.toolbar-item:focus { + background-color: #50a0e9; + background-image: linear-gradient(to bottom, #007bc6, #0071b8); + color: #ddd; + text-shadow: none; + font-weight: bold; + outline: none; +} +/* Make the hover of the inactive state the same as the active state. */ +.toolbar-tab > .toolbar-icon.toolbar-icon-edit.toolbar-item:hover, +.toolbar-tab > .toolbar-icon.toolbar-icon-edit.toolbar-item.is-active { + background-image: linear-gradient(to bottom, #0c97ed, #1f86c7); + color: #fff; +} +/* Make the hover of the active state the same as the inactive state. */ +.toolbar-tab > .toolbar-icon.toolbar-icon-edit.toolbar-item.is-active:hover { + background-color: #2369a6; + background-image: linear-gradient(to bottom, #007bc6, #0071b8); + color: #fff; +} +/* Make the inactive icon grey. */ +.toolbar-tab > .toolbar-icon.toolbar-icon-edit.toolbar-item:before { + background-image: url(../../../misc/icons/bebebe/pencil.svg); +} +/* Make the active icon white. */ +.toolbar-tab > .toolbar-icon.toolbar-icon-edit.toolbar-item.is-active:before { + background-image: url(../../../misc/icons/ffffff/pencil.svg); +} +.toolbar-tab > .toolbar-icon.toolbar-icon-edit.toolbar-item:hover:before { + background-image: url(../../../misc/icons/ffffff/pencil.svg); +} +.toolbar-tab > .toolbar-icon.toolbar-icon-edit.toolbar-item:hover > .toolbar-icon-edit:before { + background-image: url(../../../misc/icons/ffffff/pencil.svg); +} +.toolbar-tab > .button.toolbar-icon.toolbar-icon.toolbar-icon-edit:before { + background-image: url(../../../misc/icons/ffffff/pencil.svg); +} + +/* Style the editables while in edit mode. */ +.dialog-off-canvas__main-canvas.js-settings-tray-edit-mode .settings-tray-editable { + outline: 1px dashed rgba(0,0,0,0.5); + box-shadow: 0 0 0 1px rgba(255,255,255,0.7); +} +.dialog-off-canvas__main-canvas.js-settings-tray-edit-mode .settings-tray-editable:hover, +.dialog-off-canvas__main-canvas.js-settings-tray-edit-mode .settings-tray-editable.settings-tray-active-editable { + background-color: rgba(0,0,0,0.2); +}