Skip to content

Commit

Permalink
Fixes custom pages and improved styling
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanbc committed Mar 24, 2019
1 parent 0940214 commit 3797570
Show file tree
Hide file tree
Showing 8 changed files with 145 additions and 82 deletions.
2 changes: 1 addition & 1 deletion assets/css/index.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions assets/scss/_globals.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
//globals
html {
scroll-behavior: smooth;
}

body {
font-family: $font-1;
font-weight: 400;
Expand Down Expand Up @@ -106,6 +110,15 @@ dt {
margin-bottom: 1.4rem;
}

blockquote {
position: relative;
margin: 0 0 2.5rem;
padding: 0 0 1rem;
color: $color-3;
font-family: $font-0;
font-style: italic;
}

.text-left {
text-align: left;
}
Expand Down
8 changes: 1 addition & 7 deletions assets/scss/_layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ main {
}

ul {
list-style-type: initial;
list-style-type: square;
}

ul,
Expand All @@ -145,12 +145,6 @@ main {
code {
overflow: auto;
}

blockquote {
border-left: 4px solid $color-1;
margin-left: 2rem;
padding-left: 2rem;
}
}

.post-extra {
Expand Down
33 changes: 32 additions & 1 deletion assets/scss/_media.scss
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,37 @@
}
}

@media screen and (min-width: 480px) {
blockquote {
padding-left: 6rem;

&::before {
content: '';
display: block;
position: absolute;
top: 0;
left: 0;
color: $color-0;
font-family: $font-0;
font-size: 6rem;
font-style: normal;
font-weight: 700;
line-height: .8;
}
}
}

@media screen and (min-width: 800px) {
blockquote {
padding-right: 2rem;
padding-left: 8.6rem;

&::before {
font-size: 8rem;
}
}
}

@media (min-width: 40rem) {
h1 {
font-size: 5rem;
Expand All @@ -67,4 +98,4 @@
h6 {
font-size: 2rem;
}
}
}
40 changes: 25 additions & 15 deletions page-projects.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -17,29 +17,39 @@
<table class="u-full-width">
<tbody>
<tr>
<td>asgar</td>
<td>Zombie ipsum reversus ab viral inferno, nam rick grimes malum cerebro. De carne lumbering animata corpora quaeritis. Summus brains sit​​, morbo vel maleficia?</td>
<td><a href="" title="Fork asgar"><i class="fas fa-code-branch"></i></a></td>
<td>Project 1</td>
<td>Zombie ipsum reversus ab viral inferno, nam rick grimes malum cerebro. De carne
lumbering animata corpora quaeritis. Summus brains sit​​, morbo vel maleficia?</td>
<td class="text-center"><a href="" title="Fork Project 1"><i
class="fas fa-code-branch"></i></a></td>
</tr>
<tr>
<td>asgar</td>
<td>Zombie ipsum reversus ab viral inferno, nam rick grimes malum cerebro. De carne lumbering animata corpora quaeritis. Summus brains sit​​, morbo vel maleficia?</td>
<td><a href="" title="Fork asgar"><i class="fas fa-code-branch"></i></a></td>
<td>Project 2</td>
<td>Zombie ipsum reversus ab viral inferno, nam rick grimes malum cerebro. De carne
lumbering animata corpora quaeritis. Summus brains sit​​, morbo vel maleficia?</td>
<td class="text-center"><a href="" title="Fork Project 2"><i
class="fas fa-code-branch"></i></a></td>
</tr>
<tr>
<td>asgar</td>
<td>Zombie ipsum reversus ab viral inferno, nam rick grimes malum cerebro. De carne lumbering animata corpora quaeritis. Summus brains sit​​, morbo vel maleficia?</td>
<td><a href="" title="Fork asgar"><i class="fas fa-code-branch"></i></a></td>
<td>Project 3</td>
<td>Zombie ipsum reversus ab viral inferno, nam rick grimes malum cerebro. De carne
lumbering animata corpora quaeritis. Summus brains sit​​, morbo vel maleficia?</td>
<td class="text-center"><a href="" title="Fork Project 3"><i
class="fas fa-code-branch"></i></a></td>
</tr>
<tr>
<td>asgar</td>
<td>Zombie ipsum reversus ab viral inferno, nam rick grimes malum cerebro. De carne lumbering animata corpora quaeritis. Summus brains sit​​, morbo vel maleficia?</td>
<td><a href="" title="Fork asgar"><i class="fas fa-code-branch"></i></a></td>
<td>Project 4</td>
<td>Zombie ipsum reversus ab viral inferno, nam rick grimes malum cerebro. De carne
lumbering animata corpora quaeritis. Summus brains sit​​, morbo vel maleficia?</td>
<td class="text-center"><a href="" title="Fork Project 4"><i
class="fas fa-code-branch"></i></a></td>
</tr>
<tr>
<td>asgar</td>
<td>A simple aspect ratio calculator</td>
<td><a href="" title="Fork asgar"><i class="fas fa-code-branch"></i></a></td>
<td>Project 5</td>
<td>Zombie ipsum reversus ab viral inferno, nam rick grimes malum cerebro. De carne
lumbering animata corpora quaeritis. Summus brains sit​​, morbo vel maleficia?</td>
<td class="text-center"><a href="" title="Fork Project 5"><i
class="fas fa-code-branch"></i></a></td>
</tr>
</tbody>
</table>
Expand Down
Loading

0 comments on commit 3797570

Please sign in to comment.