Choices/public/assets/styles/base.css
Sebastian Zoglowek 2c4e4e8642 Build the assets
2026-03-10 14:20:47 +01:00

214 lines
3.9 KiB
CSS

/* =============================================
= Generic styling =
============================================= */
:root {
--color-primary: #005F75;
}
@media (prefers-color-scheme: dark) {
:root {
/* Demo defaults */
--body-bg: #272a2b;
--text-color: #cacaca;
--color-primary: #38daff;
--section-bg: #181a1b;
--section-color: #cacaca;
--hr-border: #373a3d;
--choices-primary-color: #38daff;
--choices-item-color: black;
--choices-bg-color: #101010;
--choices-bg-color-dropdown: #101010;
--choices-keyline-color: #3b3e40;
--choices-bg-color-disabled: #181a1b;
--choices-item-disabled-color: #eee;
--choices-disabled-color: #2d2d2d;
--choices-highlighted-color: #16292d;
--choices-icon-cross: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEiIGhlaWdodD0iMjEiIHZpZXdCb3g9IjAgMCAyMSAyMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSIjMDAwIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik0yLjU5Mi4wNDRsMTguMzY0IDE4LjM2NC0yLjU0OCAyLjU0OEwuMDQ0IDIuNTkyeiIvPjxwYXRoIGQ9Ik0wIDE4LjM2NEwxOC4zNjQgMGwyLjU0OCAyLjU0OEwyLjU0OCAyMC45MTJ6Ii8+PC9nPjwvc3ZnPg==");
--choices-icon-cross-inverse: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEiIGhlaWdodD0iMjEiIHZpZXdCb3g9IjAgMCAyMSAyMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSIjRkZGIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik0yLjU5Mi4wNDRsMTguMzY0IDE4LjM2NC0yLjU0OCAyLjU0OEwuMDQ0IDIuNTkyeiIvPjxwYXRoIGQ9Ik0wIDE4LjM2NEwxOC4zNjQgMGwyLjU0OCAyLjU0OEwyLjU0OCAyMC45MTJ6Ii8+PC9nPjwvc3ZnPg==");
color-scheme: dark;
}
input, select {
color: #fff;
}
}
* {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
*,
*::before,
*::after {
box-sizing: border-box;
}
html,
body {
position: relative;
margin: 0;
width: 100%;
}
body {
font-family: "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
font-size: 16px;
line-height: 1.4;
color: var(--text-color, #fff);
background-color: var(--body-bg, #333);
overflow-x: hidden;
}
label {
display: block;
margin-bottom: 8px;
font-size: 14px;
font-weight: 500;
cursor: pointer;
}
p {
margin-top: 0;
margin-bottom: 8px;
}
hr {
display: block;
margin: 30px 0;
border: 0;
border-bottom: 1px solid var(--hr-border, #eaeaea);
height: 1px;
}
h1,
h2,
h3,
h4,
h5,
h6 {
margin-top: 0;
margin-bottom: 12px;
font-weight: 400;
line-height: 1.2;
}
a,
a:visited,
a:focus {
color: var(--link-color, #fff);
text-decoration: none;
font-weight: 600;
}
.form-control {
display: block;
width: 100%;
background-color: var(--form-bg, #f9f9f9);
padding: 12px;
border: 1px solid var(--form-boder, #ddd);
border-radius: 2.5px;
font-size: 14px;
appearance: none;
margin-bottom: 24px;
}
h1,
.h1 {
font-size: 32px;
}
h2,
.h2 {
font-size: 24px;
}
h3,
.h3 {
font-size: 20px;
}
h4,
.h4 {
font-size: 18px;
}
h5,
.h5 {
font-size: 16px;
}
h6,
.h6 {
font-size: 14px;
}
label + p {
margin-top: -4px;
}
.container {
display: block;
margin: auto;
max-width: 40em;
padding: 48px;
}
@media (max-width: 620px) {
.container {
padding: 0;
}
}
.section {
background-color: var(--section-bg, #fff);
padding: 24px;
color: var(--section-color, #333);
}
.section a,
.section a:visited,
.section a:focus {
color: var(--link-color-section, var(--color-primary));
}
/** Set the section color on the dropdown list to not inherit the white color */
body > .choices__list {
color: var(--section-color, #333);
}
.logo {
display: block;
margin-bottom: 12px;
}
.logo-img {
width: 100%;
height: auto;
display: inline-block;
max-width: 100%;
vertical-align: top;
padding: 6px 0;
}
.visible-ie {
display: none;
}
.push-bottom {
margin-bottom: 24px;
}
.zero-bottom {
margin-bottom: 0;
}
.zero-top {
margin-top: 0;
}
.text-center {
text-align: center;
}
[data-test-hook] {
margin-bottom: 24px;
}
/* ===== End of Section comment block ====== */