rework icons in navbar items
This commit is contained in:
parent
493286ab43
commit
19b7b1e9a5
@ -141,7 +141,7 @@
|
|||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
padding: 0 4px 2px;
|
padding: 2px 4px;
|
||||||
border: 1px solid currentColor;
|
border: 1px solid currentColor;
|
||||||
letter-spacing: 2px;
|
letter-spacing: 2px;
|
||||||
background-color: white;
|
background-color: white;
|
||||||
|
|||||||
@ -1,4 +1,6 @@
|
|||||||
$newline never
|
$newline never
|
||||||
<a .navbar__link-wrapper href=#{route} ##{menuIdent}>
|
<a .navbar__link-wrapper href=#{route} ##{menuIdent}>
|
||||||
<i .fas.fa-#{fromMaybe "none" menuItemIcon}>
|
$if isJust menuItemIcon
|
||||||
|
<div .navbar__link-icon>
|
||||||
|
<i .fas.fa-2x.fa-#{fromMaybe "none" menuItemIcon}>
|
||||||
<div .navbar__link-label>_{SomeMessage menuItemLabel}
|
<div .navbar__link-label>_{SomeMessage menuItemLabel}
|
||||||
|
|||||||
@ -58,6 +58,7 @@
|
|||||||
|
|
||||||
/* links */
|
/* links */
|
||||||
.navbar__link-wrapper {
|
.navbar__link-wrapper {
|
||||||
|
position: relative;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
justify-content: flex-end;
|
justify-content: flex-end;
|
||||||
@ -66,15 +67,23 @@
|
|||||||
min-width: 90px;
|
min-width: 90px;
|
||||||
color: var(--color-lightwhite);
|
color: var(--color-lightwhite);
|
||||||
transition: height .2s cubic-bezier(0.03, 0.43, 0.58, 1);
|
transition: height .2s cubic-bezier(0.03, 0.43, 0.58, 1);
|
||||||
|
overflow: hidden;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
color: var(--color-lightwhite);
|
color: var(--color-lightwhite);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.navbar__link-icon {
|
||||||
|
position: absolute;
|
||||||
|
right: 4px;
|
||||||
|
top: 4px;
|
||||||
|
opacity: 0.3;
|
||||||
|
}
|
||||||
|
|
||||||
.navbar__link-label {
|
.navbar__link-label {
|
||||||
transition: opacity .2s ease;
|
transition: opacity .2s ease;
|
||||||
padding: 4px 6px;
|
padding: 2px 4px;
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user