octopress-genesis-theme 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/README.md +56 -15
- data/assets/config.yml +7 -0
- data/assets/includes/index-post.html +6 -4
- data/assets/includes/post-nav.html +2 -2
- data/assets/includes/primary-nav.html +2 -2
- data/assets/includes/social/page-header.html +1 -0
- data/assets/includes/social/post-footer.html +1 -0
- data/assets/includes/social/post-header.html +1 -0
- data/assets/layouts/default.html +4 -4
- data/assets/layouts/page.html +3 -5
- data/assets/layouts/paginated-posts.html +2 -2
- data/assets/layouts/post.html +18 -8
- data/assets/pages/index.html +2 -2
- data/assets/stylesheets/_colors.scss +13 -1
- data/assets/stylesheets/_entry.scss +85 -0
- data/assets/stylesheets/_fonts.scss +3 -0
- data/assets/stylesheets/_grid.scss +153 -0
- data/assets/stylesheets/_header.scss +50 -0
- data/assets/stylesheets/_layout.scss +18 -10
- data/assets/stylesheets/_post-nav.scss +38 -0
- data/assets/stylesheets/_sizes.scss +6 -4
- data/assets/stylesheets/_theme.scss +20 -11
- data/assets/stylesheets/_typography.scss +90 -0
- data/assets/stylesheets/index.scss +11 -0
- data/demo/Gemfile +1 -1
- data/demo/_config.yml +1 -0
- data/demo/_plugins/theme/config.yml +6 -2
- data/demo/_plugins/theme/stylesheets/_colors.scss +16 -0
- data/demo/_plugins/theme/stylesheets/_entry.scss +85 -0
- data/demo/_plugins/theme/stylesheets/_header.scss +51 -0
- data/demo/_plugins/theme/stylesheets/_post-nav.scss +38 -0
- data/demo/_plugins/theme/stylesheets/_sizes.scss +17 -0
- data/demo/_plugins/theme/stylesheets/_typography.scss +91 -0
- data/demo/_plugins/theme/stylesheets/index.scss +16 -0
- data/demo/_posts/2014-08-03-dang-that-was-fast.md +17 -0
- data/demo/_posts/2014-08-03-hi-guys.markdown +1 -0
- data/demo/images/panorama.jpg +0 -0
- data/demo/page.html +175 -0
- data/lib/octopress-genesis/version.rb +1 -1
- metadata +21 -5
- data/demo/_plugins/theme/stylesheets/_layout.scss +0 -63
- data/demo/_plugins/theme/stylesheets/_theme.scss +0 -19
- data/demo/_posts/2014-08-03-dang-that-was-fast.markdown +0 -10
@@ -0,0 +1,50 @@
|
|
1
|
+
.site-top-content {
|
2
|
+
display: table;
|
3
|
+
width: 100%;
|
4
|
+
background-color: $site-header-bg;
|
5
|
+
}
|
6
|
+
|
7
|
+
.site-header, .site-nav {
|
8
|
+
padding: 1rem 1rem;
|
9
|
+
vertical-align: middle;
|
10
|
+
@include at-least($medium) {
|
11
|
+
padding: 1rem 1.5rem;
|
12
|
+
}
|
13
|
+
}
|
14
|
+
|
15
|
+
.site-header {
|
16
|
+
text-align: left;
|
17
|
+
display: table-cell;
|
18
|
+
}
|
19
|
+
|
20
|
+
.site-title {
|
21
|
+
margin: 0;
|
22
|
+
font-size: 1.8rem;
|
23
|
+
}
|
24
|
+
|
25
|
+
.site-title-link {
|
26
|
+
text-decoration: none;
|
27
|
+
color: $site-title-color;
|
28
|
+
font-weight: normal;
|
29
|
+
}
|
30
|
+
|
31
|
+
.site-nav {
|
32
|
+
display: table-cell;
|
33
|
+
text-align: right;
|
34
|
+
}
|
35
|
+
|
36
|
+
.site-nav-link {
|
37
|
+
text-decoration: none;
|
38
|
+
color: $site-nav-color;
|
39
|
+
padding: 0 .3rem;
|
40
|
+
|
41
|
+
&:last-child {
|
42
|
+
padding-right: 0;
|
43
|
+
}
|
44
|
+
}
|
45
|
+
|
46
|
+
.site-subtitle {
|
47
|
+
margin: .2rem 0;
|
48
|
+
color: $medium-text-color;
|
49
|
+
font-size: .95rem;
|
50
|
+
}
|
@@ -7,18 +7,14 @@ html, body, .site {
|
|
7
7
|
margin: 0;
|
8
8
|
}
|
9
9
|
|
10
|
-
.site {
|
11
|
-
position: relative;
|
12
|
-
}
|
13
|
-
|
14
10
|
.site-content {
|
15
11
|
width: 100%;
|
16
|
-
height: 100%;
|
12
|
+
min-height: 100%;
|
17
13
|
display: table;
|
18
14
|
table-layout: fixed;
|
19
15
|
}
|
20
16
|
|
21
|
-
.site-
|
17
|
+
.site-top, .site-main, .site-bottom {
|
22
18
|
display: table-row;
|
23
19
|
}
|
24
20
|
|
@@ -32,14 +28,14 @@ html, body, .site {
|
|
32
28
|
z-index: 1;
|
33
29
|
height: 100%;
|
34
30
|
display: table;
|
31
|
+
table-layout: fixed;
|
35
32
|
width: 100%;
|
36
33
|
float: right;
|
37
34
|
border-top: 1px solid transparent;
|
38
35
|
}
|
39
36
|
|
40
|
-
.
|
41
|
-
|
42
|
-
@include pad-box;
|
37
|
+
.main-content {
|
38
|
+
padding-bottom: 3rem;
|
43
39
|
}
|
44
40
|
|
45
41
|
@include at-least($large) {
|
@@ -55,9 +51,21 @@ html, body, .site {
|
|
55
51
|
|
56
52
|
@include at-least($max) {
|
57
53
|
.site {
|
58
|
-
width: $max;
|
59
54
|
margin-left: auto;
|
60
55
|
margin-right: auto;
|
61
56
|
}
|
62
57
|
}
|
63
58
|
|
59
|
+
.entry-title,
|
60
|
+
.entry-meta,
|
61
|
+
.entry-subtitle,
|
62
|
+
.entry-social,
|
63
|
+
.entry-content,
|
64
|
+
.post-nav,
|
65
|
+
.entry-footer {
|
66
|
+
max-width: $main-content-max;
|
67
|
+
padding-left: $content-pad;
|
68
|
+
padding-right: $content-pad;
|
69
|
+
margin: { left: auto; right: auto; }
|
70
|
+
}
|
71
|
+
|
@@ -0,0 +1,38 @@
|
|
1
|
+
// Post index navigation
|
2
|
+
|
3
|
+
.post-index-nav {
|
4
|
+
text-align: center;
|
5
|
+
border-top: 1px solid $page-border;
|
6
|
+
overflow: hidden;
|
7
|
+
padding: { top: .65em; }
|
8
|
+
}
|
9
|
+
|
10
|
+
.post-nav {
|
11
|
+
border-top: 1px solid $page-border;
|
12
|
+
overflow: hidden;
|
13
|
+
}
|
14
|
+
|
15
|
+
.next-post { float: right; text-align: right; }
|
16
|
+
.previous-post { float: left; }
|
17
|
+
|
18
|
+
.next-post, .previous-post {
|
19
|
+
text-decoration: none;
|
20
|
+
color: inherit;
|
21
|
+
padding: { top: .65em; bottom: .65em; }
|
22
|
+
}
|
23
|
+
|
24
|
+
.previous-post-marker, .next-post-marker {
|
25
|
+
color: $accent-color;
|
26
|
+
font-size: .8em;
|
27
|
+
}
|
28
|
+
|
29
|
+
.previous-post-title, .next-post-title {
|
30
|
+
font-family: $title-font;
|
31
|
+
font-weight: bold;
|
32
|
+
margin: .2em 0;
|
33
|
+
}
|
34
|
+
|
35
|
+
.previous-post-date, .next-post-date {
|
36
|
+
color: $light-text-color;
|
37
|
+
font-size: .8em;
|
38
|
+
}
|
@@ -3,13 +3,15 @@ $tiny: 320px;
|
|
3
3
|
$small: 600px;
|
4
4
|
$medium: 750px;
|
5
5
|
$large: 900px;
|
6
|
-
$
|
7
|
-
$max: 1300px;
|
6
|
+
$max: 1080px;
|
8
7
|
|
9
8
|
|
10
9
|
// Item widths
|
11
10
|
$main-sidebar-width: 300px;
|
11
|
+
$main-content-max: 900px;
|
12
|
+
$content-pad: 20px;
|
12
13
|
|
13
|
-
$h-pad-box:
|
14
|
-
$v-pad-box:
|
14
|
+
$h-pad-box: 5%, 40px;
|
15
|
+
$v-pad-box: 5%, 30px;
|
15
16
|
|
17
|
+
$base-font-size: 20px;
|
@@ -1,19 +1,28 @@
|
|
1
1
|
html {
|
2
|
-
|
3
|
-
|
4
|
-
@include at-least($max) {
|
5
|
-
background: $main-bg;
|
6
|
-
}
|
7
|
-
}
|
8
|
-
|
9
|
-
.site-top, .site-bottom {
|
10
|
-
background: $site-bg;
|
2
|
+
color: $text-color;
|
3
|
+
background: $main-bg;
|
11
4
|
}
|
12
5
|
|
13
6
|
a {
|
14
7
|
color: $link-color;
|
15
8
|
}
|
16
9
|
|
17
|
-
.
|
18
|
-
|
10
|
+
.site-top-content,
|
11
|
+
.site-bottom-content {
|
12
|
+
text-align: center;
|
13
|
+
}
|
14
|
+
|
15
|
+
.site-bottom-content {
|
16
|
+
border-top: 1px solid $page-border;
|
17
|
+
}
|
18
|
+
|
19
|
+
.full-width {
|
20
|
+
@supports(width:100vw) {
|
21
|
+
width: 101vw;
|
22
|
+
transform: translateX(-#{$content-pad});
|
23
|
+
@include at-least($main-content-max) {
|
24
|
+
$w: $main-content-max - ($content-pad * 2);
|
25
|
+
transform: translateX(calc((#{$w} - 101vw)/2));
|
26
|
+
}
|
27
|
+
}
|
19
28
|
}
|
@@ -0,0 +1,90 @@
|
|
1
|
+
$post-title-font-stack: "Source Serif Pro", Georgia, Times, 'Times New Roman', serif;
|
2
|
+
|
3
|
+
html {
|
4
|
+
font-size: $base-font-size;
|
5
|
+
}
|
6
|
+
|
7
|
+
body {
|
8
|
+
font-family: "Source Serif Pro", Georgia, Times, 'Times New Roman', serif;
|
9
|
+
line-height: 1.65em;
|
10
|
+
}
|
11
|
+
|
12
|
+
h1,h2,h3,h4,h5,h6 {
|
13
|
+
line-height: normal;
|
14
|
+
margin: .83em 0;
|
15
|
+
}
|
16
|
+
|
17
|
+
h1 {
|
18
|
+
font-size: 2.8rem;
|
19
|
+
}
|
20
|
+
|
21
|
+
h2 {
|
22
|
+
font-size: 2em;
|
23
|
+
}
|
24
|
+
|
25
|
+
h3 {
|
26
|
+
font-size: 1.6em;
|
27
|
+
}
|
28
|
+
|
29
|
+
h4 {
|
30
|
+
font-size: 1.3em;
|
31
|
+
}
|
32
|
+
|
33
|
+
h5 {
|
34
|
+
font-size: 1.2em;
|
35
|
+
}
|
36
|
+
|
37
|
+
h6 {
|
38
|
+
font-size: 1em;
|
39
|
+
}
|
40
|
+
|
41
|
+
p, ul, ol, dl, table, figure, blockquote {
|
42
|
+
margin: { top: 1.45rem; bottom: 1.45rem; }
|
43
|
+
}
|
44
|
+
|
45
|
+
figure {
|
46
|
+
margin: {left: 0; right: 0;}
|
47
|
+
}
|
48
|
+
|
49
|
+
img {
|
50
|
+
max-width: 100%;
|
51
|
+
}
|
52
|
+
|
53
|
+
blockquote {
|
54
|
+
border-left: 5px solid $page-border;
|
55
|
+
margin-left: 0;
|
56
|
+
padding: 1px .5rem 1px 2rem;
|
57
|
+
color: $medium-text-color;
|
58
|
+
p {
|
59
|
+
margin: .8rem 0;
|
60
|
+
}
|
61
|
+
}
|
62
|
+
|
63
|
+
.float-right {
|
64
|
+
float: right;
|
65
|
+
margin: { top: 1.1em; left: 1.1em; bottom: 1.1em; }
|
66
|
+
}
|
67
|
+
.float-left {
|
68
|
+
float: left;
|
69
|
+
margin: { top: 1.1em; right: 1.1em; bottom: 1.1em; }
|
70
|
+
}
|
71
|
+
|
72
|
+
.align-left { text-align: left; }
|
73
|
+
.align-center { text-align: center; }
|
74
|
+
.align-left { text-align: left; }
|
75
|
+
|
76
|
+
.align-top { vertical-align: top; }
|
77
|
+
.align-middle { vertical-align: middle; }
|
78
|
+
.align-bottom { vertical-align: bottom; }
|
79
|
+
|
80
|
+
hr {
|
81
|
+
border: none;
|
82
|
+
background: none;
|
83
|
+
width: 100%;
|
84
|
+
border-bottom: 1px solid $page-border;
|
85
|
+
&.dark {
|
86
|
+
border-bottom: 1px solid $gray;
|
87
|
+
}
|
88
|
+
&.thick {
|
89
|
+
}
|
90
|
+
}
|
@@ -1,5 +1,16 @@
|
|
1
|
+
// Theme settings
|
2
|
+
|
3
|
+
$center-headings: {{ theme.center-headings }};
|
4
|
+
|
5
|
+
// Stylesheets
|
1
6
|
@import "colors";
|
2
7
|
@import "sizes";
|
3
8
|
@import "mixins";
|
9
|
+
@import "fonts";
|
10
|
+
@import "typography";
|
4
11
|
@import "theme";
|
12
|
+
@import "grid";
|
5
13
|
@import "layout";
|
14
|
+
@import "header";
|
15
|
+
@import "entry";
|
16
|
+
@import "post-nav";
|
data/demo/Gemfile
CHANGED
data/demo/_config.yml
CHANGED
@@ -1,11 +1,10 @@
|
|
1
1
|
# Settings for main header
|
2
2
|
header:
|
3
3
|
title: My Octopress Blog
|
4
|
-
subtitle: A clever subtitle (optional)
|
5
4
|
|
6
5
|
# Links for main navigation
|
7
6
|
nav:
|
8
|
-
- { url: '/', title: '
|
7
|
+
- { url: '/', title: 'Posts' }
|
9
8
|
- { url: '/archive', title: 'Archive' }
|
10
9
|
- { url: '/feed', title: 'RSS' }
|
11
10
|
|
@@ -13,3 +12,8 @@ nav:
|
|
13
12
|
category:
|
14
13
|
prefix: Category
|
15
14
|
url: category
|
15
|
+
|
16
|
+
post_index:
|
17
|
+
excerpt_posts: true
|
18
|
+
|
19
|
+
center-headings: true
|
@@ -0,0 +1,16 @@
|
|
1
|
+
$site-bg: #edefef;
|
2
|
+
$main-bg: #f5f6f6;
|
3
|
+
$page-border: #dadede;
|
4
|
+
|
5
|
+
$accent-color: #e46767; // pale red
|
6
|
+
|
7
|
+
$text-color: #444;
|
8
|
+
$medium-text-color: #666;
|
9
|
+
$light-text-color: #888;
|
10
|
+
$link-color: #4A89DC;
|
11
|
+
|
12
|
+
$site-header-bg: #edefef;
|
13
|
+
$site-title-color: #555;
|
14
|
+
$site-nav-color: #333;
|
15
|
+
|
16
|
+
$gray: #8d9297;
|
@@ -0,0 +1,85 @@
|
|
1
|
+
.entry {
|
2
|
+
margin: { top: 4em; bottom: 4em; }
|
3
|
+
+ .entry {
|
4
|
+
border-top: 1px solid $page-border;
|
5
|
+
padding-top: 2em;
|
6
|
+
}
|
7
|
+
}
|
8
|
+
|
9
|
+
.article-link {
|
10
|
+
text-decoration: none;
|
11
|
+
color: inherit;
|
12
|
+
&:hover {
|
13
|
+
color: $link-color;
|
14
|
+
}
|
15
|
+
}
|
16
|
+
|
17
|
+
.entry-header {
|
18
|
+
@if ($center-headings) {
|
19
|
+
text-align: center;
|
20
|
+
}
|
21
|
+
}
|
22
|
+
|
23
|
+
.entry-title {
|
24
|
+
margin-bottom: 0;
|
25
|
+
font-size: 2.4rem;
|
26
|
+
@include at-least($medium) {
|
27
|
+
font-size: 2.8rem;
|
28
|
+
}
|
29
|
+
}
|
30
|
+
|
31
|
+
.entry-meta {
|
32
|
+
color: $medium-text-color;
|
33
|
+
}
|
34
|
+
|
35
|
+
.entry-content {
|
36
|
+
margin: { top: 3rem; bottom: 3rem; }
|
37
|
+
}
|
38
|
+
|
39
|
+
.entry {
|
40
|
+
margin: { left: auto; right: auto; }
|
41
|
+
}
|
42
|
+
|
43
|
+
.entry-meta, .entry-subtitle, .entry-footer {
|
44
|
+
font-family: $meta-font;
|
45
|
+
font-weight: 400;
|
46
|
+
font-size: .9rem;
|
47
|
+
}
|
48
|
+
|
49
|
+
.entry-header > * {
|
50
|
+
position: relative;
|
51
|
+
z-index: 1;
|
52
|
+
}
|
53
|
+
.entry-subtitle {
|
54
|
+
font-size: 1.4rem;
|
55
|
+
margin-top: 0;
|
56
|
+
}
|
57
|
+
|
58
|
+
.graphic-title {
|
59
|
+
margin-top: 0;
|
60
|
+
.entry-header {
|
61
|
+
background-size: cover;
|
62
|
+
background-position: center center;
|
63
|
+
padding: { top: 10%; bottom: 10%; }
|
64
|
+
}
|
65
|
+
|
66
|
+
&.light-title {
|
67
|
+
.entry-header, .entry-meta {
|
68
|
+
color: #fff;
|
69
|
+
text-shadow: rgba(#000, .5) 0 1px 1px;
|
70
|
+
}
|
71
|
+
.entry-header {
|
72
|
+
position: relative;
|
73
|
+
&:after {
|
74
|
+
content: "";
|
75
|
+
position: absolute;
|
76
|
+
z-index: 0;
|
77
|
+
left: 0;
|
78
|
+
top: 0;
|
79
|
+
bottom: 0;
|
80
|
+
right: 0;
|
81
|
+
background: rgba(#000, .08);
|
82
|
+
}
|
83
|
+
}
|
84
|
+
}
|
85
|
+
}
|