Files
l5rx-chiaroscuro/system/styles/scss/nav.scss
2021-03-13 02:56:18 +01:00

64 lines
1.7 KiB
SCSS

// -- Nav
nav {
&.sheet-tabs {
height: 3rem;
line-height: 3rem;
font-family: $font-tertiary;
letter-spacing: -0.05rem;
font-size: 1rem;
border: 0 none;
border-bottom: 1px solid $l5r5e-title;
margin-bottom: 0;
background: $l5r5e-white;
color: $l5r5e-black;
--notchSize: 0.5rem;
clip-path: polygon(
0% var(--notchSize),
var(--notchSize) 0%,
calc(100% - var(--notchSize)) 0%,
100% var(--notchSize),
100% calc(100% - var(--notchSize)),
calc(100%) 100%,
var(--notchSize) 100%,
0% calc(100%)
);
}
.item {
&:hover {
background-color: $l5r5e-label;
color: $white-light;
text-shadow: none;
clip-path: polygon(
0% var(--notchSize),
var(--notchSize) 0%,
calc(100% - var(--notchSize)) 0%,
100% var(--notchSize),
100% 100%,
0 100%,
0% 0%,
0% 100%
);
}
}
.item.active {
background-color: rgba(73, 12, 11, 0.85);
color: rgba(255, 255, 255, 1);
background-color: rgba(73, 12, 11, 0.85);
clip-path: polygon(
0% var(--notchSize),
var(--notchSize) 0%,
calc(100% - var(--notchSize)) 0%,
100% var(--notchSize),
100% 100%,
0 100%,
0% 0%,
0% 100%
);
&:hover {
background-color: rgba(73, 12, 11, 0.85);
cursor: default;
}
}
}