zed/crates/server/styles.css

137 lines
2.4 KiB
CSS
Raw Normal View History

/* This file is compiled to /assets/styles/tailwind.css via script/tailwind */
2021-09-20 17:34:18 +03:00
@import url("https://fonts.googleapis.com/css2?family=Spectral:ital,wght@0,200;0,300;1,200;1,300&display=swap");
@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,100;0,300;0,600;1,100;1,300;1,600&display=swap");
@tailwind base;
@tailwind components;
@tailwind utilities;
@layer base {
2021-09-20 17:34:18 +03:00
html {
2021-09-22 20:04:14 +03:00
font-size: 110%;
2021-09-20 17:34:18 +03:00
text-rendering: geometricPrecision;
}
2021-09-20 22:42:30 +03:00
@media screen and (min-width: 1024px) {
html {
font-size: 125%;
}
}
2021-09-20 17:34:18 +03:00
h1 {
@apply text-4xl;
@apply tracking-tighter;
}
h2 {
@apply text-3xl;
@apply tracking-tighter;
}
h3 {
@apply text-2xl;
@apply tracking-tighter;
}
h4 {
@apply text-xl;
}
.underline,
.hover\:underline:hover {
2021-09-21 01:31:06 +03:00
text-underline-offset: 6px;
2021-09-20 17:34:18 +03:00
}
2021-09-20 22:42:30 +03:00
@media screen and (min-width: 1024px) {
2021-09-20 17:34:18 +03:00
.text-columns-2 {
column-count: 2;
column-gap: 3rem;
2021-09-16 22:01:50 +03:00
}
2021-09-16 22:40:12 +03:00
2021-09-20 17:34:18 +03:00
}
2021-09-21 01:02:04 +03:00
.site-nav a:not(.active) .nav-active-arrow {
display: none;
}
.site-nav a.active .nav-active-arrow {
display: flex;
}
2021-09-20 17:34:18 +03:00
.site-mobile-nav a.active {
font-weight: bold;
}
2021-09-20 17:34:18 +03:00
.text-columns-2 {
-webkit-column-break-inside: avoid;
page-break-inside: avoid;
break-inside: avoid;
}
.text-columns-2 p {
break-inside: avoid;
}
2021-09-21 00:53:10 +03:00
.alternate-bg:nth-of-type(even) {
background-color: rgba(255,255,255,0.06);
}
2021-09-23 22:43:35 +03:00
/* div:not(.type-prose) code {
2021-09-23 22:43:35 +03:00
background-color: rgba(255,255,255,0.15);
padding: 0px 4px;
border-radius: 2px;
color: #eee;
} */
2021-09-21 00:53:10 +03:00
2021-09-20 17:34:18 +03:00
/* This fixes scrollbar jump */
@media screen and (min-width: 960px) {
html {
margin-left: calc(100vw - 100%);
margin-right: 0;
2021-09-16 22:40:12 +03:00
}
2021-09-20 17:34:18 +03:00
}
:root {
--color: white;
--disabled: #959495;
}
.checkbox {
color: var(--color);
}
.checkbox--disabled {
color: var(--disabled);
}
.checkbox__control {
width: 30px;
height: 30px;
}
.checkbox__control svg {
transform: scale(0);
transform-origin: center center;
}
2021-09-25 00:20:33 +03:00
.checkbox__brackets {
left: -1px;
top: -1px;
}
2021-09-25 00:20:33 +03:00
.checkbox__input input {
opacity: 0;
width: 30px;
height: 30px;
}
.checkbox__input input:focus + .checkbox__control {
box-shadow: 0 0 0 2px #000, 0 0 0 4px #3b57bc99
}
.checkbox__input input:checked + .checkbox__control svg {
transform: scale(1);
}
.checkbox__input input:disabled + .checkbox__control {
color: var(--disabled);
}
2021-09-20 17:34:18 +03:00
}