Fix formatting for mobile
This commit is contained in:
parent
68dad25e2b
commit
13e4c79876
@ -1,7 +1,8 @@
|
|||||||
---
|
---
|
||||||
---
|
---
|
||||||
|
|
||||||
// Do not remove the abot 2 lines
|
// Do not remove the above 2 lines
|
||||||
|
|
||||||
// Colors
|
// Colors
|
||||||
$blue: #4183C4;
|
$blue: #4183C4;
|
||||||
$red: #E74C3C;
|
$red: #E74C3C;
|
||||||
@ -98,13 +99,6 @@ table {
|
|||||||
-moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box;
|
-moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Mobile breakpoints
|
|
||||||
@mixin mobile {
|
|
||||||
@media screen and (max-width: 640px) {
|
|
||||||
@content;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**************/
|
/**************/
|
||||||
/* BASE RULES */
|
/* BASE RULES */
|
||||||
/**************/
|
/**************/
|
||||||
@ -128,12 +122,26 @@ body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.one-half {
|
.one-half {
|
||||||
width: 50%;
|
width: 75%;
|
||||||
|
max-width: 800px;
|
||||||
|
flex-direction: column;
|
||||||
}
|
}
|
||||||
|
|
||||||
.one-fourth {
|
.one-fourth {
|
||||||
display: flex;
|
display: flex;
|
||||||
width: 25%;
|
width: 10%;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 800px) {
|
||||||
|
.one-fourth {
|
||||||
|
display: flex;
|
||||||
|
width: 0%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.one-half {
|
||||||
|
display: flex;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
h1, h2, h3, h4, h5, h6 {
|
h1, h2, h3, h4, h5, h6 {
|
||||||
@ -145,10 +153,6 @@ h1, h2, h3, h4, h5, h6 {
|
|||||||
margin: 1em 0 15px;
|
margin: 1em 0 15px;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
|
|
||||||
@include mobile {
|
|
||||||
line-height: 1.4;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
h1 {
|
h1 {
|
||||||
@ -372,7 +376,6 @@ p > img {
|
|||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/// Code
|
/// Code
|
||||||
|
|
||||||
.nt {
|
.nt {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user