1
0
dwelling-upload/web/assets/css/main.css

155 lines
3.1 KiB
CSS
Raw Normal View History

2022-02-07 04:48:44 +04:00
@font-face {
font-family: 'Roboto Condensed';
font-style: normal;
font-weight: 400;
src: local('RobotoCondensed'), local('RobotoCondensed-Regular'),
2022-02-08 19:00:55 +04:00
url(/assets/fonts/RobotoCondensed-Regular.ttf); }
2022-02-07 04:48:44 +04:00
@font-face {
font-family: 'Share Tech Mono';
font-style: normal;
font-weight: 400;
src: local('ShareTechMono'), local('ShareTechMono-Regular'),
url(/assets/fonts/ShareTechMono-Regular.ttf); }
2022-02-07 04:48:44 +04:00
:root {
--background-color: #0a0a0a;
--primary-color: #cd2682;
--secondary-color: #9f2b68;
--text-color: #f5f5f5;
2022-02-07 04:48:44 +04:00
--text-indent: 1.6rem;
scrollbar-color: var(--primary-color) var(--background-color); }
@media (prefers-color-scheme: light) {
:root {
--background-color: #f5f5f5;
--primary-color: #9f2b68;
--secondary-color: #cd2682;
--text-color: #0a0a0a; } }
* { margin: 0; }
::selection {
background-color: var(--secondary-color);
color: var(--background-color); }
a,
button {
color: var(--primary-color);
text-decoration: none; }
a:hover,
button:hover,
input[type="file"]::file-selector-button:hover {
2022-02-07 04:48:44 +04:00
color: var(--secondary-color);
cursor: pointer;
text-decoration: underline dotted;
transition: .5s; }
input[type="file"] {
color: var(--text-color);
font: inherit; }
input[type="file"]::file-selector-button,
2022-02-07 04:48:44 +04:00
button {
background: none;
border: none;
color: var(--primary-color);
2022-02-07 04:48:44 +04:00
font: inherit;
margin-left: .3rem;
2022-02-07 04:48:44 +04:00
padding: 0; }
input[type="text"] {
background-color: var(--background-color);
border: none;
border-bottom: 1px solid var(--primary-color);
color: var(--text-color);
font: inherit; }
2022-02-07 04:48:44 +04:00
p {
text-align: justify;
line-height: var(--text-indent);
text-indent: var(--text-indent); }
p:not(:last-child) { margin-bottom: .1rem; }
code {
font-family: 'Share Tech Mono';
font-size: 1.1rem;
letter-spacing: -1px; }
2022-02-07 04:48:44 +04:00
h1,
h2 {
font-size: 1.8rem;
font-variant: small-caps;
text-align: center;
margin-bottom: 1rem; }
h2 {
font-size: 1.4rem;
margin: 1rem 0; }
small { font-size: .8rem; }
2022-02-08 04:24:04 +04:00
.center { text-align: center; }
2022-02-07 04:48:44 +04:00
html { margin-left: calc(100vw - 100%); }
body {
background-color: var(--background-color);
color: var(--text-color);
font-family: 'Roboto Condensed', Roboto, sans-serif;
font-size: 1.1rem;
margin: 0 auto;
max-width: 960px;
width: 98%; }
header {
display: flex;
flex-wrap: wrap;
justify-content: space-between; }
2023-08-22 18:16:26 +04:00
header svg { width: 360px; }
2022-02-07 04:48:44 +04:00
2023-08-22 18:16:26 +04:00
header svg text { fill: var(--text-color); }
2022-02-07 04:48:44 +04:00
2023-08-22 18:16:26 +04:00
header svg text:first-child {
2022-02-07 04:48:44 +04:00
font-size: 2rem;
font-variant-caps: small-caps;
font-weight: bold; }
2023-08-22 18:16:26 +04:00
header svg text:last-child { font-size: .88rem; }
2022-02-07 04:48:44 +04:00
@media screen and (-webkit-min-device-pixel-ratio:0) {
2023-08-22 18:16:26 +04:00
header svg text:first-child { font-size: 2.082rem; } }
2022-02-07 04:48:44 +04:00
@-moz-document url-prefix() {
2023-08-22 18:16:26 +04:00
header svg text:first-child { font-size: 2rem; } }
2022-02-07 04:48:44 +04:00
nav { margin-top: .5rem; }
nav a { font-variant: small-caps; }
nav h1 {
color: var(--secondary-color);
margin: 0; }
section { margin-top: 1rem; }
footer {
font-size: .8rem;
text-align: center;
padding: 1rem 0; }
@media screen and (max-width: 640px) {
header { display: block; }
2023-08-22 18:16:26 +04:00
header svg {
2022-02-07 04:48:44 +04:00
margin: 0 auto;
width: 100%; }
nav {
width: 100%;
text-align: center; }
input[type="text"] { width: 100%; } }