Skip to content

Commit 8049f75

Browse files
committed
Improved layout on mobile.
1 parent 6321ec8 commit 8049f75

8 files changed

Lines changed: 49 additions & 46 deletions

File tree

‎_config.yml‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
title:
22
long: Ruby Grape | An opinionated micro-framework for creating REST-like APIs in Ruby.
3-
short: Ruby Grape | API Framework
3+
short: Ruby Grape
44
locale: en_US
55
url: # https://ruby-grape.github.io
66
markdown: kramdown
@@ -15,7 +15,7 @@ kramdown:
1515
owner:
1616
name: Ruby Grape
1717
avatar: logo.png
18-
info: ""
18+
info: An opinionated micro-framework for creating REST-like APIs in Ruby.
1919
email: ruby-grape@googlegroups.com
2020
disqus-shortname:
2121
twitter:
@@ -39,4 +39,3 @@ owner:
3939
dribbble:
4040
youtube:
4141
soundcloud:
42-
paginate: 30

‎_includes/_navigation.html‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
<div class="navigation-wrapper">
22
<div class="site-name">
3+
<img src="{{ site.url }}/images/{{ author.avatar }}" class="info-photo" alt="{{ author.name }} info photo">
34
<a href="{{ site.url }}/">{{ site.title.short }}</a>
45
</div><!-- /.site-name -->
6+
<div class="site-info">
7+
{{ site.owner.info }}
8+
</div>
9+
<a href='{{ site.url }}/'>
510
</div><!-- /.navigation-wrapper -->

‎_layouts/default.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
{% include _head.html %}
88
</head>
99

10-
<body class="post-index">
10+
<body>
1111

1212
{% include _browser-upgrade.html %}
1313

‎_layouts/page.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
{% include _search.html %}
2020
</div>
2121
<article class="page">
22-
<h2><a href='/'>&lt; Home</a> | {{ page.title }}</h2>
22+
<h3><a href='/'>&lt; Home</a> | {{ page.title }}</h3>
2323
<div class="article-wrap">
2424
{{ content }}
2525
</div><!-- /.article-wrap -->

‎_sass/page.scss‎

Lines changed: 22 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@ body {
66
.navigation-wrapper {
77
@include container;
88
padding: 2em 0 1em;
9-
font-family: $heading-font;
109
font-weight: 700;
11-
text-transform: uppercase;
1210
@include clearfix;
1311
@media #{$micro} {
1412
display: block;
@@ -24,13 +22,13 @@ body {
2422
}
2523
}
2624
.site-name {
25+
font-family: $heading-font;
2726
@include grid(12,10);
2827
@include prefix(12,1);
2928
@include suffix(12,1);
30-
margin-bottom: 1em;
3129
float: none;
3230
display: block;
33-
@include font-rem(24);
31+
@include font-rem(36);
3432
@media #{$small} {
3533
@include grid(12,2);
3634
@include prefix(12,0.5);
@@ -41,6 +39,20 @@ body {
4139
@include grid(12,1.5);
4240
@include prefix(12,2);
4341
}
42+
img {
43+
height: 0.7em;
44+
vertical-align: absmiddle;
45+
}
46+
}
47+
.site-info {
48+
@include grid(12,10);
49+
@include prefix(12,1);
50+
@include suffix(12,1);
51+
margin-bottom: 1em;
52+
float: none;
53+
display: block;
54+
font-style: italic;
55+
@include font-rem(12);
4456
}
4557
.top-navigation {
4658
@include grid(12,10);
@@ -253,31 +265,17 @@ $button-size: 1.5rem;
253265
@media #{$x-large} {
254266
@include grid(12,4.5);
255267
}
256-
h3 {
257-
margin: 0;
258-
padding-bottom: .5em;
268+
a {
259269
@include font-rem(28);
260-
border-bottom: 1px solid lighten($black,70);
270+
font-family: $heading-font;
271+
font-weight: bold;
261272
&.next {
262273
margin-top: 30px;
263274
}
264275
}
265-
article {
266-
h2 {
267-
margin-bottom: 4px;
268-
@include font-rem(20);
269-
&.link-post {
270-
margin-bottom: 0px + $doc-line-height;
271-
margin-bottom: 0rem + ($doc-line-height / $doc-font-size);
272-
}
273-
}
274-
p {
275-
@include font-rem(14);
276-
}
277-
p+p {
278-
text-indent: 0;
279-
}
280-
}
276+
p {
277+
@include font-rem(14);
278+
}
281279
}
282280
.image-wrap {
283281
position: relative;

‎index.html‎

Lines changed: 0 additions & 16 deletions
This file was deleted.

‎index.md‎

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
layout: default
3+
comments: false
4+
---
5+
6+
[Ruby Grape Projects](/projects)
7+
Grape ecosystem projects.
8+
9+
[Ruby Grape Team](/team)
10+
Who maintains Ruby Grape?
11+
12+
[Want to help?](https://github.com/ruby-grape/ruby-grape.github.io/issues)
13+
A number of non-code, community-related work-items you can help with.
14+
15+
[Need help?](https://groups.google.com/forum/#!forum/ruby-grape)
16+
Please join and use the ruby-grape Google group for all questions.
17+

‎projects/index.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ tags: [projects]
55
comments: false
66
---
77

8-
## Grape Core Projects
8+
## Core
99

1010
* [grape](https://github.com/ruby-grape/grape): An opinionated micro-framework for creating REST-like APIs in Ruby.
1111
* [ruby-grape.github.io](https://github.com/ruby-grape/ruby-grape.github.io): The ruby-grape community site.

0 commit comments

Comments
 (0)