guides_style_18f 0.2.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5b85d8131f106fc7c161f6d5e9354d69bc2e5cc8
4
- data.tar.gz: 06c614fef2e0d343afce101a407ba876bde45f1d
3
+ metadata.gz: b6425173ee18142282aaba8e6b3793be82673cc7
4
+ data.tar.gz: 5d279c26bb50028d66123be800494747c84ebabc
5
5
  SHA512:
6
- metadata.gz: fa28d5a78c402c15a380bbce0c3db74865e3eea2106079977c795ea5084604afcfe020427bf72fa57b7b6374dc11f6a643d30f7fa553d4a983a5eaaa8e3df94f
7
- data.tar.gz: c38bea6599fa7ef16e15c6f7b8da5b3f81b9cb2e7c0985c5700bb9f3d5460719e826e1bd318a92517faabff3e05b9367ed490b742b352285c258927560ff94e4
6
+ metadata.gz: 24c45ba00326245afb55fb835220cae61b8a24d6772f1cc97896831a42324b7160c24cb350aa0ea88f1b25286497e9446169970327356dc5f5bf02213fae4e6d
7
+ data.tar.gz: 6dcfea31eeb9326ad81008502205f828488c43fee20e6c8bb3016e14b6e46091dfa56d7f1b63edbaa1bb96451c4e62965f4301cc9f7896617fce03489d002dcf
Binary file
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!-- Generated by IcoMoon.io -->
3
+ <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
4
+ <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="26" height="28" viewBox="0 0 26 28">
5
+ <path fill="#444" d="M18 13q0-2.891-2.055-4.945t-4.945-2.055-4.945 2.055-2.055 4.945 2.055 4.945 4.945 2.055 4.945-2.055 2.055-4.945zM26 26q0 0.812-0.594 1.406t-1.406 0.594q-0.844 0-1.406-0.594l-5.359-5.344q-2.797 1.937-6.234 1.937-2.234 0-4.273-0.867t-3.516-2.344-2.344-3.516-0.867-4.273 0.867-4.273 2.344-3.516 3.516-2.344 4.273-0.867 4.273 0.867 3.516 2.344 2.344 3.516 0.867 4.273q0 3.437-1.937 6.234l5.359 5.359q0.578 0.578 0.578 1.406z"></path>
6
+ </svg>
@@ -5,3 +5,4 @@
5
5
  <script src="{% guides_style_18f_asset_root %}/assets/js/18f-guide.js"></script>{% for script in site.scripts %}
6
6
  <script src="{{ site.baseurl }}/{{ script }}"></script>{% endfor %}{% for script in page.scripts %}
7
7
  <script src="{{ site.baseurl }}/{{ script }}"></script>{% endfor %}
8
+ {% jekyll_pages_api_search_load %}
@@ -11,13 +11,17 @@
11
11
  <header role="banner">
12
12
 
13
13
  <div class="wrap">
14
- {% if site.logourl != null %}
15
- <a href="{{ site.author.url }}"><img class="logo" src="{{ site.baseurl }}{{ site.logourl }}" alt="{{ site.logoalt }}" width="75px"></a>
16
- {% endif %}
14
+
15
+
17
16
  <h1 class="site-title"><a class="title-link" href="{{ site.baseurl }}/">{{ site.name }}</a></h1>{% if site.back_link %}
17
+
18
+ {% jekyll_pages_api_search_interface %}
19
+
18
20
  <div class="back-link"><a href="{{ site.back_link.url }}">&laquo; {{ site.back_link.text }}</a></div>{% endif %}
21
+
22
+
19
23
  </div>
20
-
24
+
21
25
  </header>
22
26
 
23
27
  <div class="wrap content">
@@ -1,3 +1,5 @@
1
+ @import "jekyll_pages_api_search";
2
+
1
3
  /*
2
4
  Main.css
3
5
  ==================================
@@ -321,12 +323,82 @@ section:before {
321
323
  }
322
324
 
323
325
  header {
324
- width: 100%;
325
326
  border-bottom: 4px solid #1188ff;
326
327
  background-color: #fff;
327
328
  padding: 2em 0;
328
329
  }
329
330
 
331
+ header div.wrap{
332
+ position: relative;
333
+ padding-top: 2.4em;
334
+ }
335
+
336
+ header div.wrap::after{
337
+ content: "";
338
+ display: table;
339
+ clear: both;
340
+ }
341
+
342
+ header h1.site-title{
343
+ margin-bottom: 0.4em;
344
+ }
345
+
346
+ header div.wrap div.back-link{
347
+ position: absolute;
348
+ left: 20px;
349
+ top: -1em;
350
+ font-size: 14px;
351
+ color: #555;
352
+ }
353
+
354
+ header div.wrap div.back-link a{
355
+ color: inherit;
356
+ text-decoration: underline;
357
+ }
358
+
359
+ header div.wrap div.back-link a:hover{ text-decoration: none; }
360
+
361
+ @media screen and (min-width: 45em){
362
+ header h1.site-title{
363
+ float: left;
364
+ width: 67%;
365
+ text-overflow: ellipsis;
366
+ overflow: hidden;
367
+ white-space: nowrap;
368
+ }
369
+ header div.search-interface{
370
+ width: 30%;
371
+ float: right;
372
+ }
373
+ }
374
+
375
+
376
+ header div.search-interface input{
377
+ display: block;
378
+ -webkit-box-sizing: border-box;
379
+ width: 100%;
380
+ padding: 6px 4px;
381
+ padding-left: 2em;
382
+ font: inherit;
383
+ border-radius: 3px;
384
+ border: 1px solid #ccc;
385
+ background: url(../svg/search.svg) 6px 45% no-repeat;
386
+ background-size: 16px;
387
+ }
388
+
389
+ ul.searchresultspopup{ border-radius: 3px; }
390
+ ul.searchresultspopup li{ padding: 0; }
391
+ ul.searchresultspopup li a{
392
+ padding: 4px;
393
+ display: block;
394
+ color: inherit;
395
+ }
396
+ ul.searchresultspopup li.ng-scope.selected a{
397
+ background: #333;
398
+ color: white;
399
+ }
400
+
401
+
330
402
  .main-content img {
331
403
  max-width: 100%;
332
404
  }
@@ -1,5 +1,5 @@
1
1
  # @author Mike Bland (michael.bland@gsa.gov)
2
2
 
3
3
  module GuidesStyle18F
4
- VERSION = '0.2.0'
4
+ VERSION = '0.3.0'
5
5
  end
@@ -10,3 +10,6 @@ require 'guides_style_18f/sass'
10
10
  require 'guides_style_18f/tags'
11
11
  require 'guides_style_18f/update'
12
12
  require 'guides_style_18f/version'
13
+
14
+ require 'jekyll_pages_api'
15
+ require 'jekyll_pages_api_search'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: guides_style_18f
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Bland
@@ -24,6 +24,34 @@ dependencies:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: jekyll_pages_api
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
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: jekyll_pages_api_search
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'
27
55
  - !ruby/object:Gem::Dependency
28
56
  name: sass
29
57
  requirement: !ruby/object:Gem::Requirement
@@ -166,6 +194,8 @@ files:
166
194
  - assets/js/vendor/anchor.min.js
167
195
  - assets/js/vendor/jquery-1.11.2.min.js
168
196
  - assets/js/vendor/private-eye-1.0.0.js
197
+ - assets/png/search.png
198
+ - assets/svg/search.svg
169
199
  - lib/guides_style_18f.rb
170
200
  - lib/guides_style_18f/assets.rb
171
201
  - lib/guides_style_18f/generator.rb