govuk-jekyll-theme 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (201) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +21 -0
  3. data/README.md +62 -0
  4. data/_includes/footer.html +19 -0
  5. data/_includes/header.html +23 -0
  6. data/_layouts/default.html +35 -0
  7. data/_layouts/page.html +7 -0
  8. data/_sass/_image_url.scss +6 -0
  9. data/_sass/govuk-jekyll.scss +44 -0
  10. data/_sass/govuk_elements/_elements.scss +31 -0
  11. data/_sass/govuk_elements/_frontend-toolkit.scss +23 -0
  12. data/_sass/govuk_elements/_govuk-elements.scss +5 -0
  13. data/_sass/govuk_elements/elements/_breadcrumbs.scss +6 -0
  14. data/_sass/govuk_elements/elements/_buttons.scss +51 -0
  15. data/_sass/govuk_elements/elements/_components.scss +9 -0
  16. data/_sass/govuk_elements/elements/_details.scss +35 -0
  17. data/_sass/govuk_elements/elements/_elements-typography.scss +315 -0
  18. data/_sass/govuk_elements/elements/_forms.scss +239 -0
  19. data/_sass/govuk_elements/elements/_govuk-template-base.scss +143 -0
  20. data/_sass/govuk_elements/elements/_helpers.scss +25 -0
  21. data/_sass/govuk_elements/elements/_icons.scss +102 -0
  22. data/_sass/govuk_elements/elements/_layout.scss +68 -0
  23. data/_sass/govuk_elements/elements/_lists.scss +33 -0
  24. data/_sass/govuk_elements/elements/_panels.scss +62 -0
  25. data/_sass/govuk_elements/elements/_phase-banner.scss +17 -0
  26. data/_sass/govuk_elements/elements/_reset.scss +136 -0
  27. data/_sass/govuk_elements/elements/_shame.scss +16 -0
  28. data/_sass/govuk_elements/elements/_tables.scss +57 -0
  29. data/_sass/govuk_elements/elements/forms/_form-date.scss +38 -0
  30. data/_sass/govuk_elements/elements/forms/_form-multiple-choice.scss +143 -0
  31. data/_sass/govuk_elements/elements/forms/_form-validation.scss +94 -0
  32. data/_sass/govuk_frontend_toolkit/_colours.scss +2 -0
  33. data/_sass/govuk_frontend_toolkit/_conditionals.scss +81 -0
  34. data/_sass/govuk_frontend_toolkit/_css3.scss +90 -0
  35. data/_sass/govuk_frontend_toolkit/_device-pixels.scss +10 -0
  36. data/_sass/govuk_frontend_toolkit/_font_stack.scss +25 -0
  37. data/_sass/govuk_frontend_toolkit/_grid_layout.scss +136 -0
  38. data/_sass/govuk_frontend_toolkit/_helpers.scss +16 -0
  39. data/_sass/govuk_frontend_toolkit/_measurements.scss +14 -0
  40. data/_sass/govuk_frontend_toolkit/_shims.scss +55 -0
  41. data/_sass/govuk_frontend_toolkit/_typography.scss +249 -0
  42. data/_sass/govuk_frontend_toolkit/_url-helpers.scss +16 -0
  43. data/_sass/govuk_frontend_toolkit/colours/_organisation.scss +104 -0
  44. data/_sass/govuk_frontend_toolkit/colours/_palette.scss +77 -0
  45. data/_sass/govuk_frontend_toolkit/design-patterns/_alpha-beta.scss +67 -0
  46. data/_sass/govuk_frontend_toolkit/design-patterns/_breadcrumbs.scss +53 -0
  47. data/_sass/govuk_frontend_toolkit/design-patterns/_buttons.scss +145 -0
  48. data/_sass/govuk_frontend_toolkit/design-patterns/_media-player.scss +264 -0
  49. data/_sass/govuk_template/fonts-ie8.css +30 -0
  50. data/_sass/govuk_template/fonts.scss +28 -0
  51. data/_sass/govuk_template/govuk-template-ie6.css +588 -0
  52. data/_sass/govuk_template/govuk-template-ie7.css +586 -0
  53. data/_sass/govuk_template/govuk-template-ie8.css +564 -0
  54. data/_sass/govuk_template/govuk-template-print.css +75 -0
  55. data/_sass/govuk_template/govuk-template.scss +622 -0
  56. data/assets/accordion-arrow-2x.png +0 -0
  57. data/assets/accordion-arrow.png +0 -0
  58. data/assets/arrow-sprite.png +0 -0
  59. data/assets/crests/bis_crest_13px.png +0 -0
  60. data/assets/crests/bis_crest_13px_x2.png +0 -0
  61. data/assets/crests/bis_crest_18px.png +0 -0
  62. data/assets/crests/bis_crest_18px_x2.png +0 -0
  63. data/assets/crests/bis_crest_27px.png +0 -0
  64. data/assets/crests/bis_crest_27px_x2.png +0 -0
  65. data/assets/crests/coastguard_13px.png +0 -0
  66. data/assets/crests/coastguard_13px_x2.png +0 -0
  67. data/assets/crests/coastguard_18px.png +0 -0
  68. data/assets/crests/coastguard_18px_x2.png +0 -0
  69. data/assets/crests/coastguard_27px.png +0 -0
  70. data/assets/crests/coastguard_27px_x2.png +0 -0
  71. data/assets/crests/dit_crest_13px.png +0 -0
  72. data/assets/crests/dit_crest_13px_x2.png +0 -0
  73. data/assets/crests/dit_crest_18px.png +0 -0
  74. data/assets/crests/dit_crest_18px_x2.png +0 -0
  75. data/assets/crests/dit_crest_27px.png +0 -0
  76. data/assets/crests/dit_crest_27px_x2.png +0 -0
  77. data/assets/crests/hmrc_crest_13px.png +0 -0
  78. data/assets/crests/hmrc_crest_13px_x2.png +0 -0
  79. data/assets/crests/hmrc_crest_18px.png +0 -0
  80. data/assets/crests/hmrc_crest_18px_x2.png +0 -0
  81. data/assets/crests/hmrc_crest_27px.png +0 -0
  82. data/assets/crests/hmrc_crest_27px_x2.png +0 -0
  83. data/assets/crests/ho_crest_13px.png +0 -0
  84. data/assets/crests/ho_crest_13px_x2.png +0 -0
  85. data/assets/crests/ho_crest_18px.png +0 -0
  86. data/assets/crests/ho_crest_18px_x2.png +0 -0
  87. data/assets/crests/ho_crest_27px.png +0 -0
  88. data/assets/crests/ho_crest_27px_x2.png +0 -0
  89. data/assets/crests/mod_crest_13px.png +0 -0
  90. data/assets/crests/mod_crest_13px_x2.png +0 -0
  91. data/assets/crests/mod_crest_18px.png +0 -0
  92. data/assets/crests/mod_crest_18px_x2.png +0 -0
  93. data/assets/crests/mod_crest_27px.png +0 -0
  94. data/assets/crests/mod_crest_27px_x2.png +0 -0
  95. data/assets/crests/org_crest_13px.png +0 -0
  96. data/assets/crests/org_crest_13px_x2.png +0 -0
  97. data/assets/crests/org_crest_18px.png +0 -0
  98. data/assets/crests/org_crest_18px_x2.png +0 -0
  99. data/assets/crests/org_crest_27px.png +0 -0
  100. data/assets/crests/org_crest_27px_x2.png +0 -0
  101. data/assets/crests/portcullis_13px.png +0 -0
  102. data/assets/crests/portcullis_13px_x2.png +0 -0
  103. data/assets/crests/portcullis_18px.png +0 -0
  104. data/assets/crests/portcullis_18px_x2.png +0 -0
  105. data/assets/crests/portcullis_27px.png +0 -0
  106. data/assets/crests/portcullis_27px_x2.png +0 -0
  107. data/assets/crests/so_crest_13px.png +0 -0
  108. data/assets/crests/so_crest_13px_x2.png +0 -0
  109. data/assets/crests/so_crest_18px.png +0 -0
  110. data/assets/crests/so_crest_18px_x2.png +0 -0
  111. data/assets/crests/so_crest_27px.png +0 -0
  112. data/assets/crests/so_crest_27px_x2.png +0 -0
  113. data/assets/crests/ukaea_crest_13px.png +0 -0
  114. data/assets/crests/ukaea_crest_13px_x2.png +0 -0
  115. data/assets/crests/ukaea_crest_18px.png +0 -0
  116. data/assets/crests/ukaea_crest_18px_x2.png +0 -0
  117. data/assets/crests/ukaea_crest_27px.png +0 -0
  118. data/assets/crests/ukaea_crest_27px_x2.png +0 -0
  119. data/assets/crests/ukho_13px.png +0 -0
  120. data/assets/crests/ukho_13px_x2.png +0 -0
  121. data/assets/crests/ukho_18px.png +0 -0
  122. data/assets/crests/ukho_18px_x2.png +0 -0
  123. data/assets/crests/ukho_27px.png +0 -0
  124. data/assets/crests/ukho_27px_x2.png +0 -0
  125. data/assets/crests/wales_crest_13px.png +0 -0
  126. data/assets/crests/wales_crest_13px_x2.png +0 -0
  127. data/assets/crests/wales_crest_18px.png +0 -0
  128. data/assets/crests/wales_crest_18px_x2.png +0 -0
  129. data/assets/crests/wales_crest_27px.png +0 -0
  130. data/assets/crests/wales_crest_27px_x2.png +0 -0
  131. data/assets/icon-arrow-left.png +0 -0
  132. data/assets/icon-calendar-2x.png +0 -0
  133. data/assets/icon-calendar.png +0 -0
  134. data/assets/icon-file-download-2x.png +0 -0
  135. data/assets/icon-file-download.png +0 -0
  136. data/assets/icon-important-2x.png +0 -0
  137. data/assets/icon-important.png +0 -0
  138. data/assets/icon-information-2x.png +0 -0
  139. data/assets/icon-information.png +0 -0
  140. data/assets/icon-locator-2x.png +0 -0
  141. data/assets/icon-locator.png +0 -0
  142. data/assets/icon-pointer-2x.png +0 -0
  143. data/assets/icon-pointer-black-2x.png +0 -0
  144. data/assets/icon-pointer-black.png +0 -0
  145. data/assets/icon-pointer-indexed.png +0 -0
  146. data/assets/icon-pointer.png +0 -0
  147. data/assets/icon-search-2x.png +0 -0
  148. data/assets/icon-search.png +0 -0
  149. data/assets/icon-steps/icon-step-1-2x.png +0 -0
  150. data/assets/icon-steps/icon-step-1.png +0 -0
  151. data/assets/icon-steps/icon-step-10-2x.png +0 -0
  152. data/assets/icon-steps/icon-step-10.png +0 -0
  153. data/assets/icon-steps/icon-step-11-2x.png +0 -0
  154. data/assets/icon-steps/icon-step-11.png +0 -0
  155. data/assets/icon-steps/icon-step-12-2x.png +0 -0
  156. data/assets/icon-steps/icon-step-12.png +0 -0
  157. data/assets/icon-steps/icon-step-13-2x.png +0 -0
  158. data/assets/icon-steps/icon-step-13.png +0 -0
  159. data/assets/icon-steps/icon-step-14-2x.png +0 -0
  160. data/assets/icon-steps/icon-step-14.png +0 -0
  161. data/assets/icon-steps/icon-step-2-2x.png +0 -0
  162. data/assets/icon-steps/icon-step-2.png +0 -0
  163. data/assets/icon-steps/icon-step-3-2x.png +0 -0
  164. data/assets/icon-steps/icon-step-3.png +0 -0
  165. data/assets/icon-steps/icon-step-4-2x.png +0 -0
  166. data/assets/icon-steps/icon-step-4.png +0 -0
  167. data/assets/icon-steps/icon-step-5-2x.png +0 -0
  168. data/assets/icon-steps/icon-step-5.png +0 -0
  169. data/assets/icon-steps/icon-step-6-2x.png +0 -0
  170. data/assets/icon-steps/icon-step-6.png +0 -0
  171. data/assets/icon-steps/icon-step-7-2x.png +0 -0
  172. data/assets/icon-steps/icon-step-7.png +0 -0
  173. data/assets/icon-steps/icon-step-8-2x.png +0 -0
  174. data/assets/icon-steps/icon-step-8.png +0 -0
  175. data/assets/icon-steps/icon-step-9-2x.png +0 -0
  176. data/assets/icon-steps/icon-step-9.png +0 -0
  177. data/assets/images/apple-touch-icon-152x152.png +0 -0
  178. data/assets/images/apple-touch-icon-167x167.png +0 -0
  179. data/assets/images/apple-touch-icon-180x180.png +0 -0
  180. data/assets/images/apple-touch-icon.png +0 -0
  181. data/assets/images/close.png +0 -0
  182. data/assets/images/favicon.ico +0 -0
  183. data/assets/images/gov.uk_logotype_crown-1x.png +0 -0
  184. data/assets/images/gov.uk_logotype_crown.png +0 -0
  185. data/assets/images/gov.uk_logotype_crown.svg +7 -0
  186. data/assets/images/gov.uk_logotype_crown_invert.png +0 -0
  187. data/assets/images/gov.uk_logotype_crown_invert_trans.png +0 -0
  188. data/assets/images/govuk-crest-2x.png +0 -0
  189. data/assets/images/govuk-crest-ie.png +0 -0
  190. data/assets/images/govuk-crest.png +0 -0
  191. data/assets/images/open-government-licence.png +0 -0
  192. data/assets/images/open-government-licence_2x.png +0 -0
  193. data/assets/images/opengraph-image.png +0 -0
  194. data/assets/player-icon-forward.png +0 -0
  195. data/assets/player-icon-pause.png +0 -0
  196. data/assets/player-icon-play.png +0 -0
  197. data/assets/player-icon-rewind.png +0 -0
  198. data/assets/player-icon-volume.png +0 -0
  199. data/assets/separator-2x.png +0 -0
  200. data/assets/separator.png +0 -0
  201. metadata +271 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 8ac97111bdfc9dcdfbc9073914e1413d84f894b1
