nesta-theme-lisezmoi 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +4 -0
- data/Gemfile.lock +42 -0
- data/LICENSE.txt +22 -0
- data/README.md +7 -0
- data/Rakefile +2 -0
- data/app.rb +36 -0
- data/lib/nesta-theme-lisezmoi.rb +9 -0
- data/lib/nesta-theme-lisezmoi/version.rb +7 -0
- data/nesta-theme-lisezmoi.gemspec +27 -0
- data/views/analytics.haml +16 -0
- data/views/default_head.haml +0 -0
- data/views/error.haml +10 -0
- data/views/feedback.haml +5 -0
- data/views/fonts.haml +7 -0
- data/views/footer.haml +0 -0
- data/views/footer_scripts.haml +0 -0
- data/views/header.haml +3 -0
- data/views/layout.haml +13 -0
- data/views/master.scss +414 -0
- data/views/menu.haml +4 -0
- data/views/not_found.haml +9 -0
- data/views/page.haml +19 -0
- data/views/page_meta.haml +14 -0
- data/views/summaries.haml +5 -0
- metadata +152 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 2f32fd215b41bcfc5095252ae63b857acc804fde
|
4
|
+
data.tar.gz: 4af98aa0047aede6e35a34995394bf4505ab9977
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: e589d5e741f31ff77d8f121a31c13349e4a4d72738c0370c0a05b43adac6012260f4cf2d8063172b078bd6bad54651c4279de3f17bba98d22c4bf03c52914c94
|
7
|
+
data.tar.gz: 5f8fdf00308cadc5c97c7fb09d2047ecd1a7cddc26d75e626d84ee27912fa97229734e62b57a3b1a842979664aa3cd05fbb552a7370f2ec63f6c0e17fafc8b11
|
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,42 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
nesta-theme-median (0.0.1)
|
5
|
+
nesta
|
6
|
+
|
7
|
+
GEM
|
8
|
+
remote: https://rubygems.org/
|
9
|
+
specs:
|
10
|
+
RedCloth (4.2.9)
|
11
|
+
haml (4.1.0.beta.1)
|
12
|
+
tilt
|
13
|
+
haml-contrib (1.0.0.1)
|
14
|
+
haml (>= 3.2.0.alpha.13)
|
15
|
+
nesta (0.11.1)
|
16
|
+
RedCloth (~> 4.2)
|
17
|
+
haml (>= 3.1)
|
18
|
+
haml-contrib (>= 1.0)
|
19
|
+
rack (>= 1.3)
|
20
|
+
rdiscount (~> 2.1)
|
21
|
+
sass (>= 3.1)
|
22
|
+
sinatra (~> 1.4)
|
23
|
+
tilt (~> 1.4)
|
24
|
+
rack (1.6.0)
|
25
|
+
rack-protection (1.5.3)
|
26
|
+
rack
|
27
|
+
rake (10.4.2)
|
28
|
+
rdiscount (2.1.8)
|
29
|
+
sass (3.4.13)
|
30
|
+
sinatra (1.4.6)
|
31
|
+
rack (~> 1.4)
|
32
|
+
rack-protection (~> 1.4)
|
33
|
+
tilt (>= 1.3, < 3)
|
34
|
+
tilt (1.4.1)
|
35
|
+
|
36
|
+
PLATFORMS
|
37
|
+
ruby
|
38
|
+
|
39
|
+
DEPENDENCIES
|
40
|
+
bundler (~> 1.6)
|
41
|
+
nesta-theme-median!
|
42
|
+
rake
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2015 Glenn Gillen
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
data/Rakefile
ADDED
data/app.rb
ADDED
@@ -0,0 +1,36 @@
|
|
1
|
+
module Nesta
|
2
|
+
class App
|
3
|
+
def display_menu_item(item, options = {})
|
4
|
+
if item.respond_to?(:each)
|
5
|
+
if (options[:levels] - 1) > 0
|
6
|
+
haml_tag :li do
|
7
|
+
display_menu(item, levels: (options[:levels] - 1))
|
8
|
+
end
|
9
|
+
end
|
10
|
+
else
|
11
|
+
html_class = current_item?(item) ? current_menu_item_class : nil
|
12
|
+
haml_tag :li, class: html_class do
|
13
|
+
haml_tag :a, :<, href: inline_anchored_path(item) do
|
14
|
+
haml_concat link_text(item)
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
def inline_anchored_path(item)
|
21
|
+
if item.parent
|
22
|
+
link_parts = []
|
23
|
+
link_parts << inline_anchored_path(item.parent)
|
24
|
+
link_parts << "#"
|
25
|
+
link_parts << link_text_to_inline_anchor(item.link_text)
|
26
|
+
link_parts.join
|
27
|
+
else
|
28
|
+
path_to(item.abspath)
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
def link_text_to_inline_anchor(text)
|
33
|
+
text.gsub(/[^a-z0-9]+/i,"-").downcase
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'nesta-theme-lisezmoi/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "nesta-theme-lisezmoi"
|
8
|
+
spec.version = Nesta::Theme::Lisezmoi::VERSION
|
9
|
+
spec.authors = ["Glenn Gillen"]
|
10
|
+
spec.email = ["me@glenngillen.com"]
|
11
|
+
spec.summary = %q{A technical documentation theme for NestaCMS.}
|
12
|
+
spec.homepage = "https://contentfocus.io"
|
13
|
+
spec.license = "MIT"
|
14
|
+
|
15
|
+
spec.files = `git ls-files -z`.split("\x0")
|
16
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
17
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
18
|
+
spec.require_paths = ["lib"]
|
19
|
+
|
20
|
+
spec.add_development_dependency "bundler", "~> 1.6"
|
21
|
+
spec.add_development_dependency "rake"
|
22
|
+
|
23
|
+
spec.add_runtime_dependency "nesta"
|
24
|
+
spec.add_runtime_dependency "nesta-contentfocus-extensions"
|
25
|
+
spec.add_runtime_dependency "bourbon"
|
26
|
+
spec.add_runtime_dependency "neat"
|
27
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
- if ENV["SEGMENT_WRITE_KEY"]
|
2
|
+
:javascript
|
3
|
+
!function(){var analytics=window.analytics=window.analytics||[];if(!analytics.initialize)if(analytics.invoked)window.console&&console.error&&console.error("Segment snippet included twice.");else{analytics.invoked=!0;analytics.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","group","track","ready","alias","page","once","off","on"];analytics.factory=function(t){return function(){var e=Array.prototype.slice.call(arguments);e.unshift(t);analytics.push(e);return analytics}};for(var t=0;t<analytics.methods.length;t++){var e=analytics.methods[t];analytics[e]=analytics.factory(e)}analytics.load=function(t){var e=document.createElement("script");e.type="text/javascript";e.async=!0;e.src=("https:"===document.location.protocol?"https://":"http://")+"cdn.segment.com/analytics.js/v1/"+t+"/analytics.min.js";var n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(e,n)};analytics.SNIPPET_VERSION="3.0.1";
|
4
|
+
analytics.load("#{ENV["SEGMENT_WRITE_KEY"]}");
|
5
|
+
analytics.page()
|
6
|
+
}}();
|
7
|
+
- if ENV["GOOGLE_ANALYTICS_PROFILE_ID"]
|
8
|
+
:javascript
|
9
|
+
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
|
10
|
+
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
|
11
|
+
:javascript
|
12
|
+
try {
|
13
|
+
var pageTracker = _gat._getTracker("#{ENV["GOOGLE_ANALYTICS_PROFILE_ID"]}");
|
14
|
+
pageTracker._trackPageview();
|
15
|
+
} catch(err) {}</script>
|
16
|
+
|
File without changes
|
data/views/error.haml
ADDED
data/views/feedback.haml
ADDED
data/views/fonts.haml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
- if ENV["TYPEKIT_KIT_ID"]
|
2
|
+
%script{ :type => "text/javascript", :src => "http://use.typekit.com/#{ENV["TYPEKIT_KIT_ID"]}.js" }
|
3
|
+
:javascript
|
4
|
+
try{Typekit.load();}catch(e){}
|
5
|
+
- else
|
6
|
+
%link(href="http://fonts.googleapis.com/css?family=Open+Sans:400,700" rel="stylesheet" type="text/css")
|
7
|
+
%link(href="http://fonts.googleapis.com/css?family=Merriweather:300,400,700,300italic,400italic" rel="stylesheet" type="text/css")
|
data/views/footer.haml
ADDED
File without changes
|
File without changes
|
data/views/header.haml
ADDED
data/views/layout.haml
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
%html(lang="en")
|
3
|
+
%head
|
4
|
+
%meta(charset="utf-8")
|
5
|
+
%title= @title
|
6
|
+
%link(rel="stylesheet" type="text/css" href="#{path_to("css/master.css")}")
|
7
|
+
= haml :analytics, layout: false
|
8
|
+
= haml :fonts, layout: false
|
9
|
+
= haml :default_head, layout: false
|
10
|
+
%body
|
11
|
+
.container
|
12
|
+
= yield
|
13
|
+
= haml :footer_scripts, layout: false
|
data/views/master.scss
ADDED
@@ -0,0 +1,414 @@
|
|
1
|
+
@import "bourbon";
|
2
|
+
@import "neat";
|
3
|
+
|
4
|
+
$base-font-size: 22px;
|
5
|
+
$base-color: rgba(0, 0, 0, 0.8);
|
6
|
+
$heading-font-family: myriad-pro, sans-serif;
|
7
|
+
$body-font-family: myriad-pro, sans-serif;
|
8
|
+
$link-color: rgb(77, 204, 75);
|
9
|
+
|
10
|
+
body {
|
11
|
+
font-family: $body-font-family;
|
12
|
+
font-size: $base-font-size;
|
13
|
+
color: $base-color;
|
14
|
+
margin: 0;
|
15
|
+
}
|
16
|
+
|
17
|
+
h1, h2, h3, h4 {
|
18
|
+
font-family: $heading-font-family;
|
19
|
+
}
|
20
|
+
|
21
|
+
h1, h2 {
|
22
|
+
font-size: $base-font-size * 1.64;
|
23
|
+
line-height: $base-font-size * 1.64 * 1.15;
|
24
|
+
letter-spacing: (-1px*(23/32));
|
25
|
+
}
|
26
|
+
|
27
|
+
h3, h4 {
|
28
|
+
font-size: $base-font-size * 1.46;
|
29
|
+
line-height: $base-font-size * 1.46 * 1.18;
|
30
|
+
letter-spacing: (-1px*(22/32));
|
31
|
+
}
|
32
|
+
|
33
|
+
p, ul li, ol li {
|
34
|
+
line-height: $base-font-size * 1.5;
|
35
|
+
}
|
36
|
+
|
37
|
+
ul li, ol li {
|
38
|
+
margin: 0.5em 0;
|
39
|
+
}
|
40
|
+
|
41
|
+
code {
|
42
|
+
font-size: 85%;
|
43
|
+
background: rgba(0, 0, 0, 0.04);
|
44
|
+
padding: 0 0.2em;
|
45
|
+
border-radius: 3px;
|
46
|
+
}
|
47
|
+
|
48
|
+
pre > code {
|
49
|
+
display: block;
|
50
|
+
}
|
51
|
+
|
52
|
+
a {
|
53
|
+
color: $link-color;
|
54
|
+
text-decoration: none;
|
55
|
+
transition: color 0.5s;
|
56
|
+
|
57
|
+
&:after {
|
58
|
+
text-decoration: underline;
|
59
|
+
}
|
60
|
+
}
|
61
|
+
|
62
|
+
.container {
|
63
|
+
@include outer-container;
|
64
|
+
margin-bottom: 3em;
|
65
|
+
}
|
66
|
+
|
67
|
+
.articles {
|
68
|
+
ol {
|
69
|
+
padding: 0;
|
70
|
+
margin: 0;
|
71
|
+
li {
|
72
|
+
list-style: none;
|
73
|
+
}
|
74
|
+
}
|
75
|
+
}
|
76
|
+
|
77
|
+
section.header {
|
78
|
+
height: 65px;
|
79
|
+
padding-left: 15px;
|
80
|
+
h1 {
|
81
|
+
padding: 0;
|
82
|
+
margin: 0;
|
83
|
+
text-align: left;
|
84
|
+
font-size: 25px;
|
85
|
+
line-height: 65px;
|
86
|
+
}
|
87
|
+
a {
|
88
|
+
color: $base-color;
|
89
|
+
}
|
90
|
+
}
|
91
|
+
|
92
|
+
mark, blockquote {
|
93
|
+
background: transparent;
|
94
|
+
transition: background 0.5s;
|
95
|
+
&:hover {
|
96
|
+
background: #d3f7d2;
|
97
|
+
}
|
98
|
+
}
|
99
|
+
.twitter-share-button {
|
100
|
+
margin: 0 10px;
|
101
|
+
background-color: transparent;
|
102
|
+
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAUCAYAAADPym6aAAAFf0lEQVRIiaWWz29V1RbHP2vvc3+0VBMSwISopdTbUq4/eKV9PNKBaSCoExi8cBGqCB3oyISBfwCJcWA0mhgHTJQX+5R6Mf4ATGTggKTB9/KAF0lK27SFlkBinr8ClIZ7z9lrvcGloYXe2x+s0cna65zP97v3XvtsYZlRLJpvzo8/byL7gCdFOGJpfuxobr4xUzMwPPxIV2vrlIjYchi7i+YbmHxeHftQfVIkdeS2lX88XrjH6P1k+JFPe1unBODcyMgq1XT+r21NZxYD+PfwRJPXcATYcd/QJTN7y0x+8469JlzraGv+AGDvFyOrIly+b19uUY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/Fp4aS0he1KR8WpxbNMOnMoS4NJipc4eYh1F1C10YGt2q6t5D6FoEZ9yZ7mzP5y4tVhjA/uLEVoH3xEmXhhq7MZ1FQzzuVHYeLTTOy4jMTGbP4s8/j62J07LdzF5H2LIIPQMeev+Sz43WqBG41xGvfj22RpJoO9jriGypZkKcu7sS8YCUQ+/RnuaqDLkwOrraYtdjRifQCOQQ1iysX343s4/rufN+Pp+fqlV5sDi62iTqQaRTQ2hEJOej1Boz0OS+3SWC8xHOR4Sk/LuYfXzbpt8/XqjNEIALw8NrVVO7BQoGzwINVepLwJAI36oPfZ0tLZcXNlyJ3mNX1yY+7EYogDzrnGtwPqJyyzWcjzANaBKXEBkS57510Pfp3xsXxXigR/47dGVdYroRkfVibDesAfge4aqpDq+gPJrP55d6EMyJA99cWUeQjQrrUd0uWAPmvsfLVYiHp7U8erywNMb/AWjzhn4ByoGeAAAAAElFTkSuQmCC);
|
103
|
+
background-size: 50px 20px;
|
104
|
+
@include hidpi {
|
105
|
+
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAAAoCAYAAAAIeF9DAAAJEElEQVR42tVbW4wTZRSut5h41+Alxmg0PmiIxviA8YGIiQkhRhMviCs7ly6kDxgiDxoiEbKJvqBRwgsJKqIo3Zlp64puQBPjEtxtu7jAtkOlc++NyyoJqCywcqnfKcMOYssO7d+Lf3Iy7W6nzXe+Odf//IF2rdFRbcbIXmNuIq2/k0hrfyVV/ftEShPi6X2PlMvlKwL/k9UV1mYEo4W5QiT3Dq9Yf/Gy/T0vO4KoWI8EAv8DHEMZ695kWl8DKUHKFwsIOgnZnlD1F2uTad0M8hYnVfvOduGA8u8VIs4aEFESY4VyzzcHyrxilyuv+/eX8b+TYiS3HVITR0ixbuYle3FXuAaOhGrMgSIebhaIZMp4uRYRNcjZHM9kbjt/fzytPTSiaivwdxP/H1CU8lXVfkeMOHM4qXk4+D7jZTGaL/VsOVgGIWVetv4rICf4dYkIwmtn8yKlOIVDjDoP8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swUZKcLceNjXnHsYKxIGRCz4B08tzu5tftLNjgClF5Sd5fOYVCwpuoYsr/J9UeJWiJEfoDRovQSQRrd3dxwpUUimSpqgP004Aa3RFkVPcUMZ3MP4povISl4fU4vMxzeGQuKDXQopsnF3jhkNeaI7wk0YdEgNRdBbIjmhogEHIphRcLUcTX33Mk4ZPXCrxrA4bfLm9ybfZqqZGqbsBpOwHUUGdmbjRPhv8vLx3JPI058Tm0TIscbgnN8E0CW4N5L953G+1HImwtjwNHqtTOTuQsF2nwocz2UuQfXoz5JmAQJeTrLAYt7O57RZrlHGdqyRMW5S4zk58NS1kOpe2gq8fwkPCma4gm9d4tFCtBEHBEyic/mcc82/P9tvJ/lHmVo/yJfT3O7OGU1mwK9e3QhAinSiVkaYKMzhFQ4UjLgTod03KJ5XZrbFSP2bCHqdIkRZxmsIQIpQuHbcV2OuqQH8WceCJwZUlqP4x8ROSt/5PBnGAAAAABJRU5ErkJggg==);
|
106
|
+
}
|
107
|
+
|
108
|
+
background-position: 0px 0px;
|
109
|
+
background-repeat: no-repeat;
|
110
|
+
overflow: hidden;
|
111
|
+
display: inline-block;
|
112
|
+
text-indent: -999em;
|
113
|
+
|
114
|
+
width: 25px;
|
115
|
+
height: 20px;
|
116
|
+
line-height: 20px;
|
117
|
+
&:hover {
|
118
|
+
background-position: -25px 0px;
|
119
|
+
}
|
120
|
+
}
|
121
|
+
|
122
|
+
#menu {
|
123
|
+
@include span-columns(3);
|
124
|
+
font-size: 16px;
|
125
|
+
letter-spacing: -0.15px;
|
126
|
+
|
127
|
+
ul.menu {
|
128
|
+
padding: 0;
|
129
|
+
margin: 0;
|
130
|
+
list-style: none;
|
131
|
+
|
132
|
+
li {
|
133
|
+
margin: 0;
|
134
|
+
padding: 0;
|
135
|
+
&.current {
|
136
|
+
a {
|
137
|
+
color: $link-color;
|
138
|
+
}
|
139
|
+
}
|
140
|
+
}
|
141
|
+
ul {
|
142
|
+
list-style: none;
|
143
|
+
padding-left: 0;
|
144
|
+
margin-bottom: 1em;
|
145
|
+
|
146
|
+
li {
|
147
|
+
margin: 0;
|
148
|
+
padding: 0;
|
149
|
+
}
|
150
|
+
li, a {
|
151
|
+
color: $base-color;
|
152
|
+
}
|
153
|
+
}
|
154
|
+
a {
|
155
|
+
text-decoration: none;
|
156
|
+
padding: 0 15px;
|
157
|
+
transition: color 0.2s;
|
158
|
+
|
159
|
+
&:hover {
|
160
|
+
color: $link-color;
|
161
|
+
text-decoration: underline;
|
162
|
+
}
|
163
|
+
}
|
164
|
+
li, a {
|
165
|
+
color: lighten($base-color, 50%);
|
166
|
+
}
|
167
|
+
|
168
|
+
}
|
169
|
+
}
|
170
|
+
#content {
|
171
|
+
@include span-columns(9);
|
172
|
+
padding-right: 2em;
|
173
|
+
background: #ffffff;
|
174
|
+
|
175
|
+
h1, h2, h3, h4 {
|
176
|
+
text-align: left;
|
177
|
+
}
|
178
|
+
|
179
|
+
h1, h2, h3, h4, p {
|
180
|
+
clear: both;
|
181
|
+
}
|
182
|
+
|
183
|
+
ul, ol {
|
184
|
+
margin: 1em 0;
|
185
|
+
}
|
186
|
+
|
187
|
+
img {
|
188
|
+
max-width: 100%;
|
189
|
+
}
|
190
|
+
|
191
|
+
section.articles {
|
192
|
+
header {
|
193
|
+
img.intro {
|
194
|
+
width: 100%;
|
195
|
+
max-height: 200px;
|
196
|
+
object-fit: cover;
|
197
|
+
overflow: hidden;
|
198
|
+
}
|
199
|
+
}
|
200
|
+
h1, h2, h3, h4 {
|
201
|
+
text-align: left;
|
202
|
+
margin: 0.2em 0;
|
203
|
+
}
|
204
|
+
p {
|
205
|
+
margin-top: 0.2em;
|
206
|
+
margin-bottom: 0;
|
207
|
+
font-size: 67%;
|
208
|
+
line-height: 1.7em;
|
209
|
+
}
|
210
|
+
footer {
|
211
|
+
margin: 0 0 3em;
|
212
|
+
font-size: 60%;
|
213
|
+
line-height: 1.6em;
|
214
|
+
color: rgba(120, 120, 120, 0.8);
|
215
|
+
.meta {
|
216
|
+
margin-top: 1em;
|
217
|
+
}
|
218
|
+
.more {
|
219
|
+
display: block;
|
220
|
+
float: left;
|
221
|
+
}
|
222
|
+
.more::after, .categories::after {
|
223
|
+
content: '·';
|
224
|
+
}
|
225
|
+
.author {
|
226
|
+
float: left;
|
227
|
+
margin-right: 0.25em;
|
228
|
+
font-style: normal;
|
229
|
+
font-size: 100%;
|
230
|
+
margin-top: 0;
|
231
|
+
clear: left;
|
232
|
+
}
|
233
|
+
.date {
|
234
|
+
float: left
|
235
|
+
}
|
236
|
+
}
|
237
|
+
}
|
238
|
+
div.author {
|
239
|
+
margin-top: 2em;
|
240
|
+
color: rgba(120, 120, 120, 0.8);
|
241
|
+
font-size: 85%;
|
242
|
+
font-style: italic;
|
243
|
+
}
|
244
|
+
}
|
245
|
+
|
246
|
+
figure.intro {
|
247
|
+
position: relative;
|
248
|
+
margin: 0;
|
249
|
+
padding: 0;
|
250
|
+
width: 100%;
|
251
|
+
|
252
|
+
h1 {
|
253
|
+
font-size: 13vmin;
|
254
|
+
position: absolute;
|
255
|
+
top: 35%;
|
256
|
+
width: 100%;
|
257
|
+
margin: 0;
|
258
|
+
padding: 0;
|
259
|
+
text-align: center;
|
260
|
+
color: #fff;
|
261
|
+
text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
|
262
|
+
line-height: 1.1em;
|
263
|
+
|
264
|
+
}
|
265
|
+
img {
|
266
|
+
width: 100%;
|
267
|
+
min-height: 85vh;
|
268
|
+
max-height: 85vh;
|
269
|
+
object-fit: cover;
|
270
|
+
overflow: hidden;
|
271
|
+
}
|
272
|
+
}
|
273
|
+
|
274
|
+
footer.post-links {
|
275
|
+
position: fixed;
|
276
|
+
bottom: 0;
|
277
|
+
width: 100%;
|
278
|
+
background: #fff;
|
279
|
+
margin: 0;
|
280
|
+
border-top: 1px solid #ddd;
|
281
|
+
padding: 10px;
|
282
|
+
color: rgba(120, 120, 120, 0.8);
|
283
|
+
font-size: 15px;
|
284
|
+
line-height: 22px;
|
285
|
+
|
286
|
+
|
287
|
+
span.author {
|
288
|
+
@media screen and (max-width: 580px) {
|
289
|
+
display: none;
|
290
|
+
}
|
291
|
+
}
|
292
|
+
span.date::after {
|
293
|
+
content: '·';
|
294
|
+
}
|
295
|
+
.addthis_sharing_toolbox {
|
296
|
+
float: right;
|
297
|
+
margin-right: 15px;
|
298
|
+
margin-top: 2px;
|
299
|
+
}
|
300
|
+
span.categories {
|
301
|
+
float: right;
|
302
|
+
margin-right: 15px;
|
303
|
+
|
304
|
+
span.read-more {
|
305
|
+
@media screen and (max-width: 470px) {
|
306
|
+
display: none;
|
307
|
+
}
|
308
|
+
}
|
309
|
+
|
310
|
+
span.category {
|
311
|
+
&::after {
|
312
|
+
content: ', ';
|
313
|
+
text-decoration: none;
|
314
|
+
}
|
315
|
+
&:nth-last-child(2)::after {
|
316
|
+
content: ', or ';
|
317
|
+
text-decoration: none;
|
318
|
+
}
|
319
|
+
&:only-child::after, &:last-child::after {
|
320
|
+
content: '';
|
321
|
+
text-decoration: none;
|
322
|
+
}
|
323
|
+
}
|
324
|
+
}
|
325
|
+
}
|
326
|
+
|
327
|
+
|
328
|
+
blockquote {
|
329
|
+
position: relative;
|
330
|
+
font-weight: 400;
|
331
|
+
font-style: italic;
|
332
|
+
font-family: $body-font-family;
|
333
|
+
margin: 1.5em 0 1em;
|
334
|
+
|
335
|
+
&::before {
|
336
|
+
display: block;
|
337
|
+
content: "\201C";
|
338
|
+
font-size: 300%;
|
339
|
+
position: absolute;
|
340
|
+
font-family: Georgia, serif;
|
341
|
+
left: -30px;
|
342
|
+
top: -15px;
|
343
|
+
}
|
344
|
+
|
345
|
+
p {
|
346
|
+
margin-bottom: 0;
|
347
|
+
font-weight: 400;
|
348
|
+
font-style: italic;
|
349
|
+
font-family: $body-font-family;
|
350
|
+
}
|
351
|
+
|
352
|
+
em:last-of-type {
|
353
|
+
display: block;
|
354
|
+
float: right;
|
355
|
+
margin: 1em 0;
|
356
|
+
|
357
|
+
&::after {
|
358
|
+
display: block;
|
359
|
+
clear: both;
|
360
|
+
content: '';
|
361
|
+
}
|
362
|
+
}
|
363
|
+
}
|
364
|
+
|
365
|
+
#content {
|
366
|
+
ul.toc {
|
367
|
+
list-style: none;
|
368
|
+
padding-left: 0;
|
369
|
+
font-size: 90%;
|
370
|
+
|
371
|
+
li {
|
372
|
+
margin: 0;
|
373
|
+
}
|
374
|
+
|
375
|
+
ul {
|
376
|
+
list-style: none;
|
377
|
+
margin-top: 0;
|
378
|
+
margin-bottom: 0;
|
379
|
+
font-size: 90%;
|
380
|
+
padding-left: 1em;
|
381
|
+
}
|
382
|
+
}
|
383
|
+
}
|
384
|
+
|
385
|
+
section.technical-docs {
|
386
|
+
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
|
387
|
+
margin-bottom: 3em;
|
388
|
+
}
|
389
|
+
|
390
|
+
@mixin callout($color) {
|
391
|
+
padding: 1em;
|
392
|
+
margin: 1em;
|
393
|
+
color: $color;
|
394
|
+
background: lighten($color, 60%);
|
395
|
+
a {
|
396
|
+
color: $color;
|
397
|
+
text-decoration: underline;
|
398
|
+
&:hover {
|
399
|
+
color: lighten($color, 20%);
|
400
|
+
}
|
401
|
+
}
|
402
|
+
}
|
403
|
+
.notice {
|
404
|
+
@include callout(#244e87);
|
405
|
+
}
|
406
|
+
.alert {
|
407
|
+
@include callout(#8c7800);
|
408
|
+
}
|
409
|
+
.error {
|
410
|
+
@include callout(#96151b);
|
411
|
+
}
|
412
|
+
.success {
|
413
|
+
@include callout(#56651a);
|
414
|
+
}
|
data/views/menu.haml
ADDED
data/views/page.haml
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
= haml :header, layout: false
|
2
|
+
= haml :menu, layout: false
|
3
|
+
- if @page.intro_image
|
4
|
+
%figure.intro
|
5
|
+
%h1= @page.heading
|
6
|
+
%img(src="#{@page.intro_image}")
|
7
|
+
#content
|
8
|
+
~ @page.to_html(self)
|
9
|
+
- if @page.metadata('author')
|
10
|
+
.author
|
11
|
+
= author_biography
|
12
|
+
= haml :summaries, :layout => false, :locals => { :pages => @page.pages, :heading => :h3 }
|
13
|
+
|
14
|
+
- if !@page.articles.empty?
|
15
|
+
%section.articles
|
16
|
+
%h2= "Articles on #{@page.heading}"
|
17
|
+
= haml :summaries, :layout => false, :locals => { :pages => @page.articles, :heading => :h3 }
|
18
|
+
= haml :feedback, :layout => false
|
19
|
+
= haml :footer, layout: false
|
@@ -0,0 +1,14 @@
|
|
1
|
+
- if page.date
|
2
|
+
%footer
|
3
|
+
.meta
|
4
|
+
%span.more
|
5
|
+
%a(href="#{path_to(page.abspath)}")= page.read_more
|
6
|
+
- if (! page.categories.empty?)
|
7
|
+
%span.categories
|
8
|
+
In
|
9
|
+
- page.categories.each do |category|
|
10
|
+
- if category != page.categories[-1]
|
11
|
+
= succeed ',' do
|
12
|
+
%a(href="#{path_to(category.abspath)}")= category.link_text
|
13
|
+
- else
|
14
|
+
%a(href="#{path_to(category.abspath)}")= category.link_text
|
metadata
ADDED
@@ -0,0 +1,152 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: nesta-theme-lisezmoi
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Glenn Gillen
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-05-28 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.6'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.6'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: nesta
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: nesta-contentfocus-extensions
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: bourbon
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: neat
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :runtime
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
description:
|
98
|
+
email:
|
99
|
+
- me@glenngillen.com
|
100
|
+
executables: []
|
101
|
+
extensions: []
|
102
|
+
extra_rdoc_files: []
|
103
|
+
files:
|
104
|
+
- Gemfile
|
105
|
+
- Gemfile.lock
|
106
|
+
- LICENSE.txt
|
107
|
+
- README.md
|
108
|
+
- Rakefile
|
109
|
+
- app.rb
|
110
|
+
- lib/nesta-theme-lisezmoi.rb
|
111
|
+
- lib/nesta-theme-lisezmoi/version.rb
|
112
|
+
- nesta-theme-lisezmoi.gemspec
|
113
|
+
- views/analytics.haml
|
114
|
+
- views/default_head.haml
|
115
|
+
- views/error.haml
|
116
|
+
- views/feedback.haml
|
117
|
+
- views/fonts.haml
|
118
|
+
- views/footer.haml
|
119
|
+
- views/footer_scripts.haml
|
120
|
+
- views/header.haml
|
121
|
+
- views/layout.haml
|
122
|
+
- views/master.scss
|
123
|
+
- views/menu.haml
|
124
|
+
- views/not_found.haml
|
125
|
+
- views/page.haml
|
126
|
+
- views/page_meta.haml
|
127
|
+
- views/summaries.haml
|
128
|
+
homepage: https://contentfocus.io
|
129
|
+
licenses:
|
130
|
+
- MIT
|
131
|
+
metadata: {}
|
132
|
+
post_install_message:
|
133
|
+
rdoc_options: []
|
134
|
+
require_paths:
|
135
|
+
- lib
|
136
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
137
|
+
requirements:
|
138
|
+
- - ">="
|
139
|
+
- !ruby/object:Gem::Version
|
140
|
+
version: '0'
|
141
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - ">="
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '0'
|
146
|
+
requirements: []
|
147
|
+
rubyforge_project:
|
148
|
+
rubygems_version: 2.2.2
|
149
|
+
signing_key:
|
150
|
+
specification_version: 4
|
151
|
+
summary: A technical documentation theme for NestaCMS.
|
152
|
+
test_files: []
|