octopress-genesis-theme 0.0.8 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (35) hide show
  1. checksums.yaml +4 -4
  2. data/assets/config.yml +2 -1
  3. data/assets/includes/cover_image.html +14 -0
  4. data/assets/includes/index_post.html +1 -1
  5. data/assets/includes/main_nav.html +5 -0
  6. data/assets/includes/mobile_nav.html +7 -0
  7. data/assets/includes/nav_items.html +7 -0
  8. data/assets/includes/post_meta.html +1 -2
  9. data/assets/includes/search.html +1 -0
  10. data/assets/includes/search/duckduckgo.html +1 -1
  11. data/assets/includes/search/google.html +1 -1
  12. data/assets/includes/site_footer.html +4 -9
  13. data/assets/layouts/base.html +3 -4
  14. data/assets/layouts/default.html +4 -2
  15. data/assets/layouts/post.html +10 -7
  16. data/assets/stylesheets/_cover-image.scss +26 -0
  17. data/assets/stylesheets/_entry.scss +31 -19
  18. data/assets/stylesheets/_header.scss +95 -18
  19. data/assets/stylesheets/_layout.scss +7 -1
  20. data/assets/stylesheets/_mobile-nav.scss +142 -0
  21. data/assets/stylesheets/_social.scss +37 -1
  22. data/assets/stylesheets/_theme.scss +14 -7
  23. data/assets/stylesheets/core/_colors.scss +20 -0
  24. data/assets/stylesheets/core/_fonts.scss +8 -0
  25. data/assets/stylesheets/{_grid.scss → core/_grid.scss} +0 -0
  26. data/assets/stylesheets/core/_index.scss +6 -0
  27. data/assets/stylesheets/{_mixins.scss → core/_mixins.scss} +33 -0
  28. data/assets/stylesheets/{_sizes.scss → core/_sizes.scss} +2 -1
  29. data/assets/stylesheets/{_typography.scss → core/_typography.scss} +1 -3
  30. data/assets/stylesheets/index.scss +4 -7
  31. data/lib/octopress-genesis-theme/version.rb +1 -1
  32. metadata +22 -29
  33. data/assets/includes/primary_nav.html +0 -9
  34. data/assets/stylesheets/_colors.scss +0 -16
  35. data/assets/stylesheets/_fonts.scss +0 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1be774518d5cf31019077bf2ad109f433710a4b7
4
- data.tar.gz: 3115043ff22e80b0927f6513a473c0dd16c93097
3
+ metadata.gz: 3446206fcd4aa41d0d34df1ed8a88283b69f36b9
4
+ data.tar.gz: f5333e9c9e46b03e792589de90ea313f0dfb8ae2
5
5
  SHA512:
6
- metadata.gz: 1e342716e79180df0dc6165402b265c5859688854c88793f8ba4fff8868ca6716d122014e5c8d528930bfe1ddd00b5ed1030e3c6ba04dae08b73b70681251d0e
7
- data.tar.gz: 7cfa9767d45397f55e6e9dc684e6f31b3b9c49ddde9d1bffb6351cc8e57c50fc4d81abc91d50601913babd74daff3ebda3f7dbb9eec475584851a04d462653a6
6
+ metadata.gz: 1a082c1dd94c7317c0666f2e22291436b08920e6f63f515f9bd8d63356c768640f21c69c70965abe915494fc3470b4f3c36b77fd38beee23be40856b5f438393
7
+ data.tar.gz: 108fabf5ca59e33b6bb3623c52dea5520722574e1789e7d1e076601faaae7a17306c8212ab1aa1ac968250a293a3d74ec1942a1bf03d46c0c435b337ed1811ca
data/assets/config.yml CHANGED
@@ -3,7 +3,7 @@ title: My Octopress Blog
3
3
  subtitle:
4
4
 
5
5
  # Links for main navigation
6
- nav:
6
+ main_nav:
7
7
  - { url: '/', title: 'Posts' }
8
8
  - { url: '/archive/', title: 'Archive' }
9
9
  - { url: '/feed/', title: 'Subscribe' }
@@ -30,4 +30,5 @@ share_with: links # or buttons
30
30
  # Embed comments, options: false, facebook, disqus
31
31
  comments: false
32
32
 
33
+ # Center the text in post and page headings.
33
34
  center_headings: true
@@ -0,0 +1,14 @@
1
+ <style>
2
+ .entry-header {
3
+ background-image: url('{{ page.cover_image }}');
4
+ }
5
+ .site-title, .main-nav {
6
+ {% wrap return page.site_header_text_color || page.header_text_color %}color: {{ yield }};{% endwrap %}
7
+ }
8
+ .entry-header, .entry-header a {
9
+ {% wrap return page.header_text_color %}color: {{ yield }};{% endwrap %}
10
+ }
11
+ .mobile-nav-icon, .mobile-nav-icon:before, .mobile-nav-icon:after {
12
+ {% wrap return page.header_text_color %}background: {{ yield }};{% endwrap %}
13
+ }
14
+ </style>
@@ -9,7 +9,7 @@
9
9
  <header class="entry-header">
