@forsakringskassan/docs-generator 2.38.4 → 2.38.6

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.
@@ -121,37 +121,37 @@ h6:not(.code-preview h6) {
121
121
  }
122
122
 
123
123
  h1 {
124
- font-size: var(--f-font-size-h1);
125
- color: var(--f-text-color-heading-1);
124
+ font-size: 2.5rem;
125
+ color: inherit;
126
126
  letter-spacing: var(--docs-heading-letter-spacing-h1);
127
127
  }
128
128
 
129
129
  h2 {
130
- font-size: var(--f-font-size-h2);
131
- color: var(--f-text-color-heading-2);
130
+ font-size: 1.75rem;
131
+ color: inherit;
132
132
  letter-spacing: var(--docs-heading-letter-spacing-h2);
133
133
  }
134
134
 
135
135
  h3 {
136
- font-size: var(--f-font-size-h3);
137
- color: var(--f-text-color-heading-3);
136
+ font-size: 1.375rem;
137
+ color: inherit;
138
138
  letter-spacing: var(--docs-heading-letter-spacing-h3);
139
139
  }
140
140
 
141
141
  h4 {
142
- font-size: var(--f-font-size-h4);
143
- color: var(--f-text-color-heading-4);
142
+ font-size: 1.25rem;
143
+ color: inherit;
144
144
  letter-spacing: var(--docs-heading-letter-spacing-h4);
145
145
  }
146
146
 
147
147
  h5 {
148
- font-size: var(--f-font-size-large);
149
- color: var(--f-text-color-heading-5);
148
+ font-size: 1.125rem;
149
+ color: inherit;
150
150
  }
151
151
 
152
152
  h6 {
153
- font-size: var(--f-font-size-standard);
154
- color: var(--f-text-color-heading-6);
153
+ font-size: 1rem;
154
+ color: inherit;
155
155
  }
156
156
 
157
157
  h1 > a,
