Skip to content

Commit 2631f70

Browse files
narimiranAraq
authored andcommitted
more content, improved typography (#150)
1 parent 2353bbf commit 2631f70

File tree

6 files changed

+179
-100
lines changed

6 files changed

+179
-100
lines changed

jekyll/_includes/header.html

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
<header>
2-
<a href="https://github.com/nim-lang/nim" class="ribbon">
3-
<img style="position: absolute; top: 0; right: 0; border: 0;" height="150" src="{{ site.baseurl }}/assets/img/forkme.svg" alt="Fork me on GitHub">
4-
</a>
52
<nav class="pure-menu pure-menu-horizontal pure-menu-scrollable">
63
<div class="nav-content">
74
<a href="{{ site.baseurl }}/" class="pure-menu-heading pure-menu-link site-logo-container">

jekyll/_sass/_variables.scss

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ $footer-background-color: darken($dark-color, 5%);
55
$footer-color: #888;
66
$default-background-color: #fdfdfd;
77
$default-color: #333;
8-
$desktop-default-font-size: 17px;
9-
$mobile-default-font-size: 15px;
8+
$desktop-default-font-size: 18px;
9+
$mobile-default-font-size: 16px;
1010
$menu-background-color: darken($dark-color, 5%);
1111
$menu-color: #fff;
1212
$menu-separator-color: #888;
@@ -19,7 +19,7 @@ $menu-fade-width: 80px;
1919
$hr-color: #cfcfcf;
2020

2121

22-
$index-code-bg: #282a36;
22+
$index-code-bg: #2b2e3b;
2323
$jumbotron-background-color: #232733;
24-
$main-jumbotron-background-color: darken($dark-color, 5%);
25-
$faded-background-color: darken($default-background-color, 8%);
24+
$main-jumbotron-background-color: darken($dark-color, 2%);
25+
$faded-background-color: darken($default-background-color, 8%);

jekyll/assets/css/main.scss

Lines changed: 23 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ h1, h2, h3, h4, h5, h6 {
4242

4343
h1 {
4444
margin-top: 50px;
45+
font-size: 225%;
4546
}
4647

4748
h2 {
@@ -64,6 +65,7 @@ a {
6465
figure.highlight {
6566
code {
6667
font-family: "Inconsolata", monospace;
68+
font-size: 0.8em;
6769
}
6870

6971
pre {
@@ -81,8 +83,8 @@ figure.highlight {
8183

8284
.jumbotron {
8385
figure.highlight {
84-
padding: 25px;
85-
margin-top: 4em;
86+
padding: 5px;
87+
margin-top: 1.5em;
8688
background-color: $index-code-bg;
8789
}
8890
}
@@ -182,8 +184,9 @@ footer {
182184
}
183185

184186
.news-item {
185-
padding: 20px;
187+
padding: 15pt 25pt;
186188
text-align: justify;
189+
margin-bottom: 25pt;
187190

188191
p {
189192
margin: 0;
@@ -197,11 +200,11 @@ footer {
197200
}
198201

199202
.slim {
200-
max-width: 800px;
203+
max-width: 1000px;
201204
}
202205

203206
.site-content > .content {
204-
margin-bottom: 100px;
207+
margin-bottom: 50px;
205208
}
206209

207210
// Fix footer to stick to the bottom using flexbox.
@@ -256,19 +259,25 @@ a.pure-menu-link.pure-menu-heading {
256259
color: $jumbotron-color;
257260

258261
h1 {
259-
font-size: 250%;
262+
font-size: 225%;
260263
margin-bottom: 0;
261264
margin-top: 16px;
262265
color: $highlight-color;
263266
}
264267

265268
h2 {
266-
margin-top: 16px;
267269
font-size: 150%;
268270
}
269271

272+
h3 {
273+
font-size: 133%;
274+
margin-top: 2em;
275+
}
276+
270277
li {
271278
list-style-type: none;
279+
line-height: 1.5;
280+
margin-bottom: 0.6em;
272281

273282
&::before {
274283
content: "» ";
@@ -317,7 +326,7 @@ a.pure-menu-link.pure-menu-heading {
317326

318327
// The left part of the main page jumbotron
319328
.main-block {
320-
padding-right: 30px;
329+
padding-right: 25pt;
321330
}
322331

323332
.hljs {
@@ -361,7 +370,7 @@ h1.post-title {
361370

362371
.main-heading {
363372
text-align: center;
364-
font-size: 250%;
373+
font-size: 225%;
365374
margin-top: 0;
366375
}
367376

@@ -650,7 +659,7 @@ section#donations {
650659
.feature-projects {
651660
.pure-u-1-3, .pure-u-md-1-3 {
652661
align-self: flex-start;
653-
}
662+
}
654663
}
655664

656665
.project-container {
@@ -669,12 +678,10 @@ section#donations {
669678

670679
.project-container, .sponsor-container {
671680
display: inline-block;
672-
margin-right: 15pt;
673-
margin-top: 15pt;
674-
margin-bottom: 15pt;
681+
margin: 15pt 25pt;
682+
text-align: justify;
675683

676684
a {
677-
678685
&:hover, &:focus {
679686
.title {
680687
text-decoration: underline;
@@ -722,15 +729,11 @@ section#donations {
722729

723730
// Styles for the donate section.
724731

725-
.green.tag {
726-
background-color: #03ab1e;
727-
font-size: 60%;
728-
}
729732

730733
.sponsor-container {
731734
width: 160pt;
732735
font-size: 90%;
733-
margin-right: 20pt;
736+
text-align: center;
734737

735738
img {
736739
width: 150px;
@@ -778,7 +781,6 @@ div.code-align {
778781
}
779782

780783
.call-to-action {
781-
font-size: 125%;
782784
padding: 20px 0 60px 0;
783785
}
784786

@@ -947,7 +949,7 @@ blockquote {
947949
}
948950

949951
// Styles that apply only to medium-sized screens (small laptops for example)
950-
@media (max-width: 1370px) {
952+
@media (max-width: 1280px) {
951953
body {
952954
font-size: $mobile-default-font-size;
953955
//margin-top: $menu-height * $mobile-default-font-size / $desktop-default-font-size;

jekyll/donate.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ css_class: donate
1212

1313
<section class="background-faded call-to-action">
1414
<section class="content text-centered">
15-
<h2>BountySource</h2>
15+
<h1>BountySource</h1>
1616
<div class="pure-g center">
1717
<div class="pure-u-1-2">
1818
<p>
@@ -73,4 +73,4 @@ services.
7373
<i class="fab fa-btc" aria-hidden="true"></i>
7474
``1BXfuKM2uvoD6mbx4g5xM3eQhLzkCK77tJ``
7575

76-
</section>
76+
</section>

0 commit comments

Comments
 (0)