Skip to content

Commit

Permalink
Fix widescreen element placing
Browse files Browse the repository at this point in the history
  • Loading branch information
jultty committed Jun 5, 2024
1 parent 1a9a3ec commit 0fc8927
Showing 1 changed file with 13 additions and 19 deletions.
32 changes: 13 additions & 19 deletions assets/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ h2 {
margin: 20px 0px 10px 20px;
}

.article p {
margin: 25px 0px;
}

.sourceCode pre {
color: #ccc;
padding: 20px;
Expand All @@ -89,10 +93,10 @@ footer {

/* tablet */
@media (min-width: 401px) {
.article { margin: 0 45px; }
.article p {
margin: 25px 0px;
.article {
margin: 0 45px;
}

h1 {
margin-left: 45px;
}
Expand All @@ -101,27 +105,17 @@ footer {
/* widescreen */
@media (min-width: 1000px) {
.article {
display: grid;
grid-template-columns: 1fr 700px 1fr;
}
.article p {
grid-column-start: 2;
margin: 15px;
margin: 0 30%;
}
#title-container {
display: grid;
grid-template-columns: 1fr 700px 1fr;
}
#title-container h1 {
grid-column-start: 2;
margin: 80px 15px 30px 15px;

h1 {
margin-left: 45px;
}
}

/* phone */
@media (max-width: 400px) {
.article { margin: 0 20px; }
.article p {
margin: 25px 0px;
.article {
margin: 0 20px;
}
}

0 comments on commit 0fc8927

Please sign in to comment.