Make mobile friendly
This commit is contained in:
parent
d73f80da6d
commit
5c0edca9a6
|
@ -9,6 +9,7 @@ html {
|
||||||
background-repeat: repeat;
|
background-repeat: repeat;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media only screen and (min-width: 600px) {
|
||||||
.center {
|
.center {
|
||||||
background-color: $background-color;
|
background-color: $background-color;
|
||||||
width: 50%;
|
width: 50%;
|
||||||
|
@ -16,6 +17,16 @@ html {
|
||||||
margin: auto;
|
margin: auto;
|
||||||
border: 5px solid #96CDFB;
|
border: 5px solid #96CDFB;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media only screen and (max-width: 600px) {
|
||||||
|
.center {
|
||||||
|
background-color: $background-color;
|
||||||
|
text-align: center;
|
||||||
|
margin: 10px;
|
||||||
|
border: 5px solid #96CDFB;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.content {
|
.content {
|
||||||
margin: 5%;
|
margin: 5%;
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
@media only screen and (min-width: 600px) {
|
||||||
footer {
|
footer {
|
||||||
margin: auto;
|
margin: auto;
|
||||||
margin-top: 5%;
|
margin-top: 5%;
|
||||||
|
@ -19,4 +20,27 @@ footer {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media only screen and (max-width: 600px) {
|
||||||
|
footer {
|
||||||
|
margin: 10px;
|
||||||
|
margin-top: 5%;
|
||||||
|
margin-bottom: 5%;
|
||||||
|
border: 5px solid #ABE9B3;
|
||||||
|
|
||||||
|
ul {
|
||||||
|
list-style: none;
|
||||||
|
margin: auto;
|
||||||
|
padding: 10px;
|
||||||
|
display: grid;
|
||||||
|
|
||||||
|
li {
|
||||||
|
h3 {
|
||||||
|
margin-top: auto;
|
||||||
|
}
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -23,7 +23,10 @@ code, pre {
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
border-bottom: 2px solid #FAE3B0;
|
border-bottom: 2px solid #FAE3B0;
|
||||||
|
}
|
||||||
|
|
||||||
|
code {
|
||||||
|
display: inline;
|
||||||
}
|
}
|
||||||
|
|
||||||
.date {
|
.date {
|
||||||
|
@ -32,13 +35,17 @@ code, pre {
|
||||||
|
|
||||||
@media only screen and (min-width: 600px) {
|
@media only screen and (min-width: 600px) {
|
||||||
code, pre {
|
code, pre {
|
||||||
display: inline-block;
|
display: inline;
|
||||||
max-width: 18cm;
|
max-width: 18cm;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
code {
|
@media only screen and (max-width: 600px) {
|
||||||
display: inline;
|
code, pre {
|
||||||
|
display: inline-block;
|
||||||
|
max-width: 100%;
|
||||||
|
overflow: auto;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
p code {
|
p code {
|
||||||
|
|
|
@ -28,8 +28,10 @@ nav {
|
||||||
|
|
||||||
@media only screen and (max-width: 600px) {
|
@media only screen and (max-width: 600px) {
|
||||||
nav {
|
nav {
|
||||||
font-size: 20px;
|
margin: 10px;
|
||||||
list-style: none;
|
list-style: none;
|
||||||
|
font-size: 1.3em;
|
||||||
|
border: 5px solid #DDB6F2;
|
||||||
|
|
||||||
ul {
|
ul {
|
||||||
list-style: none;
|
list-style: none;
|
||||||
|
@ -38,15 +40,21 @@ nav {
|
||||||
margin: auto;
|
margin: auto;
|
||||||
display: grid;
|
display: grid;
|
||||||
|
|
||||||
grid-template-columns: repeat(3, 1fr);
|
grid-template-columns: repeat(3, 1fr);
|
||||||
gap: 10px;
|
gap: 10px;
|
||||||
grid-auto-rows: minmax(50px, auto);
|
grid-auto-rows: minmax(50px, auto);
|
||||||
align-content: center;
|
align-content: center;
|
||||||
|
|
||||||
li {
|
li {
|
||||||
padding: 0px;
|
padding: 0px;
|
||||||
margin: auto;
|
margin: auto;
|
||||||
|
font-weight: bold;
|
||||||
|
text-align: center;
|
||||||
|
|
||||||
|
a {
|
||||||
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue