Skip to content

Commit b5d117c

Browse files
authored
Merge pull request pages-themes#49 from tswfi/show_full_header_for_small_displays
Show full header h1 for smaller displays
2 parents 7baf14d + d0d25c5 commit b5d117c

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

_sass/jekyll-theme-hacker.scss

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@ $body-foreground: $gallery !default;
66
$header: $conifer !default;
77
$blockquote-color: $silver-chalice !default;
88
$blockquote-border: $dove-grey !default;
9+
$container-max-width: 1000px;
10+
11+
@mixin media-max-width($max-width) {
12+
@media (max-width: $max-width) {
13+
@content;
14+
}
15+
}
916

1017
body {
1118
margin: 0;
@@ -21,7 +28,7 @@ body {
2128

2229
.container {
2330
width: 90%;
24-
max-width: 1000px;
31+
max-width: $container-max-width;
2532
margin: 0 auto;
2633
}
2734

@@ -64,8 +71,12 @@ header h1 {
6471
0 0 10px rgba(181, 232, 83, 0.1);
6572
letter-spacing: -1px;
6673
-webkit-font-smoothing: antialiased;
74+
@include media-max-width($container-max-width) {
75+
margin-left: 0;
76+
}
6777
}
6878

79+
6980
header h1:before {
7081
content: "./ ";
7182
font-size: 24px;

0 commit comments

Comments
 (0)