10
10
  <h2 class="entry-title">{{ post.title_link }}</h2>
11
11
  {% if post.subtitle %}<h2 class="entry-subtitle">{{ post.subtitle }}</h2>{% endif %}
12
- <div class="entry-meta"><a href="{{ page.title_url }}">{{ post.date_html }}</a></div>
12
+ <div class="entry-meta"><a href="{{ post.url | expand_url }}">{{ post.date_html }}</a></div>
13
13
  </header>
14
14
 
15
15
  <div class="entry-content">{{ post_content }}</div>
@@ -0,0 +1,5 @@
1
+ <nav class='main-nav' role="navigation">
2
+ {% include theme:nav_items.html nav=theme.main_nav class='main-nav' %}
3
+ <div class='main-nav-item main-nav-search'>{% include theme:search.html %}</div>
4
+ <button class="mobile-nav-toggle" href="#" onclick="(function(){ document.querySelector('html').classList.toggle('mobile-nav-active') })()"><span class="mobile-nav-icon"></span><span class="hidden-label">Navigate<span></span></span></button>
5
+ </nav>
@@ -0,0 +1,7 @@
1
+ <div class='nav-panel'>
2
+ <nav class='mobile-nav' role="navigation">
3
+ <div class='mobile-nav-item mobile-nav-search'>{% include theme:search.html %}</div>
4
+ {% include theme:nav_items.html nav=theme.main_nav class='mobile-nav' %}
5
+ {% include theme:nav_items.html nav=theme.footer_nav class='mobile-nav' if theme.footer_nav %}
6
+ </nav>
7
+ </div>
@@ -0,0 +1,7 @@
1
+ {% for link in include.nav %}
2
+ {% assign url = link.url | expand_url %}
3
+ {% assign page_url = page.url | expand_url | remove:'index.html' %}
4
+ {% assign class = (url == page_url ? 'active ' : '') %}
5
+ {% assign class += link.class | classify if link.class %}
6
+ <a class="{{ include.class }}-item {{ class }}" href="{{ url }}">{{ link.title }}</a>
7
+ {% endfor %}
@@ -1,6 +1,5 @@
1
1
  <div class="entry-meta">
2
- <a href="{{ page.title_url }}">{{ page.date_html }}</a>
2
+ <a href="{% return post.url || page.url %}">{% return post.date_html || page.date_html %}</a>
3
3
  {% include theme:category_links.html %}
4
4
  {% include theme:tag_links.html %}
5
- {% include theme:social/sharing.html %}
6
5
  </div>
@@ -0,0 +1 @@
1
+ {% capture search_template %}theme:search/{{ theme.search }}.html{% endcapture %}{% include search_template %}
@@ -1,4 +1,4 @@
1
1
  <form class='site-search' action="http://www.duckduckgo.com/" method="get">
2
2
  <input type="hidden" name="sites" value="{{ site.url | strip_url_protocol }}">
3
- <input class="search-input" type="text" name="q" results="0" placeholder="Search&hellip;" accesskey="/">
3
+ <input class="search-input" type="text" name="q" results="0" placeholder="Search" accesskey="/">
4
4
  </form>
@@ -1,4 +1,4 @@
1
1
  <form class='site-search' action="https://google.com/search" method="get">
2
2
  <input type="hidden" name="sitesearch" value="{{ site.url | strip_url_protocol }}">
3
- <input class="search-input" type="text" name="q" results="0" placeholder="Search&hellip;" accesskey="/">
3
+ <input class="search-input" type="text" name="q" results="0" placeholder="Search" accesskey="/">
4
4
  </form>
@@ -1,14 +1,9 @@
1
1
  <footer class='site-footer' role="contentinfo">
2
- <p class='footer-copyright'>Copyright © {{ site.time | date: "%Y" }} - {{ site.author }} - Powered by Octopress</p>
3
- {% if theme.footer-nav %}
2
+ <p class='footer-copyright'>Copyright © {{ site.time | date: "%Y" }}{% wrap return site.author %} - {{ yield }}{% endwrap %}
3
+ - Powered by <a href='http://octopress.org'>Octopress</a></p>
4
+ {% if theme.footer_nav %}
4
5
  <nav class='footer-nav' role="navigation">
5
- {% for link in theme.footer-nav %}
6
- {% assign url = link.url | expand_url %}
7
- {% assign class = link.class | classify if link.class %}
8
- <a class="primary-nav-link {{ class }}" href="{{ url }}">{{ link.title }}</a>
9
- {% endfor %}
6
+ {% include theme:nav_items.html nav=theme.footer_nav class='footer-nav' %}
10
7
  </nav>
11
8
  {% endif %}
