tablet reponsive

This commit is contained in:
Yves Gatesoupe 2020-07-17 18:35:06 +02:00
parent 6da83b2d89
commit de70877811
9 changed files with 125 additions and 20 deletions

View File

@ -1,6 +1,6 @@
{% if navigation.items %} {% if navigation.items %}
<nav class="nav" aria-label="{{ariaLabel}}"> <nav class="nav" aria-label="{{ariaLabel}}">
<ul class="[ nav__list ] [ box-flex align-center md:space-before ]"> <ul class="[ nav__list ]">
{% for item in navigation.items %} {% for item in navigation.items %}
{% set relAttribute = '' %} {% set relAttribute = '' %}
{% set currentAttribute = '' %} {% set currentAttribute = '' %}

View File

@ -42,6 +42,59 @@
} }
} }
@media (min-width: 768px) and (max-width: 1199.98px) {
.intro {
margin-top: 4rem;
&__heading {
width: 100%;
max-width: none;
+ svg {
order: 1;
margin-right: auto;
}
}
.btn-grp {
margin-top: auto;
margin-right: auto;
margin-bottom: 4rem;
}
}
}
@media (min-width: 576px) and (max-width: 767.98px) {
.intro {
margin-top: 3rem;
&__heading {
font-size: 1.75rem;
+ svg {
margin: 2rem auto 0;
max-width: 7rem;
order: 0;
}
}
.btn-grp {
display: flex;
width: auto;
flex-direction: column;
align-items: center;
margin-top: auto;
margin-bottom: auto;
margin-right: auto;
.btn + .btn {
margin-left: 0;
margin-top: 1.5rem;
}
}
}
}
@media (max-width: 575.98px) { @media (max-width: 575.98px) {
.intro { .intro {
margin-top: 3rem; margin-top: 3rem;
@ -52,16 +105,17 @@
+ svg { + svg {
margin: 2rem auto 0; margin: 2rem auto 0;
max-width: 7rem; max-width: 7rem;
order: 0;
} }
} }
.btn-grp { .btn-grp {
margin-top: 0;
display: flex; display: flex;
width: 100%;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
margin-top: 2rem; margin-top: 2rem;
margin-bottom: 0;
width: 100%;
.btn + .btn { .btn + .btn {
margin-left: 0; margin-left: 0;

View File

@ -52,12 +52,25 @@
} }
} }
@media (max-width: 575.98px) { @media (max-width: 1199.98px) {
.member-list { .member-list {
&__heading { &__heading {
margin: 4rem 0; margin: 4rem 0;
font-size: 1.75rem;
} }
}
}
@media (max-width: 991.98px) {
.member-list {
&__items {
grid-template-columns: repeat(2, 1fr);
}
}
}
@media (max-width: 575.98px) {
.member-list {
&__items { &__items {
display: block; display: block;
} }

View File

@ -5,6 +5,9 @@
margin: -.5rem; margin: -.5rem;
-webkit-overflow-scrolling: touch; -webkit-overflow-scrolling: touch;
-ms-overflow-style: none; -ms-overflow-style: none;
display: flex;
align-items: center;
justify-content: flex-end;
&::-webkit-scrollbar { &::-webkit-scrollbar {
display: none; display: none;
@ -35,8 +38,12 @@
} }
} }
@media (max-width: 575.98px) { @media (max-width: 1199.98px) {
.nav { .nav {
margin-top: 1rem; margin-top: 1rem;
&__list {
justify-content: flex-start;
}
} }
} }

View File

@ -330,7 +330,7 @@
} }
} }
@media (max-width: 575.98px) { @media (max-width: 1199.98px) {
.post { .post {
&__body { &__body {
h1 { h1 {
@ -350,8 +350,21 @@
min-width: 48rem; min-width: 48rem;
} }
.process-cae{ .process-cae {
&__block {
.small-boat {
margin-left: auto;
}
}
}
}
}
}
@media (max-width: 575.98px) {
.post {
&__body {
.process-cae {
&.split { &.split {
display: block; display: block;

View File

@ -69,7 +69,7 @@
} }
} }
.home .news-list { main.home .news-list {
margin-top: 8rem; margin-top: 8rem;
margin-bottom: 24rem; margin-bottom: 24rem;
position: relative; position: relative;
@ -80,25 +80,43 @@
} }
} }
@media (max-width: 575.98px) { @media (min-width: 768px) and (max-width: 1199.98px) {
.news-list { .news-list {
> svg { &__items {
width: 70rem; grid-template-columns: repeat(3, 1fr);
overflow: hidden;
} }
}
}
@media (min-width: 576px) and (max-width: 767.98px) {
.news-list {
&__items {
grid-template-columns: repeat(2, 1fr);
}
}
}
@media (max-width: 575.98px) {
main.posts .news-list {
&__items { &__items {
display: block; display: block;
} }
&__item + &__item { li + li {
margin-top: 1.5rem; margin-top: 1.5rem;
} }
} }
}
.home .news-list { @media (max-width: 1199.98px) {
main.home .news-list {
margin: 6rem 0; margin: 6rem 0;
> svg {
width: 70rem;
overflow: hidden;
}
.wrapper { .wrapper {
max-width: 100%; max-width: 100%;
margin: 0; margin: 0;

View File

@ -81,7 +81,7 @@
} }
} }
@media (max-width: 575.98px) { @media (max-width: 767.98px) {
.presentation { .presentation {
article { article {
display: block; display: block;

View File

@ -19,7 +19,7 @@
} }
} }
@media (max-width: 575.98px) { @media (max-width: 1199.98px) {
.site-head { .site-head {
&__inner { &__inner {
display: block; display: block;

View File

@ -36,7 +36,7 @@
} }
} }
@media (max-width: 575.98px) { @media (max-width: 767.98px) {
.sponsor { .sponsor {
&__list { &__list {
display: flex; display: flex;