bookends 0.6.0 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +3 -0
- data/README.md +28 -24
- data/Rakefile +7 -3
- data/bin/bookends +5 -0
- data/bookends.gemspec +5 -2
- data/fixtures/dummy-jekyll/README.md +64 -0
- data/fixtures/dummy-jekyll/_config.yml +8 -0
- data/fixtures/dummy-jekyll/_layouts/default.html +118 -0
- data/fixtures/dummy-jekyll/_layouts/post.html +14 -0
- data/fixtures/dummy-jekyll/_sass/_base.scss +478 -0
- data/fixtures/dummy-jekyll/_sass/_google-cse.scss +372 -0
- data/fixtures/dummy-jekyll/_sass/_header.scss +780 -0
- data/fixtures/dummy-jekyll/_sass/_legacy.scss +567 -0
- data/fixtures/dummy-jekyll/_sass/_menu-icon.scss +68 -0
- data/fixtures/dummy-jekyll/_sass/_mixins.scss +12 -0
- data/fixtures/dummy-jekyll/_sass/_search.scss +51 -0
- data/{lib/generators/bookends/install/templates/footer.scss → fixtures/dummy-jekyll/_sass/bookends/_footer.scss} +0 -0
- data/fixtures/dummy-jekyll/_sass/mixins/_background-image.scss +48 -0
- data/fixtures/dummy-jekyll/_sass/mixins/_border-radius.scss +22 -0
- data/fixtures/dummy-jekyll/_sass/mixins/_box-sizing.scss +4 -0
- data/fixtures/dummy-jekyll/_sass/mixins/_hide-text.scss +5 -0
- data/fixtures/dummy-jekyll/_sass/mixins/_hidpi.scss +10 -0
- data/fixtures/dummy-jekyll/_sass/mixins/_linear-gradient.scss +41 -0
- data/fixtures/dummy-jekyll/_sass/mixins/_prefixer.scss +49 -0
- data/fixtures/dummy-jekyll/_sass/mixins/_responsiveness.scss +129 -0
- data/fixtures/dummy-jekyll/_sass/mixins/_retina-image.scss +31 -0
- data/fixtures/dummy-jekyll/_sass/mixins/_size.scss +44 -0
- data/fixtures/dummy-jekyll/_sass/mixins/_transition.scss +34 -0
- data/fixtures/dummy-jekyll/_sass/mixins/_triangle.scss +45 -0
- data/fixtures/dummy-jekyll/app.json +15 -0
- data/fixtures/dummy-jekyll/bin/from-gdoc +3 -0
- data/fixtures/dummy-jekyll/bin/platform-setup +15 -0
- data/fixtures/dummy-jekyll/feed.xml +34 -0
- data/fixtures/dummy-jekyll/index.html +40 -0
- data/fixtures/dummy-jekyll/static.json +3 -0
- data/fixtures/dummy-rails/README.md +9 -0
- data/fixtures/dummy-rails/Rakefile +6 -0
- data/fixtures/dummy-rails/app/assets/fonts/bentonsans-book.eot +0 -0
- data/fixtures/dummy-rails/app/assets/fonts/bentonsans-book.svg +400 -0
- data/fixtures/dummy-rails/app/assets/fonts/bentonsans-book.ttf +0 -0
- data/fixtures/dummy-rails/app/assets/fonts/bentonsans-book.woff +0 -0
- data/fixtures/dummy-rails/app/assets/fonts/bentonsans-medium.eot +0 -0
- data/fixtures/dummy-rails/app/assets/fonts/bentonsans-medium.svg +416 -0
- data/fixtures/dummy-rails/app/assets/fonts/bentonsans-medium.ttf +0 -0
- data/fixtures/dummy-rails/app/assets/fonts/bentonsans-medium.woff +0 -0
- data/fixtures/dummy-rails/app/assets/fonts/bentonsans-regular.eot +0 -0
- data/fixtures/dummy-rails/app/assets/fonts/bentonsans-regular.svg +416 -0
- data/fixtures/dummy-rails/app/assets/fonts/bentonsans-regular.ttf +0 -0
- data/fixtures/dummy-rails/app/assets/fonts/bentonsans-regular.woff +0 -0
- data/fixtures/dummy-rails/app/assets/images/.keep +0 -0
- data/{lib/generators/bookends/install/templates/footer_images → fixtures/dummy-rails/app/assets/images/bookends/footer}/footer_sprite.png +0 -0
- data/{lib/generators/bookends/install/templates/footer_images → fixtures/dummy-rails/app/assets/images/bookends/footer}/footer_sprite@2x.png +0 -0
- data/{lib/generators/bookends/install/templates/footer_images → fixtures/dummy-rails/app/assets/images/bookends/footer}/salesforce_heroku_gray.png +0 -0
- data/fixtures/dummy-rails/app/assets/javascripts/application.js +15 -0
- data/fixtures/dummy-rails/app/assets/stylesheets/application.css.scss +11 -0
- data/fixtures/dummy-rails/app/controllers/application_controller.rb +5 -0
- data/fixtures/dummy-rails/app/controllers/concerns/.keep +0 -0
- data/fixtures/dummy-rails/app/controllers/pages_controller.rb +5 -0
- data/fixtures/dummy-rails/app/helpers/application_helper.rb +2 -0
- data/fixtures/dummy-rails/app/mailers/.keep +0 -0
- data/fixtures/dummy-rails/app/models/.keep +0 -0
- data/fixtures/dummy-rails/app/models/concerns/.keep +0 -0
- data/fixtures/dummy-rails/app/views/layouts/application.html.erb +16 -0
- data/fixtures/dummy-rails/app/views/pages/home.html.erb +1 -0
- data/fixtures/dummy-rails/bin/bundle +3 -0
- data/fixtures/dummy-rails/bin/rails +4 -0
- data/fixtures/dummy-rails/bin/rake +4 -0
- data/fixtures/dummy-rails/bin/setup +29 -0
- data/fixtures/dummy-rails/config/application.rb +34 -0
- data/fixtures/dummy-rails/config/boot.rb +5 -0
- data/fixtures/dummy-rails/config/database.yml +25 -0
- data/fixtures/dummy-rails/config/environment.rb +5 -0
- data/fixtures/dummy-rails/config/environments/development.rb +41 -0
- data/fixtures/dummy-rails/config/environments/production.rb +79 -0
- data/fixtures/dummy-rails/config/environments/test.rb +42 -0
- data/fixtures/dummy-rails/config/initializers/assets.rb +11 -0
- data/fixtures/dummy-rails/config/initializers/backtrace_silencers.rb +7 -0
- data/fixtures/dummy-rails/config/initializers/cookies_serializer.rb +3 -0
- data/fixtures/dummy-rails/config/initializers/filter_parameter_logging.rb +4 -0
- data/fixtures/dummy-rails/config/initializers/inflections.rb +16 -0
- data/fixtures/dummy-rails/config/initializers/mime_types.rb +4 -0
- data/fixtures/dummy-rails/config/initializers/session_store.rb +3 -0
- data/fixtures/dummy-rails/config/initializers/wrap_parameters.rb +14 -0
- data/fixtures/dummy-rails/config/locales/en.yml +23 -0
- data/fixtures/dummy-rails/config/routes.rb +6 -0
- data/fixtures/dummy-rails/config/secrets.yml +22 -0
- data/fixtures/dummy-rails/config.ru +4 -0
- data/fixtures/dummy-rails/db/development.sqlite3 +0 -0
- data/fixtures/dummy-rails/lib/assets/.keep +0 -0
- data/fixtures/dummy-rails/log/.keep +0 -0
- data/fixtures/dummy-rails/log/development.log +1893 -0
- data/fixtures/dummy-rails/public/404.html +67 -0
- data/fixtures/dummy-rails/public/422.html +67 -0
- data/fixtures/dummy-rails/public/500.html +66 -0
- data/fixtures/dummy-rails/public/favicon.ico +0 -0
- data/lib/bookends/cli.rb +88 -0
- data/lib/bookends/config/framework.rb +24 -0
- data/lib/bookends/config/turbolinks.rb +18 -0
- data/lib/bookends/file_actions.rb +13 -0
- data/lib/bookends/jekyll_handler.rb +21 -0
- data/lib/bookends/rails_handler.rb +30 -0
- data/lib/{generators/bookends/install/templates/footer.html.erb → bookends/templates/footer.html} +18 -18
- data/lib/bookends/templates/footer.scss +403 -0
- data/lib/bookends/templates/footer_images/footer_sprite.png +0 -0
- data/lib/bookends/templates/footer_images/footer_sprite@2x.png +0 -0
- data/lib/bookends/templates/footer_images/salesforce.png +0 -0
- data/lib/bookends/templates/newsletter-init-turbolinks.js +6 -0
- data/lib/bookends/templates/newsletter-init.js +6 -0
- data/lib/{generators/bookends/install → bookends}/templates/newsletter.js +0 -4
- data/lib/bookends/version.rb +1 -1
- data/lib/bookends.rb +1 -1
- metadata +138 -11
- data/lib/generators/bookends/install/install_generator.rb +0 -21
@@ -0,0 +1,372 @@
|
|
1
|
+
.gsc-control-searchbox-only,
|
2
|
+
.gsc-control-cse,
|
3
|
+
.gsc-completion-container {
|
4
|
+
table, th, td {
|
5
|
+
border: 0;
|
6
|
+
padding: 0;
|
7
|
+
}
|
8
|
+
}
|
9
|
+
|
10
|
+
form.gsc-search-box {
|
11
|
+
font-size: inherit !important;
|
12
|
+
margin: 0 !important;
|
13
|
+
}
|
14
|
+
|
15
|
+
table.gsc-search-box,
|
16
|
+
.gsc-input {
|
17
|
+
margin: 0 !important;
|
18
|
+
padding: 0 !important;
|
19
|
+
height: 100% !important;
|
20
|
+
td {
|
21
|
+
margin: 0 !important;
|
22
|
+
padding: 0 !important;
|
23
|
+
}
|
24
|
+
}
|
25
|
+
|
26
|
+
input.gsc-input,
|
27
|
+
.gsc-input-box,
|
28
|
+
.gsc-input-box-hover,
|
29
|
+
.gsc-input-box-focus {
|
30
|
+
border: 0 !important;
|
31
|
+
height: auto !important;
|
32
|
+
box-shadow: none !important;
|
33
|
+
}
|
34
|
+
|
35
|
+
.gsc-input-box {
|
36
|
+
background: none !important;
|
37
|
+
}
|
38
|
+
|
39
|
+
//Completion
|
40
|
+
|
41
|
+
.gsc-completion-container {
|
42
|
+
border: 0 !important;
|
43
|
+
font-family: "BentonSans", "Helvetica Neue", Helvetica, Arial, Geneva, sans-serif !important;
|
44
|
+
font-size: 13px !important;
|
45
|
+
margin-top: 5px !important;
|
46
|
+
box-shadow: 0 4px 6px 2px fade-out(black, .9) !important;
|
47
|
+
border-radius: 3px !important;
|
48
|
+
overflow: hidden !important;
|
49
|
+
z-index: 10;
|
50
|
+
|
51
|
+
tr, tr:nth-child(2n) {
|
52
|
+
background: inherit;
|
53
|
+
&.gsc-completion-selected {
|
54
|
+
background: fade-out($faded-purple, .8);
|
55
|
+
}
|
56
|
+
}
|
57
|
+
|
58
|
+
.search-page & {
|
59
|
+
border: 1px solid #ddd !important;
|
60
|
+
}
|
61
|
+
}
|
62
|
+
|
63
|
+
.gssb_a,
|
64
|
+
.gssb_a td {
|
65
|
+
line-height: normal !important;
|
66
|
+
padding: 2px 5px !important;
|
67
|
+
font-weight: bold;
|
68
|
+
|
69
|
+
b {
|
70
|
+
font-weight: 200;
|
71
|
+
color: fade-out(#222, .2);
|
72
|
+
}
|
73
|
+
|
74
|
+
}
|
75
|
+
|
76
|
+
.gssb_e {
|
77
|
+
box-shadow: none !important;
|
78
|
+
}
|
79
|
+
|
80
|
+
.gsib_b {
|
81
|
+
display: none !important;
|
82
|
+
}
|
83
|
+
|
84
|
+
//Search Page
|
85
|
+
.search-page,
|
86
|
+
.search-results {
|
87
|
+
|
88
|
+
.gcsc-branding {
|
89
|
+
display: none;
|
90
|
+
}
|
91
|
+
|
92
|
+
.page-content {
|
93
|
+
padding-top: 4em;
|
94
|
+
}
|
95
|
+
|
96
|
+
form.gsc-search-box {
|
97
|
+
position: relative !important;
|
98
|
+
max-width: 700px;
|
99
|
+
margin: 0 auto 2em !important;
|
100
|
+
padding: 5px;
|
101
|
+
}
|
102
|
+
|
103
|
+
input.gsc-input {
|
104
|
+
padding: 0 !important;
|
105
|
+
font-size: 22px !important;
|
106
|
+
}
|
107
|
+
|
108
|
+
.gsc-input-box {
|
109
|
+
padding: 12px 45px 12px 14px;
|
110
|
+
border: 1px solid #DDD !important;
|
111
|
+
border-radius: 4px !important;
|
112
|
+
box-shadow: none !important;
|
113
|
+
@include transition(all .15s linear);
|
114
|
+
box-shadow: 0 0 25px fade-out($primary-color, 1) !important;
|
115
|
+
input.gsc-input {
|
116
|
+
color: #777 !important;
|
117
|
+
}
|
118
|
+
&.gsc-input-box-focus {
|
119
|
+
border-color: fade-out($primary-color, .1) !important;
|
120
|
+
box-shadow: 0 0 25px fade-out($primary-color, .8) !important;
|
121
|
+
input.gsc-input {
|
122
|
+
color: #222 !important;
|
123
|
+
}
|
124
|
+
}
|
125
|
+
}
|
126
|
+
|
127
|
+
.gsc-search-button {
|
128
|
+
position: absolute;
|
129
|
+
right: 22px;
|
130
|
+
top: 21px;
|
131
|
+
width: 22px;
|
132
|
+
height: 21px;
|
133
|
+
opacity: .8;
|
134
|
+
@include retina-image(components/search-sprite-large, 42px 42px, $asset-pipeline: true);
|
135
|
+
&:hover {
|
136
|
+
opacity: 1;
|
137
|
+
}
|
138
|
+
input {
|
139
|
+
position: relative;
|
140
|
+
display: block;
|
141
|
+
background-color: transparent;
|
142
|
+
right: 0;
|
143
|
+
top: 0;
|
144
|
+
height: 100%;
|
145
|
+
width: 100%;
|
146
|
+
border: 0;
|
147
|
+
padding: 0;
|
148
|
+
margin: 0;
|
149
|
+
opacity: 0;
|
150
|
+
&:active,
|
151
|
+
&:focus {
|
152
|
+
outline: none;
|
153
|
+
}
|
154
|
+
&:hover {
|
155
|
+
opacity: 0;
|
156
|
+
}
|
157
|
+
}
|
158
|
+
}
|
159
|
+
|
160
|
+
.gsc-completion-container {
|
161
|
+
margin-left: -14px;
|
162
|
+
margin-top: 15px !important;
|
163
|
+
@include screen(min-width, 699px) {
|
164
|
+
width: 700px - 4px !important;
|
165
|
+
}
|
166
|
+
}
|
167
|
+
|
168
|
+
}
|
169
|
+
|
170
|
+
// Tabs
|
171
|
+
|
172
|
+
.gsc-control-cse {
|
173
|
+
font-family: inherit !important;
|
174
|
+
}
|
175
|
+
|
176
|
+
.gsc-tabsArea {
|
177
|
+
height: auto !important;
|
178
|
+
margin: 0 auto !important;
|
179
|
+
border-bottom: 1px solid #ddd !important;
|
180
|
+
text-align: center;
|
181
|
+
> div {
|
182
|
+
height: auto !important;
|
183
|
+
}
|
184
|
+
}
|
185
|
+
|
186
|
+
.gsc-tabHeader {
|
187
|
+
height: auto !important;
|
188
|
+
padding: 1em 1.5em !important;
|
189
|
+
line-height: normal !important;
|
190
|
+
border: 0 !important;
|
191
|
+
font-size: 13px;
|
192
|
+
color: #999 !important;
|
193
|
+
min-width: 75px !important;
|
194
|
+
border-radius: 0 !important;
|
195
|
+
font-weight: 300 !important;
|
196
|
+
@include box-sizing(border-box);
|
197
|
+
&:hover, &:focus {
|
198
|
+
background: transparent !important;
|
199
|
+
color: $primary-color !important;
|
200
|
+
}
|
201
|
+
&:active,
|
202
|
+
&:focus {
|
203
|
+
outline: none;
|
204
|
+
}
|
205
|
+
&.gsc-tabhActive {
|
206
|
+
color: $primary-color !important;
|
207
|
+
cursor: default;
|
208
|
+
font-weight: bold !important;
|
209
|
+
background: transparent !important;
|
210
|
+
border-bottom: 2px solid $primary-color !important;
|
211
|
+
}
|
212
|
+
}
|
213
|
+
|
214
|
+
.gsc-above-wrapper-area {
|
215
|
+
border: 0 !important;
|
216
|
+
}
|
217
|
+
|
218
|
+
|
219
|
+
// Results
|
220
|
+
.gs-webResult.gs-result a.gs-title:link,
|
221
|
+
.gs-webResult.gs-result a.gs-title:visited,
|
222
|
+
.gs-imageResult a.gs-title:link,
|
223
|
+
.gs-imageResult a.gs-title:visited,
|
224
|
+
.gs-promotion.gs-result a.gs-title:link,
|
225
|
+
.gs-promotion.gs-result a.gs-title:visited {
|
226
|
+
position: relative;
|
227
|
+
color: saturate($primary-color, 10%) !important;
|
228
|
+
font-size: 18px !important;
|
229
|
+
b {
|
230
|
+
color: saturate($primary-color, 10%) !important;
|
231
|
+
font-size: 18px !important;
|
232
|
+
}
|
233
|
+
&:before {
|
234
|
+
content: "";
|
235
|
+
display: none;
|
236
|
+
position: absolute;
|
237
|
+
left: -12px;
|
238
|
+
top: 5px;
|
239
|
+
@include triangle(12px, $primary-color, right);
|
240
|
+
}
|
241
|
+
&:hover {
|
242
|
+
text-decoration: none !important;
|
243
|
+
b {
|
244
|
+
text-decoration: none !important;
|
245
|
+
}
|
246
|
+
}
|
247
|
+
&:focus {
|
248
|
+
outline: none;
|
249
|
+
&:before {
|
250
|
+
display: block;
|
251
|
+
}
|
252
|
+
}
|
253
|
+
}
|
254
|
+
|
255
|
+
.gsc-result .gs-title {
|
256
|
+
height: auto !important;
|
257
|
+
}
|
258
|
+
|
259
|
+
.gs-webResult .gs-snippet, .gs-imageResult .gs-snippet, .gs-fileFormatType {
|
260
|
+
font-family: inherit !important;
|
261
|
+
}
|
262
|
+
|
263
|
+
.gsc-result .gs-title {
|
264
|
+
overflow: visible !important;
|
265
|
+
&:hover {
|
266
|
+
text-decoration: none !important;
|
267
|
+
}
|
268
|
+
}
|
269
|
+
|
270
|
+
.gsc-table-result,
|
271
|
+
.gsc-thumbnail-inside,
|
272
|
+
.gsc-url-top {
|
273
|
+
padding: 0 !important;
|
274
|
+
}
|
275
|
+
|
276
|
+
.gsc-results {
|
277
|
+
width: 100% !important;
|
278
|
+
}
|
279
|
+
|
280
|
+
.gsc-webResult .gsc-result {
|
281
|
+
padding: 18px 6px 20px !important;
|
282
|
+
}
|
283
|
+
|
284
|
+
.gs-webResult div.gs-visibleUrl,
|
285
|
+
.gs-imageResult div.gs-visibleUrl {
|
286
|
+
color: #aaa !important;
|
287
|
+
padding-top: 2px !important;
|
288
|
+
padding-bottom: 0 !important;
|
289
|
+
|
290
|
+
}
|
291
|
+
|
292
|
+
.gs-webResult .gs-snippet,
|
293
|
+
.gs-imageResult .gs-snippet,
|
294
|
+
.gs-fileFormatType,
|
295
|
+
.gs-promotion .gs-snippet {
|
296
|
+
font-size: 14px !important;
|
297
|
+
}
|
298
|
+
|
299
|
+
.gs-per-result-labels {
|
300
|
+
margin-top: 5px !important;
|
301
|
+
> span {
|
302
|
+
display: none !important;
|
303
|
+
}
|
304
|
+
a.gs-label {
|
305
|
+
text-decoration: none !important;
|
306
|
+
color: #666 !important;
|
307
|
+
background-color: #fff !important;
|
308
|
+
border: 1px solid #ddd !important;
|
309
|
+
font-size: .8em !important;
|
310
|
+
padding: 4px !important;
|
311
|
+
border-radius: 3px !important;
|
312
|
+
margin-right: 3px !important;
|
313
|
+
&:hover,
|
314
|
+
&:focus {
|
315
|
+
background: $primary-color !important;
|
316
|
+
border-color: $primary-color !important;
|
317
|
+
color: white !important;
|
318
|
+
outline: none !important;
|
319
|
+
}
|
320
|
+
}
|
321
|
+
}
|
322
|
+
|
323
|
+
//Promo
|
324
|
+
|
325
|
+
.gs-promotion.gs-result {
|
326
|
+
padding-left: 1em;
|
327
|
+
padding-right: 1em;
|
328
|
+
}
|
329
|
+
|
330
|
+
.gsc-webResult.gsc-result.gsc-promotion {
|
331
|
+
border-radius: 6px;
|
332
|
+
position: relative;
|
333
|
+
width: 101%;
|
334
|
+
left: -.75em;
|
335
|
+
}
|
336
|
+
|
337
|
+
.gs-promotion-image-cell {
|
338
|
+
width: 68px;
|
339
|
+
}
|
340
|
+
|
341
|
+
.gs-promotion-image-box img.gs-promotion-image {
|
342
|
+
border: 0 !important;
|
343
|
+
}
|
344
|
+
|
345
|
+
.gs-promotion-table-snippet-with-image {
|
346
|
+
margin-top: 5px;
|
347
|
+
}
|
348
|
+
|
349
|
+
.gs-promotion.gs-result a.gs-title:link,
|
350
|
+
.gs-promotion.gs-result a.gs-title:visited {
|
351
|
+
font-weight: bold;
|
352
|
+
}
|
353
|
+
|
354
|
+
//Pagination
|
355
|
+
|
356
|
+
.gsc-results .gsc-cursor-box {
|
357
|
+
text-align: center;
|
358
|
+
border-top: 1px solid #ddd;
|
359
|
+
padding-top: 2em;
|
360
|
+
margin-top: 2em !important;
|
361
|
+
font-size: 1.2em !important;
|
362
|
+
.gsc-cursor-page {
|
363
|
+
color: #aaa !important;
|
364
|
+
&:hover {
|
365
|
+
text-decoration: none !important;
|
366
|
+
color: $primary-color !important;
|
367
|
+
}
|
368
|
+
&.gsc-cursor-current-page {
|
369
|
+
color: $primary-color !important;
|
370
|
+
}
|
371
|
+
}
|
372
|
+
}
|