webapp/src/styles/app.scss

809 lines
12 KiB
SCSS
Raw Normal View History

2022-09-09 11:53:35 +00:00
@import 'bootstrap/scss/mixins/lists';
@import 'bootstrap/scss/mixins/container';
@import 'bootstrap/scss/mixins/utilities';
@import 'bootstrap/scss/containers';
@import 'bootstrap/scss/grid';
2022-11-08 06:41:50 +00:00
@import 'bootstrap/scss/bootstrap-utilities';
2022-11-27 05:49:48 +00:00
@import 'bootstrap/scss/forms';
@import 'bootstrap/scss/buttons';
2022-09-09 11:53:35 +00:00
:root {
--background-color: #fff;
--default-color: #121416;
--link-color: #543fd7;
--secondary-color: #85878a;
--danger-color: #fc6847;
--lightgray-color: rgb(84 16 17 / 6%);
--font: -apple-system, blinkmacsystemfont, 'Segoe UI', roboto, oxygen, ubuntu, cantarell, 'Open Sans',
2022-10-31 12:51:52 +00:00
'Helvetica Neue', sans-serif;
2022-09-09 11:53:35 +00:00
}
* {
box-sizing: border-box;
}
2022-11-09 21:47:52 +00:00
::selection {
background: #000;
color: #fff;
}
2022-09-09 11:53:35 +00:00
html {
color: $default-color;
font-size: 62.5%;
height: 100%;
-webkit-font-smoothing: antialiased;
overscroll-behavior-y: none;
2022-11-02 21:43:38 +00:00
overflow-y: scroll;
2022-09-09 11:53:35 +00:00
}
body {
font-family: Muller, Arial, Helvetica, sans-serif;
font-size: 2rem;
2022-11-09 19:51:41 +00:00
line-height: 1.6;
2022-09-14 21:07:47 +00:00
min-height: 100%;
2022-09-09 11:53:35 +00:00
text-size-adjust: 100%;
&.fixed {
overflow: hidden;
position: fixed;
2022-10-09 10:56:39 +00:00
width: 100%;
2022-09-09 11:53:35 +00:00
}
}
html,
body,
main,
section {
border: 0;
padding: 0;
margin: 0;
}
#svelte {
display: flex;
flex-direction: column;
min-height: 100vh;
}
.wide-container {
margin: 0 auto;
max-width: 1400px;
padding: 0 divide($container-padding-x, 2);
2022-11-24 21:37:43 +00:00
width: 100%;
2022-09-09 11:53:35 +00:00
@include media-breakpoint-up(sm) {
padding: 0 $container-padding-x;
}
}
h1,
h2 {
2022-11-02 21:43:38 +00:00
line-height: 1.3;
2022-09-09 11:53:35 +00:00
.wrapped {
background: #000;
color: #fff;
2022-11-08 19:48:00 +00:00
margin-left: -0.15em;
2022-09-09 11:53:35 +00:00
padding: 0 0.15em;
2022-11-02 21:43:38 +00:00
box-decoration-break: clone;
-webkit-box-decoration-break: clone;
2022-11-09 21:47:52 +00:00
&::selection {
background: #fff;
color: #000;
}
2022-09-09 11:53:35 +00:00
}
}
h1 {
@include font-size(4.8rem);
line-height: 1.1;
}
h2 {
@include font-size(4rem);
line-height: 1.1;
margin-bottom: 0.5em;
2022-11-08 06:10:06 +00:00
margin-top: 1.5em;
2022-09-09 11:53:35 +00:00
}
h3 {
@include font-size(3.2rem);
line-height: 1.1;
margin-bottom: 0.5em;
}
h4 {
@include font-size(2.6rem);
line-height: 1.2;
margin-bottom: 0.5em;
}
h5 {
@include font-size(2.2rem);
}
main {
box-sizing: border-box;
flex: 1;
padding-bottom: 2em;
}
body,
span,
a,
p,
h1,
h2,
h3,
h4,
h5 {
&:first-child {
margin-top: 0;
}
}
a,
a:hover,
a:visited,
a:link {
border-bottom: 1px solid rgb(0 0 0 / 30%);
text-decoration: none;
}
a {
color: #000;
padding-bottom: 0.1em;
transition: color 0.2s, background-color 0.2s;
&:hover {
background: #000;
color: #fff;
}
}
ul {
margin-bottom: 1.5em;
}
.nodash {
list-style: none;
margin: 0 0 1.5em;
padding: 0;
li {
margin: 0 0 0.5em;
padding: 0;
}
}
button {
background: none;
border: none;
cursor: pointer;
font-family: inherit;
padding: 0;
}
.button {
background: #000;
2022-11-02 21:43:38 +00:00
box-sizing: border-box;
2022-09-09 11:53:35 +00:00
color: #fff;
font-size: 100%;
font-weight: 500;
padding: 0.6rem 1.2rem;
text-align: center;
&:hover {
color: #ccc;
2022-11-02 21:43:38 +00:00
opacity: 1;
2022-09-09 11:53:35 +00:00
}
&:active {
color: #9fa1a7;
}
}
.button--subscribe {
2022-11-02 21:43:38 +00:00
background: #fff;
border: 2px solid #f6f6f6;
2022-09-09 11:53:35 +00:00
font-size: 1.5rem;
2022-11-02 21:43:38 +00:00
padding: 0.6rem 1.2rem;
2022-09-09 11:53:35 +00:00
transition: background-color 0.2s;
img {
transition: filter 0.2s;
}
&:hover {
background: #000;
img {
filter: invert(1);
}
}
}
.button--light {
background-color: #f6f6f6;
color: #000;
@include font-size(1.5rem);
font-weight: 400;
2022-11-02 21:43:38 +00:00
height: auto;
padding: 0.6rem 1.2rem 0.6rem 1rem;
2022-09-09 11:53:35 +00:00
}
2022-11-02 21:43:38 +00:00
.button--subscribe-topic {
background: #fff;
border: 2px solid #000;
border-radius: 0.8rem;
2022-11-08 06:10:06 +00:00
color: #000;
2022-11-02 21:43:38 +00:00
&:hover {
background: #000;
color: #fff;
opacity: 1;
}
}
2022-11-09 19:51:41 +00:00
.button--content-index {
background: none;
2022-11-11 09:34:40 +00:00
border: 2px solid #fff;
2022-11-09 19:51:41 +00:00
height: 3.2rem;
2022-11-09 21:39:54 +00:00
float: right;
2022-11-09 19:51:41 +00:00
padding: 0;
2022-11-09 21:39:54 +00:00
position: absolute;
right: $container-padding-x * 0.5;
top: -0.5rem;
2022-11-09 19:51:41 +00:00
width: 3.2rem;
2022-11-09 21:39:54 +00:00
z-index: 1;
@include media-breakpoint-up(md) {
margin-top: -0.5rem;
position: sticky;
top: 90px;
}
@include media-breakpoint-up(sm) {
right: $container-padding-x;
}
2022-11-09 19:51:41 +00:00
2022-11-11 09:34:40 +00:00
.icon {
background: #fff;
transition: filter 0.3s;
}
2022-11-09 19:51:41 +00:00
.icon,
img {
2022-11-11 09:34:40 +00:00
height: 100%;
2022-11-09 19:51:41 +00:00
vertical-align: middle;
width: auto;
}
&:hover {
.icon {
2022-11-11 09:34:40 +00:00
filter: invert(1);
}
}
.expanded {
border-radius: 100%;
overflow: hidden;
img {
height: auto;
margin-top: 0.8rem;
2022-11-09 19:51:41 +00:00
}
}
}
2022-11-24 21:37:43 +00:00
.button--submit {
@include font-size(2rem);
padding: 1.6rem 2rem;
}
2022-09-09 11:53:35 +00:00
form {
.pretty-form__item {
position: relative;
input {
padding-top: 1.4em;
}
textarea {
line-height: 1.4;
}
}
input[type='text'],
input[type='email'],
input[type='password'],
input[type='search'],
input[type='tel'],
2022-11-24 21:37:43 +00:00
input[type='date'],
2022-09-09 11:53:35 +00:00
textarea,
select {
border: 2px solid #e8e8e8;
border-radius: 2px;
display: block;
font-family: inherit;
font-size: 1.7rem;
margin-bottom: 1.6rem;
padding: 2.5rem 1.2rem 1rem;
width: 100%;
&::placeholder {
color: transparent;
}
& ~ label {
box-sizing: border-box;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
-webkit-touch-callout: none;
color: #a4acb1;
position: absolute;
left: 1.2rem;
display: block;
text-align: left;
padding: 0;
pointer-events: none;
top: 50%;
transform: translateY(-50%);
transform-origin: 0 0;
transition: transform 0.1s 0.1s, color 0.5s, font-size 0.1s 0.1s;
transition-timing-function: cubic-bezier(0, 0.25, 0.5, 1);
user-select: none;
}
2022-11-24 21:37:43 +00:00
& + .form-message {
margin-top: -1.2rem;
}
&.nolabel {
padding-bottom: 1.8rem;
padding-top: 1.7rem;
}
}
.form-message--error {
color: #d00820;
2022-09-09 11:53:35 +00:00
}
select {
padding-bottom: 1.65rem;
padding-top: 1.65rem;
}
input,
select,
textarea {
&:focus,
2022-10-21 18:17:04 +00:00
&:-webkit-autofill,
2022-09-09 11:53:35 +00:00
&:not(:placeholder-shown) {
& ~ label {
font-size: 60%;
transform: translateY(-1.7em) !important;
}
}
}
textarea {
min-height: 10em;
& ~ label {
top: 3rem;
}
}
2022-11-24 21:37:43 +00:00
.form-message {
@include font-size(1.2rem);
}
2022-09-09 11:53:35 +00:00
}
.input--short {
display: inline-block !important;
width: 4em !important;
}
input[type='checkbox'] {
display: none;
& + label {
padding-left: 30px;
position: relative;
&::before {
// background: url('/icons/checkbox.svg') no-repeat;
2022-09-09 11:53:35 +00:00
content: '';
height: 2rem;
left: 0;
position: absolute;
top: 0.2em;
width: 2rem;
}
}
&:checked + label {
&::before {
// background-image: url('/icons/checkbox-checked.svg');
position: relative;
2022-09-09 11:53:35 +00:00
}
}
}
.hidden {
display: none !important;
}
figure {
margin: 2em 0;
}
figcaption {
color: #9fa1a7;
@include font-size(1.2rem);
}
.view-switcher {
2022-11-09 19:02:12 +00:00
@include font-size(1.7rem);
2022-09-09 11:53:35 +00:00
2022-11-09 19:02:12 +00:00
display: flex;
flex-wrap: wrap;
2022-09-09 11:53:35 +00:00
font-weight: bold;
list-style: none;
2022-11-14 21:17:20 +00:00
margin: 3.6rem 0 0;
padding: 0;
2022-09-09 11:53:35 +00:00
li {
display: inline-block;
margin-right: 1em;
2022-11-09 19:02:12 +00:00
margin-bottom: 0.6em;
&:last-child {
margin-right: 0;
}
2022-09-09 11:53:35 +00:00
}
button {
background: none;
border: none;
border-bottom: 2px solid #fff;
color: #696969;
cursor: pointer;
font-size: inherit;
font-weight: inherit;
padding: 0;
}
a {
border-bottom: 2px solid #fff;
2022-11-10 12:50:47 +00:00
color: rgb(0 0 0 / 50%);
2022-11-09 19:02:12 +00:00
&:hover {
color: #fff;
}
2022-09-09 11:53:35 +00:00
}
.selected {
button {
border-color: #000;
color: #000;
cursor: default;
}
a {
border-color: #000;
color: #000;
cursor: default;
&:hover {
background: none;
}
}
}
}
.view-switcher__search {
2022-11-18 18:33:31 +00:00
flex: 1 100%;
2022-11-09 19:02:12 +00:00
text-align: right;
2022-11-11 08:58:22 +00:00
white-space: nowrap;
2022-11-09 19:02:12 +00:00
@include media-breakpoint-up(sm) {
flex: 1;
margin-left: 2em;
}
2022-09-09 11:53:35 +00:00
.icon {
display: inline-block;
margin-right: 0.2em;
vertical-align: middle;
}
a:hover {
.icon {
filter: invert(1);
}
}
}
.floor {
@include media-breakpoint-up(md) {
margin-bottom: 6.4rem;
}
.container {
padding-left: $container-padding-x;
padding-right: $container-padding-x;
}
}
.floor--7 {
.col-md-6 {
2022-10-20 15:51:45 +00:00
@include media-breakpoint-down(lg) {
&:nth-child(1),
&:nth-child(2) {
margin-bottom: 1.6em;
}
}
@include media-breakpoint-down(md) {
2022-10-20 15:51:45 +00:00
&:nth-child(3),
&:nth-child(4) {
margin-bottom: 1.6em;
}
}
}
}
2022-09-09 11:53:35 +00:00
.floor--important {
background: #000;
color: #fff;
padding: $grid-gutter-width 0;
padding-bottom: $container-padding-x;
padding-top: $container-padding-x;
@include media-breakpoint-up(md) {
padding-bottom: $grid-gutter-width;
padding-top: $grid-gutter-width;
}
2022-11-09 21:47:52 +00:00
::selection {
background: #fff;
color: #000;
}
h2 {
@include font-size(4.4rem);
text-align: center;
}
2022-09-09 11:53:35 +00:00
@include media-breakpoint-down(md) {
margin-bottom: 5rem;
}
.all-materials {
2022-09-09 11:53:35 +00:00
a {
color: #fff;
}
}
a:hover {
background: #fff;
color: #000 !important;
}
}
2022-11-20 21:23:12 +00:00
.row {
2022-09-09 11:53:35 +00:00
@include media-breakpoint-down(sm) {
2022-11-20 21:23:12 +00:00
margin-left: divide(-$container-padding-x, 2);
margin-right: divide(-$container-padding-x, 2);
2022-09-09 11:53:35 +00:00
2022-11-20 21:23:12 +00:00
> * {
padding-left: divide($container-padding-x, 2);
padding-right: divide($container-padding-x, 2);
2022-09-09 11:53:35 +00:00
}
}
}
2022-10-05 20:04:48 +00:00
/* stylelint-disable-next-line */
astro-island {
display: flex !important;
2022-09-09 11:53:35 +00:00
flex-direction: column;
align-content: space-between;
justify-content: space-between;
2022-10-05 20:04:48 +00:00
min-height: 100vh;
2022-09-09 11:53:35 +00:00
}
.main-content {
flex: 1 100%;
2022-10-17 22:13:18 +00:00
min-height: 300px;
2022-11-16 21:08:04 +00:00
padding-top: 120px;
2022-10-09 10:56:39 +00:00
position: relative;
2022-09-09 11:53:35 +00:00
}
2022-09-29 19:16:17 +00:00
.main-content--no-padding {
2022-10-03 21:31:11 +00:00
padding-bottom: 0;
2022-09-29 19:16:17 +00:00
padding-top: 0;
}
2022-09-09 11:53:35 +00:00
.container {
max-width: 1400px;
2022-11-11 08:58:22 +00:00
width: auto;
@include media-breakpoint-down(sm) {
// padding: 0 $container-padding-x * 0.5;
2022-11-11 08:58:22 +00:00
}
2022-09-09 11:53:35 +00:00
}
2022-11-02 21:43:38 +00:00
.container--static-page {
2022-11-09 21:39:54 +00:00
@include font-size(1.7rem);
color: #404040;
position: relative;
2022-11-08 06:41:50 +00:00
@include media-breakpoint-up(md) {
padding-top: 1.5em;
2022-11-09 21:39:54 +00:00
> .row {
flex-wrap: nowrap;
justify-content: space-between;
margin-right: 0;
}
}
.order-md-last {
padding-right: 0;
2022-11-08 06:41:50 +00:00
}
2022-11-02 21:43:38 +00:00
}
2022-09-09 11:53:35 +00:00
.shift-content {
2022-11-24 21:37:43 +00:00
position: relative;
2022-09-09 11:53:35 +00:00
@include media-breakpoint-up(md) {
2022-11-13 10:36:44 +00:00
margin-left: 161px;
2022-09-09 11:53:35 +00:00
}
@include media-breakpoint-up(lg) {
2022-11-13 10:36:44 +00:00
margin-left: 235px;
2022-09-09 11:53:35 +00:00
}
2022-11-24 21:37:43 +00:00
.left-col {
height: 100%;
padding-right: 2rem;
position: absolute;
right: 100%;
top: 0;
@include media-breakpoint-up(md) {
width: 161px;
}
@include media-breakpoint-up(lg) {
width: 235px;
}
}
.left-navigation {
position: sticky;
top: 0;
}
2022-09-09 11:53:35 +00:00
}
.center {
display: flex;
justify-content: center;
align-items: center;
height: 420px;
}
.mode-switcher {
@include font-size(1.5rem);
text-align: right;
}
.mode-switcher__control {
border-bottom: 1px dotted;
cursor: pointer;
font-weight: bold;
}
.content-index {
@include font-size(1.4rem);
2022-11-09 21:39:54 +00:00
margin: 0 3.6rem 2em 0;
2022-09-09 11:53:35 +00:00
@include media-breakpoint-up(md) {
position: sticky;
2022-10-19 22:16:17 +00:00
top: 10rem;
2022-09-09 11:53:35 +00:00
}
ul ul {
margin: 1em 0 0 1em;
}
li {
margin-bottom: 1em;
}
2022-11-09 19:51:41 +00:00
a {
border: none;
}
2022-11-11 09:34:40 +00:00
h4 {
@include font-size(1.6rem);
}
2022-09-09 11:53:35 +00:00
}
.load-more-container {
text-align: center;
button {
padding: 0.6em 1.5em;
}
}
2022-11-08 06:10:06 +00:00
details {
margin-bottom: 1.5em;
2022-11-09 21:39:54 +00:00
@include media-breakpoint-down(md) {
padding-left: 3rem;
}
2022-11-08 19:48:00 +00:00
summary {
display: block;
position: relative;
&::marker {
display: none;
}
h3 {
display: inline-block;
cursor: pointer;
margin-bottom: 0;
2022-11-10 12:50:47 +00:00
&::before {
2022-11-08 19:48:00 +00:00
content: '';
background: url(/icons/expand.svg) no-repeat;
background-size: contain;
height: 1.3rem;
margin-right: 0.5em;
position: absolute;
right: 100%;
top: 0.35em;
transition: transform 0.3s;
width: 2rem;
}
}
}
&[open] {
2022-11-10 12:50:47 +00:00
h3::before {
2022-11-08 19:48:00 +00:00
transform: rotate(180deg);
}
2022-11-08 06:10:06 +00:00
}
}
2022-11-09 19:02:12 +00:00
.text-truncate {
display: -webkit-box !important;
overflow: hidden;
2022-11-20 21:23:12 +00:00
position: relative;
2022-11-09 19:02:12 +00:00
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
white-space: normal;
}
2022-11-24 21:37:43 +00:00
.description {
@include font-size(1.4rem);
color: rgba(0 0 0 / 40%);
}