Transfer to git
This commit is contained in:
279
css/main/layouts/base.css
Normal file
279
css/main/layouts/base.css
Normal file
@@ -0,0 +1,279 @@
|
||||
/* Base design */
|
||||
|
||||
/* ---------------- Variables ---------------- */
|
||||
|
||||
html {
|
||||
--chat-gap: 1em;
|
||||
--updates-gap: 1em;
|
||||
--blinkies-gap: 1em;
|
||||
--blinkies-height: 40px;
|
||||
--scrolls-height: 50px;
|
||||
--secondary-width: 200px;
|
||||
--webrings-heigth: 200px;
|
||||
--webrings-mobile-height: 100px;
|
||||
--title-height: 3em;
|
||||
}
|
||||
|
||||
|
||||
/* --------- Display changes ---------------- */
|
||||
|
||||
.verticalscroll, .scroll_below-clip-box, #try_tapping--blinkie, #try_hovering--blinkie { display: none; }
|
||||
|
||||
/* --------- Hierarchical layout --------- */
|
||||
|
||||
.blinkies {
|
||||
padding-top: 0;
|
||||
padding-bottom: 0;
|
||||
gap: var(--blinkies-gap);
|
||||
width: 100%;
|
||||
height: var(--blinkies-height);
|
||||
flex-grow: 0;
|
||||
align-content: center;}
|
||||
|
||||
.auto-scroll {
|
||||
display: flex;
|
||||
flex-direction: row;}
|
||||
|
||||
.scroll_one, .scroll_two {
|
||||
display: flex;
|
||||
gap: var(--blinkies-gap);}
|
||||
|
||||
.blinkies img { height: 30px; }
|
||||
|
||||
.content {
|
||||
overflow-y: auto;
|
||||
overflow-x: hidden;}
|
||||
|
||||
.articles, .chat-webrings { width: var(--secondary-width); }
|
||||
|
||||
.articles { flex-grow: 0; }
|
||||
|
||||
.articles .content {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: calc(var(--gap) / 2);
|
||||
}
|
||||
|
||||
.main {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex: 1;
|
||||
gap: var(--gap);}
|
||||
|
||||
.updates {
|
||||
flex-grow: 1;
|
||||
overflow-y: auto;
|
||||
flex-basis: 30%;
|
||||
flex-shrink: 0;}
|
||||
|
||||
.updates .update {
|
||||
display: grid;
|
||||
grid-template-columns: fit-content 1fr;
|
||||
grid-template-rows: fit-content 1fr;
|
||||
gap: var(--updates-gap);}
|
||||
|
||||
.update .title {
|
||||
/* Grid placement */
|
||||
grid-column-start: 2;
|
||||
grid-column-end: 3;
|
||||
grid-row-start: 1;
|
||||
grid-row-end: 2;
|
||||
|
||||
text-align: center;
|
||||
margin-bottom: 0;}
|
||||
|
||||
.update .date {
|
||||
/* Grid placement */
|
||||
grid-column-start: 1;
|
||||
grid-column-end: 2;
|
||||
grid-row-start: 1;
|
||||
grid-row-end: 3;
|
||||
|
||||
writing-mode: sideways-lr;}
|
||||
|
||||
.update .content {
|
||||
/* Grid placement */
|
||||
grid-column-start: 2;
|
||||
grid-column-end: 3;
|
||||
grid-row-start: 2;
|
||||
grid-row-end: 3;
|
||||
|
||||
text-align: justify;}
|
||||
|
||||
.provided {
|
||||
position: relative;
|
||||
flex-grow: 1;
|
||||
overflow-y: auto;
|
||||
overflow-x: hidden;}
|
||||
|
||||
.provided .content {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: calc(var(--gap) / 4);
|
||||
overflow-y: auto;}
|
||||
|
||||
.services-hint {
|
||||
/* Internal layout and positioning */
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: calc(var(--gap) / 3);
|
||||
background-color: var(--hint-background);}
|
||||
|
||||
.services-hint p {
|
||||
flex-grow: 0;
|
||||
vertical-align: center;
|
||||
padding-left: calc(var(--gap) / 3);
|
||||
border-left: 2px solid red;
|
||||
}
|
||||
|
||||
.services-hint img {
|
||||
height: 32px;
|
||||
flex-grow: 0;
|
||||
flex-shrink: 0;
|
||||
margin-right: calc(var(--gap) / 3);}
|
||||
|
||||
.services {
|
||||
display: flex;
|
||||
gap: var(--gap);
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.services > div {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex-grow: 1;
|
||||
gap: calc(var(--gap) / 2);
|
||||
}
|
||||
|
||||
|
||||
.chat-webrings {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex-grow: 0;
|
||||
flex-shrink: 0;
|
||||
gap: inherit;}
|
||||
|
||||
.chat {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex-grow: 1;
|
||||
overflow: hidden;}
|
||||
|
||||
.chat > .content {
|
||||
flex-grow: 1;
|
||||
display: flex;
|
||||
gap: var(--chat-gap);
|
||||
flex-direction: column;
|
||||
overflow: hidden;}
|
||||
|
||||
.chat-account {
|
||||
width: 100%;
|
||||
height: fit-content;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex-grow: 0;
|
||||
gap: calc(var(--gap) / 4);}
|
||||
|
||||
.chat-account-inputs, .chat-account-buttons {
|
||||
height: auto;
|
||||
gap: calc(var(--gap) / 2);
|
||||
display: flex;
|
||||
flex-grow: 0;
|
||||
width: 100%;}
|
||||
|
||||
.chat-account input, .chat-account button {
|
||||
height: fit-content;
|
||||
width: 50%;}
|
||||
|
||||
.chat-history {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
padding-top: calc(var(--gap) / 2);
|
||||
padding-bottom: calc(var(--gap) / 2);
|
||||
gap: calc(var(--gap) / 2);
|
||||
width: 100%;
|
||||
flex-grow: 1;
|
||||
overflow-y: auto;}
|
||||
|
||||
.message > .date_sent { margin: 0;}
|
||||
|
||||
.chat-input {
|
||||
width: 100%;
|
||||
flex-grow: 0;}
|
||||
|
||||
.chat-input input { width: 100%; }
|
||||
|
||||
.webrings {
|
||||
display: flex;
|
||||
gap: var(--blinkies-gap);
|
||||
height: var(--webrings-heigth);
|
||||
flex-grow: 0;
|
||||
justify-content: center;}
|
||||
|
||||
.webrings .auto-scroll {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;}
|
||||
|
||||
.webrings .scroll_one, .webrings .scroll_two {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--blinkies-gap);}
|
||||
|
||||
.webrings .auto-scroll > * img {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
|
||||
/* ----------- Animation ------------- */
|
||||
|
||||
/* Personalized marquee, did my thing
|
||||
because I didn't quite get what the owner
|
||||
of https://minx98.neocities.org/ was doing,
|
||||
got the idea to use two separate divs and
|
||||
transform them, not sure how the original
|
||||
owner clipped them though */
|
||||
|
||||
/* Global */
|
||||
.auto-scroll { width: fit-content; }
|
||||
.auto-scroll:hover { animation-play-state: paused !important; }
|
||||
.clip-box { overflow: hidden; }
|
||||
|
||||
.auto-scroll {
|
||||
animation-duration: 10s;
|
||||
animation-timing-function: linear;
|
||||
animation-delay: 0s;
|
||||
animation-iteration-count: infinite;
|
||||
animation-direction: normal;
|
||||
animation-fill-mode: none;
|
||||
animation-play-state: running;
|
||||
}
|
||||
|
||||
/* Blinkies */
|
||||
|
||||
.blinkies .clip-box { clip-path: content-box; }
|
||||
|
||||
.blinkies .auto-scroll {
|
||||
animation-name: scroll_blinkies;
|
||||
animation-duration: 20s;}
|
||||
|
||||
@keyframes scroll_blinkies {
|
||||
from {transform: translateX(calc(-50%));}
|
||||
to {transform: translateX(0%);}}
|
||||
|
||||
/* Second blinkie */
|
||||
|
||||
.blinkies.two .auto-scroll { animation-direction: reverse; }
|
||||
|
||||
/* Webrings */
|
||||
|
||||
.webrings .clip-box {
|
||||
clip-path: content-box;
|
||||
width: 100%; }
|
||||
|
||||
.webrings .auto-scroll { animation-name: scroll-webring; }
|
||||
|
||||
@keyframes scroll-webring {
|
||||
from {transform: translateY(calc(-50%));}
|
||||
to {transform: translateY(0%);}}
|
||||
24
css/main/layouts/desktop-slim.css
Normal file
24
css/main/layouts/desktop-slim.css
Normal file
@@ -0,0 +1,24 @@
|
||||
/* RESPONSIVE DESIGN, LAPTOP SLIM */
|
||||
|
||||
@media only all and (max-width:1175px){
|
||||
/* ------------- Order ------------- */
|
||||
.blinkies.one { order: 1; }
|
||||
.articles { order: 4; }
|
||||
.main { order: 2; }
|
||||
.chat-webrings { order: 3; }
|
||||
.blinkies.two { order: 5; }
|
||||
|
||||
/* ------------- Layout ------------ */
|
||||
.articles { flex-grow: 1; }
|
||||
|
||||
.chat-webrings { flex-grow: 0; }
|
||||
|
||||
.main {
|
||||
flex-grow: 999;
|
||||
min-width: 50%}
|
||||
|
||||
.services { overflow-y: auto; }
|
||||
|
||||
/* --- Decoration --- */
|
||||
|
||||
}
|
||||
21
css/main/layouts/desktop-slimmer.css
Normal file
21
css/main/layouts/desktop-slimmer.css
Normal file
@@ -0,0 +1,21 @@
|
||||
/* RESPONSIVE DESIGN, LAPTOP SLIMMER */
|
||||
|
||||
@media only all and (max-width:750px){
|
||||
/* ------------- Order ------------- */
|
||||
|
||||
|
||||
/* ------------ Layout ------------ */
|
||||
.main {
|
||||
flex-basis: 100%;
|
||||
flex-shrink: 0;}
|
||||
|
||||
.articles {
|
||||
flex-grow: 1;
|
||||
width: auto;}
|
||||
|
||||
.chat-webrings {
|
||||
width: var(--secondary-width);
|
||||
flex-grow: 1;}
|
||||
|
||||
.services { overflow-y: auto; }
|
||||
}
|
||||
16
css/main/layouts/desktop.css
Normal file
16
css/main/layouts/desktop.css
Normal file
@@ -0,0 +1,16 @@
|
||||
/* RESPONSIVE DESIGN, LAPTOP FULL */
|
||||
|
||||
@media only all and (min-width:1175px) {
|
||||
/* ------------- Layout ------------- */
|
||||
|
||||
.primary {
|
||||
padding-right: 150px;
|
||||
padding-left: 150px;}
|
||||
|
||||
.chat-webrings, .main, .articles { height: calc(100vh - (var(--blinkies-height) * 2) - (var(--gap) * 4)); }
|
||||
|
||||
.services { overflow-y: auto; }
|
||||
/* ---- Display changes ---- */
|
||||
|
||||
#try_hovering--blinkie { display: block; }
|
||||
}
|
||||
149
css/main/layouts/mobile.css
Normal file
149
css/main/layouts/mobile.css
Normal file
@@ -0,0 +1,149 @@
|
||||
/* RESPONSIVE DESIGN, MOBILE */
|
||||
|
||||
@media only all and (max-width:700px){
|
||||
/* ------------- Order ------------- */
|
||||
.blinkies.one { order: 0; }
|
||||
.main { order: 1; }
|
||||
.articles { order: 2; }
|
||||
.chat-webrings { order: 3; }
|
||||
.verticalscroll { order: 4; }
|
||||
|
||||
/* -------- Display changes ---------- */
|
||||
.blinkies.two { display: none; }
|
||||
.verticalscroll { display: flex; }
|
||||
.scroll_below-clip-box { display: block; }
|
||||
|
||||
.navbar.bot > .about, .navbar.bot > .logo, .navbar.bot > .lang-picker { display: none; }
|
||||
|
||||
/* Decoration */
|
||||
|
||||
#try_hovering--blinkie { display: none; }
|
||||
#try_tapping--blinkie { display: block; }
|
||||
|
||||
/* ------------- Layout ------------- */
|
||||
|
||||
.primary {
|
||||
width: calc(100% - var(--scrolls-height) - var(--gap) * 2);
|
||||
height: fit-content;
|
||||
flex-direction: column;
|
||||
padding-right: 0;}
|
||||
|
||||
.primary > * {
|
||||
width: 100%;}
|
||||
|
||||
.main {
|
||||
height: fit-content;
|
||||
flex-grow: 1;
|
||||
flex-basis: auto;}
|
||||
|
||||
.verticalscroll {
|
||||
position: fixed;
|
||||
right: 0; /* There is a slight inconsistency with this, as scrollbar width isn't considered with fixed, but the blank version does contemplate, creating a gap wider than expected */
|
||||
margin: var(--gap);
|
||||
justify-content: center;
|
||||
height: calc(100% - var(--mobile-botnavbar-height) - var(--mobile-topnavbar-height) - var(--gap) * 2);
|
||||
width: var(--scrolls-height);
|
||||
overflow: hidden;}
|
||||
|
||||
.verticalscroll.blank {
|
||||
height: 100%;
|
||||
position: relative;
|
||||
opacity: 0;}
|
||||
|
||||
.vertical-scroll-wrapper {
|
||||
height: fit-content;}
|
||||
|
||||
.verticalscroll .clip-box {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
height: fit-content;
|
||||
display: flex;
|
||||
justify-content: center;}
|
||||
|
||||
.verticalscroll .auto-scroll{
|
||||
display: flex;
|
||||
flex-direction: column;}
|
||||
|
||||
.verticalscroll p {
|
||||
writing-mode: vertical-lr;
|
||||
text-orientation: sideways;
|
||||
text-wrap: nowrap;}
|
||||
|
||||
.webrings {
|
||||
gap: var(--blinkies-gap);
|
||||
height: var(--webrings-mobile-height);
|
||||
flex-shrink: 0;
|
||||
padding-top: 0;
|
||||
padding-bottom: 0;}
|
||||
|
||||
.webrings .clip-box {
|
||||
align-content: center;}
|
||||
|
||||
.webrings .auto-scroll {
|
||||
flex-direction: row;
|
||||
animation-name: scroll-webring-mobile;}
|
||||
|
||||
.webrings .scroll_one, .webrings .scroll_two {
|
||||
flex-direction: row;}
|
||||
|
||||
.webrings .auto-scroll > * > div img {
|
||||
height: 60px;
|
||||
width: auto;}
|
||||
|
||||
.scroll_below-clip-box {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
top: 50px;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
pointer-events: none;
|
||||
clip-path: border-box;}
|
||||
|
||||
.scroll_below {
|
||||
position: fixed;
|
||||
left: 0px;
|
||||
bottom: var(--mobile-botnavbar-height);
|
||||
margin-bottom: 0px;
|
||||
height: fit-content;
|
||||
width: fit-content;
|
||||
padding-left: 1em;
|
||||
padding-right: 1em;
|
||||
text-align: center;}
|
||||
|
||||
/* ----------- Animation ----------- */
|
||||
|
||||
/* Blinkies */
|
||||
.blinkies.one .auto-scroll {
|
||||
animation-duration: 20s;
|
||||
animation-direction: reverse;}
|
||||
|
||||
/* Webrings */
|
||||
.webrings .clip-box {
|
||||
height: 100%;
|
||||
width: 100%;}
|
||||
|
||||
@keyframes scroll-webring-mobile {
|
||||
from {transform: translateX(calc(-50%));}
|
||||
to {transform: translateX(0%);}}
|
||||
|
||||
/* Vertical scroll text */
|
||||
.verticalscroll .auto-scroll {
|
||||
animation-name: scroll-vertical;
|
||||
animation-direction: reverse;
|
||||
animation-duration: 20s;}
|
||||
|
||||
@keyframes scroll-vertical {
|
||||
from {transform: translateY(calc(-50%));}
|
||||
to {transform: translateY(0%);}}
|
||||
|
||||
/* Opacity enhancements */
|
||||
.webrings .clip-box{
|
||||
mask-image: linear-gradient(to right,
|
||||
rgba(0,0,0,0) 0%,
|
||||
rgba(0,0,0,1) 5%,
|
||||
rgba(0,0,0,1) 95%,
|
||||
rgba(0,0,0,0) 100%);}
|
||||
}
|
||||
Reference in New Issue
Block a user