jekyll-theme-bas-style-kit 0.2.3 → 0.3.0.pre.rc1

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.
Files changed (61) hide show
  1. checksums.yaml +5 -5
  2. data/CHANGELOG.md +41 -0
  3. data/LICENSE.md +4 -3
  4. data/README.md +170 -615
  5. data/_config.yml +61 -20
  6. data/_data/bas-style-kit/bsk-css.yml +5 -0
  7. data/_data/bas-style-kit/bsk-js.yml +13 -0
  8. data/_data/bas-style-kit/bsk-vars.yml +3 -0
  9. data/_data/menus.yml +19 -0
  10. data/_includes/bas-style-kit/body.html +3 -0
  11. data/_includes/bas-style-kit/bsk-body--analytics-script.html +9 -0
  12. data/_includes/bas-style-kit/bsk-body--back-to-top.html +2 -0
  13. data/_includes/bas-style-kit/bsk-body--core-scripts.html +8 -0
  14. data/_includes/bas-style-kit/bsk-body--standard-footer.html +16 -0
  15. data/_includes/bas-style-kit/bsk-body--standard-header.html +17 -0
  16. data/_includes/bas-style-kit/bsk-body--standard.html +15 -0
  17. data/_includes/bas-style-kit/bsk-body.html +9 -0
  18. data/_includes/bas-style-kit/bsk-footer--contents.html +0 -0
  19. data/_includes/bas-style-kit/bsk-footer--legal-policies.html +8 -0
  20. data/_includes/bas-style-kit/bsk-footer--ogl.html +9 -0
  21. data/_includes/bas-style-kit/bsk-head--core-meta.html +4 -0
  22. data/_includes/bas-style-kit/bsk-head--core-styles.html +6 -0
  23. data/_includes/bas-style-kit/bsk-head--favicon.html +2 -0
  24. data/_includes/bas-style-kit/bsk-head--seo-meta.html +4 -0
  25. data/_includes/bas-style-kit/bsk-head.html +6 -0
  26. data/_includes/bas-style-kit/bsk-header--cookie-notice.html +11 -0
  27. data/_includes/bas-style-kit/bsk-header--development-phase.html +12 -0
  28. data/_includes/bas-style-kit/bsk-header--site-navigation.html +6 -0
  29. data/_includes/bas-style-kit/bsk-nav--collapse.html +4 -0
  30. data/_includes/bas-style-kit/bsk-nav--header.html +4 -0
  31. data/_includes/bas-style-kit/bsk-nav-collapse--primary-navigation.html +32 -0
  32. data/_includes/bas-style-kit/bsk-nav-collapse--secondary-navigation.html +20 -0
  33. data/_includes/bas-style-kit/bsk-nav-header--brand.html +8 -0
  34. data/_includes/bas-style-kit/bsk-nav-header--collapse-trigger.html +6 -0
  35. data/_includes/bas-style-kit/head.html +1 -0
  36. data/_layouts/bas-style-kit/blank.html +4 -0
  37. data/_layouts/bas-style-kit/bsk--base.html +8 -0
  38. data/_layouts/bas-style-kit/bsk--standard.html +8 -0
  39. data/_layouts/bas-style-kit/html.html +8 -0
  40. data/screenshot.png +0 -0
  41. metadata +101 -34
  42. data/LICENSE-MIT.md +0 -21
  43. data/_data/bsk_jekyll_js.json +0 -22
  44. data/_data/bsk_jekyll_vars.json +0 -4
  45. data/_includes/layout/cookie-banner.html +0 -7
  46. data/_includes/layout/phase-banner.html +0 -15
  47. data/_includes/layout/site-footer.html +0 -26
  48. data/_includes/layout/site-navigation.html +0 -77
  49. data/_includes/snippets/back-to-top.html +0 -1
  50. data/_includes/snippets/body-js.html +0 -12
  51. data/_includes/snippets/google-analytics.html +0 -12
  52. data/_includes/snippets/head.html +0 -29
  53. data/_includes/snippets/is-something-wrong.html +0 -1
  54. data/_layouts/blank.html +0 -1
  55. data/_layouts/default.html +0 -20
  56. data/_layouts/html.html +0 -12
  57. data/assets/bsk-jekyll/css/jekyll-theme-bas-style-kit.scss +0 -75
  58. data/assets/bsk-jekyll/img/apple-touch-icon.png +0 -0
  59. data/assets/bsk-jekyll/js/cookie-banner.js +0 -32
  60. data/assets/css/main.scss +0 -7
  61. data/assets/js/page-js-test.js +0 -1
