www.techtransthai.org/style.css
Late Night Defender a3bbeeb88c
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
improve css logic for small screens
2024-11-09 06:14:30 +07:00

278 lines
5.2 KiB
CSS

@import url("navbar.css");
:root {
--white: #fff;
--black: #000;
font-family: system-ui;
}
p {font-size: 11pt;}
h1 {margin-top: 3vh;}
.centerscreen {
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
}
.logo {
font-weight: bold;
text-decoration: none;
}
.header {
display: flex;
justify-content: center;
align-items: center;
}
.banner {
width: 100%;
text-align: center;
font-weight: bold;
padding: 0.2cm;
border-radius:10px;
}
.name {
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
}
.grid-container {
display: grid;
justify-content: center;
grid-template-areas:
'left middle right'
}
.middle {
grid-area: middle;
width: 90vw;
max-width: 15cm;
}
.middle-large {
grid-area: middle;
width: 80vw;
max-width: 35cm;
}
.description {
font-size: 10pt;
margin-top: -0.3cm;
opacity: 0.7;
}
.pronouns {
font-size: 10pt;
opacity: 0.5;
margin-top: -0.5cm;
margin-bottom: 0.5cm;
}
.section {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
grid-gap: 1rem;
}
.button {
border-radius: 6px;
text-decoration: none;
font-weight: bold;
padding: 10px 10px;
margin-right: 0.25cm;
margin-bottom: 0.25cm;
transition-duration: 0.2s;
}
.gtk-button-pill {
position: relative;
width: auto;
height: 44px;
border-radius: 22px;
background-color: rgba(53, 132, 228, 1);
color: var(--white);
text-decoration: none;
font-weight: bold;
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
gap: 0px;
padding: 0px 32px;
flex-wrap: nowrap;
}
.gtk-button {
border-radius: 6px;
text-decoration: none;
font-weight: bold;
padding: 10px 10px;
margin-right: 0.25cm;
margin-bottom: 0.25cm;
transition-duration: 0.2s;
background-color: rgba(53, 132, 228, 1);
color: var(--white);
}
.gtk-button:hover {background-color: rgba(53, 132, 228, 0.9);}
.itemcard {
display: grid;
border-radius: 12px;
text-decoration: none;
height: 3cm;
transition-duration: 0.2s;
box-shadow: 0px 1px 4px 1px rgba(0, 0, 0, 0.13);
}
.infocard {
border-radius: 12px;
text-decoration: none;
padding-left: 10px;
box-shadow: 0px 1px 4px 1px rgba(0, 0, 0, 0.13);
}
.itemcard-stealth {
display: grid;
border-radius: 12px;
text-decoration: none;
height: 3cm;
transition-duration: 0.2s;
}
.list {
border-radius: 12px 12px 12px 12px;
box-shadow: 0px 1px 4px 1px rgba(0, 0, 0, 0.13);
margin-bottom: 50px;
}
.listaction {
display: flex;
align-items: center;
}
.listactionmini {
display: grid;
grid-template-columns: 1fr 1cm;
text-decoration: none;
align-items: center;
min-height: 1.5cm;
}
.row {
display: grid;
grid-template-columns: 1fr 1cm;
align-items: center;
min-height: 1.5cm;
}
.row-subtitle {
margin-top: -0.2cm;
font-size: 10pt;
opacity: 0.4;
text-decoration: none;
}
.row-title {
margin-top: 0.2cm;
text-decoration: none;
}
.row-title-no-subtitle {
display: grid;
align-items: center;
text-decoration: none;
}
.propertyrow {
display: grid;
align-items: center;
min-height: 1.5cm;
}
.propertyrow-property {
margin-top: 0.2cm;
font-size: 10pt;
opacity: 0.4;
text-decoration: none;
}
.propertyrow-value {
margin-top: -0.2cm;
text-decoration: none;
}
.togglegroups-background {
display: flex;
border-radius: 12px;
padding: 5px;
font-weight: bold;
}
.togglegroups-highlighted {
border-radius: 6px;
padding: 5px;
box-shadow: 0px 1px 4px 1px rgba(0, 0, 0, 0.13);
text-decoration: none;
}
.togglegroups-nohighlight {
border-radius: 6px;
padding: 5px;
text-decoration: none;
}
.separator {height: 1px;}
.quickbuttons {
display: flex;
flex-wrap: wrap;
}
/* For tablet screens */
@media only screen and (max-width: 1366px) {
.middle-large {width: 90vw;}
}
/* For phone screens */
@media only screen and (max-width: 750px) {
.middle-large {margin-top: 1cm;}
}
@media (prefers-color-scheme: light) {
body {background-color: #fafafa;}
html * {color: var(--black);}
.list {background-color: var(--white);}
.button {background-color: rgba(0, 0, 0, 0.08);}
.button:hover {background-color: rgba(0, 0, 0, 0.18);}
.togglegroups-background {background-color: rgba(0, 0, 0, 0.08);}
.togglegroups-highlighted {
background-color: var(--white);
}
.itemcard {background-color: var(--white);}
.itemcard:hover {background-color: #fafafa;}
.itemcard-stealth:hover {background-color: #e0e0e0;}
.infocard {background-color: var(--white);}
.separator {background-color: rgba(237, 237, 237, 1);}
.banner {background-color: #BFD7F3;}
}
@media (prefers-color-scheme: dark) {
body {background-color: #222222;}
html * {color: var(--white);}
.list {background-color: #363636;}
.button {background: rgba(255, 255, 255, 0.1);}
.button:hover {background: rgba(255, 255, 255, 0.18);}
.togglegroups-background {background: rgba(255, 255, 255, 0.1);}
.itemcard {background-color: #303030;}
.itemcard:hover {background-color: #4a4a4a;}
.itemcard-stealth:hover {background-color: #4a4a4a;}
.infocard {background-color: #303030;}
.separator {background-color: #232323;}
.banner {background-color: #29415E;}
}