govuk_tech_docs 2.0.10 → 2.0.11

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of govuk_tech_docs might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a5cb57539ae552c6d1e24f8975a0f86171c2f88b0ec8584fa409067b8dadfe46
4
- data.tar.gz: ded8edc17245592306e4d9330c0feb974daa471d873d773e9f19f2b1c07b6bf3
3
+ metadata.gz: '085237b7227769188a60eeaf92b6dc4b8c46a2bb0c94f50daff3da0725dbe162'
4
+ data.tar.gz: 7bdf01e0d6901791ca227d26a98ef1845afb713040aba2ff463c0bb1b509bddb
5
5
  SHA512:
6
- metadata.gz: b9250bfe4da754f495df7f2b4f3c1c2066f85db1e9a8d15cb7b9c646a031fce10541fe43ef68964f09d03c0a636fd79c4024224bc109d083fc2bec894ee1ab62
7
- data.tar.gz: 01ccc6902089cc61a1cc8a820e2ac22b526a96011a2f0c77d6b8a381d4af44019741da0c9e014715c2637a0fee1d2d39ebf32fdbddc1e37ab39af7d537029b60
6
+ metadata.gz: 5a072be727fceaaab66ff8f78c70ab0a8901caf284a112761750c1d2668195d0d83c616b4bc75ecb89d600a37ec3c35309d255c3bd31b5641825067f71d04bf2
7
+ data.tar.gz: 3e810980b8f5c57a850e3e5c7c841981e3bcf579056c88cdafaceab0b3c540a37050efb54bb6f14c1c39b6a4e01667738f17a6cdb7f152ba41fd09f54bde69fc
@@ -2,8 +2,17 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 2.0.11
6
+
7
+ ### Fixes
8
+
9
+ - [Pull request #162: Fix line height spacing for multiline code elements](https://github.com/alphagov/tech-docs-gem/pull/162)
10
+ - [Pull request #165: Update header alignment to match layout](https://github.com/alphagov/tech-docs-gem/pull/165)
11
+
5
12
  ## 2.0.10
6
13
 
14
+ ### Fixes
15
+
7
16
  - [Pull request #160: Make sure IDs on collapsible navigation are unique](https://github.com/alphagov/tech-docs-gem/pull/160)
8
17
 
9
18
  ## 2.0.9
@@ -8,6 +8,35 @@ A paragraph with a `code` element within it.
8
8
 
9
9
  <a href="#"><code>code element within a link</code></a>
10
10
 
11
+ An example of a table with a `code` element within it.
12
+
13
+ <div class="table-container">
14
+ <table>
15
+ <thead>
16
+ <tr>
17
+ <th style="text-align:left">httpResult</th>
18
+ <th style="text-align:left">Message</th>
19
+ <th style="text-align:left">How to fix</th>
20
+ </tr>
21
+ </thead>
22
+ <tbody>
23
+ <tr>
24
+ <td style="text-align:left"><code>400</code></td>
25
+ <td style="text-align:left">
26
+ <code>[{</code>
27
+ <br />
28
+ <code>"error": "BadRequestError",</code>
29
+ <br />
30
+ <code>"message": "Can't send to this recipient using a team-only API key"</code>
31
+ <br />
32
+ <code>]}</code>
33
+ </td>
34
+ <td style="text-align:left">Use the correct type of API key</td>
35
+ </tr>
36
+ </tbody>
37
+ </table>
38
+ </div>
39
+
11
40
  An example of a code block with a long line length
12
41
 
13
42
  ```ruby
@@ -32,4 +61,4 @@ An example of a code block with a short length
32
61
  ```ruby
33
62
  RSpec.describe ContentItem do
34
63
  end
35
- ```
64
+ ```
@@ -6,6 +6,7 @@
6
6
  @import "modules/anchored-heading";
7
7
  @import "modules/app-pane";
8
8
  @import "modules/footer";
9
+ @import "modules/header";
9
10
  @import "modules/page-review";
10
11
  @import "modules/search";
11
12
  @import "modules/contribution-banner";
@@ -0,0 +1,16 @@
1
+ .app-header {
2
+ // Adjust the padding on the header container so that it matches the custom sidebar.
3
+ .govuk-header__container--full-width {
4
+ @include govuk-responsive-padding(6, "left");
5
+ @include govuk-responsive-padding(6, "right");
6
+ }
7
+ // Give the product name in the header more space so it does not wrap early on smaller screens.
8
+ @include govuk-media-query($from: desktop) {
9
+ .govuk-header__logo {
10
+ width: 45%;
11
+ }
12
+ .govuk-header__content {
13
+ width: 55%;
14
+ }
15
+ }
16
+ }
@@ -43,7 +43,7 @@ html.has-search-results-open {
43
43
  -webkit-overflow-scrolling: touch;
44
44
  -ms-overflow-style: none;
45
45
  @include govuk-media-query(tablet) {
46
- padding: 22px 20px 0 30px;
46
+ padding: govuk-spacing(6);
47
47
  top: 0;
48
48
  // The width of the sidebar
49
49
  left: 330px;
@@ -8,9 +8,7 @@
8
8
  color: $govuk-text-colour;
9
9
 
10
10
  @include govuk-media-query(tablet) {
11
- // We add 2 pixels to the gutter here to ensure there's sufficient spacing between
12
- // an anchor link (see _anchored-heading.scss) on a heading and the left-hand pane.
13
- margin: 0 govuk-spacing(6) (govuk-spacing(6) + 2px);
11
+ margin: 0 govuk-spacing(6) govuk-spacing(6);
14
12
  }
15
13
 
16
14
  .has-search-results-open & {
@@ -141,6 +139,8 @@
141
139
  font-family: monaco, Consolas, "Lucida Console", monospace;
142
140
  font-size: 15px;
143
141
  font-size: 0.9375rem;
142
+ // Match the line-height outside of tables
143
+ line-height: 1.4;
144
144
  color: $code-0E;
145
145
 
146
146
  @include govuk-media-query(tablet) {
@@ -18,7 +18,7 @@
18
18
  a:link, a:visited {
19
19
  display: block;
20
20
  position: relative;
21
- padding: 8px govuk-spacing(6) 8px govuk-spacing(3);
21
+ padding: 8px govuk-spacing(6) 8px govuk-spacing(2);
22
22
  margin: 0 -1 * govuk-spacing(3);
23
23
  border-left: 5px solid transparent;
24
24
  text-decoration: none;
@@ -93,7 +93,7 @@
93
93
 
94
94
  @include govuk-media-query(tablet) {
95
95
  .toc {
96
- padding: 22px govuk-spacing(6) govuk-spacing(3)
96
+ padding: govuk-spacing(5) govuk-spacing(6);
97
97
  }
98
98
 
99
99
  // Prevent the fixedsticky spacer from appearing if the browser is resized
@@ -1,3 +1,3 @@
1
1
  module GovukTechDocs
2
- VERSION = "2.0.10".freeze
2
+ VERSION = "2.0.11".freeze
3
3
  end
@@ -1,4 +1,4 @@
1
- <header class="govuk-header " role="banner" data-module="govuk-header">
1
+ <header class="govuk-header app-header" role="banner" data-module="govuk-header">
2
2
  <div class="govuk-header__container govuk-header__container--full-width">
3
3
  <div class="govuk-header__logo">
4
4
  <% if config[:tech_docs][:service_link] %>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: govuk_tech_docs
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.10
4
+ version: 2.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Government Digital Service
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-11-15 00:00:00.000000000 Z
11
+ date: 2019-11-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -392,6 +392,7 @@ files:
392
392
  - lib/assets/stylesheets/modules/_collapsible.scss
393
393
  - lib/assets/stylesheets/modules/_contribution-banner.scss
394
394
  - lib/assets/stylesheets/modules/_footer.scss
395
+ - lib/assets/stylesheets/modules/_header.scss
395
396
  - lib/assets/stylesheets/modules/_page-review.scss
396
397
  - lib/assets/stylesheets/modules/_search.scss
397
398
  - lib/assets/stylesheets/modules/_technical-documentation.scss