neff-steindesign.de/themes/neff/assets/scss/_grid.scss

331 lines
4.5 KiB
SCSS

html {
scroll-behavior: smooth;
}
body {
min-height: calc(100vh - calc(3 * #{$gutter-width}));
font-family: $base-font-family;
font-size: $base-font-size;
line-height: $base-line-height;
display: flex;
flex-direction: column;
padding: 105px 0 0 0;
margin: 0;
background-color: $background-color;
background-size: 100%;
background-position: center;
background-attachment: fixed;
background-size: cover;
background-image: url(#{$background-image-phone-sd});
color: $font-color;
}
@media only screen and (min-width: 800px) and (orientation: portrait) {
body {
background-image: url(#{$background-image-phone});
}
}
@media only screen and (min-width: 600px) and (orientation: landscape) {
body {
background-image: url(#{$background-image-sd});
}
}
@media only screen and (min-width: 1200px) {
body {
background-image: url(#{$background-image});
}
}
header {
margin: 0;
}
p {
margin: 0.5rem 0;
}
h1, h2, h3, h4, h5, h6 {
line-height: 1.2em;
margin: .2em auto;
font-family: $heading-font-family;
font-weight: bold;
}
h1 {
font-size: 1.6rem;
}
h2 {
font-size: 1.3rem;
}
h3 {
font-size: 1.2rem;
}
h4 {
font-size: 1.1rem;
}
h5 {
font-size: 1rem;
}
h6 {
font-size: 1rem;
}
ul {
list-style: circle;
padding-left: 1.4em;
}
ol {
list-style: decimal;
padding-left: 1.4em;
}
table {
tr {
th, td {
padding: calc(#{$gutter-width} / 2) calc(#{$gutter-width * 2}) calc(#{$gutter-width} / 2) 0;
}
th {
font-weight: bold;
}
}
}
strong {
font-weight: bold;
}
em {
font-style: italic;
}
@media only screen and (min-width: $media-query) {
body {
padding: 155px 0 0 0;
}
h1 {
font-size: 1.8rem;
}
h2 {
font-size: 1.6rem;
}
h3 {
font-size: 1.4rem;
}
h4 {
font-size: 1.2rem;
}
h5 {
font-size: 1.1rem;
}
h6 {
font-size: 1rem;
}
}
a {
text-decoration: none;
&.anchor:hover,
&:active,
&:visited,
&:link {
color: $primary-color;
}
&:hover {
color: darken($primary-color, 15%);
}
&.anchor:hover {
color: $font-color;
cursor: default;
}
}
img {
border-radius: $border-radius;
max-width: calc(100vw - calc(6 * #{$gutter-width}));
}
figure {
margin: 0;
}
table {
thead {
tr {
th {
text-align: left;
}
}
}
tr {
td {
vertical-align: top;
}
}
}
.container {
width: calc(100% - calc(6 * #{$gutter-width}));
margin: 0 auto;
padding: $gutter-width;
background-color: rgba(255, 255, 255, 0.9);
&.transparent {
background-color: transparent;
}
}
.flex {
display: flex;
}
@media only screen and (min-width: $media-query) {
.container {
width: calc(#{$max-width} + calc(2 * #{$gutter-width}));
}
}
.row {
flex-direction: row;
flex-wrap: wrap;
}
.column {
flex-direction: column;
}
.padding {
padding: $gutter-width / 2;
margin: $gutter-width / 2;
}
.news-featured-image {
img {
max-width: 100%;
height: auto;
}
}
.lead {
font-size: 1.2em;
}
.text-center {
text-align: center;
}
.text-right {
text-align: right;
}
.list-unstyled {
list-style: none;
margin: 0;
padding: 0;
}
.clearfix {
clear: both;
}
figure.fill {
img {
width: 100%;
height: auto;
}
}
figure.round {
img {
border-radius: 50%;
}
}
figure.small {
img {
max-width: 150px;
}
}
figure {
max-width: 100%;
img {
width: 100%;
height: auto;
}
figcaption {
color: $font-color;
}
}
.btn {
padding: .5rem 2rem;
border: 1px solid black;
border-radius: $border-radius;
color: black
}
a.btn-primary {
background-color: $primary-color;
border: 1px solid $primary-color;
color: white;
&:active,
&:visited {
color: white;
}
}
.call-to-action {
min-height: 2rem;
div {
width: 100%;
}
}
.full-width {
min-width: 100%;
}
.youtube {
width: 100%;
position: relative;
padding-bottom: 56.25%;
height: 0;
overflow: hidden;
margin: $gutter-width 0;
border-radius: $border-radius;
iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border:0;
}
}