tcharles.fr/assets/sass/nav.scss
2025-02-07 20:32:59 +01:00

122 lines
2.7 KiB
SCSS

$NavLeft_Width: 200px;
$NavLeft_HiddenWidth: 20px;
div#left {
position: fixed;
left: $NavLeft_HiddenWidth - $NavLeft_Width;
width: $NavLeft_Width;
top: 0;
bottom: 0;
overflow-x: hidden;
overflow-y: auto;
z-index: 1;
border-style: solid;
border-width: 0 1px 0 0;
border-color: $ClrTrueBlack;
background-image: url(#{$ImgPath}/ui/bggray.png);
box-shadow: -4px 0px 10px $ClrBlack inset;
text-align: center;
font-size: large;
transition-property: left;
transition-duration: 0.2s;
transition-delay: 0.1s;
.arrow {
position: absolute;
right: 0;
top: 50%;
height: 35px;
transition-property: opacity;
transition-duration: 0.2s;
transition-delay: 0.1s;
}
// profile pic =====================================
header {
margin: 20px 0 10px 0;
figcaption {
color: $ClrWhite;
font-family: $FontTitle;
font-weight: bold;
font-style: italic;
font-size: 1.2em;
text-decoration: none;
}
img {
max-width: 80%;
}
}
nav {
ul {
list-style-type: none;
padding: 0;
// <a> =====================================
a {
outline: none !important;
display: block;
padding: 5px;
margin: 7px 20px 7px 20px;
background-color: #303030;
border-style: solid;
border-width: 1px;
border-color: #000;
border-radius: 3px;
color: $ClrWhite;
font-weight: bold;
text-decoration: none;
text-align: center;
font-size: 1.2em;
transition-property: border-color background-color;
transition-duration: 0.1s;
}
a:hover {
background-color: #383838;
border-color: #202020;
}
a:active,
a.active {
background-color: #215d9c;
}
a.external:after {
content: "";
}
a.external:hover {
border-color: #013d6c;
}
a.logo {
display: inline-block;
border-style: none;
background: none;
img {
height: 48px;
}
}
}
}
// <footer> =====================================
footer {
margin-top: 20px;
}
}
div#left:hover,
div#left:active {
left: 0px;
.arrow {
opacity: 0;
}
}