@@ -1 +0,0 @@
1
- <a href="{{ site.feedback_href | prepend: site.baseurl }}">Is something wrong with this page?</a>
data/_layouts/blank.html DELETED
@@ -1 +0,0 @@
1
- {{ content }}
@@ -1,20 +0,0 @@
1
- ---
2
- layout: html
3
- ---
4
-
5
- <div id="site-top"></div>
6
- <a href="#site-content" class="sr-only sr-only-focusable">Skip to main content</a>
7
- {% include layout/cookie-banner.html %}
8
- {% include layout/site-navigation.html %}
9
- {% include layout/phase-banner.html %}
10
-
11
- <main class="container site-main">
12
- {{ content }}
13
- </main>
14
-
15
- {% include layout/site-footer.html %}
16
-
17
- {% include snippets/body-js.html %}
18
- {% if ga_property %}
19
- {% include snippets/google-analytics.html %}
20
- {% endif %}
data/_layouts/html.html DELETED
@@ -1,12 +0,0 @@
1
- ---
2
- layout: blank
3
- ---
4
-
5
- <!DOCTYPE html>
6
- <html lang="en-GB">
7
- {% include snippets/head.html %}
8
-
9
- <body>
10
- {{ content }}
11
- </body>
12
- </html>
@@ -1,75 +0,0 @@
1
- ---
2
- ---
3
- @charset "utf-8";
4
-
5
- //
6
- // Additioanl styles specific to Jekyll websites using the BAS Style Kit
7
- //
8
-
9
- // Styles for extending the colour of the footer to fill pages where there isn't enough content to fill the viewport
10
- // These will be merged into a future version of the BAS Style Kit
11
-
12
- html {
13
- background-color: #333;
14
- }
15
- .site-main {
16
- min-height: 300px;
17
- }
18
-
19
- // Styles for Cookie banner
20
- // These will be merged into a future version of the BAS Style Kit
21
- //
22
-
23
- .bsk-jekyll-alert-top-pin {
24
- margin-bottom: 0;
25
-
26
- border: none;
27
- border-radius: 0;
28
- }
29
-
30
- .bsk-jekyll-alert-cookie-banner {
31
- background-color: #006AAA;
32
- color: white;
33
-
34
- .alert-link {
35
- color: white;
36
- }
37
-
38
- .close {
39
- filter: alpha(opacity=70);
40
- opacity: .7;
41
- color: #E7EBF1;
42
-
43
- &:focus, &:hover {
44
- filter: alpha(opacity=100);
45
- opacity: 1;
46
- }
47
- }
48
- }
49
-
50
- // Sryles for development phase banner
51
- // These will be merged into a future version of the BAS Style :-webkit-any()
52
- //
53
-
54
- .bsk-jekyll-label-phase-alpha,
55
- .bsk-jekyll-label-phase-beta,
56
- .bsk-jekyll-label-phase-live,
57
- .bsk-jekyll-label-phase-retired {
58
- border-radius: 0;
59
- font-weight: normal;
60
- }
61
-
62
- .bsk-jekyll-label-phase-alpha {
63
- background-color: #D53880;
64
- color: #333;
65
- }
66
- .bsk-jekyll-label-phase-beta {
67
- background-color: #F47738;
68
- color: #333;
69
- }
70
- .bsk-jekyll-label-phase-live {
71
- background-color: #85994B;
72
- }
73
- .bsk-jekyll-label-phase-retired {
74
- background-color: #6F777B;
75
- }
@@ -1,32 +0,0 @@
1
- jQuery(function($){
2
-
3
- // Look for cookie to hide cookie banner
4
-
5
- var cookieBannerValue = Cookies.get('seen_cookie_message');
6
-
7
- if (typeof cookieBannerValue !== 'undefined') {
8
- if (cookieBannerValue == 'yes') {
9
-
10
- // Supress cookie message
11
- // Since we already have jQuery available we may as well use its convenience methods
12
- jQuery('#site-cookie-banner').remove();
13
- }
14
- }
15
-
16
- // React to closing the cookie banner
17
-
18
- jQuery('#site-cookie-banner').on('close.bs.alert', function () {
19
-
20
- // Set a cookie to persist hiding the cookie banner for the next 30 days
21
- var cookie_name = '';
22
- var cookie_value = 'yes'
23
-
24
- Cookies.set(
25
- 'seen_cookie_message', // cookie name
26
- 'yes', // cookie value
27
- {
28
- expires: 30 // in days
29
- }
30
- );
31
- })
32
- });
data/assets/css/main.scss DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- ---
3
- @charset "utf-8";
4
-
5
- //
6
- // Additioanl styles specific to this website
7
- //
@@ -1 +0,0 @@
1
- console.log('Hello');