adjustments for responsive webdesign

This commit is contained in:
Vrifox 2020-09-21 10:59:52 +02:00
parent ece55fd60b
commit 740f1318ce
11 changed files with 265 additions and 98 deletions

View file

@ -58,3 +58,8 @@ header {
background: rgb(70, 70, 105); background: rgb(70, 70, 105);
} }
} }
@media (max-width: 600px) {
.section-articles {
grid-template-columns: repeat(1, 1fr);
}
}

View file

@ -3,7 +3,7 @@
.section-article { .section-article {
article { article {
max-width: calc(100% / 3 * 2); max-width: 720px;
margin: 80px auto; margin: 80px auto;
.meta { .meta {
color: rgb(180, 180, 220); color: rgb(180, 180, 220);
@ -58,7 +58,7 @@
display: grid; display: grid;
grid-template-columns: repeat(2, 1fr); grid-template-columns: repeat(2, 1fr);
grid-gap: 1rem; grid-gap: 1rem;
max-width: calc(100% / 3 * 2); max-width: 720px;
a { a {
color: rgb(255, 255, 255); color: rgb(255, 255, 255);
text-decoration: none; text-decoration: none;
@ -102,5 +102,10 @@
background: rgb(70, 70, 105); background: rgb(70, 70, 105);
} }
} }
@media (max-width: 600px) {
.section-articles {
grid-template-columns: repeat(1, 1fr);
}
}
@import '../partials/footer'; @import '../partials/footer';

View file

@ -55,6 +55,11 @@ header {
background: rgb(70, 70, 105); background: rgb(70, 70, 105);
} }
} }
@media (max-width: 900px) {
.section-articles {
grid-template-columns: repeat(1, 1fr);
}
}
.section-projects { .section-projects {
margin: 20px 0; margin: 20px 0;
@ -98,5 +103,15 @@ header {
background: rgb(70, 70, 105); background: rgb(70, 70, 105);
} }
} }
@media (max-width: 900px) {
.section-projects {
grid-template-columns: repeat(2, 1fr);
}
}
@media (max-width: 600px) {
.section-projects {
grid-template-columns: repeat(1, 1fr);
}
}
@import 'partials/footer'; @import 'partials/footer';

View file

@ -2,13 +2,13 @@ footer {
background: rgb(30, 30, 45); background: rgb(30, 30, 45);
color: rgb(200, 200, 230); color: rgb(200, 200, 230);
margin-top: 100px; margin-top: 100px;
white-space: nowrap;
overflow-x: auto;
.container { .container {
display: flex; display: flex;
align-items: center; align-items: center;
} max-width: none;
} .website-subnav {
.website-subnav {
margin-left: auto; margin-left: auto;
ul { ul {
display: flex; display: flex;
@ -16,10 +16,26 @@ footer {
} }
li { li {
list-style-type: none; list-style-type: none;
padding: 10px; padding: 10px 0 10px 30px;
padding-left: 20px;
} }
a { a {
color: rgb(200, 200, 230); color: rgb(200, 200, 230);
} }
}
}
}
@media (max-width: 600px) {
footer {
.container {
.website-version {
order: 2;
padding: 10px 20px;
}
.website-subnav {
li {
padding: 10px 30px 10px 0;
}
}
}
}
} }

View file

@ -15,10 +15,15 @@ body {
margin: 0; margin: 0;
font-family: Monaco, Lucida Console, monospace; font-family: Monaco, Lucida Console, monospace;
display: grid; display: grid;
overflow-x: hidden;
} }
.container { .container {
width: 100%; width: calc(100% - 40px);
max-width: 1140px; max-width: 1140px;
margin: 0 auto; margin: 0 auto;
} }
main {
width: 100vw;
}

View file

