bookends 2.3.7 → 2.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +18 -0
- data/lib/bookends/cli.rb +1 -5
- data/lib/bookends/file_actions.rb +1 -1
- data/lib/bookends/jekyll_handler.rb +4 -4
- data/lib/bookends/rails_handler.rb +16 -7
- data/lib/bookends/templates/bookends_helper.rb +63 -0
- data/lib/bookends/templates/bookends_helper_spec.rb +57 -0
- data/lib/bookends/templates/glostick_icons/dashboard.svg +19 -0
- data/lib/bookends/templates/glostick_icons/databases.svg +28 -0
- data/lib/bookends/templates/glostick_icons/dataclips.svg +11 -0
- data/lib/bookends/templates/glostick_icons/docs.svg +16 -0
- data/lib/bookends/templates/glostick_icons/elements.svg +39 -0
- data/lib/bookends/templates/glostick_icons/heroku-logo.svg +23 -0
- data/lib/bookends/templates/glostick_icons/navigator-purple.svg +21 -0
- data/lib/bookends/templates/glostick_icons/navigator.svg +21 -0
- data/lib/bookends/templates/glostick_icons/settings.svg +22 -0
- data/lib/bookends/templates/glostick_icons/signout.svg +15 -0
- data/lib/bookends/templates/glostick_icons/support.svg +27 -0
- data/lib/bookends/templates/icons/addons.svg +39 -0
- data/lib/bookends/templates/icons/buildpacks.svg +33 -0
- data/lib/bookends/templates/icons/buttons.svg +24 -0
- data/lib/bookends/templates/icons/connect.svg +23 -0
- data/lib/bookends/templates/icons/enterprise.svg +37 -0
- data/lib/bookends/templates/icons/platform.svg +21 -0
- data/lib/bookends/templates/icons/postgres.svg +28 -0
- data/lib/bookends/templates/icons/redis.svg +23 -0
- data/lib/bookends/templates/js/header-turbolinks.js +18 -0
- data/lib/bookends/templates/js/header.js +17 -0
- data/lib/bookends/templates/js/md5.js +194 -0
- data/lib/bookends/templates/{newsletter-init-turbolinks.js → js/newsletter-init-turbolinks.js} +0 -0
- data/lib/bookends/templates/{newsletter-init.js → js/newsletter-init.js} +0 -0
- data/lib/bookends/templates/{newsletter.js → js/newsletter.js} +0 -0
- data/lib/bookends/templates/rails_header.html.erb +43 -12
- data/lib/bookends/templates/scss/bookends.scss +2 -0
- data/lib/bookends/templates/{footer.scss → scss/footer.scss} +0 -0
- data/lib/bookends/templates/scss/glostick.scss +220 -0
- data/lib/bookends/version.rb +1 -1
- metadata +32 -6
@@ -0,0 +1,220 @@
|
|
1
|
+
$gs-asset-path: 'bookends/glostick';
|
2
|
+
|
3
|
+
.glostick {
|
4
|
+
box-sizing: border-box;
|
5
|
+
background: linear-gradient(to right, #79589f, #5a5d9f);
|
6
|
+
font-family: sans-serif;
|
7
|
+
display: flex;
|
8
|
+
padding: 0 20px;
|
9
|
+
height: 26px;
|
10
|
+
-webkit-user-select: none;
|
11
|
+
font-family: benton-sans, 'Helvetica Neue', sans-serif;
|
12
|
+
}
|
13
|
+
|
14
|
+
.glostick__user .icon-navigator-toggle {
|
15
|
+
background: url("#{$gs-asset-path}/navigator.svg");
|
16
|
+
background-size: 19px 16px;
|
17
|
+
background-repeat: no-repeat;
|
18
|
+
background-position: center center;
|
19
|
+
width: 32px;
|
20
|
+
height: 26px;
|
21
|
+
display: inline-block;
|
22
|
+
margin-right: 10px;
|
23
|
+
cursor: pointer;
|
24
|
+
|
25
|
+
.home-page & {
|
26
|
+
background: url("#{$gs-asset-path}/navigator-purple.svg");
|
27
|
+
background-size: 19px 16px;
|
28
|
+
background-repeat: no-repeat;
|
29
|
+
background-position: center center;
|
30
|
+
}
|
31
|
+
}
|
32
|
+
|
33
|
+
.glostick__user {
|
34
|
+
display: flex;
|
35
|
+
}
|
36
|
+
|
37
|
+
.glostick__user__avatar {
|
38
|
+
width: 30px;
|
39
|
+
height: 30px;
|
40
|
+
margin-top: -2px;
|
41
|
+
border-radius: 50%;
|
42
|
+
overflow: hidden;
|
43
|
+
}
|
44
|
+
|
45
|
+
.glostick__menu {
|
46
|
+
width: 240px;
|
47
|
+
box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
|
48
|
+
position: absolute;
|
49
|
+
background-color: #fff;
|
50
|
+
opacity: 0;
|
51
|
+
pointer-events: none;
|
52
|
+
padding: 0;
|
53
|
+
border-radius: 3px;
|
54
|
+
transition: .4s cubic-bezier(.3, 0, 0, 1.3);
|
55
|
+
background-clip: content-box;
|
56
|
+
z-index: 9991;
|
57
|
+
font-weight: normal;
|
58
|
+
z-index: 2;
|
59
|
+
|
60
|
+
@media (min-width: 1024px) {
|
61
|
+
border: 1px solid #ddd;
|
62
|
+
}
|
63
|
+
|
64
|
+
// Hit area
|
65
|
+
&:after {
|
66
|
+
content: "";
|
67
|
+
position: absolute;
|
68
|
+
top: -3px;
|
69
|
+
left: 0;
|
70
|
+
background: transparent;
|
71
|
+
height: 3px;
|
72
|
+
width: 100%;
|
73
|
+
}
|
74
|
+
|
75
|
+
&:hover {
|
76
|
+
visibility: visible;
|
77
|
+
opacity: 1;
|
78
|
+
margin-top: 3px;
|
79
|
+
@include transition-delay(0s);
|
80
|
+
}
|
81
|
+
}
|
82
|
+
|
83
|
+
.glostick__menu-icon {
|
84
|
+
display: inline-block;
|
85
|
+
|
86
|
+
&:hover {
|
87
|
+
|
88
|
+
+ .glostick__menu {
|
89
|
+
visibility: visible;
|
90
|
+
opacity: 1;
|
91
|
+
margin-top: 3px;
|
92
|
+
@include transition-delay(0s);
|
93
|
+
}
|
94
|
+
}
|
95
|
+
|
96
|
+
}
|
97
|
+
|
98
|
+
.glostick__menu-icon--account {
|
99
|
+
display: inline-block;
|
100
|
+
width: 32px;
|
101
|
+
height: 26px;
|
102
|
+
|
103
|
+
> img {
|
104
|
+
@include tablet-landscape() {
|
105
|
+
display: none;
|
106
|
+
}
|
107
|
+
}
|
108
|
+
}
|
109
|
+
|
110
|
+
.mobile-dashboard-link {
|
111
|
+
display: none;
|
112
|
+
|
113
|
+
@include tablet-landscape() {
|
114
|
+
display: block;
|
115
|
+
}
|
116
|
+
}
|
117
|
+
|
118
|
+
.glostick__menu--navigator {
|
119
|
+
position:absolute;
|
120
|
+
right: 36px;
|
121
|
+
top: 30px;
|
122
|
+
}
|
123
|
+
|
124
|
+
.glostick__menu--account {
|
125
|
+
position:absolute;
|
126
|
+
right: 0;
|
127
|
+
top: 30px;
|
128
|
+
width: 240px;
|
129
|
+
cursor: default;
|
130
|
+
}
|
131
|
+
|
132
|
+
.glostick__menu__item {
|
133
|
+
display: block;
|
134
|
+
height: 42px;
|
135
|
+
border-bottom: 1px solid #E5E5E5;
|
136
|
+
text-decoration: none;
|
137
|
+
line-height: 41px;
|
138
|
+
color: #444;
|
139
|
+
padding: 0 50px;
|
140
|
+
background-size: 23px 23px;
|
141
|
+
background-repeat: no-repeat;
|
142
|
+
background-position: 15px 48%;
|
143
|
+
|
144
|
+
&:link, &:visited {
|
145
|
+
color: #876CA8;
|
146
|
+
|
147
|
+
&:hover {
|
148
|
+
text-decoration: none;
|
149
|
+
color: #876CA8;
|
150
|
+
}
|
151
|
+
|
152
|
+
}
|
153
|
+
|
154
|
+
&:last-child {
|
155
|
+
border-bottom: 0;
|
156
|
+
}
|
157
|
+
|
158
|
+
}
|
159
|
+
|
160
|
+
.glostick__menu__item--account-details {
|
161
|
+
height: auto;
|
162
|
+
line-height: normal;
|
163
|
+
padding-left: 0;
|
164
|
+
text-align: center;
|
165
|
+
width: 100%;
|
166
|
+
color: #4C4C5A;
|
167
|
+
padding-right: 0;
|
168
|
+
padding-bottom: 20px;
|
169
|
+
}
|
170
|
+
|
171
|
+
.glostick__account-details__avatar {
|
172
|
+
border-radius: 50%;
|
173
|
+
margin-top: 20px;
|
174
|
+
margin-bottom: 10px;
|
175
|
+
width: 48px;
|
176
|
+
height: 48px;
|
177
|
+
}
|
178
|
+
|
179
|
+
.glostick__account-details__name {
|
180
|
+
display: block;
|
181
|
+
margin-bottom: 5px;
|
182
|
+
}
|
183
|
+
|
184
|
+
.glostick__account-details__email {
|
185
|
+
font-size: 13px;
|
186
|
+
display: block;
|
187
|
+
color: #9493AD;
|
188
|
+
}
|
189
|
+
|
190
|
+
.glostick__menu__item--dashboard {
|
191
|
+
background-image: url("#{$gs-asset-path}/dashboard.svg");
|
192
|
+
}
|
193
|
+
|
194
|
+
.glostick__menu__item--databases {
|
195
|
+
background-image: url("#{$gs-asset-path}/databases.svg");
|
196
|
+
}
|
197
|
+
|
198
|
+
.glostick__menu__item--dataclips {
|
199
|
+
background-image: url("#{$gs-asset-path}/dataclips.svg");
|
200
|
+
}
|
201
|
+
|
202
|
+
.glostick__menu__item--elements {
|
203
|
+
background-image: url("#{$gs-asset-path}/elements.svg");
|
204
|
+
}
|
205
|
+
|
206
|
+
.glostick__menu__item--support {
|
207
|
+
background-image: url("#{$gs-asset-path}/support.svg");
|
208
|
+
}
|
209
|
+
|
210
|
+
.glostick__menu__item--docs {
|
211
|
+
background-image: url("#{$gs-asset-path}/docs.svg");
|
212
|
+
}
|
213
|
+
|
214
|
+
.glostick__menu__item--settings {
|
215
|
+
background-image: url("#{$gs-asset-path}/settings.svg");
|
216
|
+
}
|
217
|
+
|
218
|
+
.glostick__menu__item--signout {
|
219
|
+
background-image: url("#{$gs-asset-path}/signout.svg");
|
220
|
+
}
|
data/lib/bookends/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bookends
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Marketing Web Ops at heroku
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-03-
|
11
|
+
date: 2016-03-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -225,16 +225,42 @@ files:
|
|
225
225
|
- lib/bookends/flag_handler.rb
|
226
226
|
- lib/bookends/jekyll_handler.rb
|
227
227
|
- lib/bookends/rails_handler.rb
|
228
|
+
- lib/bookends/templates/bookends_helper.rb
|
229
|
+
- lib/bookends/templates/bookends_helper_spec.rb
|
228
230
|
- lib/bookends/templates/footer.html
|
229
|
-
- lib/bookends/templates/footer.scss
|
230
231
|
- lib/bookends/templates/footer_images/footer_sprite.png
|
231
232
|
- lib/bookends/templates/footer_images/footer_sprite@2x.png
|
232
233
|
- lib/bookends/templates/footer_images/salesforce.png
|
234
|
+
- lib/bookends/templates/glostick_icons/dashboard.svg
|
235
|
+
- lib/bookends/templates/glostick_icons/databases.svg
|
236
|
+
- lib/bookends/templates/glostick_icons/dataclips.svg
|
237
|
+
- lib/bookends/templates/glostick_icons/docs.svg
|
238
|
+
- lib/bookends/templates/glostick_icons/elements.svg
|
239
|
+
- lib/bookends/templates/glostick_icons/heroku-logo.svg
|
240
|
+
- lib/bookends/templates/glostick_icons/navigator-purple.svg
|
241
|
+
- lib/bookends/templates/glostick_icons/navigator.svg
|
242
|
+
- lib/bookends/templates/glostick_icons/settings.svg
|
243
|
+
- lib/bookends/templates/glostick_icons/signout.svg
|
244
|
+
- lib/bookends/templates/glostick_icons/support.svg
|
245
|
+
- lib/bookends/templates/icons/addons.svg
|
246
|
+
- lib/bookends/templates/icons/buildpacks.svg
|
247
|
+
- lib/bookends/templates/icons/buttons.svg
|
248
|
+
- lib/bookends/templates/icons/connect.svg
|
249
|
+
- lib/bookends/templates/icons/enterprise.svg
|
250
|
+
- lib/bookends/templates/icons/platform.svg
|
251
|
+
- lib/bookends/templates/icons/postgres.svg
|
252
|
+
- lib/bookends/templates/icons/redis.svg
|
233
253
|
- lib/bookends/templates/jekyll_header.html
|
234
|
-
- lib/bookends/templates/
|
235
|
-
- lib/bookends/templates/
|
236
|
-
- lib/bookends/templates/
|
254
|
+
- lib/bookends/templates/js/header-turbolinks.js
|
255
|
+
- lib/bookends/templates/js/header.js
|
256
|
+
- lib/bookends/templates/js/md5.js
|
257
|
+
- lib/bookends/templates/js/newsletter-init-turbolinks.js
|
258
|
+
- lib/bookends/templates/js/newsletter-init.js
|
259
|
+
- lib/bookends/templates/js/newsletter.js
|
237
260
|
- lib/bookends/templates/rails_header.html.erb
|
261
|
+
- lib/bookends/templates/scss/bookends.scss
|
262
|
+
- lib/bookends/templates/scss/footer.scss
|
263
|
+
- lib/bookends/templates/scss/glostick.scss
|
238
264
|
- lib/bookends/version.rb
|
239
265
|
homepage: https://www.heroku.com
|
240
266
|
licenses: []
|