179 lines
4.8 KiB
SCSS
179 lines
4.8 KiB
SCSS
.layout-topbar {
|
|
background-color: var(--surface-a);
|
|
padding: 0;
|
|
height: 70px;
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
z-index: 997;
|
|
box-shadow: 0 0 4px rgba(0,0,0,0.25);
|
|
border-bottom: 1px solid var(--surface-d);
|
|
|
|
.menu-button {
|
|
display: none;
|
|
color: var(--text-color);
|
|
position: absolute;
|
|
left: 0;
|
|
top: 0;
|
|
width: 70px;
|
|
height: 70px;
|
|
line-height: 70px;
|
|
text-align: center;
|
|
transition: background-color .2s;
|
|
cursor: pointer;
|
|
|
|
&:hover {
|
|
background-color: var(--surface-c);
|
|
}
|
|
|
|
i {
|
|
font-size: 24px;
|
|
line-height: inherit;
|
|
}
|
|
}
|
|
|
|
.logo {
|
|
margin-left: 35px;
|
|
margin-top: 8px;
|
|
display: inline-block;
|
|
|
|
img {
|
|
width: 180px;
|
|
}
|
|
|
|
&:focus {
|
|
outline: 0 none;
|
|
transition: box-shadow .2s;
|
|
box-shadow: 0 0 0 0.2em $focusBorderColor;
|
|
}
|
|
}
|
|
|
|
.topbar-menu {
|
|
list-style-type: none;
|
|
float: right;
|
|
margin: 0 60px 0 0;
|
|
padding: 0;
|
|
height: 100%;
|
|
|
|
> li {
|
|
display: inline-block;
|
|
height: 70px;
|
|
line-height: 70px;
|
|
|
|
> a {
|
|
text-decoration: none;
|
|
color: var(--text-color);
|
|
min-width: 120px;
|
|
font-size: 16px;
|
|
display: inline-block;
|
|
text-align: center;
|
|
user-select: none;
|
|
line-height: inherit;
|
|
transition: background-color .2s;
|
|
cursor: pointer;
|
|
|
|
&:hover {
|
|
background-color: var(--surface-c);
|
|
}
|
|
|
|
&:focus {
|
|
z-index: 1;
|
|
outline: 0 none;
|
|
transition: box-shadow .2s;
|
|
box-shadow: inset 0 0 0 0.2em $focusBorderColor;
|
|
}
|
|
}
|
|
|
|
&.topbar-submenu {
|
|
position: relative;
|
|
|
|
> ul {
|
|
position: absolute;
|
|
top: 70px;
|
|
right: 0;
|
|
width: 275px;
|
|
max-height: 400px;
|
|
background-color: var(--surface-e);
|
|
box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.3);
|
|
overflow: auto;
|
|
list-style-type: none;
|
|
padding: 1rem;
|
|
margin: 0;
|
|
border-radius: 3px;
|
|
|
|
> li {
|
|
line-height: 1;
|
|
|
|
&.topbar-submenu-header {
|
|
padding: .5rem;
|
|
font-weight: bold;
|
|
text-align: left;
|
|
margin-top: 1rem;
|
|
|
|
&:first-child {
|
|
margin-top: 0;
|
|
}
|
|
}
|
|
}
|
|
|
|
a {
|
|
text-decoration: none;
|
|
color: var(--text-color);
|
|
padding: .5rem;
|
|
display: block;
|
|
user-select: none;
|
|
transition: background-color .2s;
|
|
border-radius: 3px;
|
|
cursor: pointer;
|
|
|
|
&:hover {
|
|
background-color: var(--surface-c);
|
|
cursor: pointer;
|
|
}
|
|
|
|
span {
|
|
margin-left: .5rem;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
i {
|
|
vertical-align: middle;
|
|
color: var(--text-color-secondary);
|
|
vertical-align: middle;
|
|
}
|
|
|
|
img {
|
|
width: 32px;
|
|
vertical-align: middle;
|
|
margin-right: .5rem;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.theme-badge {
|
|
padding: 2px 4px;
|
|
vertical-align: middle;
|
|
border-radius: 3px;
|
|
color: #ffffff;
|
|
font-weight: bold;
|
|
font-size: 11px;
|
|
position: relative;
|
|
top: -1px;
|
|
}
|
|
|
|
.theme-badge.material {
|
|
background: linear-gradient(to bottom, #2196F3, #2196F3);
|
|
}
|
|
|
|
.theme-badge.bootstrap {
|
|
background: linear-gradient(to bottom, #563D7C, #966BD8);
|
|
}
|
|
|
|
.theme-badge.darkmode {
|
|
background: linear-gradient(to bottom, #141d26, #5a6067);
|
|
}
|
|
}
|
|
} |