cyclist-grid 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a95f7f5f4047e3b265f8475b50b15f0d8019bcce0d9db16787ae95c6bae1ee96
4
- data.tar.gz: 0a9db509e180f50659ec147161c4f367fc594c9f9dbfbed1d966d288db2eaca7
3
+ metadata.gz: e6da0f0035deca244c201d59da50f6168e254e8137cc8c4c94c22215752d6720
4
+ data.tar.gz: 2368a5c1df68c4a0fb2be21e6f4133b4e5e294c9fdb7d6096e254dc2ea495cb6
5
5
  SHA512:
6
- metadata.gz: f466dc0faa01210133dea7a8467a56a5e6c972f0c79ae124c42901fa910b75f685f043b2c9a0c15fac8c39c5cc866859db86e9fd85a354feab7e006f1381cd9e
7
- data.tar.gz: 1c7ab9ba34ee8e2e81fd8a85061ade656bb8a1d0e3e7869bb22a1e34066b06b33f5a2e042c75a8efd9396dc062be2db7b16683d529fe27dab61944f1ae5d0efe
6
+ metadata.gz: 10f3d77eee3c044737cea4633fe9df4113d8124e02b3ca8bbd2197b7ba502ade4e062328cb5c4bcecf9c3b62bcfbbece75ed78309fc8fb49244f6052361fdc11
7
+ data.tar.gz: df5be6c81aa34aea94cd5144efaf8a3db46c4f796c9cb71945e0629eb81a33ef237e5928bf9c6fb1a39ea1f490c33b9cdcb5addaf2e598a0592626228985b304
@@ -54,34 +54,32 @@ body {
54
54
 
55
55
  h1 {
56
56
  font-size: calc(1em * (36 / 12));
57
- margin-bottom: 1.25rem;
58
57
  line-height: calc(3 * 1.25rem); }
59
58
 
60
59
  h2 {
61
60
  font-size: calc(1em * (24 / 12));
62
- margin-bottom: 1.25rem;
63
61
  line-height: calc(2 * 1.25rem); }
64
62
 
65
63
  h3 {
66
64
  font-size: calc(1em * (21 / 12));
67
- margin-bottom: 1.25rem;
68
65
  line-height: calc(2 * 1.25rem); }
69
66
 
70
67
  h4 {
71
68
  font-size: calc(1em * (18 / 12));
72
- margin-bottom: 1.25rem;
73
69
  line-height: calc(2 * 1.25rem); }
74
70
 
75
71
  h5 {
76
72
  font-size: calc(1em * (14 / 12));
77
- margin-bottom: 1.25rem;
78
73
  line-height: calc(2 * 1.25rem); }
79
74
 
80
75
  h6 {
81
76
  font-size: calc(1em * (12 / 12));
82
- margin-bottom: 1.25rem;
83
77
  line-height: calc(1 * 1.25rem); }
84
78
 
79
+ h1, h2 {
80
+ margin-bottom: 1.25rem;
81
+ margin-top: 2.5rem; }
82
+
85
83
  p,
86
84
  ul,
87
85
  ol {
@@ -95,14 +93,21 @@ ol ul {
95
93
 
96
94
  ul {
97
95
  list-style-type: disc;
98
- margin-left: 2rem; }
96
+ margin-left: 1.25rem; }
99
97
 
100
98
  ol {
101
99
  list-style-type: decimal;
102
- margin-left: 2rem; }
100
+ margin-left: 1.25rem; }
103
101
 
104
- hr {
105
- line-height: 2.5rem; }
102
+ sub {
103
+ line-height: 0;
104
+ vertical-align: sub;
105
+ font-size: calc(1em * (10 / 12)); }
106
+
107
+ sup {
108
+ line-height: 0;
109
+ vertical-align: super;
110
+ font-size: calc(1em * (10 / 12)); }
106
111
 
107
112
  .cyclist-guidelines {
108
113
  display: -webkit-flex;
@@ -111,24 +116,28 @@ hr {
111
116
  left: 0;
112
117
  top: 0;
113
118
  bottom: 0;
114
- right: 0; }
119
+ right: 0;
120
+ z-index: -1; }
115
121
 
116
122
  .cyclist-guidelines > div.cyclist-column {
117
123
  display: -webkit-flex;
118
124
  display: flex;
119
125
  background-color: rgba(148, 235, 255, 0.25);
120
- margin-right: 1rem;
121
- -webkit-flex: 0 0 9rem;
122
- flex: 0 0 9rem; }
126
+ margin-right: 1.25rem;
127
+ -webkit-flex: 0 0 11.25rem;
128
+ flex: 0 0 11.25rem; }
123
129
 
124
130
  .cyclist-guidelines > div.cyclist-column:last-child {
125
131
  margin-right: 0; }
126
132
 
127
133
  .cyclist-column > div.cyclist-unit {
128
134
  background-color: rgba(148, 235, 255, 0.25);
129
- margin-right: 1rem;
130
- -webkit-flex: 0 0 4rem;
131
- flex: 0 0 4rem; }
135
+ margin-right: 1.25rem;
136
+ -webkit-flex: 0 0 5rem;
137
+ flex: 0 0 5rem; }
132
138
 
133
139
  .cyclist-column > div.cyclist-unit:last-child {
134
140
  margin-right: 0; }
141
+
142
+ .cyclist-baseline {
143
+ z-index: -1; }
File without changes
File without changes
@@ -6,6 +6,7 @@
6
6
  top: 0;
7
7
  bottom: 0;
8
8
  right: 0;
9
+ z-index: -1;
9
10
  }
10
11
 
11
12
  .cyclist-guidelines > div.cyclist-column {
@@ -31,3 +32,8 @@
31
32
  .cyclist-column > div.cyclist-unit:last-child {
32
33
  margin-right: 0;
33
34
  }
35
+
36
+ // So Inspect Element won't prioritize the grid
37
+ .cyclist-baseline {
38
+ z-index: -1;
39
+ }
@@ -12,8 +12,8 @@ $leading-height: $line-height !default;
12
12
 
13
13
  // Grid Variables
14
14
 
15
- $gutter-width: 1rem !default;
16
- $num-indent-gutters: 2 !default;
15
+ $gutter-width: $line-height !default;
16
+ $num-indent-gutters: 1 !default;
17
17
  $num-unit-gutters: 4 !default;
18
18
  $num-column-units: 2 !default;
19
19
 
@@ -22,4 +22,3 @@ $num-column-units: 2 !default;
22
22
  $indent-width: $gutter-width * $num-indent-gutters !default;
23
23
  $unit-width: $gutter-width * $num-unit-gutters !default;
24
24
  $column-width: $unit-width * $num-column-units + $gutter-width * ($num-column-units - 1) !default;
25
-
@@ -20,7 +20,6 @@ body {
20
20
  font-size: font-size-from-ratio($ratio);
21
21
  $leading-multiplier: ceil($numerator / $denumerator);
22
22
  line-height: calc(#{$leading-multiplier} * #{$leading-height});
23
- margin-bottom: $leading-height;
24
23
  }
25
24
 
26
25
  $double-great-primer-ratio: 36, 12;
@@ -73,6 +72,11 @@ h6 {
73
72
  @include header($pica-ratio);
74
73
  }
75
74
 
75
+ h1, h2 {
76
+ margin-bottom: $line-height;
77
+ margin-top: $line-height * 2;
78
+ }
79
+
76
80
  p,
77
81
  ul,
78
82
  ol {
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cyclist-grid
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roben Kleene
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-08-01 00:00:00.000000000 Z
11
+ date: 2021-10-26 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: An HTML5 typographic-grid system using Sass.
14
14
  email: contact@robenkleene.com
@@ -16,15 +16,15 @@ executables: []
16
16
  extensions: []
17
17
  extra_rdoc_files: []
18
18
  files:
19
- - dist/css/cyclist.css
20
- - dist/js/cyclist.js
21
- - dist/scss/cyclist.scss
19
+ - dist/css/cyclist-grid.css
20
+ - dist/js/cyclist-grid.js
21
+ - dist/scss/cyclist-grid.scss
22
22
  - dist/scss/partials/_guidelines.scss
23
23
  - dist/scss/partials/_layout.scss
24
24
  - dist/scss/partials/_reset.scss
25
25
  - dist/scss/partials/_setup.scss
26
26
  - dist/scss/partials/_typography.scss
27
- homepage: https://github.com/robenkleene/cyclist.git
27
+ homepage: https://github.com/cyclist-grid/cyclist-grid
28
28
  licenses:
29
29
  - MIT
30
30
  metadata: {}