guides_style_18f 0.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/CONTRIBUTING.md +19 -0
- data/LICENSE.md +31 -0
- data/README.md +91 -0
- data/assets/favicons/18f-center-114.png +0 -0
- data/assets/favicons/18f-center-144.png +0 -0
- data/assets/favicons/18f-center-16.png +0 -0
- data/assets/favicons/18f-center-192.png +0 -0
- data/assets/favicons/18f-center-200.png +0 -0
- data/assets/favicons/18f-center-32.png +0 -0
- data/assets/favicons/18f-center-57.png +0 -0
- data/assets/favicons/18f-center-72.png +0 -0
- data/assets/favicons/favicon.ico +0 -0
- data/assets/favicons/favicon.png +0 -0
- data/assets/img/18f-logo.png +0 -0
- data/assets/js/accordion.js +53 -0
- data/assets/js/html5shiv.js +301 -0
- data/assets/js/respond.js +341 -0
- data/lib/guides_style_18f.rb +8 -0
- data/lib/guides_style_18f/assets.rb +35 -0
- data/lib/guides_style_18f/generator.rb +12 -0
- data/lib/guides_style_18f/includes.rb +19 -0
- data/lib/guides_style_18f/includes/analytics.html +16 -0
- data/lib/guides_style_18f/includes/footer.html +9 -0
- data/lib/guides_style_18f/includes/header.html +21 -0
- data/lib/guides_style_18f/includes/scripts.html +5 -0
- data/lib/guides_style_18f/includes/sidebar.html +30 -0
- data/lib/guides_style_18f/layouts.rb +37 -0
- data/lib/guides_style_18f/layouts/default.html +40 -0
- data/lib/guides_style_18f/sass.rb +12 -0
- data/lib/guides_style_18f/sass/_guides_style_18f_custom.scss +50 -0
- data/lib/guides_style_18f/sass/_guides_style_18f_main.scss +606 -0
- data/lib/guides_style_18f/sass/_guides_style_18f_syntax.scss +60 -0
- data/lib/guides_style_18f/sass/guides_style_18f.scss +3 -0
- data/lib/guides_style_18f/version.rb +5 -0
- metadata +148 -0
@@ -0,0 +1,21 @@
|
|
1
|
+
<head>
|
2
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
3
|
+
<meta charset="utf-8">
|
4
|
+
<title>{{ page.title }} - {{ site.name }}</title>
|
5
|
+
<meta name="viewport" content="width=device-width">
|
6
|
+
<link rel="shortcut icon" type="image/ico" href="{% guides_style_18f_asset_root %}/assets/favicons/favicon.ico" />
|
7
|
+
<link rel="icon" type="image/png" href="{% guides_style_18f_asset_root %}/assets/favicons/favicon.png" />
|
8
|
+
<link rel="apple-touch-icon-precomposed" href="{% guides_style_18f_asset_root %}/assets/favicons/18f-center-57.png" />
|
9
|
+
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="{% guides_style_18f_asset_root %}/assets/favicons/18f-center-72.png" />
|
10
|
+
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="{% guides_style_18f_asset_root %}/assets/favicons/18f-center-114.png" />
|
11
|
+
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="{% guides_style_18f_asset_root %}/assets/favicons/18f-center-144.png"/>
|
12
|
+
<link rel="icon" type="image/png" sizes="192x192" href="{% guides_style_18f_asset_root %}/assets/favicons/18f-center-192.png" />
|
13
|
+
<link href='https://fonts.googleapis.com/css?family=Raleway:400,700%7COpen+Sans:400,400italic,600' rel='stylesheet' type='text/css' />
|
14
|
+
<link rel="stylesheet" href="{% guides_style_18f_asset_root %}/assets/css/styles.css" type='text/css' />{% for style in site.styles %}
|
15
|
+
<link rel="stylesheet" href="{{ site.baseurl }}/{{ style }}" type='text/css' />{% endfor %}{% for style in page.styles %}
|
16
|
+
<link rel="stylesheet" href="{{ site.baseurl }}/{{ style }}" type='text/css' />{% endfor %}
|
17
|
+
<!--[if lt IE 9]>
|
18
|
+
<script src="{% guides_style_18f_asset_root %}/assets/js/html5shiv.js"></script>
|
19
|
+
<script src="{% guides_style_18f_asset_root %}/assets/js/respond.js"></script>
|
20
|
+
<![endif]-->
|
21
|
+
</head>
|
@@ -0,0 +1,5 @@
|
|
1
|
+
<script async src="https://code.jquery.com/jquery-1.11.2.min.js"></script>
|
2
|
+
<script async src="https://code.jquery.com/jquery-migrate-1.2.1.min.js"></script>
|
3
|
+
<script async src="{% guides_style_18f_asset_root %}/assets/js/accordion.js"></script>{% for script in site.scripts %}
|
4
|
+
<script async src="{{ site.baseurl }}/{{ script }}"></script>{% endfor %}{% for script in page.scripts %}
|
5
|
+
<script async src="{{ site.baseurl }}/{{ script }}"></script>{% endfor %}
|
@@ -0,0 +1,30 @@
|
|
1
|
+
<aside>
|
2
|
+
<p class="intro">{{ site.subtitle }}</p>
|
3
|
+
<a class="skip-link visuallyhidden focusable" href="#main">Skip to Main Content</a>
|
4
|
+
<nav class="sidebar-nav" role="navigation">
|
5
|
+
<ul>
|
6
|
+
{% for link in site.navigation %}
|
7
|
+
<li class="group {% if page.title == link.text %}sidebar-nav-active{% endif %}">
|
8
|
+
<a href="{% if link.internal == true %}{{ site.baseurl }}/{% endif %}{{ link.url }}"
|
9
|
+
title="{% if page.title == link.text %}Current Page
|
10
|
+
{% else %}{{ link.text }}{% endif %}">{{ link.text }}</a>
|
11
|
+
{% if link.children %}
|
12
|
+
<button class="expand-subnav"
|
13
|
+
aria-expanded="{% if link.text == page.parent or link.text == page.title %}true{% else %}false{% endif %}"
|
14
|
+
aria-controls="nav-collapsible-{{ forloop.index }}">+</button>
|
15
|
+
<ul class="nav-children" id="nav-collapsible-{{ forloop.index }}"
|
16
|
+
aria-hidden="{% if link.text == page.parent or link.text == page.title %}false{% else %}true{% endif %}">
|
17
|
+
{% for child in link.children %}
|
18
|
+
<li class="{% if page.title == child.text %}sidebar-nav-active{% endif %}">
|
19
|
+
<a href="{% if link.internal == true %}{{ site.baseurl }}/{{ link.url }}{% endif %}{{ child.url }}"
|
20
|
+
title="{% if page.title == child.text %}Current Page
|
21
|
+
{% else %}{{ child.text }}{% endif %}">{{ child.text }}</a>
|
22
|
+
</li>
|
23
|
+
{% endfor %}
|
24
|
+
</ul>
|
25
|
+
{% endif %}
|
26
|
+
</li>
|
27
|
+
{% endfor %}
|
28
|
+
</ul>
|
29
|
+
</nav>
|
30
|
+
</aside>
|
@@ -0,0 +1,37 @@
|
|
1
|
+
# @author Mike Bland (michael.bland@gsa.gov)
|
2
|
+
|
3
|
+
require 'jekyll/layout'
|
4
|
+
require 'safe_yaml'
|
5
|
+
|
6
|
+
module GuidesStyle18F
|
7
|
+
# We have to essentially recreate the ::Jekyll::Layout constructor to loosen
|
8
|
+
# the default restriction that layouts be included in the site source.
|
9
|
+
class Layouts < ::Jekyll::Layout
|
10
|
+
private_class_method :new
|
11
|
+
|
12
|
+
def initialize(site, layout_file)
|
13
|
+
@site = site
|
14
|
+
@base = File.join File.dirname(__FILE__), 'layouts'
|
15
|
+
@name = "#{layout_file}.html"
|
16
|
+
parse_content_and_data File.join(@base, name)
|
17
|
+
process name
|
18
|
+
end
|
19
|
+
|
20
|
+
def parse_content_and_data(file_path)
|
21
|
+
self.data = {}
|
22
|
+
self.content = File.read file_path
|
23
|
+
|
24
|
+
front_matter_pattern = /^(---\n.*)---\n/m
|
25
|
+
front_matter_match = front_matter_pattern.match content
|
26
|
+
return unless front_matter_match
|
27
|
+
|
28
|
+
self.content = front_matter_match.post_match
|
29
|
+
self.data = SafeYAML.load front_matter_match[1], safe: true
|
30
|
+
end
|
31
|
+
private :parse_content_and_data
|
32
|
+
|
33
|
+
def self.register(site)
|
34
|
+
site.layouts['guides_style_18f_default'] = new site, 'default'
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
@@ -0,0 +1,40 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html lang='en'>
|
3
|
+
|
4
|
+
{% guides_style_18f_include header.html %}
|
5
|
+
|
6
|
+
<body>
|
7
|
+
|
8
|
+
<div class="container">
|
9
|
+
|
10
|
+
<header role="banner">
|
11
|
+
|
12
|
+
<div class="wrap">
|
13
|
+
{% if site.logourl != null %}
|
14
|
+
<a href="{{ site.author.url }}"><img class="logo" src="{{ site.baseurl }}{{ site.logourl }}" alt="{{ site.logoalt }}" width="75px"></a>
|
15
|
+
{% endif %}
|
16
|
+
<h1 class="site-title"><a class="title-link" href="{{ site.baseurl }}/">{{ site.name }}</a></h1>{% if site.back_link %}
|
17
|
+
<div class="back-link"><a href="{{ site.back_link.url }}">« {{ site.back_link.text }}</a></div>{% endif %}
|
18
|
+
</div>
|
19
|
+
|
20
|
+
</header>
|
21
|
+
|
22
|
+
<div class="wrap content">
|
23
|
+
|
24
|
+
<section id="main" class="main-content" role="main">
|
25
|
+
<h1>{{ page.title }}</h1>
|
26
|
+
{{ content }}
|
27
|
+
</section>
|
28
|
+
|
29
|
+
{% guides_style_18f_include sidebar.html %}
|
30
|
+
|
31
|
+
</div><!-- /.wrap content -->
|
32
|
+
|
33
|
+
{% guides_style_18f_include footer.html %}
|
34
|
+
|
35
|
+
</div> <!-- /.container -->
|
36
|
+
|
37
|
+
</body>
|
38
|
+
{% guides_style_18f_include analytics.html %}
|
39
|
+
{% guides_style_18f_include scripts.html %}
|
40
|
+
</html>
|
@@ -0,0 +1,12 @@
|
|
1
|
+
# @author Mike Bland (michael.bland@gsa.gov)
|
2
|
+
|
3
|
+
require 'sass'
|
4
|
+
|
5
|
+
module GuidesStyle18F
|
6
|
+
class Sass
|
7
|
+
DIR = File.join File.dirname(__FILE__), 'sass'
|
8
|
+
GUIDES_STYLES_FILE = File.join DIR, 'guides_style_18f.scss'
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
12
|
+
Sass.load_paths << ::GuidesStyle18F::Sass::DIR
|
@@ -0,0 +1,50 @@
|
|
1
|
+
/*
|
2
|
+
This is where custom styles for your guide should live.
|
3
|
+
*/
|
4
|
+
|
5
|
+
div.skip-nav a {
|
6
|
+
position: absolute;
|
7
|
+
left: -10000;
|
8
|
+
top: 0;
|
9
|
+
width: 1px;
|
10
|
+
height: auto;
|
11
|
+
overflow: hidden;
|
12
|
+
}
|
13
|
+
div.skip-nav a:focus {
|
14
|
+
position: absolute;
|
15
|
+
top: 5px;
|
16
|
+
left: 5px;
|
17
|
+
width: auto;
|
18
|
+
height: auto;
|
19
|
+
z-index: 999999;
|
20
|
+
background-color: white;
|
21
|
+
padding-left: 2px;
|
22
|
+
padding-right: 2px;
|
23
|
+
overflow: visible;
|
24
|
+
}
|
25
|
+
|
26
|
+
.mainContent:focus {
|
27
|
+
outline: none;
|
28
|
+
}
|
29
|
+
|
30
|
+
table, th, td {
|
31
|
+
border: 1px solid black;
|
32
|
+
padding: 5px;
|
33
|
+
margin:5px;
|
34
|
+
}
|
35
|
+
th {
|
36
|
+
background: #767576;
|
37
|
+
color:white;
|
38
|
+
}
|
39
|
+
li.active > a{
|
40
|
+
background-color: #317ab9;
|
41
|
+
}
|
42
|
+
|
43
|
+
div.back-link {
|
44
|
+
display: block;
|
45
|
+
padding-top: .5em;
|
46
|
+
}
|
47
|
+
|
48
|
+
header {
|
49
|
+
padding-bottom: 1.5em;
|
50
|
+
}
|
@@ -0,0 +1,606 @@
|
|
1
|
+
/*
|
2
|
+
Main.css
|
3
|
+
==================================
|
4
|
+
Begin with generic 'mobile first' styles
|
5
|
+
*/
|
6
|
+
|
7
|
+
/*
|
8
|
+
Normalize the box model
|
9
|
+
==================================
|
10
|
+
*/
|
11
|
+
|
12
|
+
*,
|
13
|
+
*:before,
|
14
|
+
*:after {
|
15
|
+
-webkit-box-sizing: border-box;
|
16
|
+
-moz-box-sizing: border-box;
|
17
|
+
box-sizing: border-box;
|
18
|
+
}
|
19
|
+
|
20
|
+
/*
|
21
|
+
global styles
|
22
|
+
==================================
|
23
|
+
*/
|
24
|
+
|
25
|
+
html, body {
|
26
|
+
height: 100%;
|
27
|
+
}
|
28
|
+
|
29
|
+
/*
|
30
|
+
Typography
|
31
|
+
==================================
|
32
|
+
*/
|
33
|
+
|
34
|
+
body {
|
35
|
+
font-family: "Open Sans", Arial, sans-serif;
|
36
|
+
font-weight: 400;
|
37
|
+
font-style: normal;
|
38
|
+
line-height: 1.466666667;
|
39
|
+
margin: 0;
|
40
|
+
}
|
41
|
+
|
42
|
+
h1,
|
43
|
+
h2,
|
44
|
+
h3,
|
45
|
+
h4,
|
46
|
+
h5 {
|
47
|
+
font-family: "Raleway", Arial, sans-serif;
|
48
|
+
font-weight: 600;
|
49
|
+
}
|
50
|
+
|
51
|
+
.site-title {
|
52
|
+
font-size: 1.9em;
|
53
|
+
color: #919395;
|
54
|
+
margin: 0;
|
55
|
+
line-height: 1.2941176470588236;
|
56
|
+
display: inline-block;
|
57
|
+
}
|
58
|
+
|
59
|
+
h2 {
|
60
|
+
font-size: 1.375em;
|
61
|
+
margin: 1.4em 0 0 0;
|
62
|
+
}
|
63
|
+
|
64
|
+
h3 {
|
65
|
+
margin-top: 30px;
|
66
|
+
}
|
67
|
+
|
68
|
+
h4 {
|
69
|
+
font-size: 1em;
|
70
|
+
text-transform: uppercase;
|
71
|
+
}
|
72
|
+
|
73
|
+
.page-title {
|
74
|
+
margin-top: .727272727em; /* 16/22 */
|
75
|
+
}
|
76
|
+
|
77
|
+
/*
|
78
|
+
Lists
|
79
|
+
--------------------------------
|
80
|
+
*/
|
81
|
+
|
82
|
+
.main-content ul {
|
83
|
+
padding-left: 1.1em;
|
84
|
+
}
|
85
|
+
|
86
|
+
.main-content li {
|
87
|
+
margin-bottom: 1em;
|
88
|
+
}
|
89
|
+
|
90
|
+
li h3,
|
91
|
+
li h4 {
|
92
|
+
margin: 0;
|
93
|
+
}
|
94
|
+
|
95
|
+
li p {
|
96
|
+
margin-top: 0;
|
97
|
+
}
|
98
|
+
|
99
|
+
/*
|
100
|
+
Links
|
101
|
+
==================================
|
102
|
+
*/
|
103
|
+
|
104
|
+
a {
|
105
|
+
-webkit-transition: .2s;
|
106
|
+
-moz-transition: .2s;
|
107
|
+
transition: .2s;
|
108
|
+
}
|
109
|
+
|
110
|
+
a,
|
111
|
+
a:link,
|
112
|
+
a:visited {
|
113
|
+
color: #0072ce;
|
114
|
+
border-bottom: 1px dotted #0072ce;
|
115
|
+
text-decoration: none;
|
116
|
+
}
|
117
|
+
|
118
|
+
a:hover {
|
119
|
+
border-bottom: 1px solid #7eb8dd;
|
120
|
+
color: #7eb8dd;
|
121
|
+
text-decoration: none;
|
122
|
+
}
|
123
|
+
|
124
|
+
a:active {
|
125
|
+
border-bottom: 1px solid #002d72;
|
126
|
+
color: #002d72;
|
127
|
+
text-decoration: none;
|
128
|
+
}
|
129
|
+
|
130
|
+
a:focus {
|
131
|
+
border-bottom: 1px solid #0072ce;
|
132
|
+
color: #0072ce;
|
133
|
+
outline: thin dotted;
|
134
|
+
text-decoration: none;
|
135
|
+
}
|
136
|
+
|
137
|
+
a.title-link {
|
138
|
+
color: #75787B;
|
139
|
+
border-bottom: none;
|
140
|
+
}
|
141
|
+
|
142
|
+
a.title-link:hover,
|
143
|
+
a.title-link:active,
|
144
|
+
a.title-link:focus {
|
145
|
+
color: #7eb8dd;
|
146
|
+
border-bottom: none;
|
147
|
+
}
|
148
|
+
|
149
|
+
a.skip-link {
|
150
|
+
color: #0072ce;
|
151
|
+
border-bottom: none;
|
152
|
+
padding: .25em;
|
153
|
+
}
|
154
|
+
|
155
|
+
a.skip-link:hover,
|
156
|
+
a.skip-link:active,
|
157
|
+
a.skip-link:focus {
|
158
|
+
background-color: #0072ce;
|
159
|
+
color: #fff;
|
160
|
+
border-bottom: none;
|
161
|
+
}
|
162
|
+
|
163
|
+
|
164
|
+
/*
|
165
|
+
Navigation
|
166
|
+
==================================
|
167
|
+
*/
|
168
|
+
|
169
|
+
.sidebar-nav a {
|
170
|
+
display: block;
|
171
|
+
padding-bottom: 10px;
|
172
|
+
padding-right: 10px;
|
173
|
+
padding-left: 14px;
|
174
|
+
padding-top: 10px;
|
175
|
+
-webkit-transition: .4s;
|
176
|
+
transition: .4s;
|
177
|
+
width: 80%;
|
178
|
+
float: left;
|
179
|
+
}
|
180
|
+
|
181
|
+
.sidebar-nav a,
|
182
|
+
.sidebar-nav a:link,
|
183
|
+
.sidebar-nav a:visited {
|
184
|
+
border-bottom: none;
|
185
|
+
color: #74767B;
|
186
|
+
}
|
187
|
+
|
188
|
+
.sidebar-nav a:hover,
|
189
|
+
.sidebar-nav a:focus,
|
190
|
+
.sidebar-nav a:active,
|
191
|
+
.sidebar-nav .sidebar-nav-active > a {
|
192
|
+
color: #74767B;
|
193
|
+
border-left: 4px solid #1188ff;
|
194
|
+
background-color: transparent;
|
195
|
+
}
|
196
|
+
|
197
|
+
.sidebar-nav ul {
|
198
|
+
margin: 0;
|
199
|
+
padding: 0;
|
200
|
+
}
|
201
|
+
|
202
|
+
.sidebar-nav li {
|
203
|
+
list-style: none;
|
204
|
+
border-bottom: 1px solid #babbbd;
|
205
|
+
font-size: 1.125em;
|
206
|
+
overflow: hidden;
|
207
|
+
}
|
208
|
+
|
209
|
+
.sidebar-nav li:last-child {
|
210
|
+
border-bottom: none;
|
211
|
+
}
|
212
|
+
|
213
|
+
.nav-children {
|
214
|
+
clear: both;
|
215
|
+
display: block;
|
216
|
+
font-size: 14px;
|
217
|
+
max-height: 0;
|
218
|
+
opacity: 0;
|
219
|
+
overflow: hidden;
|
220
|
+
position: relative;
|
221
|
+
-webkit-transition: max-height .2s, opacity .2s;
|
222
|
+
-moz-transition: max-height .2s, opacity .2s;
|
223
|
+
-o-transition: max-height .2s, opacity .2s;
|
224
|
+
transition: max-height .2s, opacity .2s;
|
225
|
+
}
|
226
|
+
|
227
|
+
.nav-children li {
|
228
|
+
border-bottom: none;
|
229
|
+
padding-left: 0;
|
230
|
+
}
|
231
|
+
|
232
|
+
.nav-children a {
|
233
|
+
padding: 5px 5px 5px 20px;
|
234
|
+
}
|
235
|
+
|
236
|
+
.nav-children li:last-child a {
|
237
|
+
padding-bottom: 10px;
|
238
|
+
}
|
239
|
+
|
240
|
+
.expand-subnav {
|
241
|
+
background: none;
|
242
|
+
border: none;
|
243
|
+
border-radius: 30px;
|
244
|
+
color: #0072ce;
|
245
|
+
cursor: pointer;
|
246
|
+
display: block;
|
247
|
+
float: right;
|
248
|
+
font-size: 20px;
|
249
|
+
height: 30px;
|
250
|
+
line-height: 1;
|
251
|
+
margin: 8px;
|
252
|
+
padding-bottom: 5px;
|
253
|
+
position: relative;
|
254
|
+
width: 30px;
|
255
|
+
-webkit-appearance: none;
|
256
|
+
-moz-appearance: none;
|
257
|
+
-o-appearance: none;
|
258
|
+
appearance: none;
|
259
|
+
-webkit-transition: -webkit-transform .2s;
|
260
|
+
-moz-transition: -moz-transform .2s;
|
261
|
+
-o-transition: -o-transform .2s;
|
262
|
+
transition: transform .2s;
|
263
|
+
}
|
264
|
+
|
265
|
+
.expand-subnav:hover,
|
266
|
+
.expand-subnav:focus {
|
267
|
+
background-color: #0072ce;
|
268
|
+
color: #fff;
|
269
|
+
outline: none;
|
270
|
+
}
|
271
|
+
|
272
|
+
.expand-subnav[aria-expanded=true] {
|
273
|
+
-webkit-transform: rotate(45deg);
|
274
|
+
-moz-transform: rotate(45deg);
|
275
|
+
-o-transform: rotate(45deg);
|
276
|
+
transform: rotate(45deg);
|
277
|
+
}
|
278
|
+
|
279
|
+
|
280
|
+
.nav-children[aria-hidden=true] {
|
281
|
+
max-height: 0;
|
282
|
+
}
|
283
|
+
|
284
|
+
.nav-children {
|
285
|
+
display: block;
|
286
|
+
max-height: 400px;
|
287
|
+
opacity: 1;
|
288
|
+
-webkit-transition: max-height .2s, opacity .2s;
|
289
|
+
-moz-transition: max-height .2s, opacity .2s;
|
290
|
+
-o-transition: max-height .2s, opacity .2s;
|
291
|
+
transition: max-height .2s, opacity .2s;
|
292
|
+
}
|
293
|
+
|
294
|
+
/*
|
295
|
+
Layout
|
296
|
+
==================================
|
297
|
+
*/
|
298
|
+
|
299
|
+
.logo {
|
300
|
+
display: block;
|
301
|
+
}
|
302
|
+
|
303
|
+
.content {
|
304
|
+
padding-top: 2em;
|
305
|
+
padding-bottom: 2em;
|
306
|
+
}
|
307
|
+
|
308
|
+
/* offset the fixed position header for jump links */
|
309
|
+
section:before {
|
310
|
+
display: block;
|
311
|
+
content: "";
|
312
|
+
height: 60px;
|
313
|
+
margin: -60px 0 0;
|
314
|
+
}
|
315
|
+
|
316
|
+
.wrap {
|
317
|
+
max-width: 1200px;
|
318
|
+
margin: 0 auto;
|
319
|
+
padding-left: 20px;
|
320
|
+
padding-right: 20px;
|
321
|
+
}
|
322
|
+
|
323
|
+
header {
|
324
|
+
width: 100%;
|
325
|
+
border-bottom: 4px solid #1188ff;
|
326
|
+
background-color: #fff;
|
327
|
+
padding: 2em 0;
|
328
|
+
}
|
329
|
+
|
330
|
+
|
331
|
+
/*
|
332
|
+
Footer
|
333
|
+
==================================
|
334
|
+
*/
|
335
|
+
|
336
|
+
/* for sticky footer */
|
337
|
+
.container {
|
338
|
+
display: table;
|
339
|
+
height: 100%;
|
340
|
+
width: 100%;
|
341
|
+
}
|
342
|
+
|
343
|
+
footer {
|
344
|
+
display: table-row; /* for sticky footer */
|
345
|
+
height: 1px; /* for sticky footer */
|
346
|
+
border-top: 2px solid #babbbd;
|
347
|
+
background: #f1f2f2;
|
348
|
+
width: 100%;
|
349
|
+
font-size: 0.875em;
|
350
|
+
}
|
351
|
+
|
352
|
+
footer .wrap {
|
353
|
+
padding-top: 2em;
|
354
|
+
padding-bottom: 2em;
|
355
|
+
}
|
356
|
+
|
357
|
+
|
358
|
+
/*
|
359
|
+
Helpers
|
360
|
+
==================================
|
361
|
+
*/
|
362
|
+
|
363
|
+
/* Hide from both screenreaders and browsers: h5bp.com/u */
|
364
|
+
.hidden {
|
365
|
+
display: none !important;
|
366
|
+
visibility: hidden;
|
367
|
+
}
|
368
|
+
|
369
|
+
/* Hide only visually, but have it available for screenreaders: h5bp.com/v */
|
370
|
+
.visuallyhidden {
|
371
|
+
border: 0;
|
372
|
+
clip: rect(0 0 0 0);
|
373
|
+
height: 1px;
|
374
|
+
margin: -1px;
|
375
|
+
overflow: hidden;
|
376
|
+
padding: 0;
|
377
|
+
position: absolute;
|
378
|
+
width: 1px;
|
379
|
+
}
|
380
|
+
|
381
|
+
/* Extends the .visuallyhidden class to allow the element to be focusable
|
382
|
+
* when navigated to via the keyboard: h5bp.com/p */
|
383
|
+
.visuallyhidden.focusable:active,
|
384
|
+
.visuallyhidden.focusable:focus {
|
385
|
+
clip: auto;
|
386
|
+
height: auto;
|
387
|
+
margin: 0;
|
388
|
+
overflow: visible;
|
389
|
+
position: static;
|
390
|
+
width: auto;
|
391
|
+
}
|
392
|
+
|
393
|
+
/* Hide visually and from screenreaders, but maintain layout */
|
394
|
+
.invisible {
|
395
|
+
visibility: hidden;
|
396
|
+
}
|
397
|
+
|
398
|
+
|
399
|
+
/*
|
400
|
+
Style
|
401
|
+
==================================
|
402
|
+
*/
|
403
|
+
|
404
|
+
.intro {
|
405
|
+
color: #75787B;
|
406
|
+
}
|
407
|
+
|
408
|
+
li h4 {
|
409
|
+
margin: 0;
|
410
|
+
}
|
411
|
+
|
412
|
+
.license {
|
413
|
+
font-family: "Avenir Next Demi", Arial, sans-serif;
|
414
|
+
font-weight: normal;
|
415
|
+
font-style: normal;
|
416
|
+
}
|
417
|
+
|
418
|
+
pre {
|
419
|
+
max-width: 100%;
|
420
|
+
font-size: 0.875em;
|
421
|
+
overflow-y: scroll;
|
422
|
+
background-color: #f1f2f2;
|
423
|
+
padding: 10px;
|
424
|
+
}
|
425
|
+
|
426
|
+
/*
|
427
|
+
Post list
|
428
|
+
----------------------------------
|
429
|
+
*/
|
430
|
+
|
431
|
+
ul.posts {
|
432
|
+
padding: 0;
|
433
|
+
}
|
434
|
+
|
435
|
+
.posts li {
|
436
|
+
list-style: none;
|
437
|
+
}
|
438
|
+
|
439
|
+
.post-date {
|
440
|
+
color: #75787B;
|
441
|
+
}
|
442
|
+
|
443
|
+
/*
|
444
|
+
Repo list
|
445
|
+
----------------------------------
|
446
|
+
*/
|
447
|
+
|
448
|
+
ul.repo-list {
|
449
|
+
margin: .5em 0 1em 0;
|
450
|
+
padding: 0;
|
451
|
+
}
|
452
|
+
|
453
|
+
.repo-list li {
|
454
|
+
list-style: none;
|
455
|
+
}
|
456
|
+
|
457
|
+
.repo-list p {
|
458
|
+
margin: 0;
|
459
|
+
font-size: 0.875em;
|
460
|
+
}
|
461
|
+
|
462
|
+
.repo-list h4 {
|
463
|
+
text-transform: none;
|
464
|
+
}
|
465
|
+
|
466
|
+
/*
|
467
|
+
Helper Classes
|
468
|
+
==================================
|
469
|
+
*/
|
470
|
+
|
471
|
+
/*
|
472
|
+
Clearfix list
|
473
|
+
----------------------------------
|
474
|
+
*/
|
475
|
+
|
476
|
+
.group:before,
|
477
|
+
.group:after {
|
478
|
+
content: " ";
|
479
|
+
display: table;
|
480
|
+
}
|
481
|
+
|
482
|
+
.group:after {
|
483
|
+
clear: both;
|
484
|
+
}
|
485
|
+
|
486
|
+
.group {
|
487
|
+
*zoom: 1;
|
488
|
+
}
|
489
|
+
|
490
|
+
/*
|
491
|
+
Desktop Styles
|
492
|
+
==================================
|
493
|
+
*/
|
494
|
+
|
495
|
+
@media screen and (min-width: 45em) and (min-height: 32.5em) {
|
496
|
+
|
497
|
+
/*
|
498
|
+
Typography
|
499
|
+
==============================
|
500
|
+
*/
|
501
|
+
|
502
|
+
/*
|
503
|
+
Layout
|
504
|
+
==============================
|
505
|
+
*/
|
506
|
+
|
507
|
+
.logo {
|
508
|
+
max-width: 30%;
|
509
|
+
padding-right: 20px;
|
510
|
+
margin-top: -12px;
|
511
|
+
float: right;
|
512
|
+
}
|
513
|
+
|
514
|
+
aside {
|
515
|
+
width: 30%;
|
516
|
+
float: left;
|
517
|
+
}
|
518
|
+
|
519
|
+
.main-content {
|
520
|
+
width: 67%;
|
521
|
+
float: right;
|
522
|
+
margin-bottom: 120px;
|
523
|
+
}
|
524
|
+
|
525
|
+
.main-content img {
|
526
|
+
max-width: 100%;
|
527
|
+
}
|
528
|
+
|
529
|
+
/*
|
530
|
+
Navigation
|
531
|
+
==============================
|
532
|
+
*/
|
533
|
+
|
534
|
+
|
535
|
+
/*
|
536
|
+
Style
|
537
|
+
==============================
|
538
|
+
*/
|
539
|
+
|
540
|
+
/*
|
541
|
+
Repo list
|
542
|
+
------------------------------
|
543
|
+
*/
|
544
|
+
|
545
|
+
.repo-list li {
|
546
|
+
list-style: none;
|
547
|
+
display: block;
|
548
|
+
float: left;
|
549
|
+
height: 4.0625em;
|
550
|
+
max-height: 4.0625em;
|
551
|
+
background-color: #E7E7E6;
|
552
|
+
border-left: 1px solid #BABBBD;
|
553
|
+
width: 30%;
|
554
|
+
}
|
555
|
+
|
556
|
+
.repo-list a:link,
|
557
|
+
.repo-list a:visited {
|
558
|
+
display: block;
|
559
|
+
max-height: 4.0625em;
|
560
|
+
background-color: #E7E7E6;
|
561
|
+
border-bottom: none;
|
562
|
+
padding: .625em 1em 1em 1em;
|
563
|
+
}
|
564
|
+
|
565
|
+
.repo-list a:hover {
|
566
|
+
color: #4D5F87;
|
567
|
+
background-color: #CDE3F1;
|
568
|
+
}
|
569
|
+
|
570
|
+
.repo-list li:first-child {
|
571
|
+
text-align: center;
|
572
|
+
border-left: none;
|
573
|
+
line-height: 60px;
|
574
|
+
padding: .625em 1em;
|
575
|
+
width: 10%;
|
576
|
+
}
|
577
|
+
|
578
|
+
}
|
579
|
+
|
580
|
+
@media screen and (max-width: 54.375em) and (min-height: 32.5em) {
|
581
|
+
|
582
|
+
/* keep the repo list containers the same height, but account for the need for more height */
|
583
|
+
|
584
|
+
.repo-list li {
|
585
|
+
height: 6em;
|
586
|
+
max-height: 6em;
|
587
|
+
}
|
588
|
+
|
589
|
+
.repo-list a:link,
|
590
|
+
.repo-list a:visited {
|
591
|
+
max-height: 6em;
|
592
|
+
}
|
593
|
+
}
|
594
|
+
|
595
|
+
/*
|
596
|
+
Mobile Styles
|
597
|
+
==================================
|
598
|
+
*/
|
599
|
+
|
600
|
+
@media screen and (max-width: 40.5em) {
|
601
|
+
|
602
|
+
.main-content {
|
603
|
+
margin-top: 1.5em;
|
604
|
+
}
|
605
|
+
|
606
|
+
}
|