yuki.k4w411.net/css/main.scss
2025-12-07 06:35:26 -03:00

603 lines
16 KiB
SCSS

@use "sass:color" as c;
@use "general";
@use "fonts";
@use "main-palette" as mp;
$psize: 0.8em;
$h1size: 2em;
$h2size: 1.8em;
$h3size: 1.6em;
$h4size: 1.4em;
$h5size: 1.2em;
$h6size: 1em;
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: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
font-size: $psize;
}
h1,
h2,
h3,
h4,
h5,
h6 {
font-family: fonts.$ll, "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
font-weight: bold;
text-decoration: underline;
text-decoration-color: mp.$border;
font-smooth: never;
-webkit-font-smoothing: none;
-moz-osx-font-smoothing: none;
}
h1 {
font-size: $h1size;
}
h2 {
font-size: $h2size;
}
h3 {
font-size: $h3size;
}
h4 {
font-size: $h4size;
}
h5 {
font-size: $h5size;
}
h6 {
font-size: $h6size;
}
.warning {
padding: 2px;
margin: 2px auto;
text-align: center;
border-top: 1px solid
c.adjust($color: mp.$border, $saturation: 15%, $lightness: 10%);
border-bottom: 1px solid
c.adjust($color: mp.$border, $saturation: 15%, $lightness: 10%);
background: c.adjust(
$color: mp.$border,
$saturation: 15%,
$lightness: -20%
);
}
@media (min-width: general.$breakpoint) {
#mobile-warning {
display: none;
}
}
}
// 404
#fof {
border: none;
.fof {
display: flex;
justify-content: flex-start;
flex-direction: column;
width: 100%;
h1 {
margin: 10px 10px 0px 10px;
font-family: fonts.$ll;
text-align: center;
text-decoration: none;
}
img {
max-width: fit-content;
display: block;
margin: auto;
}
.fof-foot {
display: flex;
justify-content: flex-start;
flex-direction: row;
justify-content: space-between;
width: 780px;
margin: 0px auto;
p {
font-family:
fonts.$ll, "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
font-size: 1.2em;
}
}
}
}
// under construction
#under-construction {
width: 100%;
h2 {
font-size: 1.4em;
text-align: center;
text-decoration: none;
margin-top: 8px;
}
img {
display: block;
width: fit-content;
margin: 8px auto;
}
}
.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,
p {
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%
);
}
}
p {
cursor: default;
}
--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 10px 0px 10px;
h2 {
padding: 3px 6px;
margin-bottom: 4px;
border-bottom: 1px solid mp.$border;
text-decoration: none;
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%
);
}
}
// homepage
.welcome-aside-left {
width: max-content;
.home-lang {
display: flex;
align-items: flex-start;
flex-direction: row;
p {
font-size: 0.7em;
text-align: right;
margin: auto 0px auto 6px;
}
img {
display: block;
margin: 4px 4px 4px auto;
height: 64px;
}
}
.now-playing-wrapper {
margin-bottom: 0px;
width: 190px;
h3,
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%;
}
}
}
.umihara-kawase {
margin: 0px;
a,
img {
display: block;
width: 81px;
margin: 0px auto;
}
}
.buttons-wrapper {
margin-top: 0px;
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;
}
.welcome-aside-right {
width: max-content;
display: flex;
flex-direction: column;
.recent-posts {
width: 190px;
ul {
list-style: none;
padding: 0 8px 4px 8px;
list-style: none;
text-align: left;
.date {
font-size: 0.7em;
color: c.adjust($color: mp.$text, $lightness: -10%);
}
}
}
/* TODO: rightside img
#rightside {
padding: 0px;
margin: 0px;
}
*/
}
.true-content {
h1,
h2,
h3,
h4,
h5,
h6 {
margin: 2px 4px;
}
p {
margin: 8px 4px;
}
ul {
list-style-image: url(/img/icons/pichu.gif);
list-style-type: disc;
li {
font-family:
"Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS",
sans-serif;
font-size: $psize;
margin: auto;
}
}
img {
display: block;
margin: 12px auto;
}
}
// guestbook
.guestbook-wrapper {
width: 100%;
margin: 12px 2px 2px 2px;
p {
text-align: center;
}
#guestbook {
width: 100%;
min-height: 100vh;
}
}
$sm: 10%; // sidebar margin
// blog index
#blog-sidebar {
display: flex;
flex-direction: column;
width: 240px;
p,
li {
font-family:
"Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif;
font-size: 11px;
}
h1,
h2,
h3,
h4,
h5,
h6 {
font-size: 16px;
text-decoration: none;
border-bottom: 1px dashed mp.$border;
max-width: 50%;
}
.true-content {
margin: 6px ($sm - 5%) 6px $sm;
}
.blog-avatar-wrapper {
width: 100%;
#avatar {
// border: 1px solid mp.$border;
display: block;
margin: 24px auto 6px auto;
}
}
.tag-list-wrapper {
width: 100%;
margin: 6px ($sm - 5%) 6px $sm;
ul {
margin: 6px 0px;
li {
list-style-image: url("/img/icons/kittycat.gif");
padding: 2px 0px;
}
}
}
}
#feed {
width: 100%;
margin: 12px;
padding: 0px 12%;
.year-title {
font-size: $h4size;
text-align: center;
text-decoration: none;
}
.feed-item {
display: block;
width: 100%;
margin: 8px auto;
border: 1px solid mp.$border;
padding: 4px 16px;
.post-title {
margin: 6px 4px 2px 4px;
font-size: $h5size;
text-decoration: underline dotted;
a {
text-decoration: none;
}
}
.post-date {
margin: 0px 4px 6px 4px;
}
.post-content {
margin: 4px 4px 4px 4px;
}
.post-image {
max-width: 350px;
max-height: 200px;
margin: 8px auto 2px auto;
display: block;
}
.post-link {
width: 50%;
margin-left: auto;
text-align: right;
a {
text-decoration: none;
font-family:
fonts.$ll, "Gill Sans", "Gill Sans MT", Calibri,
"Trebuchet MS", sans-serif;
}
}
}
.end-of-feed {
display: block;
max-width: 125px;
margin: 12px auto;
a {
#tv {
display: block;
width: 125px;
height: 92px;
background-image: url("/img/gifcities/television.gif");
&:hover {
background-image: url("/img/gifcities/television_hover.jpg");
}
}
&:hover ~ p {
color: c.adjust(
$color: mp.$text,
$saturation: -40%,
$lightness: -30%
);
}
}
p {
color: mp.$bg;
font-family:
fonts.$ll, "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
font-size: 0.8em;
text-align: center;
}
}
}
}
footer {
marquee {
margin: 8px 0px;
}
p {
margin: 2px;
font-size: 0.7em;
text-align: right;
}
.footer-flex {
display: flex;
flex-direction: row;
align-items: flex-start;
justify-content: space-between;
width: 100%;
.footer-left {
margin: auto 0px 0px 0px;
}
.footer-middle .nekojiru-angel {
background-image: url("/img/nekojiru.png");
width: 64px;
height: 64px;
margin: auto 0px 0px 0px;
vertical-align: bottom;
&:hover {
background-image: url("/img/nekojiruhalo.png");
}
}
.footer-right {
margin: auto 0px 0px 0px;
}
}
}