Skip to content

Commit bc673c3

Browse files
committed
Merge pull request gtk-rs#1 from GuillaumeGomez/master
Improve site style
2 parents 69669ad + 3515af9 commit bc673c3

File tree

4 files changed

+35
-14
lines changed

4 files changed

+35
-14
lines changed

_sass/_base.scss

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ code {
151151

152152
pre {
153153
padding: 8px 12px;
154-
overflow-x: scroll;
154+
overflow-x: auto;
155155

156156
> code {
157157
border: 0;
@@ -173,6 +173,8 @@ pre {
173173
padding-right: $spacing-unit;
174174
padding-left: $spacing-unit;
175175
@extend %clearfix;
176+
border-radius: 5px;
177+
background-color: $elem-background;
176178

177179
@include media-query($on-laptop) {
178180
max-width: -webkit-calc(800px - (#{$spacing-unit}));
@@ -185,6 +187,7 @@ pre {
185187
.wide-wrapper {
186188
max-width: -webkit-calc(1000px - (#{$spacing-unit} * 2));
187189
max-width: calc(1000px - (#{$spacing-unit} * 2));
190+
padding-top: 10px;
188191
}
189192

190193

_sass/_layout.scss

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
// Positioning context for the mobile navigation icon
1010
position: relative;
11+
background-color: $elem-background;
1112
}
1213

1314
.site-title {
@@ -93,7 +94,8 @@
9394
*/
9495
.site-footer {
9596
border-top: 1px solid $grey-color-light;
96-
padding: $spacing-unit 0;
97+
padding-top: 12px;
98+
background-color: $elem-background;
9799
}
98100

99101
.footer-heading {
@@ -145,7 +147,6 @@
145147

146148
.footer-col {
147149
float: left;
148-
margin-bottom: $spacing-unit / 2;
149150
padding-left: $spacing-unit / 2;
150151
}
151152

@@ -191,7 +192,7 @@
191192
* Page content
192193
*/
193194
.page-content {
194-
padding: $spacing-unit 0;
195+
padding: 10px 0;
195196
}
196197

197198
.page-heading {
@@ -263,3 +264,16 @@
263264
}
264265
}
265266
}
267+
268+
.news {
269+
background-color: #F7F5D7;
270+
border-radius: 5px;
271+
padding: 7px;
272+
}
273+
274+
.crates {
275+
background-color: #E6F5F9;
276+
border-radius: 5px;
277+
padding: 7px;
278+
margin-bottom: 7px;
279+
}

css/main.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ $spacing-unit: 30px;
1616
$text-color: #111;
1717
$background-color: #fdfdfd;
1818
$brand-color: #2a7ae2;
19+
$elem-background: #f7f7f7;
1920

2021
$grey-color: #828282;
2122
$grey-color-light: lighten($grey-color, 40%);

index.md

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,23 @@ layout: wide
1515
[Cairo]: http://cairographics.org/documentation/
1616

1717
</div>
18-
1918
<div class="intro-col intro-col-2">
20-
<p class="page-heading"> Crates </p>
21-
{% include badges.html %}
22-
<p class="page-heading"> Announcements </p>
23-
{% for post in site.categories.front limit:3 %}
24-
<span class="post-meta">{{ post.date | date: "%b %-d, %Y" }}</span>
25-
<p>
26-
<a href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a>
27-
</p>
28-
{% endfor %}
19+
<div class="crates">
20+
<p class="page-heading"> Crates </p>
21+
{% include badges.html %}
22+
</div>
23+
<div class="news">
24+
<p class="page-heading"> Announcements </p>
25+
{% for post in site.categories.front limit:3 %}
26+
<span class="post-meta">{{ post.date | date: "%b %-d, %Y" }}</span>
27+
<p>
28+
<a href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a>
29+
</p>
30+
{% endfor %}
2931
<p>
3032
<a href="{{ pages.news.url | prepend: site.baseurl }}">All news</a>
3133
</p>
34+
</div>
3235
</div>
3336
</div>
3437

0 commit comments

Comments
 (0)