pleshevski.ru/static/styles.css

151 lines
2.5 KiB
CSS
Raw Normal View History

2022-03-20 23:21:38 +03:00
:root {
--min-width: 320px;
--max-width: 1024px;
2022-03-21 22:50:07 +03:00
--default-color-white: #ffffff;
2022-03-20 23:21:38 +03:00
--color-blue: #1966df;
--default-font-size: 16px;
--font-family: system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Roboto,Oxygen-Sans, Ubuntu, Cantarell, "Segoe UI", Verdana, sans-serif;
--font-weight-regular: 400;
}
*, *::before, *::after {
2022-03-18 00:06:01 +03:00
box-sizing: border-box;
padding: 0;
margin: 0;
}
html {
2022-03-20 23:21:38 +03:00
background-color: var(--default-color-white);
font-size: var(--default-font-size);
line-height: 1;
-webkit-text-size-adjust: 100%;
-moz-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
}
body {
font-weight: var(--font-weight-regular);
font-family: var(--font-family);
min-width: var(--min-width);
2022-03-18 00:06:01 +03:00
}
2022-03-18 22:59:27 +03:00
html, body {
2022-03-18 00:06:01 +03:00
height: 100%;
2022-03-20 23:21:38 +03:00
width: 100%;
}
ul, ol {
list-style: none;
2022-03-18 00:06:01 +03:00
}
2022-03-18 22:59:27 +03:00
2022-03-18 00:06:01 +03:00
#root {
min-height: 100vh;
align-items: stretch;
}
2022-03-20 23:21:38 +03:00
#root,
#main {
2022-03-18 00:06:01 +03:00
display: flex;
flex-direction: column;
}
2022-03-20 23:21:38 +03:00
#main,
.content {
2022-03-18 00:06:01 +03:00
flex: 1 0;
2022-03-20 23:21:38 +03:00
}
.header {
padding-top: 1.5rem;
padding-bottom: 1.5rem;
}
2022-03-21 22:50:07 +03:00
.main-menu {
display: flex;
flex-direction: row;
}
// anim
.main-menu > a {
transition: all .2s ease-in-out;
}
.main-menu > a {
color: var(--color-blue);
padding: 0.5rem;
border-radius: 6px;
border: 1px solid var(--color-blue);
text-decoration: none;
}
.main-menu > a:hover,
.main-menu > a[aria-current]:not([aria-current=""]) {
color: var(--default-color-white);
background-color: var(--color-blue);
}
.main-menu > a:not(:last-child) {
margin-right: 1rem;
}
2022-03-20 23:21:38 +03:00
.content-width {
width: 100%;
max-width: var(--max-width);
margin-left: auto;
margin-right: auto;
2022-03-22 19:34:40 +03:00
padding-left: 1.25rem;
padding-right: 1.25rem;
2022-03-20 23:21:38 +03:00
}
.responsive-typography h3 {
font-size: 24px;
}
.responsive-typography > div,
.responsive-typography p,
.responsive-typography li {
font-size: 18px;
line-height: 1.5;
}
.responsive-typography ul,
.responsive-typography ol {
width: 100%;
}
.responsive-typography ul li,
.responsive-typography ol li {
position: relative;
width: 100%;
min-height: 1.5rem;
padding-left: 1.5rem;
}
.responsive-typography ul li::before,
.responsive-typography ol li::before {
content: '';
position: absolute;
top: 0;
left: 0;
}
.responsive-typography ul > li::before {
background-color: var(--color-blue);
border-radius: 50%;
width: 0.5rem;
height: 0.5rem;
margin-top: 0.5rem;
margin-left: 0.25rem;
}
.responsive-typography > * + * {
margin-top: 2rem;
}
.responsive-typography > div + div,
.responsive-typography p + p {
margin-top: 1rem;
}
.responsive-typography li + li {
margin-top: 0.5rem;
}