@@ -174,22 +174,22 @@ h6 > a {
174
174
 
175
175
  @media (width <= 640px) {
176
176
  h1 {
177
- font-size: var(--f-font-size-h2);
177
+ font-size: 1.75rem;
178
178
  }
179
179
  h2 {
180
- font-size: var(--f-font-size-xxx-large);
180
+ font-size: 1.5rem;
181
181
  }
182
182
  h3 {
183
- font-size: var(--f-font-size-h4);
183
+ font-size: 1.25rem;
184
184
  }
185
185
  h4 {
186
- font-size: var(--f-font-size-large);
186
+ font-size: 1.125rem;
187
187
  }
188
188
  h5 {
189
- font-size: var(--f-font-size-standard);
189
+ font-size: 1rem;
190
190
  }
191
191
  h6 {
192
- font-size: var(--f-font-size-standard);
192
+ font-size: 1rem;
193
193
  }
194
194
  }
195
195
  h1 + h2 {
@@ -221,13 +221,13 @@ h5 + h6 {
221
221
 
222
222
  b,
223
223
  strong {
224
- font-weight: var(--f-font-weight-medium);
224
+ font-weight: 700;
225
225
  }
226
226
 
227
227
  code {
228
228
  font-size: var(--docs-font-size);
229
- border-radius: var(--f-border-radius-small);
230
- font-family: var(--f-font-family-code);
229
+ border-radius: 2px;
230
+ font-family: Consolas, "Liberation Mono", Courier, monospace;
231
231
  background-color: var(--docs-code-background-color);
232
232
  display: inline-block;
233
233
  margin: 0 0.25rem;
@@ -723,42 +723,6 @@ main {
723
723
  text-decoration: none;
724
724
  }
725
725
 
726
- #version button {
727
- padding: 0;
728
- background: transparent;
729
- border: 0;
730
- box-shadow: none;
731
- margin: 0;
732
- color: var(--f-text-color-discrete);
733
- text-decoration-color: var(--f-text-color-discrete);
734
- }
735
-
736
- #version-dialog {
737
- --docs-text-color-default: var(--docs-version-text-color);
738
- width: 30rem;
739
- max-height: 80vh;
740
- background: var(--docs-version-background-color);
741
- border: 1px solid var(--docs-version-border-color);
742
- color: var(--docs-text-color-default);
743
- }
744
- #version-dialog a {
745
- text-decoration: none;
746
- }
747
-
748
- #version-dialog-head {
749
- display: flex;
750
- justify-content: space-between;
751
- align-items: flex-start;
752
- }
753
-
754
- #version-dialog .list__item__itempane {
755
- padding: 0.2rem;
756
- }
757
-
758
- #version button:hover {
759
- background-color: #f4f4f4;
760
- }
761
-
762
726
  @keyframes skeleton {
763
727
  from {
764
728
  transform: translateX(-100%);
@@ -918,15 +882,6 @@ code.hljs {
918
882
  font-weight: bold;
919
883
  }
920
884
 
921
- /* reset broken FKUI reset */
922
- dialog {
923
- display: none;
924
- }
925
-
926
- dialog[open] {
927
- display: block;
928
- }
929
-
930
885
  dd > dl {
931
886
  border-left: 2px solid var(--docs-text-color-discrete);
932
887
  padding-left: 1rem;
@@ -1050,17 +1005,6 @@ header .page-header__logo::after {
1050
1005
  margin: 0 1rem;
1051
1006
  }
1052
1007
 
1053
- header .select-field {
1054
- --f-background-input-hover: #f4f4f4;
1055
- --f-input-shadow-inset: none;
1056
- padding-left: 1rem;
1057
- display: flex;
1058
- flex-direction: row;
1059
- align-items: center;
1060
- margin: 0;
1061
- width: var(--f-width-full, 100%);
1062
- }
1063
-
1064
1008
  header .page-header__right {
1065
1009
  justify-content: space-between;
1066
1010
  min-width: 0;
@@ -1082,24 +1026,6 @@ header .page-header__right-slot {
1082
1026
  display: none;
1083
1027
  }
1084
1028
  }
1085
- header .select-field__icon {
1086
- top: 0.5rem;
1087
- color: #1b1e23;
1088
- }
1089
-
1090
- header .select-field__select {
1091
- width: auto;
1092
- border: 1px solid #8d8e91;
1093
- padding-right: 3rem;
1094
- }
1095
-
1096
- header .label {
1097
- font-weight: 400;
1098
- color: var(--docs-text-color-discrete);
1099
- margin-right: 1rem;
1100
- margin-bottom: 0;
1101
- }
1102
-
1103
1029
  /* navigering vänster */
1104
1030
  #sidenav {
1105
1031
  background-color: var(--docs-menu-background-color);
@@ -1216,19 +1142,25 @@ main #aside dd {
1216
1142
  }
1217
1143
 
1218
1144
  /* Increased specificity to override button styling */
1219
- .code-preview .code-preview__fullscreen,
1220
- .code-preview .button.code-preview__toggle-markup {
1145
+ .code-preview .code-preview__button {
1146
+ border: none;
1147
+ background: transparent;
1148
+ cursor: pointer;
1221
1149
  display: inline-flex;
1222
1150
  align-items: center;
1223
1151
  width: fit-content;
1224
1152
  margin: 0;
1225
1153
  padding: 0.5rem;
1226
1154
  font-weight: 600;
1227
- line-height: var(--f-line-height-medium);
1155
+ line-height: 1.4;
1228
1156
  color: var(--docs-text-color-default);
1229
1157
  }
1230
- .code-preview .code-preview__fullscreen .icon,
1231
- .code-preview .button.code-preview__toggle-markup .icon {
1158
+ .code-preview .code-preview__button:focus-visible {
1159
+ border-radius: 0;
1160
+ box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #1b1e23, 0 0 0 6px #ffffff;
1161
+ outline: 3px solid transparent;
1162
+ }
1163
+ .code-preview .code-preview__button .icon {
1232
1164
  margin-right: 0.25rem;
1233
1165
  }
1234
1166
 
@@ -1283,86 +1215,6 @@ pre.mermaid:not([data-processed])::after {
1283
1215
  display: flex;
1284
1216
  }
1285
1217
 
1286
- kbd {
1287
- border: 1px solid #bbbbbd;
1288
- color: var(--docs-text-color-discrete);
1289
- padding: 0.1rem 0.5rem;
1290
- border-radius: 6px;
1291
- font-family: var(--docs-font-family);
1292
- }
1293
-
1294
- #search button {
1295
- background: transparent;
1296
- color: var(--docs-text-color-discrete);
1297
- border-radius: 4px;
1298
- border: 0;
1299
- box-shadow: none;
1300
- cursor: text;
1301
- min-height: 2.5rem;
1302
- padding: 0 0.75rem;
1303
- width: 100%;
1304
- }
1305
-
1306
- #search button:hover {
1307
- cursor: pointer;
1308
- background-color: var(--docs-search-button-color-hover);
1309
- }
1310
-
1311
- #search button:focus {
1312
- box-shadow: var(--f-focus-box-shadow);
1313
- }
1314
-
1315
- #search .search__icon {
1316
- display: inline-block;
1317
- height: 1rem;
1318
- margin-right: 0.5rem;
1319
- max-height: 100%;
1320
- max-width: 100%;
1321
- pointer-events: none;
1322
- width: 1rem;
1323
- }
1324
-
1325
- #search-dialog {
1326
- --docs-text-color-default: var(--docs-search-text-color);
1327
- margin-top: 80px;
1328
- background: var(--docs-search-background-color);
1329
- border: 1px solid var(--docs-search-border-color);
1330
- color: var(--docs-text-color-default);
1331
- width: 580px;
1332
- }
1333
-
1334
- #search-dialog label {
1335
- font-weight: 600;
1336
- font-size: 1.2rem;
1337
- margin-bottom: 1rem;
1338
- color: var(--docs-text-color-default);
1339
- }
1340
-
1341
- #search-results {
1342
- overflow-y: auto;
1343
- max-height: 60vh;
1344
- margin: 0.5rem 0;
1345
- padding: 0.2rem;
1346
- }
1347
-
1348
- #search-results a,
1349
- #search-results a:visited {
1350
- color: var(--docs-text-color-default);
1351
- text-decoration: none;
1352
- }
1353
-
1354
- #search-results .list__item--active {
1355
- background-color: #e5e5e5;
1356
- }
1357
-
1358
- #search-results .list__item:hover {
1359
- background-color: #e5e5e5;
1360
- }
1361
-
1362
- #search-results .list__item__itempane:focus {
1363
- background-color: #f4f4f4;
1364
- }
1365
-
1366
1218
  .docs-deprecated {
1367
1219
  color: var(--docs-error-color);
1368
1220
  }
