@gemeentenijmegen/semantic-html 0.0.2-alpha.46 → 0.0.2-alpha.47
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.
- package/dist/index.css +345 -0
- package/package.json +3 -3
- package/src/component-library-class-mapping/_mixin.scss +40 -0
- package/src/index.scss +6 -0
package/dist/index.css
CHANGED
|
@@ -295,6 +295,18 @@ however browsers don't seem to have implemented great looking supixel tweening y
|
|
|
295
295
|
* Copyright (c) 2021-2024 Gemeente Utrecht
|
|
296
296
|
*/
|
|
297
297
|
/* stylelint-disable-next-line block-no-empty */
|
|
298
|
+
/**
|
|
299
|
+
* @license EUPL-1.2
|
|
300
|
+
* Copyright (c) 2020-2024 Frameless B.V.
|
|
301
|
+
* Copyright (c) 2021-2024 Gemeente Utrecht
|
|
302
|
+
*/
|
|
303
|
+
/**
|
|
304
|
+
* @license EUPL-1.2
|
|
305
|
+
* Copyright (c) 2020-2024 Frameless B.V.
|
|
306
|
+
* Copyright (c) 2021-2024 Gemeente Utrecht
|
|
307
|
+
*/
|
|
308
|
+
/* stylelint-disable-next-line block-no-empty */
|
|
309
|
+
/* stylelint-disable-next-line block-no-empty */
|
|
298
310
|
.nijmegen-html {
|
|
299
311
|
writing-mode: horizontal-tb;
|
|
300
312
|
/* reset `font-smoothing: antialiasing`, prefer automatic (`subpixel-antialiasing`) behavior for high-dpi screens */
|
|
@@ -1038,6 +1050,7 @@ however browsers don't seem to have implemented great looking supixel tweening y
|
|
|
1038
1050
|
}
|
|
1039
1051
|
.nijmegen-html button:has(+ button) {
|
|
1040
1052
|
margin-block-end: var(--utrecht-rich-text-friend-margin-block-end);
|
|
1053
|
+
margin-inline-end: var(--utrecht-rich-text-friend-margin-block-end);
|
|
1041
1054
|
}
|
|
1042
1055
|
.nijmegen-html button:has(+ p) {
|
|
1043
1056
|
margin-block-end: var(--utrecht-rich-text-friend-margin-block-end);
|
|
@@ -1182,4 +1195,336 @@ however browsers don't seem to have implemented great looking supixel tweening y
|
|
|
1182
1195
|
}
|
|
1183
1196
|
.nijmegen-html a:has(+ a) {
|
|
1184
1197
|
margin-block-end: var(--utrecht-rich-text-friend-margin-block-end);
|
|
1198
|
+
}
|
|
1199
|
+
|
|
1200
|
+
.nijmegen-component-library-mapping {
|
|
1201
|
+
writing-mode: horizontal-tb;
|
|
1202
|
+
}
|
|
1203
|
+
.nijmegen-component-library-mapping .btn {
|
|
1204
|
+
/*
|
|
1205
|
+
`--_utrecht-button-hint` is the internal prefix for the applied optional hint, it is not an API.
|
|
1206
|
+
The hint color takes priority over the appearance color.
|
|
1207
|
+
|
|
1208
|
+
`--_utrecht-button-appearance` is the internal prefix for the appearance
|
|
1209
|
+
(primary-action, secondary-action or subtle), it is not an API.
|
|
1210
|
+
*/
|
|
1211
|
+
--_utrecht-button-background-color: var(
|
|
1212
|
+
--_utrecht-button-hint-background-color,
|
|
1213
|
+
var(--_utrecht-button-appearance-background-color, var(--utrecht-button-background-color))
|
|
1214
|
+
);
|
|
1215
|
+
--_utrecht-button-color: var(
|
|
1216
|
+
--_utrecht-button-hint-color,
|
|
1217
|
+
var(--_utrecht-button-appearance-color, var(--utrecht-button-color))
|
|
1218
|
+
);
|
|
1219
|
+
--_utrecht-button-border-color: var(
|
|
1220
|
+
--_utrecht-button-hint-border-color,
|
|
1221
|
+
var(--_utrecht-button-appearance-border-color, var(--utrecht-button-border-color, transparent))
|
|
1222
|
+
);
|
|
1223
|
+
--_utrecht-button-border-bottom-color: var(
|
|
1224
|
+
--_utrecht-button-hint-border-bottom-color,
|
|
1225
|
+
var(
|
|
1226
|
+
--_utrecht-button-hint-border-color,
|
|
1227
|
+
var(
|
|
1228
|
+
--_utrecht-button-appearance-border-bottom-color,
|
|
1229
|
+
var(
|
|
1230
|
+
--_utrecht-button-appearance-border-color,
|
|
1231
|
+
var(--utrecht-button-border-bottom-color, var(--utrecht-button-border-color, transparent))
|
|
1232
|
+
)
|
|
1233
|
+
)
|
|
1234
|
+
)
|
|
1235
|
+
);
|
|
1236
|
+
--_utrecht-button-disabled-background-color: var(
|
|
1237
|
+
--_utrecht-button-hint-disabled-background-color,
|
|
1238
|
+
var(
|
|
1239
|
+
--_utrecht-button-appearance-disabled-background-color,
|
|
1240
|
+
var(--utrecht-button-disabled-background-color, var(--utrecht-button-background-color))
|
|
1241
|
+
)
|
|
1242
|
+
);
|
|
1243
|
+
--_utrecht-button-disabled-border-color: var(
|
|
1244
|
+
--_utrecht-button-hint-disabled-border-color,
|
|
1245
|
+
var(
|
|
1246
|
+
--_utrecht-button-appearance-disabled-border-color,
|
|
1247
|
+
var(--utrecht-button-disabled-border-color, var(--utrecht-button-border-color))
|
|
1248
|
+
)
|
|
1249
|
+
);
|
|
1250
|
+
--_utrecht-button-disabled-color: var(
|
|
1251
|
+
--_utrecht-button-hint-disabled-color,
|
|
1252
|
+
var(--_utrecht-button-appearance-disabled-color, var(--utrecht-button-disabled-color, var(--utrecht-button-color)))
|
|
1253
|
+
);
|
|
1254
|
+
--_utrecht-button-pressed-background-color: var(
|
|
1255
|
+
--_utrecht-button-hint-pressed-background-color,
|
|
1256
|
+
var(
|
|
1257
|
+
--_utrecht-button-hint-background-color,
|
|
1258
|
+
var(
|
|
1259
|
+
--_utrecht-button-appearance-pressed-background-color,
|
|
1260
|
+
var(
|
|
1261
|
+
--_utrecht-button-appearance-background-color,
|
|
1262
|
+
var(--utrecht-button-pressed-background-color, var(--utrecht-button-background-color))
|
|
1263
|
+
)
|
|
1264
|
+
)
|
|
1265
|
+
)
|
|
1266
|
+
);
|
|
1267
|
+
--_utrecht-button-pressed-border-color: var(
|
|
1268
|
+
--_utrecht-button-hint-pressed-border-color,
|
|
1269
|
+
var(
|
|
1270
|
+
--_utrecht-button-hint-border-color,
|
|
1271
|
+
var(
|
|
1272
|
+
--_utrecht-button-appearance-pressed-border-color,
|
|
1273
|
+
var(
|
|
1274
|
+
--_utrecht-button-appearance-border-color,
|
|
1275
|
+
var(--utrecht-button-pressed-border-color, var(--utrecht-button-border-color))
|
|
1276
|
+
)
|
|
1277
|
+
)
|
|
1278
|
+
)
|
|
1279
|
+
);
|
|
1280
|
+
--_utrecht-button-pressed-color: var(
|
|
1281
|
+
--_utrecht-button-hint-pressed-color,
|
|
1282
|
+
var(
|
|
1283
|
+
--_utrecht-button-hint-color,
|
|
1284
|
+
var(
|
|
1285
|
+
--_utrecht-button-appearance-pressed-color,
|
|
1286
|
+
var(--_utrecht-button-appearance-color, var(--utrecht-button-pressed-color, var(--utrecht-button-color)))
|
|
1287
|
+
)
|
|
1288
|
+
)
|
|
1289
|
+
);
|
|
1290
|
+
--_utrecht-button-focus-background-color: var(
|
|
1291
|
+
--_utrecht-button-hint-focus-background-color,
|
|
1292
|
+
var(
|
|
1293
|
+
--_utrecht-button-hint-background-color,
|
|
1294
|
+
var(
|
|
1295
|
+
--_utrecht-button-appearance-focus-background-color,
|
|
1296
|
+
var(
|
|
1297
|
+
--_utrecht-button-appearance-background-color,
|
|
1298
|
+
var(--utrecht-button-focus-background-color, var(--utrecht-button-background-color))
|
|
1299
|
+
)
|
|
1300
|
+
)
|
|
1301
|
+
)
|
|
1302
|
+
);
|
|
1303
|
+
--_utrecht-button-focus-border-color: var(
|
|
1304
|
+
--_utrecht-button-hint-focus-border-color,
|
|
1305
|
+
var(
|
|
1306
|
+
--_utrecht-button-hint-border-color,
|
|
1307
|
+
var(
|
|
1308
|
+
--_utrecht-button-appearance-focus-border-color,
|
|
1309
|
+
var(
|
|
1310
|
+
--_utrecht-button-appearance-border-color,
|
|
1311
|
+
var(--utrecht-button-focus-border-color, var(--utrecht-button-border-color))
|
|
1312
|
+
)
|
|
1313
|
+
)
|
|
1314
|
+
)
|
|
1315
|
+
);
|
|
1316
|
+
--_utrecht-button-focus-color: var(
|
|
1317
|
+
--_utrecht-button-hint-focus-color,
|
|
1318
|
+
var(
|
|
1319
|
+
--_utrecht-button-hint-color,
|
|
1320
|
+
var(
|
|
1321
|
+
--_utrecht-button-appearance-focus-color,
|
|
1322
|
+
var(--_utrecht-button-appearance-color, var(--utrecht-button-focus-color, var(--utrecht-button-color)))
|
|
1323
|
+
)
|
|
1324
|
+
)
|
|
1325
|
+
);
|
|
1326
|
+
--_utrecht-button-hover-background-color: var(
|
|
1327
|
+
--_utrecht-button-hint-hover-background-color,
|
|
1328
|
+
var(
|
|
1329
|
+
--_utrecht-button-hint-background-color,
|
|
1330
|
+
var(
|
|
1331
|
+
--_utrecht-button-appearance-hover-background-color,
|
|
1332
|
+
var(
|
|
1333
|
+
--_utrecht-button-appearance-background-color,
|
|
1334
|
+
var(--utrecht-button-hover-background-color, var(--utrecht-button-background-color))
|
|
1335
|
+
)
|
|
1336
|
+
)
|
|
1337
|
+
)
|
|
1338
|
+
);
|
|
1339
|
+
--_utrecht-button-hover-border-color: var(
|
|
1340
|
+
--_utrecht-button-hint-hover-border-color,
|
|
1341
|
+
var(
|
|
1342
|
+
--_utrecht-button-hint-border-color,
|
|
1343
|
+
var(
|
|
1344
|
+
--_utrecht-button-appearance-hover-border-color,
|
|
1345
|
+
var(
|
|
1346
|
+
--_utrecht-button-appearance-border-color,
|
|
1347
|
+
var(--utrecht-button-hover-border-color, var(--utrecht-button-border-color))
|
|
1348
|
+
)
|
|
1349
|
+
)
|
|
1350
|
+
)
|
|
1351
|
+
);
|
|
1352
|
+
--_utrecht-button-hover-color: var(
|
|
1353
|
+
--_utrecht-button-hint-hover-color,
|
|
1354
|
+
var(
|
|
1355
|
+
--_utrecht-button-hint-color,
|
|
1356
|
+
var(
|
|
1357
|
+
--_utrecht-button-appearance-hover-color,
|
|
1358
|
+
var(--_utrecht-button-appearance-color, var(--utrecht-button-hover-color, var(--utrecht-button-color)))
|
|
1359
|
+
)
|
|
1360
|
+
)
|
|
1361
|
+
);
|
|
1362
|
+
--_utrecht-button-active-background-color: var(
|
|
1363
|
+
--_utrecht-button-hint-active-background-color,
|
|
1364
|
+
var(
|
|
1365
|
+
--_utrecht-button-hint-background-color,
|
|
1366
|
+
var(
|
|
1367
|
+
--_utrecht-button-appearance-active-background-color,
|
|
1368
|
+
var(
|
|
1369
|
+
--_utrecht-button-appearance-background-color,
|
|
1370
|
+
var(--utrecht-button-active-background-color, var(--utrecht-button-background-color))
|
|
1371
|
+
)
|
|
1372
|
+
)
|
|
1373
|
+
)
|
|
1374
|
+
);
|
|
1375
|
+
--_utrecht-button-active-border-color: var(
|
|
1376
|
+
--_utrecht-button-hint-active-border-color,
|
|
1377
|
+
var(
|
|
1378
|
+
--_utrecht-button-hint-border-color,
|
|
1379
|
+
var(
|
|
1380
|
+
--_utrecht-button-appearance-active-border-color,
|
|
1381
|
+
var(
|
|
1382
|
+
--_utrecht-button-appearance-border-color,
|
|
1383
|
+
var(--utrecht-button-active-border-color, var(--utrecht-button-border-color))
|
|
1384
|
+
)
|
|
1385
|
+
)
|
|
1386
|
+
)
|
|
1387
|
+
);
|
|
1388
|
+
--_utrecht-button-active-color: var(
|
|
1389
|
+
--_utrecht-button-hint-active-color,
|
|
1390
|
+
var(
|
|
1391
|
+
--_utrecht-button-hint-color,
|
|
1392
|
+
var(
|
|
1393
|
+
--_utrecht-button-appearance-active-color,
|
|
1394
|
+
var(--_utrecht-button-appearance-color, var(--utrecht-button-active-color, var(--utrecht-button-color)))
|
|
1395
|
+
)
|
|
1396
|
+
)
|
|
1397
|
+
);
|
|
1398
|
+
--_utrecht-button-border-width: var(--_utrecht-button-appearance-border-width, var(--utrecht-button-border-width, 0));
|
|
1399
|
+
--_utrecht-button-border-block-end-width: var(
|
|
1400
|
+
--utrecht-button-border-bottom-width,
|
|
1401
|
+
var(--_utrecht-button-border-width, 0)
|
|
1402
|
+
);
|
|
1403
|
+
--_utrecht-button-font-size: var(--_utrecht-button-appearance-font-size, var(--utrecht-button-font-size));
|
|
1404
|
+
--_utrecht-button-line-height: var(--_utrecht-button-appearance-line-height, var(--utrecht-button-line-height));
|
|
1405
|
+
--utrecht-icon-size: var(--utrecht-button-icon-size, 1em);
|
|
1406
|
+
align-items: center;
|
|
1407
|
+
background-color: var(--_utrecht-button-background-color);
|
|
1408
|
+
block-size: fit-content;
|
|
1409
|
+
border-block-end-color: var(--_utrecht-button-border-bottom-color);
|
|
1410
|
+
border-block-end-width: var(--_utrecht-button-border-block-end-width);
|
|
1411
|
+
border-color: var(--_utrecht-button-border-color);
|
|
1412
|
+
border-radius: var(--utrecht-button-border-radius);
|
|
1413
|
+
border-style: solid;
|
|
1414
|
+
border-width: var(--_utrecht-button-border-width);
|
|
1415
|
+
box-sizing: border-box;
|
|
1416
|
+
color: var(--_utrecht-button-color);
|
|
1417
|
+
column-gap: var(--utrecht-button-column-gap);
|
|
1418
|
+
cursor: var(--utrecht-action-activate-cursor, revert);
|
|
1419
|
+
display: inline-flex;
|
|
1420
|
+
font-family: var(--utrecht-button-font-family, var(--utrecht-document-font-family));
|
|
1421
|
+
font-size: var(--_utrecht-button-font-size, var(--utrecht-document-font-family, inherit));
|
|
1422
|
+
font-weight: var(--_utrecht-button-appearance-font-weight, var(--utrecht-button-font-weight));
|
|
1423
|
+
inline-size: var(--utrecht-button-inline-size, auto);
|
|
1424
|
+
justify-content: center;
|
|
1425
|
+
line-height: var(--_utrecht-button-line-height);
|
|
1426
|
+
max-inline-size: var(--utrecht-button-max-inline-size, fit-content);
|
|
1427
|
+
min-block-size: var(--utrecht-button-min-block-size, 44px);
|
|
1428
|
+
min-inline-size: var(--utrecht-button-min-inline-size, 44px);
|
|
1429
|
+
padding-block-end: var(--utrecht-button-padding-block-end);
|
|
1430
|
+
padding-block-start: var(--utrecht-button-padding-block-start);
|
|
1431
|
+
padding-inline-end: var(--utrecht-button-padding-inline-end);
|
|
1432
|
+
padding-inline-start: var(--utrecht-button-padding-inline-start);
|
|
1433
|
+
scale: 1;
|
|
1434
|
+
text-transform: var(--utrecht-button-text-transform);
|
|
1435
|
+
-webkit-user-select: none;
|
|
1436
|
+
user-select: none;
|
|
1437
|
+
box-shadow: none;
|
|
1438
|
+
letter-spacing: normal;
|
|
1439
|
+
width: initial;
|
|
1440
|
+
}
|
|
1441
|
+
.nijmegen-component-library-mapping .btn:disabled {
|
|
1442
|
+
background-color: var(--_utrecht-button-disabled-background-color);
|
|
1443
|
+
border-color: var(--_utrecht-button-disabled-border-color);
|
|
1444
|
+
color: var(--_utrecht-button-disabled-color);
|
|
1445
|
+
cursor: var(--utrecht-action-disabled-cursor, not-allowed);
|
|
1446
|
+
}
|
|
1447
|
+
.nijmegen-component-library-mapping .btn:focus:not(:disabled, [aria-disabled=true]) {
|
|
1448
|
+
background-color: var(--_utrecht-button-focus-background-color);
|
|
1449
|
+
border-color: var(--_utrecht-button-focus-border-color);
|
|
1450
|
+
color: var(--_utrecht-button-focus-color);
|
|
1451
|
+
scale: var(--utrecht-button-focus-scale, 1);
|
|
1452
|
+
}
|
|
1453
|
+
.nijmegen-component-library-mapping .btn:focus-visible {
|
|
1454
|
+
background-color: var(--_utrecht-button-focus-background-color);
|
|
1455
|
+
border-color: var(--_utrecht-button-focus-border-color);
|
|
1456
|
+
color: var(--_utrecht-button-focus-color);
|
|
1457
|
+
scale: var(--utrecht-button-focus-scale, 1);
|
|
1458
|
+
/* the pseudo-class for `:focus-visible` is implemented via the mixin */
|
|
1459
|
+
/* - The browser default focus ring should apply when these CSS custom properties are not set.
|
|
1460
|
+
* - Make the `box-shadow` value available, so components that have their own `box-shadow`
|
|
1461
|
+
* can combine it with the focus ring box shadow.
|
|
1462
|
+
*/
|
|
1463
|
+
--_utrecht-focus-ring-box-shadow: 0 0 0 var(--utrecht-focus-outline-width, 0)
|
|
1464
|
+
var(--utrecht-focus-inverse-outline-color, transparent);
|
|
1465
|
+
box-shadow: var(--_utrecht-focus-ring-box-shadow);
|
|
1466
|
+
outline-color: var(--utrecht-focus-outline-color, revert);
|
|
1467
|
+
outline-offset: var(--utrecht-focus-outline-offset, revert);
|
|
1468
|
+
outline-style: var(--utrecht-focus-outline-style, revert);
|
|
1469
|
+
outline-width: var(--utrecht-focus-outline-width, revert);
|
|
1470
|
+
z-index: 1;
|
|
1471
|
+
}
|
|
1472
|
+
.nijmegen-component-library-mapping .btn:hover:not(:disabled, [aria-disabled=true]) {
|
|
1473
|
+
background-color: var(--_utrecht-button-hover-background-color);
|
|
1474
|
+
border-color: var(--_utrecht-button-hover-border-color);
|
|
1475
|
+
color: var(--_utrecht-button-hover-color);
|
|
1476
|
+
scale: var(--utrecht-button-hover-scale, 1);
|
|
1477
|
+
}
|
|
1478
|
+
.nijmegen-component-library-mapping .btn:active:not(:disabled, [aria-disabled=true]) {
|
|
1479
|
+
background-color: var(--_utrecht-button-active-background-color);
|
|
1480
|
+
border-color: var(--_utrecht-button-active-border-color);
|
|
1481
|
+
color: var(--_utrecht-button-active-color);
|
|
1482
|
+
}
|
|
1483
|
+
.nijmegen-component-library-mapping .btn.btn-primary {
|
|
1484
|
+
--_utrecht-button-appearance-active-background-color: var(--utrecht-button-primary-action-active-background-color);
|
|
1485
|
+
--_utrecht-button-appearance-active-border-color: var(--utrecht-button-primary-action-active-border-color);
|
|
1486
|
+
--_utrecht-button-appearance-active-color: var(--utrecht-button-primary-action-active-color);
|
|
1487
|
+
--_utrecht-button-appearance-background-color: var(--utrecht-button-primary-action-background-color);
|
|
1488
|
+
--_utrecht-button-appearance-border-color: var(--utrecht-button-primary-action-border-color);
|
|
1489
|
+
--_utrecht-button-appearance-border-width: var(--utrecht-button-primary-action-border-width);
|
|
1490
|
+
--_utrecht-button-appearance-color: var(--utrecht-button-primary-action-color);
|
|
1491
|
+
--_utrecht-button-appearance-font-size: var(--utrecht-button-primary-action-font-size);
|
|
1492
|
+
--_utrecht-button-appearance-font-weight: var(--utrecht-button-primary-action-font-weight);
|
|
1493
|
+
--_utrecht-button-appearance-line-height: var(--utrecht-button-primary-action-line-height);
|
|
1494
|
+
--_utrecht-button-appearance-disabled-background-color: var(--utrecht-button-primary-action-disabled-background-color);
|
|
1495
|
+
--_utrecht-button-appearance-disabled-border-color: var(--utrecht-button-primary-action-disabled-border-color);
|
|
1496
|
+
--_utrecht-button-appearance-disabled-color: var(--utrecht-button-primary-action-disabled-color);
|
|
1497
|
+
--_utrecht-button-appearance-focus-background-color: var(--utrecht-button-primary-action-focus-background-color);
|
|
1498
|
+
--_utrecht-button-appearance-focus-border-color: var(--utrecht-button-primary-action-focus-border-color);
|
|
1499
|
+
--_utrecht-button-appearance-focus-color: var(--utrecht-button-primary-action-focus-color);
|
|
1500
|
+
--_utrecht-button-appearance-hover-background-color: var(--utrecht-button-primary-action-hover-background-color);
|
|
1501
|
+
--_utrecht-button-appearance-hover-border-color: var(--utrecht-button-primary-action-hover-border-color);
|
|
1502
|
+
--_utrecht-button-appearance-hover-color: var(--utrecht-button-primary-action-hover-color);
|
|
1503
|
+
--_utrecht-button-appearance-pressed-background-color: var(--utrecht-button-primary-action-pressed-background-color);
|
|
1504
|
+
--_utrecht-button-appearance-pressed-border-color: var(--utrecht-button-primary-action-pressed-border-color);
|
|
1505
|
+
--_utrecht-button-appearance-pressed-color: var(--utrecht-button-primary-action-pressed-color);
|
|
1506
|
+
}
|
|
1507
|
+
.nijmegen-component-library-mapping .btn.btn-secondary {
|
|
1508
|
+
--_utrecht-button-appearance-active-background-color: var(--utrecht-button-secondary-action-active-background-color);
|
|
1509
|
+
--_utrecht-button-appearance-active-border-color: var(--utrecht-button-secondary-action-active-border-color);
|
|
1510
|
+
--_utrecht-button-appearance-active-color: var(--utrecht-button-secondary-action-active-color);
|
|
1511
|
+
--_utrecht-button-appearance-background-color: var(--utrecht-button-secondary-action-background-color);
|
|
1512
|
+
--_utrecht-button-appearance-border-color: var(--utrecht-button-secondary-action-border-color);
|
|
1513
|
+
--_utrecht-button-appearance-border-width: var(--utrecht-button-secondary-action-border-width);
|
|
1514
|
+
--_utrecht-button-appearance-color: var(--utrecht-button-secondary-action-color);
|
|
1515
|
+
--_utrecht-button-appearance-font-size: var(--utrecht-button-secondary-action-font-size);
|
|
1516
|
+
--_utrecht-button-appearance-font-weight: var(--utrecht-button-secondary-action-font-weight);
|
|
1517
|
+
--_utrecht-button-appearance-line-height: var(--utrecht-button-secondary-action-line-height);
|
|
1518
|
+
--_utrecht-button-appearance-disabled-background-color: var(--utrecht-button-secondary-action-disabled-background-color);
|
|
1519
|
+
--_utrecht-button-appearance-disabled-border-color: var(--utrecht-button-secondary-action-disabled-border-color);
|
|
1520
|
+
--_utrecht-button-appearance-disabled-color: var(--utrecht-button-secondary-action-disabled-color);
|
|
1521
|
+
--_utrecht-button-appearance-focus-background-color: var(--utrecht-button-secondary-action-focus-background-color);
|
|
1522
|
+
--_utrecht-button-appearance-focus-border-color: var(--utrecht-button-secondary-action-focus-border-color);
|
|
1523
|
+
--_utrecht-button-appearance-focus-color: var(--utrecht-button-secondary-action-focus-color);
|
|
1524
|
+
--_utrecht-button-appearance-hover-background-color: var(--utrecht-button-secondary-action-hover-background-color);
|
|
1525
|
+
--_utrecht-button-appearance-hover-border-color: var(--utrecht-button-secondary-action-hover-border-color);
|
|
1526
|
+
--_utrecht-button-appearance-hover-color: var(--utrecht-button-secondary-action-hover-color);
|
|
1527
|
+
--_utrecht-button-appearance-pressed-background-color: var(--utrecht-button-secondary-action-pressed-background-color);
|
|
1528
|
+
--_utrecht-button-appearance-pressed-border-color: var(--utrecht-button-secondary-action-pressed-border-color);
|
|
1529
|
+
--_utrecht-button-appearance-pressed-color: var(--utrecht-button-secondary-action-pressed-color);
|
|
1185
1530
|
}
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.0.2-alpha.
|
|
2
|
+
"version": "0.0.2-alpha.47",
|
|
3
3
|
"author": "gemeente Nijmegen",
|
|
4
4
|
"description": "Default html element styling for the gemeente Nijmegen design system",
|
|
5
5
|
"license": "EUPL-1.2",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"clean": "rimraf dist"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@gemeentenijmegen/components-css": "0.0.1-alpha.
|
|
27
|
+
"@gemeentenijmegen/components-css": "0.0.1-alpha.40",
|
|
28
28
|
"@utrecht/button-css": "2.3.0",
|
|
29
29
|
"@utrecht/document-css": "1.5.0",
|
|
30
30
|
"@utrecht/focus-ring-css": "2.3.0",
|
|
@@ -41,5 +41,5 @@
|
|
|
41
41
|
"rollup": "4.12.1",
|
|
42
42
|
"rollup-plugin-postcss": "4.0.2"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "916d558c6d4fc925978402cfb6cf9ef487a4e38a"
|
|
45
45
|
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
@use "~@utrecht/button-css/src/mixin";
|
|
2
|
+
|
|
3
|
+
@mixin component-library-class-mapping-button {
|
|
4
|
+
.btn {
|
|
5
|
+
@include utrecht-button;
|
|
6
|
+
|
|
7
|
+
box-shadow: none;
|
|
8
|
+
letter-spacing: normal;
|
|
9
|
+
width: initial;
|
|
10
|
+
|
|
11
|
+
&:disabled {
|
|
12
|
+
@include utrecht-button--disabled;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
&:focus:not(:disabled, [aria-disabled="true"]) {
|
|
16
|
+
@include utrecht-button--focus;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
&:focus-visible {
|
|
20
|
+
@include utrecht-button--focus;
|
|
21
|
+
@include utrecht-button--focus-visible;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&:hover:not(:disabled, [aria-disabled="true"]) {
|
|
25
|
+
@include utrecht-button--hover;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&:active:not(:disabled, [aria-disabled="true"]) {
|
|
29
|
+
@include utrecht-button--active;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&.btn-primary {
|
|
33
|
+
@include utrecht-button-appearance-properties("utrecht-button", "primary-action");
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&.btn-secondary {
|
|
37
|
+
@include utrecht-button-appearance-properties("utrecht-button", "secondary-action");
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
package/src/index.scss
CHANGED
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
@import "~@utrecht/link-css/src/html/mixin";
|
|
10
10
|
@import "~@utrecht/button-css/src/html/mixin";
|
|
11
11
|
@import "link-list/mixin";
|
|
12
|
+
@import "component-library-class-mapping/mixin";
|
|
12
13
|
@import "~@gemeentenijmegen/components-css/spacing/src/semantic/mixin";
|
|
13
14
|
|
|
14
15
|
.nijmegen-html {
|
|
@@ -41,3 +42,8 @@
|
|
|
41
42
|
@include spacing-nijmegen-html-linklist;
|
|
42
43
|
@include spacing-a;
|
|
43
44
|
}
|
|
45
|
+
|
|
46
|
+
.nijmegen-component-library-mapping {
|
|
47
|
+
writing-mode: horizontal-tb;
|
|
48
|
+
@include component-library-class-mapping-button;
|
|
49
|
+
}
|