diff options
author | Elina Pulke <elina.pulke@zabbix.com> | 2022-10-31 15:46:51 +0300 |
---|---|---|
committer | Elina Pulke <elina.pulke@zabbix.com> | 2022-10-31 15:46:51 +0300 |
commit | 7cb1d9f8c5c208ec2420bd41e17782d1cf87358e (patch) | |
tree | 2fa1ff337646857e4c35ca3ed797488117a7dd7b /sass | |
parent | bc6099b938fe29b566f538db8f65eee78f8b0d4f (diff) | |
parent | 56dda463b1e7076c2760e4a0e946b0e792fac1c4 (diff) |
.......... [ZBX-20320] updated to latest from release/6.0; no conflicts
Diffstat (limited to 'sass')
-rw-r--r-- | sass/stylesheets/sass/base/_colors.scss | 1 | ||||
-rw-r--r-- | sass/stylesheets/sass/components/_tabfilter.scss | 68 | ||||
-rw-r--r-- | sass/stylesheets/sass/dark-theme.scss | 5 | ||||
-rw-r--r-- | sass/stylesheets/sass/hc-dark.scss | 9 | ||||
-rw-r--r-- | sass/stylesheets/sass/screen.scss | 2 |
5 files changed, 43 insertions, 42 deletions
diff --git a/sass/stylesheets/sass/base/_colors.scss b/sass/stylesheets/sass/base/_colors.scss index 634f9d85c21..ae326832b64 100644 --- a/sass/stylesheets/sass/base/_colors.scss +++ b/sass/stylesheets/sass/base/_colors.scss @@ -121,6 +121,7 @@ $action-shadow-color: rgba(#768d99, .5) !default; $table-border-color: #ebeef0 !default; $ui-tab-bg-selected-color: #0275b8 !default; +$ui-tabfilter-item-border-color: #768d99 !default; // Forms $form-font-color: #1f2c33 !default; diff --git a/sass/stylesheets/sass/components/_tabfilter.scss b/sass/stylesheets/sass/components/_tabfilter.scss index 0883238022d..22dd80c75f6 100644 --- a/sass/stylesheets/sass/components/_tabfilter.scss +++ b/sass/stylesheets/sass/components/_tabfilter.scss @@ -104,17 +104,12 @@ $tab-label-counter-bg-color: $form-disabled-bg-color; // Tab filter label li element. .tabfilter-item-label { - &:hover { - color: $tab-label-hover-color; - background-color: darken($tab-label-hover-bg-color, 5%); - } - display: inline-block; - background-color: $tab-label-bg-color; border-radius: 2px; border: 1px solid transparent; color: $tab-label-color; - margin-right: 3px; + margin-right: 2px; + margin-left: 2px; &.unsaved .tabfilter-item-link { font-style: italic; @@ -133,8 +128,7 @@ $tab-label-counter-bg-color: $form-disabled-bg-color; background-color: $tab-label-expanded-bg-color; border: 1px solid $tab-label-expanded-border-color; border-bottom: 0; - padding-bottom: 8px; - margin-top: -1px; + padding-bottom: 7px; vertical-align: baseline; .tabfilter-item-link { @@ -144,18 +138,10 @@ $tab-label-counter-bg-color: $form-disabled-bg-color; &:hover { background: $tab-label-focus-bg-color; } - - .icon-edit { - background: url($sprite-path) no-repeat -42px -621px; - } } &.selected { - background-color: darken($tab-label-selected-bg-color, 5%); - - .tabfilter-item-link { - color: $tab-label-selected-color; - } + background-color: $tab-label-expanded-bg-color; .tabfilter-item-link[data-counter]::after { display: none; @@ -174,26 +160,52 @@ $tab-label-counter-bg-color: $form-disabled-bg-color; .icon-filter.tabfilter-item-link[data-counter]::after { display: none; } + + &.ui-sortable-helper { + background-color: $tab-label-expanded-bg-color; + } } // Tab filter label li clickable a element. .tabfilter-item-link { + position: relative; display: inline-block; - color: $tab-label-color; + color: $tab-label-expanded-color; border: 1px transparent; line-height: 22px; vertical-align: middle; - padding: 0 8px; + padding: 0 8px 7px 8px; + margin-bottom: -7px; + } + + .ui-sortable-container { + // Tab sortable handle left border is visible when handle is not selected, do not have selected sibling before and is not dragged. + .tabfilter-item-label.ui-sortable-helper, + .tabfilter-item-label:not(.selected) { + & + .tabfilter-item-label.ui-sortable-handle:not(.selected,.ui-sortable-helper) { + .tabfilter-item-link::before { + content: ' '; + position: absolute; + top: 1px; + left: -3px; + display: inline-block; + height: 20px; + border-left: 1px solid $ui-tabfilter-item-border-color; + } + } + } } .icon-edit { @extend %btn-widget-defaults; width: 24px; height: 22px; - background: url($sprite-path) no-repeat -354px -621px; + background: url($sprite-path) no-repeat -42px -621px; cursor: pointer; margin: 0; + padding-bottom: 7px !important; + margin-bottom: -7px; vertical-align: middle; display: inline-block; opacity: 0; @@ -211,9 +223,9 @@ $tab-label-counter-bg-color: $form-disabled-bg-color; margin-left: .4em; padding: 0.1em 0.4em; font-size: $font-h3-size; - background-color: $tab-label-counter-bg-color; + background-color: $ui-bg-selected-color; border-radius: 2px; - color: $tab-label-counter-color; + color: $white; content: attr(data-counter); } @@ -236,15 +248,11 @@ $tab-label-counter-bg-color: $form-disabled-bg-color; } .icon-filter::before { - display: block; + vertical-align: middle; + display: inline-block; width: 24px; height: 24px; content: ''; - // white icon - background: url($sprite-path) no-repeat -87px -547px; -} - -.selected.expanded .icon-filter::before { // grey icon - background-position: -246px -547px; + background: url($sprite-path) no-repeat -246px -547px; } diff --git a/sass/stylesheets/sass/dark-theme.scss b/sass/stylesheets/sass/dark-theme.scss index e55b7500123..6cf13b55325 100644 --- a/sass/stylesheets/sass/dark-theme.scss +++ b/sass/stylesheets/sass/dark-theme.scss @@ -444,7 +444,6 @@ $toc-title-bg-color: #4f4f4f; } } -.selected.expanded .icon-filter::before { - // grey icon - background-position: -87px -547px; +.icon-filter::before { + background: url($sprite-path) no-repeat -87px -547px; } diff --git a/sass/stylesheets/sass/hc-dark.scss b/sass/stylesheets/sass/hc-dark.scss index 1fe9ce57236..e1388d08f20 100644 --- a/sass/stylesheets/sass/hc-dark.scss +++ b/sass/stylesheets/sass/hc-dark.scss @@ -1535,15 +1535,8 @@ td.inactive-bg { // Tabfilter .filter-container.tabfilter-container { - - .selected.expanded .icon-filter::before { - // white icon - background: url($sprite-path) no-repeat -87px -547px; - } - .icon-filter::before { - // black icon - background: url($sprite-path) no-repeat -246px -547px; + background: url($sprite-path) no-repeat -87px -547px; } .tabfilter-item-label { diff --git a/sass/stylesheets/sass/screen.scss b/sass/stylesheets/sass/screen.scss index 16c1ba7ecf0..6c736f69041 100644 --- a/sass/stylesheets/sass/screen.scss +++ b/sass/stylesheets/sass/screen.scss @@ -6203,7 +6203,7 @@ $range-input-width: 31px; } } - &:not(.interface-container-header):not(:empty) ~ .interface-container:not(:empty) { + &:not(.interface-container-header):not(:empty) ~ .interface-container:not(:empty) :first-child { .interface-cell:not(.interface-cell-details) { padding-top: 10px; margin-top: 5px; |