@ -1,8 +1,11 @@
nav { nav {
background: rgb(60, 60, 90); background: rgb(60, 60, 90);
white-space: nowrap;
overflow-x: auto;
.container { .container {
display: flex; display: flex;
align-items: center; align-items: center;
max-width: none;
.website-name { .website-name {
a { a {
color: rgb(245, 245, 245); color: rgb(245, 245, 245);
@ -21,8 +24,7 @@ nav {
} }
li { li {
list-style-type: none; list-style-type: none;
padding: 10px; padding: 10px 0 10px 30px;
padding-left: 20px;
} }
a { a {
color: rgb(245, 245, 245); color: rgb(245, 245, 245);
@ -31,3 +33,12 @@ nav {
} }
} }
} }
@media (max-width: 600px) {
nav {
.container {
.website-nav {
padding: 0 20px;
}
}
}
}

View file

@ -52,5 +52,15 @@ header {
background: rgb(70, 70, 105); background: rgb(70, 70, 105);
} }
} }
@media (max-width: 900px) {
.section-articles {
grid-template-columns: repeat(2, 1fr);
}
}
@media (max-width: 600px) {
.section-articles {
grid-template-columns: repeat(1, 1fr);
}
}
@import '../partials/footer'; @import '../partials/footer';

View file

@ -13,18 +13,25 @@ body {
color: #f0f0ff; color: #f0f0ff;
margin: 0; margin: 0;
font-family: Monaco, Lucida Console, monospace; font-family: Monaco, Lucida Console, monospace;
display: grid; } display: grid;
overflow-x: hidden; }
.container { .container {
width: 100%; width: calc(100% - 40px);
max-width: 1140px; max-width: 1140px;
margin: 0 auto; } margin: 0 auto; }
main {
width: 100vw; }
nav { nav {
background: #3c3c5a; } background: #3c3c5a;
white-space: nowrap;
overflow-x: auto; }
nav .container { nav .container {
display: flex; display: flex;
align-items: center; } align-items: center;
max-width: none; }
nav .container .website-name a { nav .container .website-name a {
color: whitesmoke; color: whitesmoke;
text-decoration: none; text-decoration: none;
@ -39,32 +46,43 @@ nav {
padding: 0; } padding: 0; }
nav .container .website-nav li { nav .container .website-nav li {
list-style-type: none; list-style-type: none;
padding: 10px; padding: 10px 0 10px 30px; }
padding-left: 20px; }
nav .container .website-nav a { nav .container .website-nav a {
color: whitesmoke; color: whitesmoke;
text-decoration: none; } text-decoration: none; }
@media (max-width: 600px) {
nav .container .website-nav {
padding: 0 20px; } }
footer { footer {
background: #1e1e2d; background: #1e1e2d;
color: #c8c8e6; color: #c8c8e6;
margin-top: 100px; } margin-top: 100px;
white-space: nowrap;
overflow-x: auto; }
footer .container { footer .container {
display: flex; display: flex;
align-items: center; } align-items: center;
max-width: none; }
.website-subnav { footer .container .website-subnav {
margin-left: auto; } margin-left: auto; }
.website-subnav ul { footer .container .website-subnav ul {
display: flex; display: flex;
padding: 0; } padding: 0; }
.website-subnav li { footer .container .website-subnav li {
list-style-type: none; list-style-type: none;
padding: 10px; padding: 10px 0 10px 30px; }
padding-left: 20px; } footer .container .website-subnav a {
.website-subnav a {
color: #c8c8e6; } color: #c8c8e6; }
@media (max-width: 600px) {
footer .container .website-version {
order: 2;
padding: 10px 20px; }
footer .container .website-subnav li {
padding: 10px 30px 10px 0; } }
header { header {
text-align: center; text-align: center;
margin: 100px 0; } margin: 100px 0; }
@ -109,3 +127,7 @@ header {
color: #c8c8e6; } color: #c8c8e6; }
.section-articles article:hover { .section-articles article:hover {
background: #464669; } background: #464669; }
@media (max-width: 600px) {
.section-articles {
grid-template-columns: repeat(1, 1fr); } }

View file

@ -13,18 +13,25 @@ body {
color: #f0f0ff; color: #f0f0ff;
margin: 0; margin: 0;
font-family: Monaco, Lucida Console, monospace; font-family: Monaco, Lucida Console, monospace;
display: grid; } display: grid;
overflow-x: hidden; }
.container { .container {
width: 100%; width: calc(100% - 40px);
max-width: 1140px; max-width: 1140px;
margin: 0 auto; } margin: 0 auto; }
main {
width: 100vw; }
nav { nav {
background: #3c3c5a; } background: #3c3c5a;
white-space: nowrap;
overflow-x: auto; }
nav .container { nav .container {
display: flex; display: flex;
align-items: center; } align-items: center;
max-width: none; }
nav .container .website-name a { nav .container .website-name a {
color: whitesmoke; color: whitesmoke;
text-decoration: none; text-decoration: none;
@ -39,14 +46,17 @@ nav {
padding: 0; } padding: 0; }
nav .container .website-nav li { nav .container .website-nav li {
list-style-type: none; list-style-type: none;
padding: 10px; padding: 10px 0 10px 30px; }
padding-left: 20px; }
nav .container .website-nav a { nav .container .website-nav a {
color: whitesmoke; color: whitesmoke;
text-decoration: none; } text-decoration: none; }
@media (max-width: 600px) {
nav .container .website-nav {
padding: 0 20px; } }
.section-article article { .section-article article {
max-width: calc(100% / 3 * 2); max-width: 720px;
margin: 80px auto; } margin: 80px auto; }
.section-article article .meta { .section-article article .meta {
color: #b4b4dc; } color: #b4b4dc; }
@ -89,7 +99,7 @@ nav {
display: grid; display: grid;
grid-template-columns: repeat(2, 1fr); grid-template-columns: repeat(2, 1fr);
grid-gap: 1rem; grid-gap: 1rem;
max-width: calc(100% / 3 * 2); } max-width: 720px; }
.section-articles a { .section-articles a {
color: white; color: white;
text-decoration: none; } text-decoration: none; }
@ -124,22 +134,34 @@ nav {
.section-articles article:hover { .section-articles article:hover {
background: #464669; } background: #464669; }
@media (max-width: 600px) {
.section-articles {
grid-template-columns: repeat(1, 1fr); } }
footer { footer {
background: #1e1e2d; background: #1e1e2d;
color: #c8c8e6; color: #c8c8e6;
margin-top: 100px; } margin-top: 100px;
white-space: nowrap;
overflow-x: auto; }
footer .container { footer .container {
display: flex; display: flex;
align-items: center; } align-items: center;
max-width: none; }
.website-subnav { footer .container .website-subnav {
margin-left: auto; } margin-left: auto; }
.website-subnav ul { footer .container .website-subnav ul {
display: flex; display: flex;
padding: 0; } padding: 0; }
.website-subnav li { footer .container .website-subnav li {
list-style-type: none; list-style-type: none;
padding: 10px; padding: 10px 0 10px 30px; }
padding-left: 20px; } footer .container .website-subnav a {
.website-subnav a {
color: #c8c8e6; } color: #c8c8e6; }
@media (max-width: 600px) {
footer .container .website-version {
order: 2;
padding: 10px 20px; }
footer .container .website-subnav li {
padding: 10px 30px 10px 0; } }

View file

@ -13,18 +13,25 @@ body {
color: #f0f0ff; color: #f0f0ff;
margin: 0; margin: 0;
font-family: Monaco, Lucida Console, monospace; font-family: Monaco, Lucida Console, monospace;
display: grid; } display: grid;
overflow-x: hidden; }
.container { .container {
width: 100%; width: calc(100% - 40px);
max-width: 1140px; max-width: 1140px;
margin: 0 auto; } margin: 0 auto; }
main {
width: 100vw; }
nav { nav {
background: #3c3c5a; } background: #3c3c5a;
white-space: nowrap;
overflow-x: auto; }
nav .container { nav .container {
display: flex; display: flex;
align-items: center; } align-items: center;
max-width: none; }
nav .container .website-name a { nav .container .website-name a {
color: whitesmoke; color: whitesmoke;
text-decoration: none; text-decoration: none;
@ -39,12 +46,15 @@ nav {
padding: 0; } padding: 0; }
nav .container .website-nav li { nav .container .website-nav li {
list-style-type: none; list-style-type: none;
padding: 10px; padding: 10px 0 10px 30px; }
padding-left: 20px; }
nav .container .website-nav a { nav .container .website-nav a {
color: whitesmoke; color: whitesmoke;
text-decoration: none; } text-decoration: none; }
@media (max-width: 600px) {
nav .container .website-nav {
padding: 0 20px; } }
header { header {
text-align: center; text-align: center;
margin: 150px 0; } margin: 150px 0; }
@ -89,6 +99,10 @@ header {
.section-articles article:hover { .section-articles article:hover {
background: #464669; } background: #464669; }
@media (max-width: 900px) {
.section-articles {
grid-template-columns: repeat(1, 1fr); } }
.section-projects { .section-projects {
margin: 20px 0; margin: 20px 0;
display: grid; display: grid;
@ -124,22 +138,38 @@ header {
.section-projects article:hover { .section-projects article:hover {
background: #464669; } background: #464669; }
@media (max-width: 900px) {
.section-projects {
grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
.section-projects {
grid-template-columns: repeat(1, 1fr); } }
footer { footer {
background: #1e1e2d; background: #1e1e2d;
color: #c8c8e6; color: #c8c8e6;
margin-top: 100px; } margin-top: 100px;
white-space: nowrap;
overflow-x: auto; }
footer .container { footer .container {
display: flex; display: flex;
align-items: center; } align-items: center;
max-width: none; }
.website-subnav { footer .container .website-subnav {
margin-left: auto; } margin-left: auto; }
.website-subnav ul { footer .container .website-subnav ul {
display: flex; display: flex;
padding: 0; } padding: 0; }
.website-subnav li { footer .container .website-subnav li {
list-style-type: none; list-style-type: none;
padding: 10px; padding: 10px 0 10px 30px; }
padding-left: 20px; } footer .container .website-subnav a {
.website-subnav a {
color: #c8c8e6; } color: #c8c8e6; }
@media (max-width: 600px) {
footer .container .website-version {
order: 2;
padding: 10px 20px; }
footer .container .website-subnav li {
padding: 10px 30px 10px 0; } }

View file

@ -13,18 +13,25 @@ body {
color: #f0f0ff; color: #f0f0ff;
margin: 0; margin: 0;
font-family: Monaco, Lucida Console, monospace; font-family: Monaco, Lucida Console, monospace;
display: grid; } display: grid;
overflow-x: hidden; }
.container { .container {
width: 100%; width: calc(100% - 40px);
max-width: 1140px; max-width: 1140px;
margin: 0 auto; } margin: 0 auto; }
main {
width: 100vw; }
nav { nav {
background: #3c3c5a; } background: #3c3c5a;
white-space: nowrap;
overflow-x: auto; }
nav .container { nav .container {
display: flex; display: flex;
align-items: center; } align-items: center;
max-width: none; }
nav .container .website-name a { nav .container .website-name a {
color: whitesmoke; color: whitesmoke;
text-decoration: none; text-decoration: none;
@ -39,12 +46,15 @@ nav {
padding: 0; } padding: 0; }
nav .container .website-nav li { nav .container .website-nav li {
list-style-type: none; list-style-type: none;
padding: 10px; padding: 10px 0 10px 30px; }
padding-left: 20px; }
nav .container .website-nav a { nav .container .website-nav a {
color: whitesmoke; color: whitesmoke;
text-decoration: none; } text-decoration: none; }
@media (max-width: 600px) {
nav .container .website-nav {
padding: 0 20px; } }
header { header {
text-align: center; text-align: center;
margin: 100px 0; } margin: 100px 0; }
@ -87,22 +97,38 @@ header {
.section-articles article:hover { .section-articles article:hover {
background: #464669; } background: #464669; }
@media (max-width: 900px) {
.section-articles {
grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
.section-articles {
grid-template-columns: repeat(1, 1fr); } }
footer { footer {
background: #1e1e2d; background: #1e1e2d;
color: #c8c8e6; color: #c8c8e6;
margin-top: 100px; } margin-top: 100px;
white-space: nowrap;
overflow-x: auto; }
footer .container { footer .container {
display: flex; display: flex;
align-items: center; } align-items: center;
max-width: none; }
.website-subnav { footer .container .website-subnav {
margin-left: auto; } margin-left: auto; }
.website-subnav ul { footer .container .website-subnav ul {
display: flex; display: flex;
padding: 0; } padding: 0; }
.website-subnav li { footer .container .website-subnav li {
list-style-type: none; list-style-type: none;
padding: 10px; padding: 10px 0 10px 30px; }
padding-left: 20px; } footer .container .website-subnav a {
.website-subnav a {
color: #c8c8e6; } color: #c8c8e6; }
@media (max-width: 600px) {
footer .container .website-version {
order: 2;
padding: 10px 20px; }
footer .container .website-subnav li {
padding: 10px 30px 10px 0; } }