Dwelling/homepage/static/assets/css/main.css

156 lines
3.0 KiB
CSS
Raw Permalink Normal View History

2021-02-10 01:01:50 +04:00
@font-face {
font-family: 'Roboto Condensed';
font-style: normal;
font-weight: 400;
src: local('RobotoCondensed'), local('RobotoCondensed-Regular'),
2021-11-15 02:48:53 +04:00
url(/shared/fonts/RobotoCondensed-Regular.ttf); }
2021-02-10 01:01:50 +04:00
:root {
--background-color: #0a0a0a;
2023-01-15 20:07:12 +04:00
--background-image: url('/shared/img/alpha1918_z.webp');
2021-02-10 01:01:50 +04:00
--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; } }
* { margin: 0; }
::selection {
background-color: var(--secondary-color);
color: var(--background-color); }
2022-08-31 08:05:41 +04:00
a,
button {
2021-02-10 01:01:50 +04:00
color: var(--primary-color);
2022-01-22 18:57:41 +04:00
text-decoration: none;
word-wrap: break-word; }
2021-02-10 01:01:50 +04:00
:is(a, button):hover {
2021-02-10 01:01:50 +04:00
color: var(--secondary-color);
text-decoration: underline dotted;
2022-08-31 08:05:41 +04:00
cursor: pointer;
2021-02-10 01:01:50 +04:00
transition: .5s; }
2022-08-31 08:05:41 +04:00
button {
background: none;
border: none;
font: inherit;
padding: 0; }
2021-02-10 01:01:50 +04:00
p {
text-align: justify;
line-height: var(--text-indent);
text-indent: var(--text-indent); }
p:not(:last-child) { margin-bottom: .1rem; }
p.center {
text-align: center;
text-indent: 0; }
2021-02-10 01:01:50 +04:00
h1 {
font-size: 1.8rem;
text-align: center;
color: var(--secondary-color);
margin: 0; }
h1,
h2 { font-variant: small-caps; }
h2 { font-size: 1.4rem; }
2021-02-10 01:01:50 +04:00
h2,
h3 {
text-align: center;
margin: 1rem; }
h3 { font-size: 1.05rem; }
2021-03-13 00:02:58 +04:00
2021-02-10 01:01:50 +04:00
table {
border-collapse: collapse;
margin-bottom: .5rem; }
tr :is(th, td) {
2021-02-10 01:01:50 +04:00
text-align: left;
vertical-align: top; }
tr :is(th, td):not(:last-child) { padding-right: .5rem; }
2021-02-10 01:01:50 +04:00
2022-10-26 01:52:16 +04:00
.highlighted { color: var(--primary-color); }
2021-02-10 01:01:50 +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;
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;
background-position: bottom left;
}
}
2021-02-10 01:01:50 +04:00
header {
display: flex;
flex-wrap: wrap;
justify-content: space-between; }
#logo {
display: block;
width: 360px; }
#logo text { fill: var(--text-color); }
#logo .logo {
font-size: 2rem;
font-variant-caps: small-caps;
font-weight: bold; }
@media screen and (-webkit-min-device-pixel-ratio:0) {
#logo .logo { font-size: 2.082rem; } }
@-moz-document url-prefix() {
#logo .logo { font-size: 2rem; } }
#logo .under { font-size: .88rem; }
nav { margin-top: .5rem; }
nav a { font-variant: small-caps; }
nav a:not(:first-child) { margin-left: .6rem; }
section {
margin-top: 1rem;
max-width: 100%; }
footer {
font-size: .8rem;
text-align: center;
padding: 1rem 0; }
@media screen and (max-width: 640px) {
body > header { display: block; }
#logo { width: 100%; }
2022-10-26 01:52:16 +04:00
body > header nav { text-align: center; } }