yuki.k4w411.net/css/main.scss
2025-10-12 09:51:41 -03:00

222 lines
6.6 KiB
SCSS

@use "sass:color" as c;
@use "general";
@use "fonts";
@use "main-palette" as mp;
body {
color: mp.$text;
background-color: mp.$bg;
/*background-image: url("/img/bgpat.png");
background-repeat: repeat;*/
a { color: mp.$link; }
a:hover { color: c.adjust($color: mp.$link, $saturation: 4%, $lightness: 10%); }
p {
font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
font-size: 0.8em;
}
}
.header-wrapper {
display: flex;
align-items: flex-start;
gap: 0px;
height: fit-content;
flex-direction: row;
.header {
display: flex;
flex-direction: column;
h1 {
display: none;
height: 0;
}
.header-banner {
background-image: url("/img/home_banner.jpg");
width: 298px;
height: 140px;
border-right: 1px solid mp.$border;
border-bottom: 1px solid mp.$border;
border-radius: 0% 0% 20px 0%;
}
.header-banner:hover{ background-image: url("/img/home_banner_hover.jpg"); }
}
.navbar-wrapper {
display: flex;
align-items: flex-start;
margin: 8px 0px 2px 0px;
width: 100%;
.navbar-content {
display: flex;
flex-direction: column;
width: 100%;
ul {
display: flex;
flex-direction: row;
flex-wrap: wrap;
list-style: none;
padding: 0 4px;
li {
display: flex;
margin: 2px;
a {
padding: 0.2em 0.5em;
border: 1px solid mp.$border;
background: mp.$bg;
background: linear-gradient(0deg,rgba(0, 0, 0, 1) 10%, c.adjust($color: mp.$link, $saturation: 4%, $lightness: -20%) 100%);
color: mp.$text;
font-family: fonts.$ll;
font-weight: normal;
font-size: 1em;
text-decoration: none;
/*text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;*/
&:hover { background: linear-gradient(0deg,rgba(0, 0, 0, 1) 0%, c.adjust($color: mp.$link, $saturation: 4%, $lightness: -10%) 100%); }
}
--hover-image: url('/img/nav/default_hover.jpg');
/* TODO: finish each navbar image
&#home:hover ~ #nav-hover { --hover-image: url('/img/nav/home_hover.jpg'); }
&#about:hover ~ #nav-hover { --hover-image: url('/img/nav/about_hover.jpg'); }
&#blog:hover ~ #nav-hover { --hover-image: url('/img/nav/blog_hover.jpg'); }
&#reviews:hover ~ #nav-hover { --hover-image: url('/img/nav/reviews_hover.jpg'); }
&#links:hover ~ #nav-hover { --hover-image: url('/img/nav/links_hover.jpg'); }
&#contact:hover ~ #nav-hover { --hover-image: url('/img/nav/contact_hover.jpg'); }
*/
}
#nav-hover {
width: 100%;
height: 104px;
max-height: 103px;
background: mp.$bg;
background-image: var(--hover-image, none);
/* temporary until i finish navbar images */
&:hover { --hover-image: url('/img/nav/temp_hover.jpg'); }
}
}
}
}
}
.base-content-wrapper {
display: flex;
align-items: flex-start;
.box {
border: 1px solid mp.$border;
margin: 10px;
h2 {
padding: 2px;
margin-bottom: 4px;
border-bottom: 1px solid mp.$border;
font-family: fonts.$ll;
font-size: 1em;
background: mp.$bg;
background: linear-gradient(0deg,rgba(0, 0, 0, 1) 10%, c.adjust($color: mp.$link, $saturation: 4%, $lightness: -20%) 100%);
}
}
.welcome-aside-left {
width: max-content;
.now-playing-wrapper {
width: 190px;
h2 { margin-bottom: 0px; }
a { text-decoration: none; }
#trackInfo {
display: flex;
align-items: flex-start;
max-height: 64px;
overflow: hidden;
img {
height: 100%;
margin: 0px 0px 0px 0px;
}
#trackInfoText {
display: flex;
align-items: flex-start;
flex-direction: column;
h3 {
font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
font-size: 0.8em;
padding: 0px 0px 0px 4px;
}
p {
font-size: 0.7em;
padding: 0px 0px 0px 4px;
}
}
&:hover {
background: hsl(0, 65%, 5%);
max-height: fit-content;
height: 100%;
}
}
}
.buttons-wrapper {
width: 190px;
.buttons {
display: flex;
align-items: flex-start;
flex-direction: row;
flex-wrap: wrap;
justify-content: space-evenly;
img {
padding: 0;
margin: 0;
}
}
}
}
.welcome-content {
margin: 8px 4px;
h1 {
font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
font-size: 1em;
}
}
.welcome-aside-right {
width: max-content;
display: flex;
flex-direction: column;
.recent-posts {
width: 190px;
ul {
list-style: none;
padding: 0 0 4px 0;
list-style: none;
text-align: center;
.date {
vertical-align: middle;
font-size: 0.9em;
color: c.adjust($color: mp.$text, $lightness: -10%);
}
}
}
/* TODO: rightside img
#rightside {
padding: 0px;
margin: 0px;
}
*/
}
}
footer p {
margin: 2px;
font-size: 0.7em;
text-align: right;
}