@forsakringskassan/docs-generator 2.5.0 → 2.7.0

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.
@@ -125,6 +125,101 @@ pre code {
125
125
  display: block;
126
126
  }
127
127
 
128
+ .docs-contextmenu {
129
+ background-color: var(--docs-contextmenu-background-color);
130
+ }
131
+ .docs-contextmenu__list {
132
+ background: inherit;
133
+ border-radius: 2px;
134
+ border: 1px solid var(--docs-contextmenu-border-color);
135
+ box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
136
+ color: var(--docs-contextmenu-link-color);
137
+ display: block;
138
+ font-weight: normal;
139
+ margin: 0;
140
+ padding: 0.5rem;
141
+ position: absolute;
142
+ right: 0;
143
+ visibility: hidden;
144
+ z-index: 1;
145
+ }
146
+ .docs-contextmenu__item {
147
+ display: block;
148
+ list-style-type: none;
149
+ white-space: nowrap;
150
+ }
151
+ .docs-contextmenu__item.highlight {
152
+ background-color: var(--docs-contextmenu-highlight-color);
153
+ font-weight: bold;
154
+ }
155
+ .docs-contextmenu__anchor {
156
+ cursor: pointer;
157
+ display: block;
158
+ padding: 0.75rem;
159
+ }
160
+ .docs-contextmenu__anchor, .docs-contextmenu__anchor:visited, .docs-contextmenu__anchor:active {
161
+ color: var(--docs-contextmenu-link-color-default);
162
+ }
163
+ .docs-contextmenu__anchor:hover {
164
+ color: var(--docs-contextmenu-link-color-default);
165
+ background-color: var(--docs-contextmenu-link-background-hover);
166
+ }
167
+
168
+ .docs-topnav {
169
+ background-color: var(--docs-topnav-background-color);
170
+ margin: 0 -0.5rem;
171
+ overflow: hidden;
172
+ }
173
+ .docs-topnav__list {
174
+ display: flex;
175
+ gap: 1rem;
176
+ margin: 0;
177
+ padding: 0;
178
+ }
179
+ .docs-topnav__item {
180
+ display: inline-flex;
181
+ list-style-type: none;
182
+ padding: 1.1rem 0 0 0;
183
+ white-space: nowrap;
184
+ }
185
+ .docs-topnav__item.highlight {
186
+ color: var(--docs-topnav-link-color-highlight);
187
+ font-weight: bold;
188
+ }
189
+ .docs-topnav__item.highlight :where(.docs-topnav__anchor) {
190
+ border-color: var(--docs-topnav-border-color-highlight);
191
+ font-weight: bold;
192
+ }
193
+ .docs-topnav__item--more {
194
+ position: absolute;
195
+ visibility: hidden;
196
+ }
197
+ .docs-topnav__anchor {
198
+ border: none;
199
+ border-bottom: 5px solid transparent;
200
+ cursor: pointer;
201
+ display: inline-flex;
202
+ padding-bottom: 0.5rem;
203
+ }
204
+ .docs-topnav__anchor, .docs-topnav__anchor:visited, .docs-topnav__anchor:active {
205
+ color: var(--docs-topnav-link-color-default);
206
+ }
207
+ .docs-topnav__anchor:hover {
208
+ color: var(--docs-topnav-link-color-hover);
209
+ border-color: var(--docs-topnav-border-color-hover);
210
+ }
211
+ button.docs-topnav__anchor {
212
+ align-items: center;
213
+ background: none;
214
+ display: flex;
215
+ gap: 0.75rem;
216
+ padding: 0;
217
+ padding-bottom: 0.5rem;
218
+ }
219
+ button.docs-topnav__anchor svg {
220
+ color: var(--docs-topnav-border-color-highlight);
221
+ }
222
+
128
223
  .layout-wrapper {
129
224
  display: grid;
130
225
  grid-template: "header" auto "primary" 1fr "footer" auto;
@@ -133,6 +228,7 @@ pre code {
133
228
 
134
229
  header {
135
230
  grid-area: header;
231
+ min-width: 0;
136
232
  }
137
233
 
138
234
  #primary {
@@ -152,38 +248,44 @@ main {
152
248
  }
153
249
 
154
250
  .layout--content-with-menu #primary,
155
- .layout--pattern #primary,
156
- .layout--component #primary {
251
+ .layout--article #primary,
252
+ .layout--component #primary,
253
+ .layout--pattern #primary {
157
254
  --sidenav-width: 350px;
158
255
  padding-right: 2rem;
159
256
  grid-template: "sidenav title" auto "sidenav aside" auto "sidenav content" 1fr/min-content 1fr;
160
257
  }
161
258
  @media screen and (width >= 1280px) {
162
259
  .layout--content-with-menu #primary,
163
- .layout--pattern #primary,
164
- .layout--component #primary {
260
+ .layout--article #primary,
261
+ .layout--component #primary,
262
+ .layout--pattern #primary {
165
263
  grid-template: "sidenav title aside" auto "sidenav content aside" 1fr/min-content minmax(10rem, 920px) auto;
166
264
  }
167
265
  }