4
+ data.tar.gz: 150f289e69f459583e754ca6a4ee755a3cbb2540
5
+ SHA512:
6
+ metadata.gz: e14d650a11fa418a7c3d2fea8f47595f345feb212e760b03f5aa105e8edc33d6f327d6f6c3979554fb89f8fd6e653a26afa2b1be494a54e1848540d30123a3ff
7
+ data.tar.gz: b04e9b79ef6c065e6f4d21f71d2ca94ba7aebf81cd0d001a71f93b3b6433d5b425312af086951bc2de89616c72f8f4874edf4f298c9dc6c1f6b29654b6c5aa0e
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (C) 2018 Crown Copyright (Gabinet Office + Government Digital Service)
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
6
+ this software and associated documentation files (the "Software"), to deal in
7
+ the Software without restriction, including without limitation the rights to
8
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
9
+ of the Software, and to permit persons to whom the Software is furnished to do
10
+ so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,62 @@
1
+ # govuk-jekyll
2
+
3
+ This is an experimental [theme](https://jekyllrb.com/docs/themes/) for the [Jekyll](https://jekyllrb.com) static publishing framework.
4
+
5
+ It may be suitable for prototyping, or for publishing simple static content such as documentation or style guides.
6
+
7
+ ## Installation
8
+
9
+ Add this line to your Jekyll site's `Gemfile`:
10
+
11
+ ```ruby
12
+ gem "govuk-jekyll-theme"
13
+ ```
14
+
15
+ And add this line to your Jekyll site's `_config.yml`:
16
+
17
+ ```yaml
18
+ theme: govuk-jekyll-theme
19
+ ```
20
+
21
+ And then install the theme using:
22
+
23
+ $ bundle
24
+
25
+ ## Usage
26
+
27
+ The theme contains all of the CSS styles and assets from [GOV.UK Elements](https://govuk-elements.herokuapp.com) and from the [GOV.UK Frontend Toolkit](https://github.com/alphagov/govuk_frontend_toolkit).
28
+
29
+ This means that there’s a basic layout, including the GOV.UK global header and footer, as well as styles for typography, buttons, form elements and icons.
30
+
31
+ ## Contributing
32
+
33
+ If you’d like to propose a change to some of the underlying styles or assets, it’s best to do that 'upstream' on the original source. Confusingly, there are three separate Git repositories whose contents are combined to make this theme, so you’ll need to figure out which one contains the code you’d like to suggest a change for. These are:
34
+
35
+ * [govuk_elements](https://github.com/alphagov/govuk_elements)
36
+ * [govuk_template(https://github.com/alphagov/govuk_template)
37
+ * [govuk_frontend_toolkit](https://github.com/alphagov/govuk_frontend_toolkit)
38
+
39
+ If you have any suggestions about how the packaging-these-up-as-Jekyll-theme process could be improved, though, they would be very welcome. You can do that by adding an [issue](https://github.com/frankieroberto/govuk-jekyll-theme/issues) or submitting a [pull request](https://github.com/frankieroberto/govuk-jekyll-theme/pulls) to the GitHub repository for this theme.
40
+
41
+ ## Development
42
+
43
+ To set up your environment to develop this theme, you’ll need both [npm](https://www.npmjs.com) and [Bundler](http://bundler.io).
44
+
45
+ Then run `npm install` to install the source requirements for this theme specified in [package.json](package.json). After this the [package.sh](package.sh) script will be run to manually copy the relevant `.scss` files into the [`_sass`](_sass) folder, and the images into [`assets`](assets).
46
+
47
+ The theme can then be packaged up as a Rubygem locally by running:
48
+
49
+ ```bash
50
+ gem build govuk-jekyll.gemspec
51
+ ```
52
+
53
+ You can then install it locally by running:
54
+
55
+ ```bash
56
+ gem install govuk-jekyll-theme-*.gem
57
+ ```
58
+
59
+ ## License
60
+
61
+ The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
62
+
@@ -0,0 +1,19 @@
1
+ <footer class="group js-footer" id="footer" role="contentinfo">
2
+
3
+ <div class="footer-wrapper">
4
+
5
+ <div class="footer-meta">
6
+ <div class="footer-meta-inner">
7
+
8
+ <div class="open-government-licence">
9
+ <p class="logo"><a href="https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/" rel="license">Open Government Licence</a></p>
10
+ <p>All content is available under the <a href="https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/" rel="license">Open Government Licence v3.0</a>, except where otherwise stated</p>
11
+ </div>
12
+ </div>
13
+
14
+ <div class="copyright">
15
+ <a href="https://www.nationalarchives.gov.uk/information-management/re-using-public-sector-information/copyright-and-re-use/crown-copyright/">&copy; Crown copyright</a>
16
+ </div>
17
+ </div>
18
+ </div>
19
+ </footer>
@@ -0,0 +1,23 @@
1
+ <header role="banner" id="global-header" class="with-proposition">
2
+ <div class="header-wrapper">
3
+ <div class="header-global">
4
+ <div class="header-logo">
5
+ <a href="https://www.gov.uk" title="Go to the GOV.UK homepage" id="logo" class="content">
6
+ <img src="{{ "/assets/images/gov.uk_logotype_crown_invert_trans.png" | relative_url }}" width="36" height="32" alt=""> GOV.UK
7
+ </a>
8
+ </div>
9
+
10
+ </div>
11
+
12
+ <div class="header-proposition">
13
+ <div class="content">
14
+ <nav id="proposition-menu">
15
+ <a href="#" id="proposition-name">
16
+ {{ site.title }}
17
+ </a>
18
+ </nav>
19
+ </div>
20
+ </div>
21
+
22
+ </div>
23
+ </header>
@@ -0,0 +1,35 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8" />
5
+
6
+ {% if page.title and page.url != "/" %}
7
+ <title>{{ page.title }} - {{ site.title }}</title>
8
+ {% else %}
9
+ <title>{{ site.title | default: "GOV.UK" }}</title>
10
+ {% endif %}
11
+
12
+ <link rel="stylesheet" media="screen" href="{{ "/assets/main.css" | relative_url }}"/>
13
+
14
+ <meta name="viewport" content="width=device-width, initial-scale=1">
15
+
16
+ </head>
17
+
18
+ <body>
19
+
20
+ <div id="skiplink-container">
21
+ <div>
22
+ <a href="#content" class="skiplink">Skip to main content</a>
23
+ </div>
24
+ </div>
25
+
26
+ {% include header.html %}
27
+
28
+ <div id="global-header-bar"></div>
29
+
30
+ {{ content }}
31
+
32
+ {% include footer.html %}
33
+
34
+ </body>
35
+ </html>
@@ -0,0 +1,7 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ <main id="content" role="main">
6
+ {{ content }}
7
+ </main>
@@ -0,0 +1,6 @@
1
+ @function image-url($file) {
2
+ $url: '';
3
+ $path: '/';
4
+ $url: url($baseurl + $file);
5
+ @return $url;
6
+ }
@@ -0,0 +1,44 @@
1
+
2
+ @import "image_url";
3
+
4
+
5
+ /* GOV.UK Frontend Toolkit */
6
+ @import "govuk_frontend_toolkit/colours";
7
+ @import "govuk_frontend_toolkit/conditionals";
8
+ @import "govuk_frontend_toolkit/css3";
9
+ @import "govuk_frontend_toolkit/device-pixels";
10
+ @import "govuk_frontend_toolkit/font_stack";
11
+ @import "govuk_frontend_toolkit/grid_layout";
12
+ @import "govuk_frontend_toolkit/helpers";
13
+ @import "govuk_frontend_toolkit/measurements";
14
+ @import "govuk_frontend_toolkit/typography";
15
+ @import "govuk_frontend_toolkit/design-patterns/alpha-beta";
16
+ @import "govuk_frontend_toolkit/design-patterns/buttons";
17
+ @import "govuk_frontend_toolkit/design-patterns/breadcrumbs";
18
+
19
+
20
+ /* GOV.UK Template */
21
+ @import "govuk_template/govuk-template";
22
+ @import "govuk_template/fonts";
23
+
24
+ /* GOV.UK Elements */
25
+ @import "govuk_elements/elements/helpers";
26
+ @import "govuk_elements/elements/layout";
27
+ @import "govuk_elements/elements/reset";
28
+
29
+ /* Components (chunks of UI) */
30
+ @import "govuk_elements/elements/elements-typography";
31
+ @import "govuk_elements/elements/buttons";
32
+ @import "govuk_elements/elements/icons";
33
+ @import "govuk_elements/elements/lists";
34
+ @import "govuk_elements/elements/tables";
35
+ @import "govuk_elements/elements/details";
36
+ @import "govuk_elements/elements/panels";
37
+ @import "govuk_elements/elements/forms";
38
+ @import "govuk_elements/elements/forms/form-multiple-choice";
39
+ @import "govuk_elements/elements/forms/form-date";
40
+ @import "govuk_elements/elements/forms/form-validation";
41
+ @import "govuk_elements/elements/breadcrumbs";
42
+ @import "govuk_elements/elements/phase-banner";
43
+ @import "govuk_elements/elements/components";
44
+ @import "govuk_elements/elements/shame";
@@ -0,0 +1,31 @@
1
+ // GOV.UK elements
2
+
3
+ @import "elements/helpers"; // Helper functions and classes
4
+
5
+ // Generic (normalize/reset.css)
6
+ @import "elements/reset";
7
+
8
+ // Base (unclassed HTML elements)
9
+ // These are predefined by govuk_template
10
+ // If you're not using govuk_template, uncomment the line below.
11
+ // @import "elements/govuk-template-base"; // Base styles set by GOV.UK template
12
+
13
+ // Objects (unstyled design patterns)
14
+ @import "elements/layout"; // Main content container. Grid layout - rows and column widths
15
+
16
+ // Components (chunks of UI)
17
+ @import "elements/elements-typography"; // Typography
18
+ @import "elements/buttons"; // Buttons
19
+ @import "elements/icons"; // Icons - numbered steps, calendar, search
20
+ @import "elements/lists"; // Lists - numbered, bulleted
21
+ @import "elements/tables"; // Tables - regular, numeric
22
+ @import "elements/details"; // Details summary
23
+ @import "elements/panels"; // Panels with a left grey border
24
+ @import "elements/forms"; // Form - wrappers, inputs, labels
25
+ @import "elements/forms/form-multiple-choice"; // Custom radio buttons and checkboxes
26
+ @import "elements/forms/form-date"; // Date of birth pattern
27
+ @import "elements/forms/form-validation"; // Errors and validation
28
+ @import "elements/breadcrumbs"; // Breadcrumbs
29
+ @import "elements/phase-banner"; // Alpha and beta banners and tags
30
+ @import "elements/components"; // GOV.UK prefixed styles - blue highlighted box
31
+ @import "elements/shame"; // Hacks and workarounds that will go away eventually
@@ -0,0 +1,23 @@
1
+ // GOV.UK front end toolkit
2
+ // Sass variables, mixins and functions
3
+ // https://github.com/alphagov/govuk_frontend_toolkit/tree/master/stylesheets
4
+
5
+ // Settings (variables)
6
+ @import "colours"; // Colour variables
7
+ @import "font_stack"; // Font family variables
8
+ @import "measurements"; // Widths and gutter variables
9
+
10
+ // Mixins
11
+ @import "conditionals"; // Media query mixin
12
+ @import "device-pixels"; // Retina image mixin
13
+ @import "grid_layout"; // Basic grid layout mixin
14
+ @import "typography"; // Core bold and heading mixins, also external links
15
+ @import "shims"; // Inline block mixin, clearfix placeholder
16
+
17
+ // Mixins to generate components (chunks of UI)
18
+ @import "design-patterns/alpha-beta";
19
+ @import "design-patterns/buttons";
20
+ @import "design-patterns/breadcrumbs";
21
+
22
+ // Functions
23
+ @import "url-helpers"; // Function to output image-url, or prefixed path (Rails and Compass only)
@@ -0,0 +1,5 @@
1
+ // Import GOV.UK front end toolkit dependencies
2
+ @import "frontend-toolkit";
3
+
4
+ // Import GOV.UK elements
5
+ @import "elements";
@@ -0,0 +1,6 @@
1
+ // Breadcrumbs
2
+ // ==========================================================================
3
+
4
+ .breadcrumbs {
5
+ @include breadcrumbs;
6
+ }
@@ -0,0 +1,51 @@
1
+ // Buttons
2
+ // ==========================================================================
3
+
4
+ .button {
5
+ @include button ($button-colour);
6
+ @include box-sizing (border-box);
7
+ vertical-align: top;
8
+
9
+ @include media (mobile) {
10
+ width: 100%;
11
+ text-align: center;
12
+ }
13
+ }
14
+
15
+ // Fix unwanted button padding in Firefox
16
+ .button::-moz-focus-inner {
17
+ border: 0;
18
+ padding: 0;
19
+ }
20
+
21
+ .button:focus {
22
+ outline: 3px solid $focus-colour;
23
+ }
24
+
25
+ // Disabled buttons
26
+ .button[disabled="disabled"] {
27
+ background: $button-colour;
28
+ }
29
+
30
+ .button[disabled="disabled"]:focus {
31
+ outline: none;
32
+ }
33
+
34
+ // Start now buttons
35
+ .button-start,
36
+ .button-get-started {
37
+ @include bold-24;
38
+ background-image: file-url("icon-pointer.png");
39
+ background-repeat: no-repeat;
40
+ background-position: 100% 50%;
41
+ padding: em(7) em(41) em(4) em(16);
42
+
43
+ @include device-pixel-ratio {
44
+ background-image: file-url("icon-pointer-2x.png");
45
+ background-size: 30px 19px;
46
+ }
47
+
48
+ @include ie(6) {
49
+ background-image: file-url("icon-pointer-2x.png");
50
+ }
51
+ }
@@ -0,0 +1,9 @@
1
+ // Box with turquoise background and white text
2
+ // Used for transaction end pages, and Bank Holidays
3
+ .govuk-box-highlight {
4
+ margin: 1em 0;
5
+ padding: 2em 1em;
6
+ color: $white;
7
+ background: $turquoise;
8
+ text-align: center;
9
+ }
@@ -0,0 +1,35 @@
1
+ // Details
2
+ // ==========================================================================
3
+
4
+ details {
5
+ display: block;
6
+ clear: both;
7
+
8
+ summary {
9
+ display: inline-block;
10
+ color: $govuk-blue;
11
+ cursor: pointer;
12
+ position: relative;
13
+ margin-bottom: em(5);
14
+
15
+ &:hover {
16
+ color: $link-hover-colour;
17
+ }
18
+
19
+ &:focus {
20
+ outline: 3px solid $focus-colour;
21
+ }
22
+ }
23
+
24
+ // Underline only summary text (not the arrow)
25
+ .summary {
26
+ text-decoration: underline;
27
+ }
28
+
29
+ // Match fallback arrow spacing with -webkit default
30
+ .arrow {
31
+ margin-right: .35em;
32
+ font-style: normal;
33
+ }
34
+
35
+ }