Files
pages/css/site.css
T
Odyssey 71479c8c70 Switch to system font stack
Signed-off-by: Odyssey <hi@odyssey346.dev>
2023-04-02 13:10:25 +02:00

245 lines
3.9 KiB
CSS

/* god bless you */
:root {
--text: #fff;
--background: #252525;
--secondary-background: #353535;
--background-darker: #151515;
--accent: #00b7c3;
}
body {
font-family: -apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, helvetica, Cantarell, Ubuntu, roboto, noto, arial, sans-serif;
color: var(--text);
background-color: var(--background-darker);
min-height: 100vh;
margin: 0;
}
::-webkit-scrollbar {
width: 8px;
height: 10px;
}
::-webkit-scrollbar-thumb {
border-radius: 8px;
background: #252525;
}
.main {
margin: 0 24vw;
}
.navbar {
display: flex;
align-items: center;
justify-content: space-between;
flex-direction: row;
padding: 8px;
}
.navbarImg {
height: 30px;
}
.brand {
display: flex;
align-items: center;
gap: 8px;
transition: opactiy .25s;
color: var(--text);
}
.navbarSlogan:hover {
color: var(--accent);
}
.brand:hover {
opacity: .95;
}
.center {
text-align: center;
}
a {
color: white;
text-decoration: underline;
text-underline-offset: 5px;
}
.instances-header-container {
text-align: center;
}
.instance-container {
/* i want a grid */
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: center;
gap: 8px;
margin: 8px;
}
.instance-card {
background-color: var(--background);
padding: 8px;
border-radius: 4px;
margin: 8px 0 8px 0;
text-overflow: ellipsis;
white-space: wrap;
text-decoration: none;
display: flex;
flex-direction: column;
gap: 4px;
width: 20rem;
transition: ease-in-out 0.25s;
}
.instance-header > p {
font-weight: 700;
margin-top: 2px;
margin-bottom: 0;
margin-left: 0;
margin-right: 0;
}
.instance-card:hover {
background-color: var(--secondary-background);
color: var(--text);
}
.instance-body {
display: flex;
flex-direction: column;
}
.instance-body > p {
margin: 2px;
}
a:hover {
color: #00b7c3;
}
.header-container {
text-align: center;
}
.header-logo-and-text {
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
gap: 8px;
text-align: center;
margin-top: 8px;
}
.header-logo-and-text > img {
margin: 0;
}
.header-logo-and-text > h1 {
margin-bottom: 0;
margin-top: 0;
margin-left: 0;
margin-right: 0;
}
.header-buttons {
display: flex;
flex-direction: row;
justify-content: center;
gap: 8px;
}
.button {
background-color: var(--background);
padding: 8px;
border-radius: 4px;
margin: 8px;
color: var(--text);
text-decoration: none;
text-align: center;
display: inline-block;
}
.button:hover {
background-color: var(--secondary-background);
color: var(--text);
}
footer {
position: sticky;
top: 100%;
text-align: center;
padding: 8px;
}
@media screen and (prefers-color-scheme: light) {
:root {
--text: #000;
--background: #f1f1f1;
--secondary-background: #e1e1e1;
--background-darker: #fff;
}
body {
background-color: #fff;
color: #000;
}
.navbarSlogan {
color: #00b7c3;
}
.brand:hover {
opacity: .75;
}
a {
color: black;
}
a:hover {
color: #00b7c3;
}
::-webkit-scrollbar {
width: 8px;
height: 10px;
}
::-webkit-scrollbar-thumb {
border-radius: 8px;
background: #f1f1f1;
}
}
@media screen and (max-width: 900px) {
.main {
margin: 8px;
}
.navbarSlogan {
display: none;
}
.navbarImg {
height: 40px;
}
.instance-card {
width: 100%;
}
.instance-container {
/* i want a grid */
display: flex;
flex-direction: row;
gap: 8px;
margin-right: 0px;
margin-left: 0px;
}
}