168
266
  .layout--content-with-menu main,
169
- .layout--pattern main,
170
- .layout--component main {
267
+ .layout--article main,
268
+ .layout--component main,
269
+ .layout--pattern main {
171
270
  display: contents;
172
271
  padding: 0;
173
272
  max-width: none;
174
273
  }
175
274
  .layout--content-with-menu #title,
176
275
  .layout--content-with-menu #content,
177
- .layout--pattern #title,
178
- .layout--pattern #content,
276
+ .layout--article #title,
277
+ .layout--article #content,
179
278
  .layout--component #title,
180
- .layout--component #content {
279
+ .layout--component #content,
280
+ .layout--pattern #title,
281
+ .layout--pattern #content {
181
282
  padding-left: 1rem;
182
283
  }
183
284
  @media screen and (width < 1280px) {
184
285
  .layout--content-with-menu #aside,
185
- .layout--pattern #aside,
186
- .layout--component #aside {
286
+ .layout--article #aside,
287
+ .layout--component #aside,
288
+ .layout--pattern #aside {
187
289
  padding-left: 1rem;
188
290
  }
189
291
  }
@@ -207,6 +309,31 @@ main {
207
309
  overflow-x: auto;
208
310
  }
209
311
 
312
+ .docs-messagebox {
313
+ border: 2px solid transparent;
314
+ border-left-width: 1rem;
315
+ padding: 1.5rem;
316
+ margin-bottom: 1rem;
317
+ }
318
+ .docs-messagebox :last-child {
319
+ margin-bottom: 0;
320
+ }
321
+ .docs-messagebox__title {
322
+ font-weight: bold;
323
+ }
324
+ .docs-messagebox--info {
325
+ border-color: var(--docs-messagebox-info-border);
326
+ background: var(--docs-messagebox-info-background);
327
+ }
328
+ .docs-messagebox--warning {
329
+ border-color: var(--docs-messagebox-warning-border);
330
+ background: var(--docs-messagebox-warning-background);
331
+ }
332
+ .docs-messagebox--danger {
333
+ border-color: var(--docs-messagebox-danger-border);
334
+ background: var(--docs-messagebox-danger-background);
335
+ }
336
+
210
337
  #sidenav {
211
338
  --header-footer-visible-height: 4.5rem;
212
339
  overflow: auto;
@@ -435,10 +562,152 @@ main {
435
562
  transform: translateX(100%);
436
563
  }
437
564
  }
565
+ .docs-tag {
566
+ border-radius: 4px;
567
+ border-style: solid;
568
+ border-width: 1px;
569
+ display: inline-block;
570
+ padding: 0 0.5rem;
571
+ }
572
+ .docs-tag--default {
573
+ background-color: var(--docs-tags-optional-background-color);
574
+ border-color: var(--docs-tags-optional-border-color);
575
+ color: var(--docs-tags-optional-text-color);
576
+ }
577
+
438
578
  #version-banner {
439
579
  margin: 0;
440
580
  }
441
581
 
