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

170 lines
3.1 KiB
CSS
Raw Permalink Normal View History

2023-02-05 00:54:18 +04:00
@font-face {
font-family: 'Roboto Condensed';
font-style: normal;
font-weight: 400;
src: local('RobotoCondensed'), local('RobotoCondensed-Regular'),
url(/assets/fonts/RobotoCondensed-Regular.ttf); }
2024-06-19 03:09:33 +04:00
2023-02-05 00:54:18 +04:00
:root {
--background-color: #0a0a0a;
--background-image: url('/assets/img/alpha1918_z.webp');
--primary-color: #cd2682;
--secondary-color: #9f2b68;
--text-color: #f5f5f5;
--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; } }
2024-06-19 03:09:33 +04:00
2024-06-30 00:11:30 +04:00
* {
margin: 0;
padding: 0; }
2023-02-05 00:54:18 +04:00
2024-06-19 03:09:33 +04:00
2023-02-05 00:54:18 +04:00
::selection {
background-color: var(--secondary-color);
color: var(--background-color); }
2024-06-19 03:09:33 +04:00
2023-02-05 00:54:18 +04:00
a,
button {
color: var(--primary-color);
text-decoration: none;
word-wrap: break-word; }
:is(a, button):hover {
color: var(--secondary-color);
text-decoration: underline dotted;
cursor: pointer;
transition: .5s; }
button {
background: none;
border: none;
font: inherit;
padding: 0; }
2024-06-19 03:09:33 +04:00
2023-02-05 00:54:18 +04:00
p {
text-align: justify;
line-height: var(--text-indent);
text-indent: var(--text-indent); }
p:not(:last-child) { margin-bottom: .1rem; }
.center {
2023-02-05 00:54:18 +04:00
text-align: center;
text-indent: 0; }
2024-06-19 03:09:33 +04:00
2023-02-05 00:54:18 +04:00
h1 {
font-size: 1.8rem;
text-align: center;
color: var(--secondary-color);
margin: 0; }
h1,
h2 { font-variant: small-caps; }
h2,
h3 {
2024-06-25 04:39:15 +04:00
font-size: 1.4rem;
2023-02-05 00:54:18 +04:00
text-align: center;
margin: 1rem; }
h3 { font-size: 1.05rem; }
img { max-width: 100%; }
2023-02-05 00:54:18 +04:00
table {
border-collapse: collapse;
margin-bottom: .5rem; }
tr :is(th, td) {
text-align: left;
vertical-align: top; }
tr :is(th, td):not(:last-child) { padding-right: .5rem; }
2023-08-12 23:58:13 +04:00
tr a:not(:last-child) { margin-right: .25rem; }
2024-06-19 03:09:33 +04:00
2023-02-05 00:54:18 +04:00
.highlighted { color: var(--primary-color); }
2024-06-19 03:09:33 +04:00
2023-02-05 00:54:18 +04:00
html {
margin-left: calc(100vw - 100%);
margin-right: 0; }
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;
min-height: 100vh;
2023-02-05 00:54:18 +04:00
width: 98%; }
@media screen and (min-width: 1280px) {
body {
background-image: var(--background-image);
background-size: min(calc((100vw - 960px)/2), 25vw);
background-repeat: no-repeat;
2024-06-19 03:09:33 +04:00
background-position: bottom left; } }
2023-02-05 00:54:18 +04:00
2024-06-19 03:09:33 +04:00
header.main {
2023-02-05 00:54:18 +04:00
display: flex;
justify-content: space-between; }
2024-06-19 03:09:33 +04:00
header.main svg { width: 360px; }
2023-02-05 00:54:18 +04:00
2024-06-19 03:09:33 +04:00
header.main svg text { fill: var(--text-color); }
2023-02-05 00:54:18 +04:00
2024-06-19 03:09:33 +04:00
header.main svg text:first-child {
font-size: 3.55rem;
2023-02-05 00:54:18 +04:00
font-variant-caps: small-caps;
font-weight: bold; }
2024-06-19 03:09:33 +04:00
header.main svg text:last-child { font-size: 1.5rem; }
2023-02-05 00:54:18 +04:00
2024-06-19 03:09:33 +04:00
@supports (-moz-appearance: none) {
header.main svg text:last-child { transform: scale(.993, 1); } }
2023-02-05 00:54:18 +04:00
2024-06-19 03:09:33 +04:00
header.main nav {
align-items: center;
display: flex;
flex-direction: column;
font-variant: small-caps;
2024-06-21 00:54:01 +04:00
width: 300px; }
2023-02-05 00:54:18 +04:00
2024-06-30 00:12:18 +04:00
header.main nav ul {
2024-06-19 03:09:33 +04:00
display: flex;
justify-content: space-evenly;
2024-06-30 00:12:18 +04:00
list-style: none;
2024-06-19 03:09:33 +04:00
width: 100%; }
2023-02-05 00:54:18 +04:00
section {
margin-top: 1rem;
max-width: 100%; }
footer {
font-size: .8rem;
text-align: center;
padding: 1rem 0; }
2024-06-19 03:09:33 +04:00
@media screen and (max-width: 740px) {
header.main {
align-items: center;
flex-direction: column; }
2023-02-05 00:54:18 +04:00
2024-06-19 03:09:33 +04:00
header.main svg { width: 100%; } }