Browse Source

Fix box shadow of header elements

* unify shadow blur from 3px to 10px
* remove opacity of background of app labels
* for IE: use box-shadow as fallback (because the filter: drop-shadow is not supported)

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
tags/v13.0.0beta4
Morris Jobke 6 years ago
parent
commit
f854831045
No account linked to committer's email address
2 changed files with 11 additions and 5 deletions
  1. 7
    0
      core/css/fixes.scss
  2. 4
    5
      core/css/header.scss

+ 7
- 0
core/css/fixes.scss View File

visibility: hidden; visibility: hidden;
} }


.ie #header .menu,
.ie .header-left #navigation,
.ie .ui-datepicker,
.ie .ui-timepicker.ui-widget,
.ie #appmenu li span {
box-shadow: 0 1px 10px $color-box-shadow;
}

+ 4
- 5
core/css/header.scss View File

.menu { .menu {
top: 45px; top: 45px;
background-color: $color-main-background; background-color: $color-main-background;
filter: drop-shadow(0 1px 3px $color-box-shadow);
filter: drop-shadow(0 1px 10px $color-box-shadow);
border-radius: 0 0 3px 3px; border-radius: 0 0 3px 3px;
display: none; display: none;
box-sizing: border-box; box-sizing: border-box;
left: -100%; left: -100%;
width: 160px; width: 160px;
background-color: $color-main-background; background-color: $color-main-background;
filter: drop-shadow(0 1px 3px $color-box-shadow);
filter: drop-shadow(0 1px 10px $color-box-shadow);
&:after { &:after {
/* position of dropdown arrow */ /* position of dropdown arrow */
left: 47%; left: 47%;
#expanddiv { #expanddiv {
right: 13px; right: 13px;
background: $color-main-background; background: $color-main-background;
box-shadow: 0 1px 10px $color-box-shadow;
&:after { &:after {
/* position of dropdown arrow */ /* position of dropdown arrow */
right: 13px; right: 13px;
display: none; display: none;
position: absolute; position: absolute;
overflow: visible; overflow: visible;
background-color: rgba($color-main-background, .97);
background-color: $color-main-background;
white-space: nowrap; white-space: nowrap;
border: none; border: none;
border-radius: $border-radius; border-radius: $border-radius;
top: 45px; top: 45px;
transform: translateX(-50%); transform: translateX(-50%);
padding: 4px 10px; padding: 4px 10px;
box-shadow: 0 1px 10px $color-box-shadow;
filter: drop-shadow(0 1px 10px $color-box-shadow);
} }


li:hover span { li:hover span {

Loading…
Cancel
Save