mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 12:56:41 +07:00
changed header appearance
This commit is contained in:
parent
4af7e00728
commit
20625b3b03
6 changed files with 104 additions and 73 deletions
|
@ -27,6 +27,7 @@
|
|||
transition: color 0.25s;
|
||||
text-decoration: none;
|
||||
color: white;
|
||||
white-space: nowrap;
|
||||
|
||||
&:hover {
|
||||
color: $red;
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue