vanilla-framework 4.23.1 → 4.23.2

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.
package/README.md CHANGED
@@ -2,14 +2,11 @@
2
2
 
3
3
  [![npm version](https://badge.fury.io/js/vanilla-framework.svg)](http://badge.fury.io/js/vanilla-framework)
4
4
  [![Downloads](http://img.shields.io/npm/dm/vanilla-framework.svg)](https://www.npmjs.com/package/vanilla-framework)
5
- [![devDependency Status](https://david-dm.org/canonical/vanilla-framework/dev-status.svg)](https://david-dm.org/canonical/vanilla-framework#info=devDependencies)
6
- [![Chat in #vanilla-framework on Freenode](https://img.shields.io/badge/chat-%23vanilla--framework-blue.svg)](http://webchat.freenode.net/?channels=vanilla-framework)
7
5
  [![This project is using Percy.io for visual regression testing.](https://percy.io/static/images/percy-badge.svg)](https://percy.io)
8
6
 
9
7
  Vanilla Framework is an extensible CSS framework, built using [Sass](http://sass-lang.com/) and is designed to be used either directly or by using themes to extend or supplement its patterns.
10
8
 
11
9
  [Documentation](https://vanillaframework.io/docs) |
12
- [Join the mailing list](http://canonical.us3.list-manage2.com/subscribe?u=56dac47c206ba0f58ec25f314&id=36f7d8394e)
13
10
 
14
11
  ## Table of contents
15
12
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vanilla-framework",
3
- "version": "4.23.1",
3
+ "version": "4.23.2",
4
4
  "author": {
5
5
  "email": "webteam@canonical.com",
6
6
  "name": "Canonical Webteam"
@@ -18,7 +18,7 @@
18
18
  {%- set cta_content = caller('cta') -%}
19
19
  {%- set has_cta = cta_content|trim|length > 0 -%}
20
20
 
21
- <div class="u-fixed-width">
21
+ <div class="p-section u-fixed-width">
22
22
  <hr class="p-rule">
23
23
 
24
24
  {% if has_description == true -%}
@@ -55,7 +55,13 @@
55
55
  </div>
56
56
  {%- endif %}
57
57
 
58
+ {#-
59
+ When there is a CTA, we use shallow spacing to space the list away from the CTA.
60
+ When there is no CTA, shallow spacing would combine with the pattern-level p-section padding, which introduces too much space.
61
+ -#}
62
+ {%- if has_cta -%}
58
63
  <div class="p-section--shallow">
64
+ {%- endif -%}
59
65
  {%- for number in range(1, 25) -%}
60
66
  {%- set list_item_title_content = caller('list_item_title_' + number|string) -%}
61
67
  {%- set has_title_content = list_item_title_content|trim|length > 0 -%}
@@ -100,14 +106,17 @@
100
106
  {%- endif -%}
101
107
  {%- endif -%}
102
108
  {% endfor %}
109
+ {%- if has_cta -%}
103
110
  </div>
111
+ {%- endif -%}
104
112
 
105
113
  {% if has_cta == true -%}
106
- <div class="p-cta-block">
107
- <div class="row">
108
- <div class="col-6 col-start-large-7">
114
+ <div class="row">
115
+ <hr class="p-rule--muted"/>
116
+ <div class="col-6 col-start-large-7">
117
+ <p>
109
118
  {{ cta_content }}
110
- </div>
119
+ </p>
111
120
  </div>
112
121
  </div>
113
122
  {%- endif %}