12
- {% capture search_template %}theme:search/{{ theme.search }}.html{% endcapture %}
13
- {% include search_template %}
14
9
  </footer>
@@ -1,14 +1,13 @@
1
1
  <!DOCTYPE html>
2
- <html class="{{ page.class }}" lang="{% return page.lang || site.lang || 'en' %}" >
2
+ <html class="{{ page.class }} {% return 'cover-image' if page.cover_image %}" lang="{% return page.lang || site.lang || 'en' %}" >
3
3
  <head>
4
4
  {% include theme:head.html | expand_urls %}
5
+ {% include theme:cover_image.html if page.cover_image %}
5
6
  {% yield head %}
6
7
  </head>
7
8
  <body>
8
- <div class="site">
9
- <div class="site-content">{{ content | expand_urls }}</div>
9
+ <div class="site">{{ content | expand_urls }}</div>
10
10
  {% js_asset_tag %}
11
- </div>
12
11
  {% include theme:social/scripts.html %}
13
12
  {% yield footer_scripts %}
14
13
  </body>
@@ -1,9 +1,11 @@
1
1
  ---
2
2
  layout: theme:base
3
3
  ---
4
+ {% include theme:mobile_nav.html %}
5
+ <div class="site-content">
4
6
  <div class="site-top"><div class="site-top-content">
5
7
  {% include theme:site_header.html | compact_newlines %}
6
- {% include theme:primary_nav.html | compact_newlines %}
8
+ {% include theme:main_nav.html | compact_newlines %}
7
9
  </div></div>
8
10
  <div class="site-main">
9
11
  <div class="main {% return 'with-sidebar' if sidebar %}">
@@ -12,4 +14,4 @@ layout: theme:base
12
14
  </div>
13
15
  <div class="site-bottom"><div class="site-bottom-content">
14
16
  {% include theme:site_footer.html %}
15
- </div></div>
17
+ </div></div></div>
@@ -1,22 +1,25 @@
1
1
  ---
2
2
  layout: theme:default
3
3
  ---
4
- <article class="post entry {% return 'graphic-title' if page.title-graphic %} {% return 'linkpost' if page.linkpost %}" role="article">
5
-
6
- <header class="entry-header {% if page.title-graphic %} graphic-entry-header" style="background-image: url('{{ page.title-graphic }}'){% endif %}">
4
+ <article class="post entry {% return 'cover-image' if page.cover_image %} {% return 'linkpost' if page.linkpost %}" role="article">
5
+ <header class="entry-header">
7
6
  {% assign title = (page.linkpost ? page.title_link : page.title_html) %}
8
- <h1 class="entry-title">{{ title }}</h1>
9
- {% if page.subtitle %}<h2 class="entry-subtitle">{{ page.subtitle }}</h2>{% endif %}
10
- {% yield header %}
7
+ <div class='entry-header-content'>
8
+ <h1 class="entry-title">{{ title }}</h1>
9
+ {% if page.subtitle %}<h2 class="entry-subtitle">{{ page.subtitle }}</h2>{% endif %}
10
+ {% yield header %}
11
+ </div>
11
12
  </header>
12
13
 
14
+ {% include theme:post_meta.html | join_lines %}
15
+
13
16
  <div class="entry-content">{{ content }}</div>
14
17
 
15
18
  <footer class='entry-footer' role='contentinfo'>
16
19
  {% yield footer %}
17
20
  </footer>
18
21
 
19
- {% include theme:post_meta.html | join_lines %}
22
+ {% include theme:social/sharing.html | join_lines %}
20
23
 
21
24
  </article>
22
25
  {% include theme:post_nav.html %}
@@ -0,0 +1,26 @@
1
+ .cover-image {
2
+ .site-top-content {
3
+ position: absolute;
4
+ z-index: 10;
5
+ background: none;
6
+ overflow: visible;
7
+ padding: 0;
8
+ }
9
+ .main-nav-item, .site-title-link {
10
+ opacity: .8;
11
+ transition: opacity .25s ease-in-out;
12
+ &:hover {
13
+ color: inherit;
14
+ opacity: 1;
15
+ }
16
+ }
17
+ .main-nav-search {
18
+ opacity: 1;
19
+ input {
20
+ opacity: .8;
21
+ &:hover, &:focus {
22
+ opacity: 1;
23
+ }
24
+ }
25
+ }
26
+ }
@@ -1,5 +1,6 @@
1
1
  .entry {
2
2
  margin: { top: 4rem; bottom: 4rem; }
3
+ margin: { left: auto; right: auto; }
3
4
  + .entry {
4
5
  padding-top: 2rem;
5
6
  &:before {
@@ -12,9 +13,6 @@
12
13
  top: -2rem;
13
14
  }
14
15
  }
15
- a {
16
- text-decoration: none;
17
- }
18
16
  }
19
17
 
