metanorma-csa 2.0.0 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -248,51 +248,55 @@ body {
248
248
  main {
249
249
  margin: 0 3em 0 6em; }
250
250
 
251
- #toc {
251
+ #toc, #toc > ul > :is(.h1, .h2, .h3, .h4, .h5, .h6) {
252
252
  font-family: {{bodyfont}};
253
253
  font-weight: 400; }
254
- #toc ul {
254
+ #toc ul, #toc > ul > :is(.h1, .h2, .h3, .h4, .h5, .h6) ul {
255
255
  margin: 0;
256
256
  padding: 0;
257
257
  list-style: none; }
258
- #toc ul li a {
258
+ #toc ul li a, #toc > ul > :is(.h1, .h2, .h3, .h4, .h5, .h6) ul li a {
259
259
  padding: 5px 10px; }
260
- #toc ul a {
260
+ #toc ul a, #toc > ul > :is(.h1, .h2, .h3, .h4, .h5, .h6) ul a {
261
261
  color: #4D7EA5;
262
262
  text-decoration: none;
263
263
  display: block; }
264
- #toc ul a:hover {
264
+ #toc ul a:hover, #toc > ul > :is(.h1, .h2, .h3, .h4, .h5, .h6) ul a:hover {
265
265
  box-shadow: none;
266
266
  color: #4D7EA5; }
267
- #toc .h2 {
267
+ #toc .h2, #toc > ul > :is(.h1, .h2, .h3, .h4, .h5, .h6) .h2 {
268
268
  padding-left: 30px; }
269
- #toc .h3 {
269
+ #toc .h3, #toc > ul > :is(.h1, .h2, .h3, .h4, .h5, .h6) .h3 {
270
270
  padding-left: 50px; }
271
- #toc .toc-active, #toc li:hover {
271
+ #toc .toc-active, #toc li:hover, #toc > ul > :is(.h1, .h2, .h3, .h4, .h5, .h6) .toc-active, #toc > ul > :is(.h1, .h2, .h3, .h4, .h5, .h6) li:hover {
272
272
  background: #4D7EA5;
273
273
  box-shadow: inset -5px 0px 10px -5px #4D7EA5 !important; }
274
- #toc .toc-active a, #toc li:hover a {
274
+ #toc .toc-active a, #toc li:hover a, #toc > ul > :is(.h1, .h2, .h3, .h4, .h5, .h6) .toc-active a, #toc > ul > :is(.h1, .h2, .h3, .h4, .h5, .h6) li:hover a {
275
275
  color: #4D7EA5; }
276
276
  @media print {
277
- #toc .toc-active, #toc li:hover {
277
+ #toc .toc-active, #toc li:hover, #toc > ul > :is(.h1, .h2, .h3, .h4, .h5, .h6) .toc-active, #toc > ul > :is(.h1, .h2, .h3, .h4, .h5, .h6) li:hover {
278
278
  background: white;
279
279
  box-shadow: none !important; }
280
- #toc .toc-active a {
280
+ #toc .toc-active a, #toc > ul > :is(.h1, .h2, .h3, .h4, .h5, .h6) .toc-active a {
281
281
  color: #4D7EA5; }
282
- #toc li:hover a {
282
+ #toc li:hover a, #toc > ul > :is(.h1, .h2, .h3, .h4, .h5, .h6) li:hover a {
283
283
  color: black; } }
284
284
  @media screen and (max-width: 768px) {
285
- #toc {
285
+ #toc, #toc > ul > :is(.h1, .h2, .h3, .h4, .h5, .h6) {
286
286
  padding: 0 1.5em;
287
287
  overflow: visible; } }
288
- #toc .toc-active a {
288
+ #toc .toc-active a, #toc > ul > :is(.h1, .h2, .h3, .h4, .h5, .h6) .toc-active a {
289
289
  color: white; }
290
- #toc li a {
290
+ #toc li a, #toc > ul > :is(.h1, .h2, .h3, .h4, .h5, .h6) li a {
291
291
  text-transform: none; }
292
- #toc ul a:hover {
292
+ #toc ul a:hover, #toc > ul > :is(.h1, .h2, .h3, .h4, .h5, .h6) ul a:hover {
293
293
  box-shadow: none;
294
294
  color: white; }
295
295
 
296
+ #toc > ul > :is(.h1, .h2, .h3, .h4, .h5, .h6) {
297
+ margin-top: 0;
298
+ margin-bottom: 0; }
299
+
296
300
  li {
297
301
  margin-left: 1em;
298
302
  list-style-position: outside; }
@@ -353,7 +357,7 @@ li {
353
357
  display: none; }
354
358
  h1.toc-contents {
355
359
  margin-top: 1em; }
356
- ul#toc-list {
360
+ ul#toc-list, ul#toc-list > :is(.h1, .h2, .h3, .h4, .h5, .h6) {
357
361
  padding: 0;
358
362
  margin: 0; } }
359
363
 
@@ -18,7 +18,7 @@ main {
18
18
  margin: 0 3em 0 6em;
19
19
  }
20
20
 
21
- #toc {
21
+ #toc, #toc > ul > :is(.h1, .h2, .h3, .h4, .h5, .h6) {
22
22
  @include toc(#4D7EA5, #4D7EA5, #4D7EA5);
23
23
  @include sidebarToc();
24
24
 
@@ -38,6 +38,12 @@ main {
38
38
  }
39
39
  }
40
40
 
41
+ #toc > ul > :is(.h1, .h2, .h3, .h4, .h5, .h6) {
42
+ margin-top: 0;
43
+ margin-bottom: 0;
44
+ }
45
+
46
+
41
47
  li {
42
48
  margin-left: 1em;
43
49
  list-style-position: outside;
@@ -68,7 +74,7 @@ nav {
68
74
  margin-top: 1em;
69
75
  }
70
76
 
71
- ul#toc-list {
77
+ ul#toc-list, ul#toc-list > :is(.h1, .h2, .h3, .h4, .h5, .h6) {
72
78
  padding: 0;
73
79
  margin: 0;
74
80
  }
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module Csa
3
- VERSION = "2.0.0".freeze
3
+ VERSION = "2.0.1".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-csa
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-01-10 00:00:00.000000000 Z
11
+ date: 2022-01-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: metanorma-generic