wavelovers/docs/css/styles.css

492 lines
10 KiB
CSS
Raw Normal View History

2022-07-23 23:01:23 +03:00
/* ------------------------------ */
/* Wavelovers styles */
/* version: dated 2022.08.29 */
2022-07-23 23:01:23 +03:00
/* author: Eugene Serb */
/* ------------------------------ */
@charset 'UTF-8';
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,300;0,400;0,500;1,300;1,400;1,500&display=swap');
/* ------------------------------ */
/* RESET AND BASE STYLES' TUNE UP */
/* ------------------------------ */
:root {
2022-08-28 13:35:58 +03:00
/* Simple colors */
--color-white: #FFFFFF;
--color-black: #000000;
--color-milk: #F5F5F5;
--color-coal: #3C3C3C;
/* ---------------------- */
/* Palette of five colors */
--color-a: #E27396;
--color-b: #EA9AB2;
--color-c: #EFCFE3;
--color-d: #EAF2D7;
--color-e: #B3DEE2;
}
2022-06-20 19:01:16 +03:00
:root {
2022-08-28 13:35:58 +03:00
/* Base numbers */
--number-border-radius: 8px;
--number-border-size: 2px;
2022-06-20 19:01:16 +03:00
}
@media (prefers-color-scheme: light) {
2022-08-28 13:35:58 +03:00
:root {
/* Base colors */
--color-border: var(--color-a);
--color-background: var(--color-white);
--color-text: var(--color-coal);
--color-text-header: var(--color-coal);
--color-link: var(--color-b);
--color-link-hover: var(--color-a);
--color-selection: var(--color-b);
--color-fieldset-border: var(--color-c);
--color-table-header-background: var(--color-b);
--color-table-header-text: var(--color-white);
--color-table-item: var(--color-c);
/* Components colors */
--color-header-background: var(--color-b);
--color-header-borderline: var(--color-a);
--color-header-selection: var(--color-a);
--color-header-logo: var(--color-white);
--color-header-navigation-link: var(--color-white);
--color-header-navigation-link-hover: var(--color-white);
--color-footer-borderline: var(--color-a);
--color-footer-text: var(--color-coal);
--color-content-item-background: var(--color-milk);
--color-pattern-button: var(--color-c);
--color-pattern-text: var(--color-white);
}
}
@media (prefers-color-scheme: dark) {
2022-08-28 13:35:58 +03:00
:root {
/* Base colors */
--color-border: var(--color-a);
--color-background: var(--color-coal);
--color-text: var(--color-coal);
--color-text-header: var(--color-coal);
--color-link: var(--color-b);
--color-link-hover: var(--color-a);
--color-selection: var(--color-b);
--color-fieldset-border: var(--color-c);
--color-table-header-background: var(--color-b);
--color-table-header-text: var(--color-white);
--color-table-item: var(--color-c);
/* Components colors */
--color-header-background: var(--color-a);
--color-header-borderline: var(--color-b);
--color-header-selection: var(--color-b);
--color-header-logo: var(--color-white);
--color-header-navigation-link: var(--color-white);
--color-header-navigation-link-hover: var(--color-white);
--color-footer-borderline: var(--color-a);
--color-footer-text: var(--color-milk);
--color-content-item-background: var(--color-c);
--color-pattern-button: var(--color-milk);
--color-pattern-text: var(--color-black);
}
}
*, ::after, ::before {
2022-08-28 13:35:58 +03:00
margin: 0;
padding: 0;
box-sizing: border-box;
}
html {
2022-08-28 13:35:58 +03:00
font-family: 'Roboto', sans-serif;
direction: ltr;
font-size: 16px;
line-height: 1.382em;
}
body {
2022-08-28 13:35:58 +03:00
display: flex;
flex-direction: column;
justify-content: space-between;
min-height: 100vh;
background: var(--color-background);
}
::selection {
2022-08-28 13:35:58 +03:00
background: var(--color-selection);
}
2022-06-20 19:01:16 +03:00
:focus {
2022-08-28 13:35:58 +03:00
border-bottom: 2px solid var(--color-selection);
2022-06-20 19:01:16 +03:00
}
:focus-visible {
2022-08-28 13:35:58 +03:00
outline: 2px solid var(--color-selection);
border-color: transparent;
}
h1, h2, h3, h4, h5, h6 {
2022-08-28 13:35:58 +03:00
color: var(--color-text-header);
font-weight: 500;
margin-block-start: 0.382em;
margin-block-end: 0.618em;
line-height: 1.382em;
}
h1 { font-size: 2em; }
h2 { font-size: 1.5em; }
h3 { font-size: 1.17em; }
h4 { font-size: 1em; }
h5 { font-size: 0.83em; }
h6 { font-size: 0.67em; }
big { font-size: larger; }
small { font-size: smaller; }
span, p, article, blockquote {
2022-08-28 13:35:58 +03:00
color: var(--color-text);
font-weight: 300;
}
ol, ul {
2022-08-28 13:35:58 +03:00
padding: 16px;
}
ul {
2022-08-28 13:35:58 +03:00
list-style-type: circle;
}
a {
2022-08-28 13:35:58 +03:00
background-color: transparent;
border-bottom: 2px solid transparent;
font-weight: 500;
color: var(--color-link);
text-decoration: none;
}
2022-08-28 13:35:58 +03:00
a:hover {
border-bottom: 2px solid var(--color-link-hover);
color: var(--color-link-hover);
transition: all 0.5s ease;
text-decoration: none;
}
2022-07-25 13:59:41 +03:00
dl dd:last-child {
2022-08-28 13:35:58 +03:00
margin-bottom: 0;
2022-07-25 13:59:41 +03:00
}
dt {
2022-08-28 13:35:58 +03:00
margin-bottom: 4px;
font-size: 18px;
font-weight: 500;
font-style: oblique;
2022-07-25 13:59:41 +03:00
}
dd {
2022-08-28 13:35:58 +03:00
margin-bottom: 16px;
padding-left: 16px;
font-size: 16px;
font-weight: 300;
font-style: normal;
2022-07-25 13:59:41 +03:00
}
/* ----- */
/* FORMS */
/* ----- */
hr {
2022-08-28 13:35:58 +03:00
margin-block-start: 0.5em;
margin-block-end: 0.5em;
}
2022-06-20 19:01:16 +03:00
legend {
2022-08-28 13:35:58 +03:00
padding: 2px 4px;
text-align: left;
2022-06-20 19:01:16 +03:00
}
fieldset {
2022-08-28 13:35:58 +03:00
border: 2px solid var(--color-border-alpha);
border-radius: var(--number-border-radius);
padding: 8px;
2022-06-20 19:01:16 +03:00
}
button, textarea, select, input {
2022-08-28 13:35:58 +03:00
padding: 4px 8px;
border: 2px solid var(--color-link);
border-radius: var(--number-border-radius);
background: var(--color-milk);
color: var(--color-text);
font-size: 16px;
line-height: 1.382em;
white-space: nowrap;
}
button:hover, input:hover,
textarea:hover, select:hover {
border: 2px solid var(--color-link-hover);
transition: all 0.5s ease;
}
option {
2022-08-28 13:35:58 +03:00
background: var(--color-background);
color: var(--color-text);
font-size: 16px;
line-height: 1.382em;
}
2022-08-28 13:35:58 +03:00
option:hover {
background-color: var(--color-selection);
color: var(--color-white);
}
input[type=range] {
2022-08-28 13:35:58 +03:00
width: 100%;
margin: 8px 0;
padding: 4px 0;
border: 0px solid var(--color-link);
-webkit-appearance: none;
}
2022-08-28 13:35:58 +03:00
input[type=range]:hover {
margin: 8px 0;
padding: 4px 0;
border: 0px solid var(--color-link-hover);
}
2022-08-28 13:35:58 +03:00
input[type=range]:focus {
outline: none;
}
2022-08-28 13:35:58 +03:00
input[type=range]::-webkit-slider-runnable-track {
width: 100%;
height: 8px;
border: 0px solid #000101;
border-radius: 8px;
box-shadow: 0px 0px 0px #000000, 0px 0px 0px #0d0d0d;
background: var(--color-b);
cursor: pointer;
}
input[type=range]::-webkit-slider-thumb {
-webkit-appearance: none;
width: 16px;
height: 16px;
margin-top: -4px;
border: 0px solid #000000;
border-radius: 8px;
box-shadow: 0px 0px 0px #000000, 0px 0px 0px #0d0d0d;
background: var(--color-a);
cursor: pointer;
}
input[type=range]:focus::-webkit-slider-runnable-track {
background: var(--color-b);
}
input[type=range]::-moz-range-track {
width: 100%;
height: 8px;
border: 0px solid #000101;
border-radius: 8px;
box-shadow: 0px 0px 0px #000000, 0px 0px 0px #0d0d0d;
background: var(--color-b);
cursor: pointer;
animate: 0.2s;
}
input[type=range]::-moz-range-thumb {
width: 16px;
height: 16px;
border: 0px solid #000000;
border-radius: 8px;
box-shadow: 0px 0px 0px #000000, 0px 0px 0px #0d0d0d;
background: var(--color-a);
cursor: pointer;
}
input[type=range]::-ms-track {
width: 100%;
height: 8px;
border-width: 8px 0;
border-color: transparent;
background: transparent;
color: transparent;
cursor: pointer;
animate: 0.2s;
}
input[type=range]::-ms-fill-lower {
border: 0px solid #000101;
border-radius: 8px;
box-shadow: 0px 0px 0px #000000, 0px 0px 0px #0d0d0d;
background: var(--color-b);
}
input[type=range]::-ms-fill-upper {
border: 0px solid #000101;
border-radius: 8px;
box-shadow: 0px 0px 0px #000000, 0px 0px 0px #0d0d0d;
background: var(--color-b);
}
input[type=range]::-ms-thumb {
width: 16px;
height: 16px;
border: 0px solid #000000;
border-radius: 8px;
box-shadow: 0px 0px 0px #000000, 0px 0px 0px #0d0d0d;
background: var(--color-a);
cursor: pointer;
}
input[type=range]:focus::-ms-fill-lower {
background: var(--color-b);
}
input[type=range]:focus::-ms-fill-upper {
background: var(--color-b);
}
/* ------ */
/* TABLES */
/* ------ */
table, th, td {
2022-08-28 13:35:58 +03:00
width: 100%;
padding: 8px;
border-collapse: collapse;
table-layout: fixed;
font-weight: 400;
}
.table_pink thead {
2022-08-28 13:35:58 +03:00
border-bottom: 4px solid var(--color-table-item);
}
2022-08-28 13:35:58 +03:00
.table_pink thead > tr {
background-color: var(--color-table-header-background);
color: var(--color-table-header-text);
}
2022-08-28 13:35:58 +03:00
.table_pink thead > tr > th {
font-weight: 500;
}
.table_pink tbody > tr:nth-child(even) {
2022-08-28 13:35:58 +03:00
background-color: var(--color-table-item);
color: var(--color-white);
}
.table_pink tfoot {
2022-08-28 13:35:58 +03:00
border-top: 4px solid var(--color-table-header-background);
}
/* ------------- */
/* SERVICE RULES */
/* ------------- */
.hidden {
2022-08-28 13:35:58 +03:00
display: none !important;
}
.visually-hidden {
2022-08-28 13:35:58 +03:00
position: absolute;
width: 1px;
height: 1px;
margin: -1px;
border: 0;
padding: 0;
white-space: nowrap;
clip-path: inset(100%);
clip: rect(0 0 0 0);
overflow: hidden;
}
.container {
2022-08-28 13:35:58 +03:00
width: 100%;
max-width: 1080px;
margin: 0 auto;
padding-left: 16px;
padding-right: 16px;
}
2022-06-20 19:01:16 +03:00
/* ----------------- */
/* COMPONENTS STYLES */
/* ----------------- */
2022-08-12 17:36:23 +03:00
/* --- */
/* APP */
/* --- */
2022-08-12 17:36:23 +03:00
.app {
2022-08-28 13:35:58 +03:00
min-height: 100vh;
display: flex;
flex-direction: column;
justify-content: space-between;
}
/* ---- */
/* PAGE */
/* ---- */
2022-06-17 13:30:39 +03:00
.page {
2022-08-28 13:35:58 +03:00
flex-grow: 1;
margin-top: 32px;
margin-bottom: 32px;
2022-08-08 12:46:19 +03:00
}
@media only screen and (min-width: 540px) {
2022-08-28 13:35:58 +03:00
.page {
margin-top: 64px;
margin-bottom: 64px;
}
}
2022-06-17 13:30:39 +03:00
/* ---- */
/* POST */
/* ---- */
.post {
2022-08-28 13:35:58 +03:00
margin: 0 auto;
}
.post__header {
2022-08-28 13:35:58 +03:00
text-align: center;
margin-block-end: 32px;
}
/* ------- */
/* CONTENT */
/* ------- */
.content {
2022-08-28 13:35:58 +03:00
margin-bottom: 64px;
}
.content__header {
2022-08-28 13:35:58 +03:00
margin-top: 0;
margin-bottom: 32px;
padding-left: 16px;
border: 2px solid var(--color-content-borderline);
border-radius: var(--number-border-radius);
color: var(--color-text-header);
font-size: 1.8em;
}
.content-item {
2022-08-28 13:35:58 +03:00
margin-bottom: 16px;
padding: 16px;
border-radius: var(--number-border-radius);
background: var(--color-content-item-background);
}
2022-08-28 13:35:58 +03:00
.content-item__header {
margin-bottom: 16px;
text-align: center;
}
2022-06-17 19:34:41 +03:00
2022-08-08 12:46:19 +03:00
@media only screen and (min-width: 540px) {
2022-08-28 13:35:58 +03:00
.content-item {
padding: 32px;
}
2022-08-08 12:46:19 +03:00
}