20
18
  .article-link {
@@ -43,10 +41,6 @@
43
41
  margin: { top: 3rem; bottom: 3rem; }
44
42
  }
45
43
 
46
- .entry {
47
- margin: { left: auto; right: auto; }
48
- }
49
-
50
44
  .entry-meta, .entry-subtitle, .entry-footer {
51
45
  font-family: $meta-font;
52
46
  font-weight: 400;
@@ -58,27 +52,29 @@
58
52
  z-index: 1;
59
53
  }
60
54
  .entry-subtitle {
55
+ font-family: $subtitle-font;
61
56
  font-size: 1.15em;
62
57
  margin-top: 0;
63
58
  }
64
59
 
65
- .graphic-title {
66
- margin-top: 0;
60
+ .cover-image {
61
+ .entry {
62
+ margin-top: 0;
63
+ }
67
64
  .entry-header {
65
+ background-repeat: no-repeat;
66
+ height: 100vh;
67
+ max-height: 1000px;
68
+ overflow: visible;
69
+ background-attachment: scroll;
68
70
  background-size: cover;
69
71
  background-position: center center;
70
- padding: { top: 10%; bottom: 10%; }
71
- }
72
-
73
- }
74
-
75
- .light-title {
76
- .entry-header, .entry-header .entry-meta {
77
- color: #fff;
78
72
  text-shadow: rgba(#000, .5) 0 1px 1px;
79
- }
80
- .entry-header {
81
73
  position: relative;
74
+ display: table;
75
+ width: 100%;
76
+
77
+ // Darken image a bit
82
78
  &:after {
83
79
  content: "";
84
80
  position: absolute;
@@ -90,6 +86,21 @@
90
86
  background: rgba(#000, .08);
91
87
  }
92
88
  }
89
+
90
+ .entry-header-content {
91
+ display: table-cell;
92
+ padding: 10% 0;
93
+ vertical-align: middle;
94
+ }
95
+
96
+ .entry-title {
97
+ font-family: $title-font;
98
+ font-size: 2.5em;
99
+
100
+ @include at-least($medium) {
101
+ font-size: 3.5em;
102
+ }
103
+ }
93
104
  }
94
105
 
95
106
  .entry-meta {
@@ -109,6 +120,7 @@
109
120
  .entry-social-sharing {
110
121
  display: block;
111
122
  margin: 2em auto;
123
+ text-align: center;
112
124
  }
113
125
 
114
126
  .entry-categories, .entry-tags {
@@ -1,50 +1,127 @@
1
1
  .site-top-content {
2
- display: table;
3
2
  width: 100%;
4
- background-color: $site-header-bg;
3
+ padding: 1px 0;
4
+ background: $site-header-bg;
5
5
  }
6
6
 
7
- .site-header, .site-nav {
8
- padding: 1rem 1rem;
7
+ .site-header, .main-nav {
9
8
  vertical-align: middle;
10
- @include at-least($medium) {
11
- padding: 1rem 1.5rem;
12
- }
9
+ text-align: center;
10
+ margin: .5em 0;
13
11
  }
14
12
 
15
- .site-header {
16
- text-align: left;
17
- display: table-cell;
13
+ .site-title {
14
+ margin: 0;
15
+ font-size: 1.5rem;
18
16
  }
19
17
 
20
18
  .site-title {
21
- margin: 0;
22
- font-size: 1.8rem;
19
+ color: $site-title-color;
23
20
  }
24
21
 
25
22
  .site-title-link {
26
23
  text-decoration: none;
27
- color: $site-title-color;
24
+ color: inherit;
28
25
  font-weight: normal;
29
26
  }
30
27
 
31
- .site-nav {
32
- display: table-cell;
33
- text-align: right;
28
+ .main-nav {
29
+ color: $main-nav-color;
34
30
  }
35
31
 
36
- .site-nav-link {
32
+ .main-nav-item {
33
+ display: none;
34
+ font-family: $nav-font;
37
35
  text-decoration: none;
38
- color: $site-nav-color;
36
+ color: inherit;
39
37
  padding: 0 .3rem;
40
38
 
41
39
  &:last-child {
42
40
  padding-right: 0;
43
41
  }
44
42
  }
43
+ a.main-nav-item {
44
+ &:hover {
45
+ color: $accent-color;
46
+ }
47
+ }
48
+
49
+ .main-nav-search {
50
+ padding: 0;
51
+ input {
52
+ cursor: pointer;
53
+ font-family: $nav-font;
54
+ line-height: 1.65em;
55
+ font-size: .8rem;
56
+
57
+ border: {
58
+ color: transparent;
59
+ width: 1px;
60
+ style: solid;
61
+ radius: .2rem;
62
+ }
63
+
64
+ background: none;
65
+ color: inherit;
66
+ padding: 0 .5rem;
67
+ outline: none;
68
+ width: 5em;
69
+ transition: all .25s ease-in-out;
70
+ position: relative;
71
+ top: -1px;
72
+
73
+ &:focus {
74
+ outline: none;
75
+ width: 10em;
76
+ border-color: inherit;
77
+ @include placeholder {
78
+ font-size: .8rem;
79
+ opacity: .5;
80
+ }
81
+ }
82
+
83
+ @include placeholder {
84
+ transition: opacity .25s ease-in-out;
85
+ font-size: $main-nav-font-size;
86
+ font-family: $nav-font;
87
+ color: inherit;
88
+ opacity: 1;
89
+ }
90
+
91
+ }
92
+ }
45
93
 
46
94
  .site-subtitle {
47
95
  margin: .2rem 0;
48
96
  color: $medium-text-color;
49
97
  font-size: .95rem;
50
98
  }
99
+
100
+ @include at-least($small) {
101
+ .main-nav-item {
102
+ display: inline-block;
103
+ }
104
+ }
105
+
106
+
107
+ @include at-least($medium) {
108
+ .site-top-content {
109
+ display: table;
110
+ }
111
+ .site-header, .main-nav {
112
+ display: table-cell;
113
+ padding: .7rem 1.4rem;
114
+ }
115
+ .site-header {
116
+ text-align: left;
117
+ }
118
+ .main-nav {
119
+ text-align: right;
120
+ font-size: $main-nav-font-size;
121
+ }
122
+ .site-title {
123
+ margin: 0;
124
+ font-size: 1.8rem;
125
+ }
126
+ }
127
+
@@ -12,6 +12,13 @@ html, body, .site {
12
12
  min-height: 100%;
13
13
  display: table;
14
14
  table-layout: fixed;
15
+ transform: translate3d(0,0,0);
16
+ }
17
+
18
+ .hidden-label {
19
+ font-size: 0;
20
+ width: 0px;
21
+ display: inline-block;
15
22
  }
16
23
 
17
24
  .site-top, .site-main, .site-bottom {
@@ -31,7 +38,6 @@ html, body, .site {
31
38
  table-layout: fixed;
32
39
  width: 100%;
33
40
  float: right;
34
- border-top: 1px solid transparent;
35
41
  }
36
42
 
37
43
  .main-content {
@@ -0,0 +1,142 @@
1
+ .nav-panel {
2
+ position: absolute;
3
+ top: 0;
4
+ bottom: 0;
5
+ overflow: auto;
6
+ left: 0;
7
+ width: 85%;
8
+ background: $mobile-nav-bg;
9
+ font-family: $nav-font;
10
+ transform: translate3d(0,0,0);
11
+ }
12
+
13
+ .mobile-nav {
14
+ transform: scale(.95, .95);
15
+ opacity: .4;
16
+ transition: all .25s ease-out;
17
+ }
18
+
19
+ /*$header-pad: 15px; */
20
+
21
+ // Nav button for toggling mobile nav
22
+ .mobile-nav-toggle {
23
+ cursor: pointer;
24
+ padding: 8px 2px;
25
+ border: 0px;
26
+ background: none;
27
+ position: absolute;
28
+ top: 1.5em;
29
+ left: 1.5em;
30
+
31
+ &:focus {
32
+ outline: none;
33
+ }
34
+
35
+ .label {
36
+ text-transform: uppercase;
37
+ font-size: .4rem;
38
+ position: relative;
39
+ top: 5px;
40
+ opacity: .5;
41
+ }
42
+ }
43
+
44
+ .mobile-nav-icon {
45
+ &, &:before, &:after {
46
+ position: relative;
47
+ display: block;
48
+ width: 18px;
49
+ height: 3px;
50
+ background: $main-nav-color;
51
+ transition: all .15s ease-in-out;
52
+ }
53
+ &:before, &:after {
54
+ content: "";
55
+ }
56
+ &:before { top: -6px; }
57
+ &:after { top: 3px; }
58
+
59
+ @include until($small) {
60
+ .mobile-nav-active & {
61
+ background: rgba($main-nav-color, 0);
62
+ &:before {
63
+ transform: rotate(-45deg);
64
+ top: -1px;
65
+ }
66
+ &:after {
67
+ transform: rotate(45deg);
68
+ top: -4px;
69
+ }
70
+ }
71
+ }
72
+ }
73
+
74
+ .mobile-nav-item {
75
+ color: $mobile-nav-color;
76
+ display: block;
77
+ text-decoration: none;
78
+ padding: .5rem 1rem;
79
+ border-bottom: 1px solid $mobile-nav-border;
80
+ }
81
+
82
+ .mobile-nav-search {
83
+ padding: 1rem .5rem 0;
84
+ border-bottom: 0;
85
+ input {
86
+ font-family: $nav-font;
87
+ font-size: $base-font-size;
88
+ line-height: 1.65em;
89
+ margin: 0;
90
+ background: $mobile-nav-border;
91
+ border: 1px solid lighten($mobile-nav-border, 5);
92
+ color: $mobile-search-color;
93
+ padding: 0 .5rem;
94
+ outline: none;
95
+ width: 100%;
96
+ transition: all .25s ease-in-out;
97
+ position: relative;
98
+ top: -1px;
99
+
100
+ &:focus {
101
+ outline: none;
102
+ }
103
+ @include placeholder {
104
+ transition: opacity .25s ease-in-out;
105
+ font-size: $main-nav-font-size;
106
+ font-family: $nav-font;
107
+ color: $mobile-search-color;
108
+ opacity: .5;
109
+ }
110
+ }
111
+ }
112
+
113
+ @include at-least($small) {
114
+ .mobile-nav {
115
+ display: none;
116
+ }
117
+ .mobile-nav-toggle {
118
+ display: none;
119
+ }
120
+ }
121
+
122
+ .site-content {
123
+ transition: transform .25s ease-out;
124
+ }
125
+
126
+ @include until($small) {
127
+ .mobile-nav-active {
128
+ .site {
129
+ overflow-x: hidden;
130
+ }
131
+ .mobile-nav {
132
+ transform: scale(1, 1);
133
+ opacity: 1;
134
+ }
135
+ .site-content {
136
+ transform: translateX(85%);
137
+ position: relative;
138
+ z-index: 2;
139
+ box-shadow: rgba(darken($mobile-nav-bg, 10), .5) -20px 0 20px 1px;
140
+ }
141
+ }
142
+ }
@@ -1,5 +1,5 @@
1
1
  %social-link {
2
- transition: all .3s ease-in-out;
2
+ transition: all .25s ease-in-out;
3
3
  display: inline-block;
4
4
  font-size: 0;
5
5
  background: {
@@ -13,6 +13,8 @@
13
13
  @extend %social-link;
14
14
  width: 55px;
15
15
  height: 35px;
16
+ position: relative;
17
+ font-family: $meta-font;
16
18
  &:first-child {
17
19
  border-top-left-radius: 4px;
18
20
  border-bottom-left-radius: 4px;
@@ -21,6 +23,40 @@
21
23
  border-top-right-radius: 4px;
22
24
  border-bottom-right-radius: 4px;
23
25
  }
26
+
27
+ &:after {
28
+ content: attr(title);
29
+ position: absolute;
30
+ top: 0;
31
+ padding: .1rem .4rem;
32
+ border-radius: .2rem;
33
+ display: inline-block;
34
+ line-height: 1rem;
35
+ font-size: .7rem;
36
+ white-space: nowrap;
37
+ transition: all .25s ease-in-out;
38
+ transform: translate(-50%, -10px);
39
+ color: transparent;
40
+ z-index: -2;
41
+ border: 1px solid rgba(#000, 0);
42
+ }
43
+ &:hover:after {
44
+ color: $light-text-color;
45
+ background: $site-header-bg;
46
+ transform: translate(-50%, -33px);
47
+ border-color: rgba(#000, .15);
48
+ }
49
+ &:before {
50
+ content: "";
51
+ @include triangle(down, #fff, 6px);
52
+ transform: translate(-50%, 16px);
53
+ position: absolute;
54
+ z-index: -1;
55
+ transition: all .25s ease-in-out;
56
+ }
57
+ &:hover:before {
58
+ transform: translate(-50%, -9px);
59
+ }
24
60
  }
25
61
 
26
62
  %social-profile-link {
@@ -3,8 +3,17 @@ html {
3
3
  background: $main-bg;
4
4
  }
5
5
 
6
+ .site-content {
7
+ background: $main-bg;
8
+ }
9
+
6
10
  a {
11
+ text-decoration: none;
7
12
  color: $link-color;
13
+ transition: color .25s ease-in-out;
14
+ &:hover {
15
+ color: $light-text-color;
16
+ }
8
17
  }
9
18
 
10
19
  .site-top-content,
@@ -17,12 +26,10 @@ a {
17
26
  }
18
27
 
19
28
  .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
- }
29
+ width: 101vw;
30
+ transform: translateX(-#{$content-pad});
31
+ @include at-least($main-content-max) {
32
+ $w: $main-content-max - ($content-pad * 2);
33
+ transform: translateX(calc((#{$w} - 101vw)/2));
27
34
  }
28
35
  }
@@ -0,0 +1,20 @@
1
+ $main-bg: #f4f3ef;//#edefef;//#f5f6f6;
2
+ $page-border: #dadede;
3
+
4
+ $accent-color: #e46767; // pale red
5
+
6
+ $text-color: #444;
7
+ $medium-text-color: #666;
8
+ $light-text-color: #888;
9
+ $link-color: $accent-color;//#4A89DC;
10
+
11
+ $site-header-bg: #fff;//#edefef;
12
+ $site-title-color: #555;
13
+ $main-nav-color: #333;
14
+
15
+ $mobile-nav-bg: #393b3d;
16
+ $mobile-nav-color: #fff;
17
+ $mobile-search-color: #fff;
18
+ $mobile-nav-border: lighten($mobile-nav-bg, 5);
19
+
20
+ $gray: #8d9297;
@@ -0,0 +1,8 @@
1
+ $serif-font-stack: "Source Serif Pro", Georgia, Times, 'Times New Roman', serif;
2
+ $sans-font-stack: "Source Sans Pro", "Helvetica Neue", Arial, sans;
3
+
4
+ $main-font: $serif-font-stack;
5
+ $title-font: $serif-font-stack;
6
+ $subtitle-font: $serif-font-stack;
7
+ $meta-font: $sans-font-stack;
8
+ $nav-font: $sans-font-stack;
File without changes
@@ -0,0 +1,6 @@
1
+ @import 'sizes';
2
+ @import 'mixins';
3
+ @import 'grid';
4
+ @import 'colors';
5
+ @import 'fonts';
6
+ @import 'typography';
@@ -7,6 +7,13 @@
7
7
  @media all and (min-width: $size) { @content; }
8
8
  }
9
9
 
10
+ @mixin placeholder {
11
+ &::-webkit-input-placeholder { @content; }
12
+ &:-moz-placeholder { @content; }
13
+ &::-moz-placeholder { @content; }
14
+ &:-ms-input-placeholder { @content; }
15
+ }
16
+
10
17
  @mixin between($small-width, $large-width) {
11
18
  $large-width: $large-width - 1;
12
19
  @media (max-width: $large-width) and (min-width: $small-width) { @content; }
@@ -60,3 +67,29 @@
60
67
  }
61
68
  }
62
69
 
70
+ @mixin triangle($direction, $color, $size) {
71
+ @if $direction == left {
72
+ border-bottom: $size solid transparent;
73
+ border-right: $size solid $color;
74
+ border-top: $size solid transparent;
75
+ }
76
+ @else if $direction == right {
77
+ border-bottom: $size solid transparent;
78
+ border-left: $size solid $color;
79
+ border-top: $size solid transparent;
80
+ }
81
+ @else if $direction == up {
82
+ border-bottom: $size solid $color;
83
+ border-left: $size solid transparent;
84
+ border-right: $size solid transparent;
85
+ }
86
+ @else if $direction == down {
87
+ border-right: $size solid transparent;
88
+ border-left: $size solid transparent;
89
+ border-top: $size solid $color;
90
+ }
91
+
92
+ height: 0;
93
+ width: 0;
94
+ }
95
+
@@ -8,10 +8,11 @@ $max: 1080px;
8
8
 
9
9
  // Item widths
10
10
  $main-sidebar-width: 300px;
11
- $main-content-max: 800px;
11
+ $main-content-max: 900px;
12
12
  $content-pad: 20px;
13
13
 
14
14
  $h-pad-box: 5%, 40px;
15
15
  $v-pad-box: 5%, 30px;
16
16
 
17
17
  $base-font-size: 20px;
18
+ $main-nav-font-size: 20px;
@@ -1,11 +1,9 @@
1
- $post-title-font-stack: "Source Serif Pro", Georgia, Times, 'Times New Roman', serif;
2
-
3
1
  html {
4
2
  font-size: $base-font-size;
5
3
  }
6
4
 
7
5
  body {
8
- font-family: "Source Serif Pro", Georgia, Times, 'Times New Roman', serif;
6
+ font-family: $main-font;
9
7
  line-height: 1.65em;
10
8
  }
11
9
 
@@ -5,15 +5,12 @@
5
5
  $center-headings: {{ theme.center_headings }};
6
6
 
7
7
  // Stylesheets
8
- @import "colors";
9
- @import "sizes";
10
- @import "mixins";
11
- @import "fonts";
12
- @import "typography";
13
- @import "theme";
14
- @import "grid";
8
+ @import "core/index";
15
9
  @import "layout";
10
+ @import "theme";
16
11
  @import "header";
17
12
  @import "entry";
18
13
  @import "post-nav";
19
14
  @import "social";
15
+ @import "cover-image";
16
+ @import "mobile-nav";
@@ -1,5 +1,5 @@
1
1
  module Octopress
2
2
  module Genesis
3
- VERSION = "0.0.8"
3
+ VERSION = "0.0.9"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: octopress-genesis-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandon Mathis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-26 00:00:00.000000000 Z
11
+ date: 2015-04-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: octopress-ink
@@ -137,21 +137,7 @@ dependencies:
137
137
  - !ruby/object:Gem::Version
138
138
  version: '0'
139
139
  - !ruby/object:Gem::Dependency
140
- name: octopress-return-tag
141
- requirement: !ruby/object:Gem::Requirement
142
- requirements:
143
- - - ">="
144
- - !ruby/object:Gem::Version
145
- version: '0'
146
- type: :runtime
147
- prerelease: false
148
- version_requirements: !ruby/object:Gem::Requirement
149
- requirements:
150
- - - ">="
151
- - !ruby/object:Gem::Version
152
- version: '0'
153
- - !ruby/object:Gem::Dependency
154
- name: octopress-content-for
140
+ name: octopress-social
155
141
  requirement: !ruby/object:Gem::Requirement
156
142
  requirements:
157
143
  - - ">="
@@ -165,19 +151,19 @@ dependencies:
165
151
  - !ruby/object:Gem::Version
166
152
  version: '0'
167
153
  - !ruby/object:Gem::Dependency
168
- name: octopress-social
154
+ name: sass
169
155
  requirement: !ruby/object:Gem::Requirement
170
156
  requirements:
171
- - - ">="
157
+ - - "~>"
172
158
  - !ruby/object:Gem::Version
173
- version: '0'
159
+ version: '3.4'
174
160
  type: :runtime
175
161
  prerelease: false
176
162
  version_requirements: !ruby/object:Gem::Requirement
177
163
  requirements:
178
- - - ">="
164
+ - - "~>"
179
165
  - !ruby/object:Gem::Version
180
- version: '0'
166
+ version: '3.4'
181
167
  - !ruby/object:Gem::Dependency
182
168
  name: bundler
183
169
  requirement: !ruby/object:Gem::Requirement
@@ -259,11 +245,15 @@ files:
259
245
  - assets/config.yml
260
246
  - assets/includes/archive_post.html
261
247
  - assets/includes/category_links.html
248
+ - assets/includes/cover_image.html
262
249
  - assets/includes/head.html
263
250
  - assets/includes/index_post.html
251
+ - assets/includes/main_nav.html
252
+ - assets/includes/mobile_nav.html
253
+ - assets/includes/nav_items.html
264
254
  - assets/includes/post_meta.html
265
255
  - assets/includes/post_nav.html
266
- - assets/includes/primary_nav.html
256
+ - assets/includes/search.html
267
257
  - assets/includes/search/duckduckgo.html
268
258
  - assets/includes/search/google.html
269
259
  - assets/includes/site_footer.html
@@ -277,18 +267,21 @@ files:
277
267
  - assets/layouts/page.html
278
268
  - assets/layouts/paginated-posts.html
279
269
  - assets/layouts/post.html
280
- - assets/stylesheets/_colors.scss
270
+ - assets/stylesheets/_cover-image.scss
281
271
  - assets/stylesheets/_entry.scss
282
- - assets/stylesheets/_fonts.scss
283
- - assets/stylesheets/_grid.scss
284
272
  - assets/stylesheets/_header.scss
285
273
  - assets/stylesheets/_layout.scss
286
- - assets/stylesheets/_mixins.scss
274
+ - assets/stylesheets/_mobile-nav.scss
287
275
  - assets/stylesheets/_post-nav.scss
288
- - assets/stylesheets/_sizes.scss
289
276
  - assets/stylesheets/_social.scss
290
277
  - assets/stylesheets/_theme.scss
291
- - assets/stylesheets/_typography.scss
278
+ - assets/stylesheets/core/_colors.scss
279
+ - assets/stylesheets/core/_fonts.scss
280
+ - assets/stylesheets/core/_grid.scss
281
+ - assets/stylesheets/core/_index.scss
282
+ - assets/stylesheets/core/_mixins.scss
283
+ - assets/stylesheets/core/_sizes.scss
284
+ - assets/stylesheets/core/_typography.scss
292
285
  - assets/stylesheets/index.scss
293
286
  - assets/templates/category_feed.xml
294
287
  - assets/templates/category_index.html
@@ -1,9 +0,0 @@
1
- <nav class='site-nav' role="navigation">
2
- {% for link in theme.nav %}
3
- {% assign url = link.url | expand_url %}
4
- {% assign page_url = page.url | expand_url | remove:'index.html' %}
5
- {% assign class = (url == page_url ? 'active ' : '') %}
6
- {% assign class += link.class | classify if link.class %}
7
- <a class="site-nav-link {{ class }}" href="{{ url }}">{{ link.title }}</a>
8
- {% endfor %}
9
- </nav>
@@ -1,16 +0,0 @@
1
- /*$site-bg: #edefef;*/
2
- $main-bg: #eef0f2;//#edefef;//#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: #fff;//#edefef;
13
- $site-title-color: #555;
14
- $site-nav-color: #333;
15
-
16
- $gray: #8d9297;
@@ -1,3 +0,0 @@
1
- $title-font: "Source Serif Pro", Georgia, Times, 'Times New Roman', serif;
2
- $body-font: "Source Serif Pro", Georgia, Times, 'Times New Roman', serif;
3
- $meta-font: "Source Sans Pro", "Helvetica Neue", Arial, sans;