1
0
mirror of https://github.com/locomotivemtl/locomotive-boilerplate.git synced 2026-01-15 00:55:08 +08:00
Files
locomotive-boilerplate/www/assets/styles/main.css
2022-06-01 16:19:46 +02:00

1032 lines
18 KiB
CSS

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
/* Document
========================================================================== */
/**
* 1. Correct the line height in all browsers.
* 2. Prevent adjustments of font size after orientation changes in iOS.
*/
html {
line-height: 1.15;
/* 1 */
-webkit-text-size-adjust: 100%;
/* 2 */
}
/* Sections
========================================================================== */
/**
* Remove the margin in all browsers.
*/
body {
margin: 0;
}
/**
* Render the `main` element consistently in IE.
*/
main {
display: block;
}
/**
* Correct the font size and margin on `h1` elements within `section` and
* `article` contexts in Chrome, Firefox, and Safari.
*/
h1 {
font-size: 2em;
margin: 0.67em 0;
}
/* Grouping content
========================================================================== */
/**
* 1. Add the correct box sizing in Firefox.
* 2. Show the overflow in Edge and IE.
*/
hr {
box-sizing: content-box;
/* 1 */
height: 0;
/* 1 */
overflow: visible;
/* 2 */
}
/**
* 1. Correct the inheritance and scaling of font size in all browsers.
* 2. Correct the odd `em` font sizing in all browsers.
*/
pre {
font-family: monospace, monospace;
/* 1 */
font-size: 1em;
/* 2 */
}
/* Text-level semantics
========================================================================== */
/**
* Remove the gray background on active links in IE 10.
*/
a {
background-color: transparent;
}
/**
* 1. Remove the bottom border in Chrome 57-
* 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
*/
abbr[title] {
border-bottom: none;
/* 1 */
text-decoration: underline;
/* 2 */
-webkit-text-decoration: underline dotted;
text-decoration: underline dotted;
/* 2 */
}
/**
* Add the correct font weight in Chrome, Edge, and Safari.
*/
b,
strong {
font-weight: bolder;
}
/**
* 1. Correct the inheritance and scaling of font size in all browsers.
* 2. Correct the odd `em` font sizing in all browsers.
*/
code,
kbd,
samp {
font-family: monospace, monospace;
/* 1 */
font-size: 1em;
/* 2 */
}
/**
* Add the correct font size in all browsers.
*/
small {
font-size: 80%;
}
/**
* Prevent `sub` and `sup` elements from affecting the line height in
* all browsers.
*/
sub,
sup {
font-size: 75%;
line-height: 0;
position: relative;
vertical-align: baseline;
}
sub {
bottom: -0.25em;
}
sup {
top: -0.5em;
}
/* Embedded content
========================================================================== */
/**
* Remove the border on images inside links in IE 10.
*/
img {
border-style: none;
}
/* Forms
========================================================================== */
/**
* 1. Change the font styles in all browsers.
* 2. Remove the margin in Firefox and Safari.
*/
button,
input,
optgroup,
select,
textarea {
font-family: inherit;
/* 1 */
font-size: 100%;
/* 1 */
line-height: 1.15;
/* 1 */
margin: 0;
/* 2 */
}
/**
* Show the overflow in IE.
* 1. Show the overflow in Edge.
*/
button,
input {
/* 1 */
overflow: visible;
}
/**
* Remove the inheritance of text transform in Edge, Firefox, and IE.
* 1. Remove the inheritance of text transform in Firefox.
*/
button,
select {
/* 1 */
text-transform: none;
}
/**
* Correct the inability to style clickable types in iOS and Safari.
*/
button,
[type="button"],
[type="reset"],
[type="submit"] {
-webkit-appearance: button;
}
/**
* Remove the inner border and padding in Firefox.
*/
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
border-style: none;
padding: 0;
}
/**
* Restore the focus styles unset by the previous rule.
*/
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
outline: 1px dotted ButtonText;
}
/**
* Correct the padding in Firefox.
*/
fieldset {
padding: 0.35em 0.75em 0.625em;
}
/**
* 1. Correct the text wrapping in Edge and IE.
* 2. Correct the color inheritance from `fieldset` elements in IE.
* 3. Remove the padding so developers are not caught out when they zero out
* `fieldset` elements in all browsers.
*/
legend {
box-sizing: border-box;
/* 1 */
color: inherit;
/* 2 */
display: table;
/* 1 */
max-width: 100%;
/* 1 */
padding: 0;
/* 3 */
white-space: normal;
/* 1 */
}
/**
* Add the correct vertical alignment in Chrome, Firefox, and Opera.
*/
progress {
vertical-align: baseline;
}
/**
* Remove the default vertical scrollbar in IE 10+.
*/
textarea {
overflow: auto;
}
/**
* 1. Add the correct box sizing in IE 10.
* 2. Remove the padding in IE 10.
*/
[type="checkbox"],
[type="radio"] {
box-sizing: border-box;
/* 1 */
padding: 0;
/* 2 */
}
/**
* Correct the cursor style of increment and decrement buttons in Chrome.
*/
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
height: auto;
}
/**
* 1. Correct the odd appearance in Chrome and Safari.
* 2. Correct the outline style in Safari.
*/
[type="search"] {
-webkit-appearance: textfield;
/* 1 */
outline-offset: -2px;
/* 2 */
}
/**
* Remove the inner padding in Chrome and Safari on macOS.
*/
[type="search"]::-webkit-search-decoration {
-webkit-appearance: none;
}
/**
* 1. Correct the inability to style clickable types in iOS and Safari.
* 2. Change font properties to `inherit` in Safari.
*/
::-webkit-file-upload-button {
-webkit-appearance: button;
/* 1 */
font: inherit;
/* 2 */
}
/* Interactive
========================================================================== */
/*
* Add the correct display in Edge, IE 10+, and Firefox.
*/
details {
display: block;
}
/*
* Add the correct display in all browsers.
*/
summary {
display: list-item;
}
/* Misc
========================================================================== */
/**
* Add the correct display in IE 10+.
*/
template {
display: none;
}
/**
* Add the correct display in IE 10.
*/
[hidden] {
display: none;
}
html {
box-sizing: border-box;
}
template,
[hidden] {
display: none;
}
*,
:before,
:after {
box-sizing: inherit;
}
address {
font-style: inherit;
}
dfn,
cite,
em,
i {
font-style: italic;
}
b,
strong {
font-weight: 700;
}
a {
text-decoration: none;
}
a svg {
pointer-events: none;
}
ul,
ol {
margin: 0;
padding: 0;
list-style: none;
}
p,
figure {
margin: 0;
padding: 0;
}
h1, h2, h3, h4, h5, h6 {
margin: 0;
}
a, area, button, input, label, select, textarea, [tabindex] {
touch-action: manipulation;
}
[hreflang] > abbr[title] {
text-decoration: none;
}
table {
border-spacing: 0;
border-collapse: collapse;
}
hr {
display: block;
margin: 1em 0;
padding: 0;
height: 1px;
border: 0;
border-top: 1px solid #CCCCCC;
}
audio,
canvas,
iframe,
img,
svg,
video {
vertical-align: middle;
}
audio:not([controls]) {
display: none;
height: 0;
}
img,
svg {
max-width: 100%;
height: auto;
}
img[width], img[height],
svg[width],
svg[height] {
max-width: none;
}
img {
font-style: italic;
}
svg {
fill: currentColor;
}
input,
select,
textarea {
display: block;
margin: 0;
padding: 0;
width: 100%;
outline: 0;
border: 0;
border-radius: 0;
background: none transparent;
color: inherit;
font: inherit;
line-height: normal;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
}
select {
text-transform: none;
}
select::-ms-expand {
display: none;
}
select::-ms-value {
background: none;
color: inherit;
}
textarea {
overflow: auto;
resize: vertical;
}
button,
.c-button {
display: inline-block;
overflow: visible;
margin: 0;
padding: 0;
outline: 0;
border: 0;
background: none transparent;
color: inherit;
vertical-align: middle;
text-align: center;
text-decoration: none;
text-transform: none;
font: inherit;
line-height: normal;
cursor: pointer;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
button:focus, button:hover,
.c-button:focus,
.c-button:hover {
text-decoration: none;
}
html {
min-height: 100%;
line-height: 1.5;
font-family: "Webfont Sans", "Helvetica Neue", Arial, sans-serif;
color: #000000;
line-height: 1.5;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
@media (max-width: 699px) {
html {
font-size: 14px;
}
}
@media (min-width: 700px) and (max-width: 999px) {
html {
font-size: 14px;
}
}
@media (min-width: 1000px) and (max-width: 1199px) {
html {
font-size: 15px;
}
}
@media (min-width: 1200px) and (max-width: 1599px) {
html {
font-size: 16px;
}
}
@media (min-width: 1600px) and (max-width: 1999px) {
html {
font-size: 17px;
}
}
@media (min-width: 2000px) and (max-width: 2399px) {
html {
font-size: 18px;
}
}
@media (min-width: 2400px) {
html {
font-size: 20px;
}
}
html.is-loading {
cursor: wait;
}
html.has-scroll-smooth {
overflow: hidden;
}
html.has-scroll-dragging {
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.has-scroll-smooth body {
overflow: hidden;
}
::-moz-selection {
background-color: #FFFFFF;
color: #3297FD;
text-shadow: none;
}
::selection {
background-color: #FFFFFF;
color: #3297FD;
text-shadow: none;
}
a {
color: #1A0DAB;
}
a:focus, a:hover {
color: #13097c;
}
.o-scroll {
min-height: 100vh;
}
.o-container {
margin-right: auto;
margin-left: auto;
padding-right: 3.75rem;
padding-left: 3.75rem;
max-width: 132.5rem;
}
.o-ratio {
position: relative;
display: block;
overflow: hidden;
}
.o-ratio:before {
display: block;
padding-bottom: 100%;
width: 100%;
content: "";
}
.o-ratio_content,
.o-ratio > img,
.o-ratio > iframe,
.o-ratio > embed,
.o-ratio > object {
position: absolute;
top: 0;
bottom: 0;
left: 0;
width: 100%;
}
.o-icon {
display: inline-block;
vertical-align: middle;
}
.o-icon svg {
--icon-height: calc(var(--icon-width) * (1 / (var(--icon-ratio))));
display: block;
width: var(--icon-width);
height: var(--icon-height);
fill: currentColor;
}
.o-layout {
margin: 0;
padding: 0;
list-style: none;
font-size: 0;
margin-left: 0;
}
.o-layout.-gutter {
margin-left: -3.75rem;
}
.o-layout.-gutter-small {
margin-left: -1.875rem;
}
.o-layout.-center {
text-align: center;
}
.o-layout.-right {
text-align: right;
}
.o-layout.-reverse {
direction: rtl;
}
.o-layout.-reverse.-flex {
flex-direction: row-reverse;
}
.o-layout.-flex {
display: flex;
}
.o-layout.-flex.-top {
align-items: flex-start;
}
.o-layout.-flex.-middle {
align-items: center;
}
.o-layout.-flex.-bottom {
align-items: flex-end;
}
.o-layout.-stretch {
align-items: stretch;
}
.o-layout_item {
display: inline-block;
width: 100%;
vertical-align: top;
font-size: 1rem;
padding-left: 0;
}
.o-layout.-gutter > .o-layout_item {
padding-left: 3.75rem;
}
.o-layout.-gutter-small > .o-layout_item {
padding-left: 1.875rem;
}
.o-layout.-middle > .o-layout_item {
vertical-align: middle;
}
.o-layout.-bottom > .o-layout_item {
vertical-align: bottom;
}
.o-layout.-center > .o-layout_item,
.o-layout.-right > .o-layout_item,
.o-layout.-reverse > .o-layout_item {
text-align: left;
}
.o-layout.-reverse > .o-layout_item {
direction: ltr;
}
.c-scrollbar {
position: absolute;
right: 0;
top: 0;
width: 11px;
height: 100vh;
transform-origin: center right;
transition: transform 0.3s, opacity 0.3s;
opacity: 0;
}
.c-scrollbar:hover {
transform: scaleX(1.45);
}
.c-scrollbar:hover, .has-scroll-scrolling .c-scrollbar, .has-scroll-dragging .c-scrollbar {
opacity: 1;
}
.c-scrollbar_thumb {
position: absolute;
top: 0;
right: 0;
background-color: #000000;
opacity: 0.5;
width: 7px;
border-radius: 10px;
margin: 2px;
cursor: -webkit-grab;
cursor: grab;
}
.has-scroll-dragging .c-scrollbar_thumb {
cursor: -webkit-grabbing;
cursor: grabbing;
}
.c-heading {
line-height: 1.5;
margin-bottom: 1.875rem;
}
.c-heading.-h1 {
font-size: 2.25rem;
}
.c-heading.-h2 {
font-size: 1.75rem;
}
.c-heading.-h3 {
font-size: 1.5rem;
}
.c-heading.-h4 {
font-size: 1.25rem;
}
.c-heading.-h5 {
font-size: 1.125rem;
}
.c-heading.-h6 {
font-size: 1rem;
}
.c-button {
padding: 0.9375rem 1.25rem;
background-color: lightgray;
}
.c-button:focus, .c-button:hover {
background-color: darkgray;
}
.c-form_item {
position: relative;
margin-bottom: 1.875rem;
}
.c-form_label, .c-form_checkboxLabel, .c-form_radioLabel {
display: block;
margin-bottom: 0.625rem;
}
.c-form_input, .c-form_select_input, .c-form_textarea {
padding: 0.625rem;
border: 1px solid lightgray;
background-color: #FFFFFF;
}
.c-form_input:hover, .c-form_select_input:hover, .c-form_textarea:hover {
border-color: darkgray;
}
.c-form_input:focus, .c-form_select_input:focus, .c-form_textarea:focus {
border-color: dimgray;
}
.c-form_input::-moz-placeholder, .c-form_select_input::-moz-placeholder, .c-form_textarea::-moz-placeholder {
color: gray;
}
.c-form_input:-ms-input-placeholder, .c-form_select_input:-ms-input-placeholder, .c-form_textarea:-ms-input-placeholder {
color: gray;
}
.c-form_input::placeholder, .c-form_select_input::placeholder, .c-form_textarea::placeholder {
color: gray;
}
.c-form_checkboxLabel, .c-form_radioLabel {
position: relative;
display: inline-block;
margin-right: 0.625rem;
margin-bottom: 0;
padding-left: 1.75rem;
cursor: pointer;
}
.c-form_checkboxLabel::before, .c-form_radioLabel::before, .c-form_checkboxLabel::after, .c-form_radioLabel::after {
position: absolute;
top: 50%;
left: 0;
display: inline-block;
margin-top: -0.5625rem;
padding: 0;
width: 1.125rem;
height: 1.125rem;
content: "";
}
.c-form_checkboxLabel::before, .c-form_radioLabel::before {
background-color: #FFFFFF;
border: 1px solid lightgray;
}
.c-form_checkboxLabel::after, .c-form_radioLabel::after {
border-color: transparent;
background-color: transparent;
background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20version%3D%221.1%22%20x%3D%220%22%20y%3D%220%22%20width%3D%2213%22%20height%3D%2210.5%22%20viewBox%3D%220%200%2013%2010.5%22%20enable-background%3D%22new%200%200%2013%2010.5%22%20xml%3Aspace%3D%22preserve%22%3E%3Cpath%20fill%3D%22%23424242%22%20d%3D%22M4.8%205.8L2.4%203.3%200%205.7l4.8%204.8L13%202.4c0%200-2.4-2.4-2.4-2.4L4.8%205.8z%22%2F%3E%3C%2Fsvg%3E");
background-position: center;
background-size: 0.75rem;
background-repeat: no-repeat;
opacity: 0;
}
.c-form_checkboxLabel:hover::before, .c-form_radioLabel:hover::before {
border-color: darkgray;
}
.c-form_checkbox:focus + .c-form_checkboxLabel::before, .c-form_radio:focus + .c-form_checkboxLabel::before, .c-form_checkbox:focus + .c-form_radioLabel::before, .c-form_radio:focus + .c-form_radioLabel::before {
border-color: dimgray;
}
.c-form_checkbox:checked + .c-form_checkboxLabel::after, .c-form_radio:checked + .c-form_checkboxLabel::after, .c-form_checkbox:checked + .c-form_radioLabel::after, .c-form_radio:checked + .c-form_radioLabel::after {
opacity: 1;
}
.c-form_checkbox, .c-form_radio {
position: absolute;
width: 0;
opacity: 0;
}
.c-form_radioLabel::before, .c-form_radioLabel::after {
border-radius: 50%;
}
.c-form_radioLabel::after {
background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20version%3D%221.1%22%20x%3D%220%22%20y%3D%220%22%20width%3D%2213%22%20height%3D%2213%22%20viewBox%3D%220%200%2013%2013%22%20enable-background%3D%22new%200%200%2013%2013%22%20xml%3Aspace%3D%22preserve%22%3E%3Ccircle%20fill%3D%22%23424242%22%20cx%3D%226.5%22%20cy%3D%226.5%22%20r%3D%226.5%22%2F%3E%3C%2Fsvg%3E");
background-size: 0.375rem;
}
.c-form_select {
position: relative;
cursor: pointer;
}
.c-form_select::after {
position: absolute;
top: 0;
right: 0;
bottom: 0;
z-index: 2;
width: 2.5rem;
background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20version%3D%221.1%22%20x%3D%220%22%20y%3D%220%22%20width%3D%2213%22%20height%3D%2211.3%22%20viewBox%3D%220%200%2013%2011.3%22%20enable-background%3D%22new%200%200%2013%2011.3%22%20xml%3Aspace%3D%22preserve%22%3E%3Cpolygon%20fill%3D%22%23424242%22%20points%3D%226.5%2011.3%203.3%205.6%200%200%206.5%200%2013%200%209.8%205.6%20%22%2F%3E%3C%2Fsvg%3E");
background-position: center;
background-size: 0.5rem;
background-repeat: no-repeat;
content: "";
pointer-events: none;
}
.c-form_select_input {
position: relative;
z-index: 1;
padding-right: 2.5rem;
cursor: pointer;
}
.c-form_textarea {
min-height: 12.5rem;
}
/* stylelint-disable */
.u-2\:1::before {
padding-bottom: 50%;
}
.u-4\:3::before {
padding-bottom: 75%;
}
.u-16\:9::before {
padding-bottom: 56.25%;
}
/* stylelint-enable */
.u-1\/1 {
width: 100% !important;
}
.u-1\/2 {
width: 50% !important;
}
.u-2\/2 {
width: 100% !important;
}
.u-1\/3 {
width: 33.33333% !important;
}
.u-2\/3 {
width: 66.66667% !important;
}
.u-3\/3 {
width: 100% !important;
}
.u-1\/4 {
width: 25% !important;
}
.u-2\/4 {
width: 50% !important;
}
.u-3\/4 {
width: 75% !important;
}
.u-4\/4 {
width: 100% !important;
}
.u-1\/5 {
width: 20% !important;
}
.u-2\/5 {
width: 40% !important;
}
.u-3\/5 {
width: 60% !important;
}
.u-4\/5 {
width: 80% !important;
}
.u-5\/5 {
width: 100% !important;
}
@media (min-width: 700px) {
.u-1\/2\@from-small {
width: 50%;
}
}