abgame/static/css/base.css

249 lines
4.6 KiB
CSS

body {
font-family: 'Courier New', Courier, monospace;
background-color: var(--bg);
}
html,
body {
border-color: var(--br);
color: var(--fg);
}
hr {
display: none;
}
a {
color: var(--fg-lnk);
}
#header {
border-radius: 10px;
text-align: center;
width: 100%;
padding-top: 25px;
padding-bottom: 25px;
background-color: var(--bg-header);
color: var(--fg-header);
font-weight: bolder;
font-size: large;
}
#content {
min-width: 400px;
max-width: 900px;
width: 65%;
margin: 0;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
.ab {
float: none;
border-radius: 10px;
margin-top: 10px;
justify-content: center;
align-items: center;
display: flex;
padding: 5px;
background-color: var(--bg-ab);
}
.a {
float: left;
width: 45%;
box-sizing: border-box;
padding: 25px;
border-radius: 10px;
border: 1px solid transparent;
background-color: var(--bg-a);
color: var(--fg-a);
font-weight: bold;
text-align: left;
font-family: 'Courier New', Courier, monospace;
cursor: pointer;
text-indent: -25px;
padding-left: 50px;
hyphens: auto;
overflow: hidden;
text-overflow: ellipsis;
}
.b {
float: left;
width: 45%;
box-sizing: border-box;
padding: 25px;
border-radius: 10px;
border: 1px solid transparent;
background-color: var(--bg-b);
color: var(--fg-b);
font-weight: bold;
text-align: left;
font-family: 'Courier New', Courier, monospace;
cursor: pointer;
text-indent: -25px;
padding-left: 50px;
hyphens: auto;
overflow: hidden;
text-overflow: ellipsis;
}
input[type="radio"] {
clip: rect(0 0 0 0);
clip-path: inset(50%);
height: 1px;
overflow: hidden;
position: absolute;
white-space: nowrap;
width: 1px;
cursor: pointer;
}
.ab input:checked+label {
background-color: var(--bg-ab-chkd);
border: 1px solid var(--br-ab-chkd);
color: var(--fg-ab-chkd);
}
.separator {
float: left;
width: 10%;
box-sizing: border-box;
writing-mode: vertical-lr;
transform: rotate(210deg);
font-size: x-small;
font-weight: bold;
display: flex;
justify-content: center;
align-items: center;
color: var(--fg-sep);
}
#footer {
margin-top: 10px;
}
#questions {
font-size: small;
text-align: center;
width: 45%;
float: left;
border-radius: 10px;
padding-top: 25px;
padding-bottom: 25px;
color: var(--fg-que);
font-weight: bold;
}
#next {
text-align: center;
width: 45%;
float: left;
border: 0px;
border-radius: 10px;
padding-top: 25px;
padding-bottom: 25px;
background-color: var(--bg-nxt);
color: var(--fg-nxt);
font-weight: bold;
font-family: 'Courier New', Courier, monospace;
font-size: medium;
display: block;
cursor: pointer;
}
@media only screen and (max-width:1600px) {
#content {
min-width: 75%;
}
}
@media only screen and (max-width:1280px) {
#content {
min-width: 95%;
}
}
@media only screen and (max-width:640px) {
#content {
min-width: 95%;
transform: none;
position: absolute;
top: 5px;
left: 50%;
transform: translate(-50%);
}
#next {
min-width: 100%;
}
#questions {
min-width: 100%;
padding-top: 0px;
padding-bottom: 5px;
}
.a {
font-size: small;
}
.b {
font-size: small;
}
}
@media (prefers-color-scheme: dark) {
body {
background-color: var(--bg) !important;
}
#header {
background-color: var(--bg-header) !important;
color: var(--fg-header) !important;
}
.a {
border-color: transparent !important;
background-color: var(--bg-a) !important;
color: var(--fg-a) !important;
}
.b {
border-color: transparent !important;
background-color: var(--bg-b) !important;
color: var(--fg-b) !important;
}
.ab {
background-color: var(--bg-ab) !important;
}
.ab input:checked+label {
background-color: var(--bg-ab-chkd) !important;
border-color: var(--br-ab-chkd) !important;
color: var(--fg-ab-chkd) !important;
}
.separator {
color: var(--fg-sep);
}
#next {
border-color: initial !important;
background-color: var(--bg-nxt) !important;
color: var(--fg-nxt) !important;
}
#questions {
color: var(--fg-que) !important;
}
a {
color: var(--fg-lnk) !important;
}
}