abgame/static/css/base.css

406 lines
7.2 KiB
CSS
Raw Permalink Normal View History

2023-06-04 09:59:13 +02:00
#content::-webkit-scrollbar {
width: 0;
}
2023-06-02 09:48:48 +02:00
body {
font-family: 'Courier New', Courier, monospace;
2023-06-03 22:54:37 +02:00
background-color: var(--bg);
border-color: var(--br);
color: var(--fg);
2023-06-02 09:48:48 +02:00
}
2023-06-03 02:28:52 +02:00
hr {
display: none;
}
a {
2023-06-03 22:54:37 +02:00
color: var(--fg-lnk);
}
2023-06-05 10:32:01 +02:00
strong {
font-weight: bolder;
font-size: large;
}
a #help {
height: 0;
overflow: hidden;
text-decoration: none;
}
a:hover #help {
position: absolute;
2023-06-05 10:52:12 +02:00
top: 65px;
left: 50%;
2023-06-05 10:32:01 +02:00
height: auto;
2023-06-05 10:52:12 +02:00
width: 50%;
2023-06-05 10:32:01 +02:00
margin: auto;
padding: 20px;
overflow: visible;
text-decoration: none;
background-color: var(--bg-a);
color: var(--fg-a);
border: 4px solid var(--bg);
border-radius: 25px;
display: inline-block;
text-align: center;
2023-06-05 10:52:12 +02:00
transform: translate(-50%);
2023-06-05 10:32:01 +02:00
}
2023-06-02 09:48:48 +02:00
#header {
border-radius: 10px;
text-align: center;
width: 100%;
2023-06-04 09:47:20 +02:00
margin-top: 10px;
2023-06-02 09:48:48 +02:00
padding-top: 25px;
padding-bottom: 25px;
2023-06-03 22:54:37 +02:00
background-color: var(--bg-header);
color: var(--fg-header);
2023-06-03 12:13:50 +02:00
font-weight: bolder;
font-size: large;
2023-06-02 09:48:48 +02:00
}
#content {
min-width: 400px;
max-width: 900px;
2023-06-04 09:47:20 +02:00
max-height: 100%;
overflow: auto;
width: 65%;
2023-06-02 09:48:48 +02:00
margin: 0;
position: absolute;
top: 50%;
left: 50%;
2023-06-02 15:25:02 +02:00
transform: translate(-50%, -50%);
2023-06-02 09:48:48 +02:00
}
.ab {
2023-06-03 16:19:39 +02:00
float: none;
2023-06-02 09:48:48 +02:00
border-radius: 10px;
margin-top: 10px;
display: flex;
padding: 5px;
2023-06-03 22:54:37 +02:00
background-color: var(--bg-ab);
2023-06-02 09:48:48 +02:00
}
.a {
2023-06-03 16:19:39 +02:00
float: left;
flex: 1 0 45%;
2023-06-02 09:48:48 +02:00
box-sizing: border-box;
padding: 25px;
border-radius: 10px;
border: 1px solid transparent;
2023-06-03 22:54:37 +02:00
background-color: var(--bg-a);
color: var(--fg-a);
2023-06-02 14:14:01 +02:00
font-weight: bold;
2023-06-03 16:19:39 +02:00
text-align: left;
font-family: 'Courier New', Courier, monospace;
cursor: pointer;
2023-06-03 13:03:54 +02:00
text-indent: -25px;
padding-left: 50px;
hyphens: auto;
overflow: hidden;
text-overflow: ellipsis;
2023-06-02 09:48:48 +02:00
}
.b {
2023-06-03 16:19:39 +02:00
float: left;
flex: 1 0 45%;
2023-06-02 09:48:48 +02:00
box-sizing: border-box;
padding: 25px;
border-radius: 10px;
border: 1px solid transparent;
2023-06-03 22:54:37 +02:00
background-color: var(--bg-b);
color: var(--fg-b);
2023-06-02 14:14:01 +02:00
font-weight: bold;
2023-06-03 16:19:39 +02:00
text-align: left;
font-family: 'Courier New', Courier, monospace;
cursor: pointer;
2023-06-03 13:03:54 +02:00
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;
}
2023-06-03 16:19:39 +02:00
.ab input:checked+label {
2023-06-03 22:54:37 +02:00
background-color: var(--bg-ab-chkd);
border: 1px solid var(--br-ab-chkd);
color: var(--fg-ab-chkd);
2023-06-02 09:48:48 +02:00
}
.separator {
2023-06-03 16:19:39 +02:00
float: left;
2023-06-02 09:48:48 +02:00
width: 10%;
box-sizing: border-box;
writing-mode: vertical-lr;
2023-06-03 16:19:39 +02:00
transform: rotate(210deg);
2023-06-02 14:14:01 +02:00
font-size: x-small;
2023-06-03 12:04:59 +02:00
font-weight: bold;
2023-06-02 09:48:48 +02:00
display: flex;
justify-content: center;
align-items: center;
2023-06-03 22:54:37 +02:00
color: var(--fg-sep);
2023-06-02 09:48:48 +02:00
}
2023-06-02 10:55:43 +02:00
2023-06-02 15:25:02 +02:00
#footer {
margin-top: 10px;
2023-06-02 15:25:02 +02:00
}
#questions {
font-size: small;
text-align: center;
width: 45%;
float: left;
border-radius: 10px;
padding-top: 25px;
padding-bottom: 25px;
2023-06-03 22:54:37 +02:00
color: var(--fg-que);
font-weight: bold;
}
#next {
text-align: center;
width: 45%;
float: left;
border: 0px;
border-radius: 10px;
2023-06-04 01:19:02 +02:00
height: 56px;
margin-top: 7px;
2023-06-03 22:54:37 +02:00
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;
2023-06-02 15:25:02 +02:00
}
2023-06-04 15:04:33 +02:00
.box {
2023-06-04 12:18:28 +02:00
width: 45%;
float: left;
}
@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) {
2023-06-02 10:55:43 +02:00
#content {
min-width: 95%;
transform: none;
position: absolute;
top: 5px;
left: 50%;
2023-06-02 15:25:02 +02:00
transform: translate(-50%);
}
2023-06-02 15:25:02 +02:00
#next {
2023-06-02 19:08:17 +02:00
min-width: 100%;
2023-06-04 01:19:02 +02:00
margin-top: 20px;
}
#questions {
2023-06-02 19:08:17 +02:00
min-width: 100%;
padding-top: 0px;
padding-bottom: 5px;
}
2023-06-02 10:55:43 +02:00
.a {
font-size: small;
}
2023-06-03 16:19:39 +02:00
2023-06-02 10:55:43 +02:00
.b {
font-size: small;
}
2023-06-04 01:19:02 +02:00
.toggle {
min-width: 100%;
}
.toggle_label {
2023-06-04 01:26:41 +02:00
min-width: 100%;
2023-06-04 01:19:02 +02:00
}
2023-06-03 18:15:48 +02:00
}
@media (prefers-color-scheme: dark) {
body {
2023-06-03 22:54:37 +02:00
background-color: var(--bg) !important;
2023-06-03 18:15:48 +02:00
}
#header {
2023-06-03 22:54:37 +02:00
background-color: var(--bg-header) !important;
color: var(--fg-header) !important;
2023-06-03 18:15:48 +02:00
}
.a {
border-color: transparent !important;
2023-06-03 22:54:37 +02:00
background-color: var(--bg-a) !important;
color: var(--fg-a) !important;
2023-06-03 18:15:48 +02:00
}
.b {
border-color: transparent !important;
2023-06-03 22:54:37 +02:00
background-color: var(--bg-b) !important;
color: var(--fg-b) !important;
2023-06-03 18:15:48 +02:00
}
.ab {
2023-06-03 22:54:37 +02:00
background-color: var(--bg-ab) !important;
2023-06-03 18:15:48 +02:00
}
.ab input:checked+label {
2023-06-03 22:54:37 +02:00
background-color: var(--bg-ab-chkd) !important;
border-color: var(--br-ab-chkd) !important;
color: var(--fg-ab-chkd) !important;
2023-06-03 18:15:48 +02:00
}
.separator {
2023-06-03 22:54:37 +02:00
color: var(--fg-sep);
2023-06-03 18:15:48 +02:00
}
#next {
border-color: initial !important;
2023-06-03 22:54:37 +02:00
background-color: var(--bg-nxt) !important;
color: var(--fg-nxt) !important;
2023-06-03 18:15:48 +02:00
}
#questions {
2023-06-03 22:54:37 +02:00
color: var(--fg-que) !important;
2023-06-03 18:15:48 +02:00
}
a {
2023-06-03 22:54:37 +02:00
color: var(--fg-lnk) !important;
2023-06-03 18:15:48 +02:00
}
2023-06-05 10:52:12 +02:00
a:hover #help {
width: 80%;
}
2023-06-03 22:54:37 +02:00
}
2023-06-04 01:19:02 +02:00
#toggle_checkbox {
display: none;
}
.spacer {
width: 10%;
float: left;
}
.toggle {
width: 10%;
2023-06-04 12:18:28 +02:00
height: 64px;
2023-06-04 01:19:02 +02:00
float: left;
display: none;
}
.toggle_label {
display: block;
position: relative;
top: 35px;
right: 0;
left: 0;
width: 80%;
height: 56px;
margin: 0 auto;
background-color: var(--bg-ab);
border-radius: 25px;
transform: translateY(-50%);
cursor: pointer;
transition: 0.3s ease background-color;
overflow: hidden;
}
#star {
position: absolute;
top: 13px;
left: 13px;
width: 30px;
height: 30px;
transform: scale(1);
border-radius: 50%;
transition: 0.3s ease top, 0.3s ease left, 0.3s ease transform, 0.3s ease background-color;
z-index: 1;
}
#star-1 {
position: relative;
}
#star-2 {
position: absolute;
transform: rotateZ(36deg);
}
.star {
top: 0;
left: -7px;
font-size: 54px;
line-height: 28px;
color: var(--bg-a);
transition: 0.3s ease color;
}
#moon {
position: absolute;
bottom: -52px;
right: 8px;
width: 40px;
height: 40px;
background-color: var(--bg-a);
border-radius: 50%;
transition: 0.3s ease bottom;
}
#moon:before {
content: "";
position: absolute;
top: -12px;
left: -17px;
width: 40px;
height: 40px;
background-color: var(--bg-ab);
border-radius: 50%;
transition: 0.3s ease background-color;
}
#toggle_checkbox:checked+label {
background-color: var(--bg-b);
}
#toggle_checkbox:checked+label #star {
top: 0px;
left: 640px;
transform: scale(0.3);
background-color: var(--bg);
}
#toggle_checkbox:checked+label .star {
color: var(--bg-a);
}
#toggle_checkbox:checked+label #moon {
bottom: 8px;
}
#toggle_checkbox:checked+label #moon:before {
background-color: var(--bg-b);
}