khguide/public/styles/common/base.css

197 lines
2.8 KiB
CSS
Raw Normal View History

@import url("./colors.css");
2025-02-10 00:57:14 +02:00
body {
position: relative;
min-height: 98vh;
background-color: var(--bg-color);
color: var(--text-color);
2025-02-10 00:57:14 +02:00
}
footer {
text-align: center;
position: absolute;
bottom: 0;
width: 100%;
* {
margin-bottom: 0;
}
}
#content {
padding-bottom: 2.5rem;
}
table {
width: 100%;
text-align: center;
vertical-align: middle;
border-collapse: collapse;
margin-top: 10px;
thead th {
background-color: var(--bg-dark-color);
2025-02-10 00:57:14 +02:00
}
2025-10-26 00:06:36 +03:00
tbody tr:hover {
background-color: #4f4f4f;
}
& tr,
th,
td {
border: 1px solid #515151;
padding: 7px;
}
2025-02-10 00:57:14 +02:00
}
ul {
line-height: 1.5;
}
a {
color: var(--link-color);
2025-02-10 00:57:14 +02:00
text-decoration: none;
&:visited {
color: var(--link-visited-color);
}
2025-02-10 00:57:14 +02:00
&:hover {
color: var(--link-hover-color);
2025-02-10 00:57:14 +02:00
}
}
button {
margin-left: 16px;
background: var(--button-bg-color);
color: var(--text-color);
2025-02-10 00:57:14 +02:00
padding: 8px;
border-color: var(--button-border-color);
2025-02-10 00:57:14 +02:00
border-style: groove;
border-bottom-color: var(--primary-color);
2025-02-10 00:57:14 +02:00
transition-duration: 0.1s;
&:hover {
background: var(--button-hover-bg-color);
2025-02-10 00:57:14 +02:00
}
&:active {
background: var(--button-active-bg-color);
2025-02-10 00:57:14 +02:00
transform: translateY(1px);
}
&.disabled {
opacity: 0.6;
cursor: not-allowed;
}
}
input[type="text"] {
background-color: var(--bg-color);
border: 1px solid var(--button-border-color);
border-radius: 5px;
color: var(--text-color);
padding: 6px;
outline: none;
&:active,
&:focus {
border: 1px solid var(--primary-color);
}
}
input[type="checkbox"],
input[type="radio"] {
appearance: none;
position: relative;
cursor: pointer;
width: 24px;
height: 24px;
padding-top: 8px;
2025-07-13 23:56:34 +03:00
& + label {
cursor: pointer;
}
&::before {
position: absolute;
width: 100%;
height: 100%;
content: "";
background-color: var(--bg-dark-color);
border: 1px solid var(--button-border-color);
border-radius: 5px;
}
&:hover::before {
background-color: var(--bg-light-color);
}
&:checked::after {
position: absolute;
content: "\2713";
color: var(--primary-color);
font-size: 48px;
top: -10px;
left: -4px;
align-content: center;
text-align: center;
white-space: pre;
}
&:checked:hover::after {
color: var(--primary-light-color);
}
}
2025-10-26 00:06:36 +03:00
input[type="radio"] {
&::before {
border-radius: 20px;
}
&:checked:after {
font-size: 16px;
top: 10px;
left: 6px;
}
&:checked::after {
content: "\25CF";
}
}
2025-10-26 00:06:36 +03:00
.help {
display: inline-block;
vertical-align: middle;
padding: 0px 8px;
&:after {
content: "?";
font-size: 24px;
}
}
.tooltip-wrapper {
position: relative;
.tooltip {
visibility: hidden;
background-color: var(--bg-light-color);
position: absolute;
top: -42px;
color: var(--text-color);
text-align: center;
border-radius: 6px;
padding: 8px;
opacity: 0;
transition: opacity 0.3s;
z-index: 1;
}
&:hover .tooltip {
visibility: visible;
opacity: 1;
}
}