@@ -1601,6 +1453,55 @@ textarea {
1601
1453
  display: none;
1602
1454
  padding: 1rem 1.5rem 0;
1603
1455
  }
1456
+ .cookie-warning__button-group {
1457
+ align-items: center;
1458
+ display: flex;
1459
+ flex-wrap: wrap;
1460
+ gap: 1rem;
1461
+ margin-bottom: 1.5rem;
1462
+ margin-top: 0.25rem;
1463
+ }
1464
+ .cookie-warning__button {
1465
+ border: 2px solid transparent;
1466
+ border-radius: 4px;
1467
+ box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
1468
+ cursor: pointer;
1469
+ font-weight: 600;
1470
+ letter-spacing: 0.01rem;
1471
+ line-height: 1.5rem;
1472
+ max-width: 100%;
1473
+ width: 100%;
1474
+ text-align: center;
1475
+ transition: background-color 350ms ease-out;
1476
+ padding: 1rem 1.5rem;
1477
+ }
1478
+ @media (width >= 768px) {
1479
+ .cookie-warning__button {
1480
+ max-width: none;
1481
+ width: auto;
1482
+ }
1483
+ }
1484
+ .cookie-warning__button:active, .cookie-warning__button:focus {
1485
+ outline: 3px solid transparent;
1486
+ border-radius: 0;
1487
+ box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #1b1e23, 0 0 0 6px #ffffff;
1488
+ }
1489
+ .cookie-warning__button--primary {
1490
+ background-color: #4a52b6;
1491
+ border-color: transparent;
1492
+ color: #fff;
1493
+ }
1494
+ .cookie-warning__button--primary:hover, .cookie-warning__button--primary:active, .cookie-warning__button--primary:focus {
1495
+ background-color: #3b4292;
1496
+ }
1497
+ .cookie-warning__button--secondary {
1498
+ background-color: #f5f6fa;
1499
+ border-color: #4a52b6;
1500
+ color: #4a52b6;
1501
+ }
1502
+ .cookie-warning__button--secondary:hover, .cookie-warning__button--secondary:active, .cookie-warning__button--secondary:focus {
1503
+ background-color: #e5e5f5;
1504
+ }
1604
1505
 
