@forsakringskassan/docs-generator 2.38.3 → 2.38.5

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;
@@ -282,6 +282,7 @@ pre code {
282
282
  background-color: var(--docs-topnav-background-color);
283
283
  margin: 0 -0.5rem;
284
284
  overflow: hidden;
285
+ flex-grow: 1;
285
286
  }
286
287
  .docs-topnav__list {
287
288
  display: flex;
@@ -722,42 +723,6 @@ main {
722
723
  text-decoration: none;
723
724
  }
724
725
 
725
- #version button {
726
- padding: 0;
727
- background: transparent;
728
- border: 0;
729
- box-shadow: none;
730
- margin: 0;
731
- color: var(--f-text-color-discrete);
732
- text-decoration-color: var(--f-text-color-discrete);
733
- }
734
-
735
- #version-dialog {
736
- --docs-text-color-default: var(--docs-version-text-color);
737
- width: 30rem;
738
- max-height: 80vh;
739
- background: var(--docs-version-background-color);
740
- border: 1px solid var(--docs-version-border-color);
741
- color: var(--docs-text-color-default);
742
- }
743
- #version-dialog a {
744
- text-decoration: none;
745
- }
746
-
747
- #version-dialog-head {
748
- display: flex;
749
- justify-content: space-between;
750
- align-items: flex-start;
751
- }
752
-
753
- #version-dialog .list__item__itempane {
754
- padding: 0.2rem;
755
- }
756
-
757
- #version button:hover {
758
- background-color: #f4f4f4;
759
- }
760
-
761
726
  @keyframes skeleton {
762
727
  from {
763
728
  transform: translateX(-100%);
@@ -917,15 +882,6 @@ code.hljs {
917
882
  font-weight: bold;
918
883
  }
919
884
 
920
- /* reset broken FKUI reset */
921
- dialog {
922
- display: none;
923
- }
924
-
925
- dialog[open] {
926
- display: block;
927
- }
928
-
929
885
  dd > dl {
930
886
  border-left: 2px solid var(--docs-text-color-discrete);
931
887
  padding-left: 1rem;
@@ -1057,7 +1013,7 @@ header .select-field {
1057
1013
  flex-direction: row;
1058
1014
  align-items: center;
1059
1015
  margin: 0;
1060
- width: var(--f-width-full, 100%);
1016
+ width: 100%;
1061
1017
  }
1062
1018
 
1063
1019
  header .page-header__right {
@@ -1215,17 +1171,27 @@ main #aside dd {
1215
1171
  }
1216
1172
 
1217
1173
  /* Increased specificity to override button styling */
1218
- .code-preview .code-preview__fullscreen,
1219
- .code-preview .button.code-preview__toggle-markup {
1174
+ .code-preview .code-preview__button {
1175
+ border: none;
1176
+ background: transparent;
1177
+ cursor: pointer;
1220
1178
  display: inline-flex;
1221
1179
  align-items: center;
1222
1180
  width: fit-content;
1223
1181
  margin: 0;
1224
1182
  padding: 0.5rem;
1225
1183
  font-weight: 600;
1226
- line-height: var(--f-line-height-medium);
1184
+ line-height: 1.4;
1227
1185
  color: var(--docs-text-color-default);
1228
1186
  }
1187
+ .code-preview .code-preview__button:focus-visible {
1188
+ border-radius: 0;
1189
+ box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #1b1e23, 0 0 0 6px #ffffff;
1190
+ outline: 3px solid transparent;
1191
+ }
1192
+ .code-preview .code-preview__button .icon {
1193
+ margin-right: 0.25rem;
1194
+ }
1229
1195
 
1230
1196
  .code-preview code {
1231
1197
  margin: 0;
@@ -1259,18 +1225,17 @@ pre.mermaid:not([data-processed])::after {
1259
1225
  }
1260
1226
  }
1261
1227
 
1228
+ /*
1229
+ Technical debt: This is a temporary solution since docs-live-example is
1230
+ currently depending on this class for the code icon.
1231
+ docs-live-example should carry its own icon instead of relying on this class.
1232
+ */
1262
1233
  .icon--code {
1263
1234
  background: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCI+PHBhdGggZmlsbD0ibm9uZSIgZD0iTTAgMGgyNHYyNEgwVjB6Ii8+PHBhdGggZD0iTTkuNCAxNi42TDQuOCAxMmw0LjYtNC42TDggNmwtNiA2IDYgNiAxLjQtMS40em01LjIgMGw0LjYtNC42LTQuNi00LjZMMTYgNmw2IDYtNiA2LTEuNC0xLjR6Ii8+PC9zdmc+") no-repeat;
1264
1235
  background-size: contain;
1265
1236
  margin-right: 0.25rem;
1266
1237
  }
1267
1238
 
1268
- .icon--fullscreen {
1269
- background: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMWVtIiB2aWV3Qm94PSIwIDAgNDQ4IDUxMiI+PCEtLSEgRm9udCBBd2Vzb21lIEZyZWUgNi40LjIgYnkgQGZvbnRhd2Vzb21lIC0gaHR0cHM6Ly9mb250YXdlc29tZS5jb20gTGljZW5zZSAtIGh0dHBzOi8vZm9udGF3ZXNvbWUuY29tL2xpY2Vuc2UgKENvbW1lcmNpYWwgTGljZW5zZSkgQ29weXJpZ2h0IDIwMjMgRm9udGljb25zLCBJbmMuIC0tPjxwYXRoIGQ9Ik0xNjAgNjRjMC0xNy43LTE0LjMtMzItMzItMzJzLTMyIDE0LjMtMzIgMzJ2NjRIMzJjLTE3LjcgMC0zMiAxNC4zLTMyIDMyczE0LjMgMzIgMzIgMzJoOTZjMTcuNyAwIDMyLTE0LjMgMzItMzJWNjR6TTMyIDMyMGMtMTcuNyAwLTMyIDE0LjMtMzIgMzJzMTQuMyAzMiAzMiAzMkg5NnY2NGMwIDE3LjcgMTQuMyAzMiAzMiAzMnMzMi0xNC4zIDMyLTMyVjM1MmMwLTE3LjctMTQuMy0zMi0zMi0zMkgzMnpNMzUyIDY0YzAtMTcuNy0xNC4zLTMyLTMyLTMycy0zMiAxNC4zLTMyIDMydjk2YzAgMTcuNyAxNC4zIDMyIDMyIDMyaDk2YzE3LjcgMCAzMi0xNC4zIDMyLTMycy0xNC4zLTMyLTMyLTMySDM1MlY2NHpNMzIwIDMyMGMtMTcuNyAwLTMyIDE0LjMtMzIgMzJ2OTZjMCAxNy43IDE0LjMgMzIgMzIgMzJzMzItMTQuMyAzMi0zMlYzODRoNjRjMTcuNyAwIDMyLTE0LjMgMzItMzJzLTE0LjMtMzItMzItMzJIMzIweiIvPjwvc3ZnPgo=") no-repeat;
1270
- background-size: contain;
1271
- margin-right: 0.25rem;
1272
- }
1273
-
1274
1239
  .toolbar {
1275
1240
  display: flex;
1276
1241
  align-items: center;
@@ -1279,86 +1244,6 @@ pre.mermaid:not([data-processed])::after {
1279
1244
  display: flex;
1280
1245
  }
1281
1246
 
1282
- kbd {
1283
- border: 1px solid #bbbbbd;
1284
- color: var(--docs-text-color-discrete);
1285
- padding: 0.1rem 0.5rem;
1286
- border-radius: 6px;
1287
- font-family: var(--docs-font-family);
1288
- }
1289
-
1290
- #search button {
1291
- background: transparent;
1292
- color: var(--docs-text-color-discrete);
1293
- border-radius: 4px;
1294
- border: 0;
1295
- box-shadow: none;
1296
- cursor: text;
1297
- min-height: 2.5rem;
1298
- padding: 0 0.75rem;
1299
- width: 100%;
1300
- }
1301
-
1302
- #search button:hover {
1303
- cursor: pointer;
1304
- background-color: var(--docs-search-button-color-hover);
1305
- }
1306
-
1307
- #search button:focus {
1308
- box-shadow: var(--f-focus-box-shadow);
1309
- }
1310
-
1311
- #search .search__icon {
1312
- display: inline-block;
1313
- height: 1rem;
1314
- margin-right: 0.5rem;
1315
- max-height: 100%;
1316
- max-width: 100%;
1317
- pointer-events: none;
1318
- width: 1rem;
1319
- }
1320
-
1321
- #search-dialog {
1322
- --docs-text-color-default: var(--docs-search-text-color);
1323
- margin-top: 80px;
1324
- background: var(--docs-search-background-color);
1325
- border: 1px solid var(--docs-search-border-color);
1326
- color: var(--docs-text-color-default);
1327
- width: 580px;
1328
- }
1329
-
1330
- #search-dialog label {
1331
- font-weight: 600;
1332
- font-size: 1.2rem;
1333
- margin-bottom: 1rem;
1334
- color: var(--docs-text-color-default);
1335
- }
1336
-
1337
- #search-results {
1338
- overflow-y: auto;
1339
- max-height: 60vh;
1340
- margin: 0.5rem 0;
1341
- padding: 0.2rem;
1342
- }
1343
-
1344
- #search-results a,
1345
- #search-results a:visited {
1346
- color: var(--docs-text-color-default);
1347
- text-decoration: none;
1348
- }
1349
-
1350
- #search-results .list__item--active {
1351
- background-color: #e5e5e5;
1352
- }
1353
-
1354
- #search-results .list__item:hover {
1355
- background-color: #e5e5e5;
1356
- }
1357
-
1358
- #search-results .list__item__itempane:focus {
1359
- background-color: #f4f4f4;
1360
- }
1361
-
1362
1247
  .docs-deprecated {
1363
1248
  color: var(--docs-error-color);
1364
1249
  }