1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 21:06:42 +07:00

changed header appearance

This commit is contained in:
Fedor Katurov 2019-11-11 10:49:17 +07:00
parent 4af7e00728
commit 20625b3b03
6 changed files with 104 additions and 73 deletions

View file

@ -27,6 +27,7 @@
transition: color 0.25s;
text-decoration: none;
color: white;
white-space: nowrap;
&:hover {
color: $red;

View file

@ -9,23 +9,35 @@
.menu {
position: absolute;
right: 0;
right: -$gap;
top: 100%;
padding: $gap;
background: $content_bg;
border-radius: 0 0 $radius $radius;
border-radius: $radius;
display: none;
z-index: 1;
background: $content_bg;
min-width: 100%;
box-sizing: border-box;
// transform: translate(0, $gap);
padding: $gap;
& > div {
background: transparentize($content_bg, 0.2) url('~/sprites/stripes.svg');
padding: $gap $gap * 2;
cursor: pointer;
opacity: 0.5;
box-sizing: border-box;
transition: opacity 0.25s;
width: 100%;
&:first-child {
border-top-left-radius: $radius;
border-top-right-radius: $radius;
}
&:last-child {
border-bottom-left-radius: $radius;
border-bottom-right-radius: $radius;
}
}
&:hover > div {
@ -42,8 +54,8 @@
cursor: pointer;
margin-left: $gap;
white-space: nowrap;
box-shadow: inset transparentize($content_bg, 0.8) 0 0 0 1px;
background: transparentize($content_bg, 0.1);
// box-shadow: inset transparentize($content_bg, 0.8) 0 0 0 1px;
// background: transparentize($content_bg, 0.1);
padding: 0;
}

View file

@ -44,6 +44,7 @@
box-sizing: border-box;
position: relative;
color: #cccccc;
word-break: break-all;
b {
font-weight: 600;