582
+ pre code.hljs {
583
+ display: block;
584
+ overflow-x: auto;
585
+ padding: 1em;
586
+ }
587
+
588
+ code.hljs {
589
+ padding: 3px 5px;
590
+ }
591
+
592
+ /*!
593
+ Theme: Default
594
+ Description: Original highlight.js style
595
+ Author: (c) Ivan Sagalaev <maniac@softwaremaniacs.org>
596
+ Maintainer: @highlightjs/core-team
597
+ Website: https://highlightjs.org/
598
+ License: see project LICENSE
599
+ Touched: 2021
600
+ */
601
+ /*
602
+ This is left on purpose making default.css the single file that can be lifted
603
+ as-is from the repository directly without the need for a build step
604
+
605
+ Typically this "required" baseline CSS is added by `makestuff.js` during build.
606
+ */
607
+ pre code.hljs {
608
+ display: block;
609
+ overflow-x: auto;
610
+ padding: 1em;
611
+ }
612
+
613
+ code.hljs {
614
+ padding: 3px 5px;
615
+ }
616
+
617
+ /* end baseline CSS */
618
+ .hljs {
619
+ background: #F3F3F3;
620
+ color: #444;
621
+ }
622
+
623
+ /* Base color: saturation 0; */
624
+ .hljs-subst {
625
+ /* default */
626
+ }
627
+
628
+ /* purposely ignored */
629
+ .hljs-comment {
630
+ color: #697070;
631
+ }
632
+
633
+ .hljs-tag,
634
+ .hljs-punctuation {
635
+ color: rgba(68, 68, 68, 0.6666666667);
636
+ }
637
+
638
+ .hljs-tag .hljs-name,
639
+ .hljs-tag .hljs-attr {
640
+ color: #444;
641
+ }
642
+
643
+ .hljs-keyword,
644
+ .hljs-attribute,
645
+ .hljs-selector-tag,
646
+ .hljs-meta .hljs-keyword,
647
+ .hljs-doctag,
648
+ .hljs-name {
649
+ font-weight: bold;
650
+ }
651
+
652
+ /* User color: hue: 0 */
653
+ .hljs-type,
654
+ .hljs-string,
655
+ .hljs-number,
656
+ .hljs-selector-id,
657
+ .hljs-selector-class,
658
+ .hljs-quote,
659
+ .hljs-template-tag,
660
+ .hljs-deletion {
661
+ color: #880000;
662
+ }
663
+
664
+ .hljs-title,
665
+ .hljs-section {
666
+ color: #880000;
667
+ font-weight: bold;
668
+ }
669
+
670
+ .hljs-regexp,
671
+ .hljs-symbol,
672
+ .hljs-variable,
673
+ .hljs-template-variable,
674
+ .hljs-link,
675
+ .hljs-selector-attr,
676
+ .hljs-operator,
677
+ .hljs-selector-pseudo {
678
+ color: #ab5656;
679
+ }
680
+
681
+ /* Language color: hue: 90; */
682
+ .hljs-literal {
683
+ color: #695;
684
+ }
685
+
686
+ .hljs-built_in,
687
+ .hljs-bullet,
688
+ .hljs-code,
689
+ .hljs-addition {
690
+ color: #397300;
691
+ }
692
+
693
+ /* Meta color: hue: 200 */
694
+ .hljs-meta {
695
+ color: #1f7199;
696
+ }
697
+
698
+ .hljs-meta .hljs-string {
699
+ color: #38a;
700
+ }
701
+
702
+ /* Misc effects */
703
+ .hljs-emphasis {
704
+ font-style: italic;
705
+ }
706
+
707
+ .hljs-strong {
708
+ font-weight: bold;
709
+ }
710
+
442
711
  /* reset broken FKUI reset */
443
712
  dialog {
444
713
  display: none;
@@ -448,6 +717,11 @@ dialog[open] {
448
717
  display: block;
449
718
  }
450
719
 
720
+ dd > dl {
721
+ border-left: 2px solid var(--docs-text-color-discrete);
722
+ padding-left: 1rem;
723
+ }
724
+
451
725
  p:not(.code-preview p) {
452
726
  max-width: 680px;
453
727
  }
@@ -548,6 +822,7 @@ header .page-header {
548
822
  padding-top: 0.5rem;
549
823
  padding-bottom: 0.5rem;
550
824
  padding-left: 1.2rem;
825
+ padding-right: 1.2rem;
551
826
  border-bottom: 1px solid #ddddde;
552
827
  flex-wrap: wrap;
553
828
  }
@@ -585,6 +860,7 @@ header .select-field {
585
860
 
586
861
  header .page-header__right {
587
862
  justify-content: space-between;
863
+ min-width: 0;
588
864
  max-width: 1260px;
589
865
  padding-top: 0;
590
866
  flex-wrap: wrap-reverse;
@@ -599,9 +875,6 @@ header .page-header__right-slot {
599
875
  margin-top: 0.5rem;
600
876
  margin-left: -1.5rem;
601
877
  }
602
- header .imenu {
603
- padding-left: 0 !important;
604
- }
605
878
  header button kbd {
606
879
  display: none;
607
880
  }
@@ -624,20 +897,6 @@ header .label {
624
897
  margin-bottom: 0;
625
898
  }
626
899
 
627
- /* meny */
628
- header .imenu {
629
- background-color: #fff;
630
- margin-left: -0.5rem;
631
- }
632
-
633
- header .imenu--horizontal .imenu__list__item {
634
- display: inline-flex;
635
- padding-top: 1.1rem;
636
- padding-left: 0;
637
- padding-right: 0;
638
- margin: 0 0.5rem;
639
- }
640
-
641
900
  /* navigering vänster */
642
901
  #sidenav {
643
902
  background-color: #f4f4f4;