1605
1506
  .docs-motd {
1606
1507
  padding: 1.5rem;
@@ -1640,6 +1541,204 @@ textarea {
1640
1541
  width: 1.5rem;
1641
1542
  }
1642
1543
 
1544
+ .docs-modal__header {
1545
+ display: flex;
1546
+ justify-content: space-between;
1547
+ align-items: flex-start;
1548
+ }
1549
+ .docs-modal__title {
1550
+ color: #1b1e23;
1551
+ font-size: 1.5rem;
1552
+ letter-spacing: initial;
1553
+ }
1554
+ .docs-modal__close {
1555
+ align-items: center;
1556
+ background: inherit;
1557
+ border: none;
1558
+ color: #1b1e23;
1559
+ cursor: pointer;
1560
+ display: flex;
1561
+ font-weight: 700;
1562
+ gap: 0.5rem;
1563
+ margin: 0.375rem;
1564
+ padding: 0.125rem 0.625rem;
1565
+ }
1566
+ .docs-modal__close .icon {
1567
+ min-width: 1rem;
1568
+ }
1569
+ .docs-modal::backdrop {
1570
+ background: rgba(0, 0, 0, 0.75);
1571
+ backdrop-filter: blur(5px);
1572
+ }
1573
+
1574
+ .docs-modal-active {
1575
+ overflow: hidden;
1576
+ }
1577
+
1578
+ /* reset broken FKUI reset */
1579
+ dialog {
1580
+ display: none;
1581
+ }
1582
+ dialog[open] {
1583
+ display: block;
1584
+ }
1585
+
1586
+ kbd {
1587
+ border: 1px solid #bbbbbd;
1588
+ color: var(--docs-text-color-discrete);
1589
+ padding: 0.1rem 0.5rem;
1590
+ border-radius: 6px;
1591
+ font-family: var(--docs-font-family);
1592
+ }
1593
+
1594
+ #search button {
1595
+ background: transparent;
1596
+ color: var(--docs-text-color-discrete);
1597
+ border-radius: 4px;
1598
+ border: 0;
1599
+ box-shadow: none;
1600
+ cursor: text;
1601
+ min-height: 2.5rem;
1602
+ padding: 0 0.75rem;
1603
+ width: 100%;
1604
+ }
1605
+
1606
+ #search button:hover {
1607
+ cursor: pointer;
1608
+ background-color: var(--docs-search-button-color-hover);
1609
+ }
1610
+
1611
+ #search button:focus-visible {
1612
+ border-radius: 0;
1613
+ box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #1b1e23, 0 0 0 6px #ffffff;
1614
+ outline: 3px solid transparent;
1615
+ }
1616
+
1617
+ #search .search__icon {
1618
+ display: inline-block;
1619
+ height: 1rem;
1620
+ margin-right: 0.5rem;
1621
+ max-height: 100%;
1622
+ max-width: 100%;
1623
+ pointer-events: none;
1624
+ width: 1rem;
1625
+ }
1626
+
1627
+ #search-dialog {
1628
+ --docs-text-color-default: var(--docs-search-text-color);
1629
+ margin-top: 80px;
1630
+ background: var(--docs-search-background-color);
1631
+ border: 1px solid var(--docs-search-border-color);
1632
+ color: var(--docs-text-color-default);
1633
+ width: 580px;
1634
+ }
1635
+
1636
+ .docs-search-dialog__input {
1637
+ background-color: #fff;
1638
+ box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.1);
1639
+ border-radius: 4px;
1640
+ border: 2px solid #8d8e91;
1641
+ min-height: 2.5rem;
1642
+ padding: 0 0.75rem;
1643
+ width: 100%;
1644
+ margin: 0 0 1.5rem;
1645
+ }
1646
+ .docs-search-dialog__input:focus {
1647
+ border-radius: 0;
1648
+ box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #1b1e23, 0 0 0 6px #ffffff;
1649
+ outline: 3px solid transparent;
1650
+ }
1651
+ .docs-search-dialog__input::-ms-clear {
1652
+ display: none;
1653
+ }
1654
+ .docs-search-dialog__input::-webkit-search-decoration, .docs-search-dialog__input::-webkit-search-cancel-button, .docs-search-dialog__input::-webkit-search-results-button, .docs-search-dialog__input::-webkit-search-results-decoration {
1655
+ appearance: none;
1656
+ }
1657
+
1658
+ .docs-search-result__list {
1659
+ overflow-y: auto;
1660
+ max-height: 60vh;
1661
+ margin: 0.5rem 0 1.5rem;
1662
+ padding: 0.2rem;
1663
+ }
1664
+ .docs-search-result__item {
1665
+ display: flex;
1666
+ border: 2px solid #8d8e91;
1667
+ background: #fff;
1668
+ }
1669
+ .docs-search-result__item:not(:last-child) {
1670
+ border-bottom: none;
1671
+ }
1672
+ .docs-search-result__item:focus-within .docs-search-result__item:hover {
1673
+ background-color: #e5e5e5;
1674
+ cursor: pointer;
1675
+ }
1676
+ .docs-search-result__item--active {
1677
+ background-color: #e5e5e5;
1678
+ }
1679
+ .docs-search-result__link {
1680
+ width: 100%;
1681
+ padding: 1.25rem;
1682
+ text-decoration: none;
1683
+ color: var(--docs-text-color-default);
1684
+ }
1685
+ .docs-search-result__link, .docs-search-result__link:visited {
1686
+ color: var(--docs-text-color-default);
1687
+ text-decoration: none;
1688
+ }
1689
+ .docs-search-result__link:focus-visible {
1690
+ box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #1b1e23, 0 0 0 6px #ffffff;
1691
+ outline: 3px solid transparent;
1692
+ }
1693
+
1694
+ #version button {
1695
+ padding: 0;
1696
+ background: transparent;
1697
+ border: 0;
1698
+ box-shadow: none;
1699
+ margin: 0;
1700
+ color: #5f6165;
1701
+ text-decoration-color: #5f6165;
1702
+ }
1703
+ #version button:hover {
1704
+ background-color: #f4f4f4;
1705
+ }
1706
+
1707
+ #version-dialog {
1708
+ width: 30rem;
1709
+ max-height: 80vh;
1710
+ background: var(--docs-version-background-color);
1711
+ border: 1px solid var(--docs-version-border-color);
1712
+ color: var(--docs-text-color-default);
1713
+ }
1714
+
1715
+ .docs-selectable-version__list {
1716
+ margin: 0 0 1.5rem;
1717
+ padding-left: 0;
1718
+ }
1719
+ .docs-selectable-version__item {
1720
+ display: flex;
1721
+ border: 2px solid #8d8e91;
1722
+ background: #fff;
1723
+ }
1724
+ .docs-selectable-version__item:not(:last-child) {
1725
+ border-bottom: none;
1726
+ }
1727
+ .docs-selectable-version__item:focus-within, .docs-selectable-version__item:hover {
1728
+ background: #e5e5f5;
1729
+ cursor: pointer;
1730
+ }
1731
+ .docs-selectable-version__link {
1732
+ width: 100%;
1733
+ padding: 0.2rem;
1734
+ text-decoration: none;
1735
+ color: var(--docs-text-color-default);
1736
+ }
1737
+ .docs-selectable-version__link:focus-visible {
1738
+ box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #1b1e23, 0 0 0 6px #ffffff;
1739
+ outline: 3px solid transparent;
1740
+ }
1741
+
1643
1742
  .version {
1644
1743
  color: var(--docs-text-color-discrete);
1645
1744
  text-wrap: nowrap;
@@ -1654,6 +1753,7 @@ textarea {
1654
1753
 
1655
1754
  html {
1656
1755
  scroll-behavior: smooth;
1756
+ scrollbar-gutter: stable;
1657
1757
  }
1658
1758
 
1659
1759
  html,