Fix responsive

This commit is contained in:
Chocobozzz 2019-10-25 15:54:37 +02:00
parent 6cabc0060a
commit e46fa9fba1
No known key found for this signature in database
GPG key ID: 583A612D890159BE
6 changed files with 57 additions and 24 deletions

View file

@ -190,27 +190,25 @@
}
@media screen and (max-width: $responsive-screen) {
.root {
width: auto;
flex-direction: column;
padding: 15px 10px;
width: auto;
flex-direction: column;
padding: 15px;
.left {
width: auto;
margin-right: 0;
.left {
width: auto;
margin-right: 0;
}
.right {
margin-top: 20px;
.follow,
.languages {
margin-bottom: 5px;
}
.right {
.link {
margin-top: 20px;
.follow,
.languages {
margin-bottom: 5px;
}
.link {
margin-top: 20px;
}
}
}
}

View file

@ -155,6 +155,10 @@ p > a {
height: 3px;
background-color: $orange;
flex-grow: 1;
@media screen and (max-width: $small-screen) {
display: none;
}
}
}
@ -175,7 +179,12 @@ p > a {
}
@media screen and (max-width: $small-screen) {
margin: 50px 0 30px 0;
margin: 75px 0 30px 0;
font-size: 25px;
.brand-title {
height: 30px;
}
}
}
@ -188,6 +197,7 @@ p > a {
@media screen and (max-width: $responsive-screen) {
white-space: normal;
margin-top: 50px;
}
}

View file

@ -611,6 +611,17 @@
}
}
}
@media screen and (max-width: $small-screen) {
.sponsors a img {
width: 100%;
height: auto;
}
ul li {
display: block;
}
}
}
</style>

View file

@ -127,6 +127,7 @@
.text-block {
text-align: right;
width: 100%;
p {
margin-bottom: 0;
@ -153,6 +154,10 @@
}
@media screen and (max-width: $small-screen) {
.title-block {
margin-bottom: 60px;
}
.blocks {
width: auto;
}
@ -160,6 +165,11 @@
.block-with-image {
flex-direction: column;
&.community,
&.contribute {
flex-direction: column-reverse;
}
.text-block {
margin-left: 0 !important;
}

View file

@ -401,7 +401,7 @@
.brand {
height: 47px;
margin-bottom: 20px;
margin-left: -30px;
margin-left: -10px;
}
div {
@ -411,18 +411,18 @@
.description {
font-size: 24px;
font-weight: 600;
text-align: center;
}
@media screen and (max-width: $small-screen) {
padding: 15px 0;
padding: 40px 0 0 0;
.brand {
height: 25px !important
height: 50px !important
}
.description {
font-size: 20px;
margin-left: 20px;
}
}
}

View file

@ -15,7 +15,7 @@
</a>
</div>
<div class="block-with-image">
<div class="block-with-image step-1">
<div>
<img :src="buildImgUrl('peertube-federation-multiplicity.png')" alt="Multiple instances illustration">
</div>
@ -30,7 +30,7 @@
</div>
</div>
<div class="block-with-image">
<div class="block-with-image step-2">
<div>
<div class="title" v-translate>2. Create your account and enjoy PeerTube</div>
@ -100,6 +100,10 @@
.block-with-image {
flex-direction: column;
&.step-2 {
flex-direction: column-reverse;
}
img {
margin-bottom: 20px;
}