@gemeentenijmegen/semantic-html 0.0.2-alpha.10 → 0.0.2-alpha.102
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/README.md +1 -0
- package/dist/index.css +728 -0
- package/package.json +9 -3
- package/src/component-library-class-mapping/_mixin.scss +41 -0
- package/src/index.js +1 -0
- package/src/index.scss +23 -0
- package/src/table/_mixin.scss +31 -0
- package/src/table/index.js +19 -0
package/README.md
CHANGED
|
@@ -18,6 +18,7 @@ npm install --save-dev --save-exact @gemeentenijmegen/semantic-html
|
|
|
18
18
|
<link rel="stylesheet" href="node_modules/@gemeentenijmegen/design-tokens/dist/index.css'" />
|
|
19
19
|
<link rel="stylesheet" href="node_modules/@gemeentenijmegen/font/dist/index.css'" />
|
|
20
20
|
<link rel="stylesheet" href="node_modules/@gemeentenijmegen/semantic-html/dist/index.css" />
|
|
21
|
+
<script src="node_modules/@gemeentenijmegen/semantic-html/dist/index.js"></script>
|
|
21
22
|
</head>
|
|
22
23
|
<body class="nijmegen-html">
|
|
23
24
|
<h1>Home</h1>
|
package/dist/index.css
CHANGED
|
@@ -295,7 +295,21 @@ 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 {
|
|
311
|
+
margin-block-end: var(--nijmegen-html-margin-block-end);
|
|
312
|
+
writing-mode: horizontal-tb;
|
|
299
313
|
/* reset `font-smoothing: antialiasing`, prefer automatic (`subpixel-antialiasing`) behavior for high-dpi screens */
|
|
300
314
|
-webkit-font-smoothing: auto !important;
|
|
301
315
|
-moz-osx-font-smoothing: auto !important;
|
|
@@ -801,16 +815,22 @@ however browsers don't seem to have implemented great looking supixel tweening y
|
|
|
801
815
|
background-color: var(--utrecht-link-color);
|
|
802
816
|
content: "";
|
|
803
817
|
display: inline-block;
|
|
818
|
+
flex-shrink: 0;
|
|
804
819
|
height: var(--nijmegen-icon-functional-size-height, 0.875rem); /* stylelint-disable-line property-disallowed-list */
|
|
805
820
|
mask-image: var(--nijmegen-link-list-icon, url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M9 6l6 6l-6 6"></path></svg>'));
|
|
806
821
|
mask-position: center;
|
|
807
822
|
mask-repeat: no-repeat;
|
|
808
823
|
mask-size: 100%;
|
|
824
|
+
position: relative;
|
|
825
|
+
top: 2px; /* stylelint-disable-line property-disallowed-list */
|
|
809
826
|
width: var(--nijmegen-icon-functional-size-width, 1.5rem); /* stylelint-disable-line property-disallowed-list */
|
|
810
827
|
padding-inline-end: 0;
|
|
811
828
|
}
|
|
812
829
|
.nijmegen-html ul.nijmegen-html-linklist li a {
|
|
830
|
+
align-items: baseline;
|
|
813
831
|
color: var(--utrecht-link-color);
|
|
832
|
+
display: inline-flex;
|
|
833
|
+
gap: var(--todo-link-list-item-column-gap); /* stylelint-disable-line custom-property-pattern */
|
|
814
834
|
text-decoration: var(--nijmegen-link-list-item-text-decoration, none);
|
|
815
835
|
}
|
|
816
836
|
.nijmegen-html ul.nijmegen-html-linklist li a:active, .nijmegen-html ul.nijmegen-html-linklist li a.nijmegen-link-list__link--active {
|
|
@@ -890,4 +910,712 @@ however browsers don't seem to have implemented great looking supixel tweening y
|
|
|
890
910
|
.nijmegen-html ul.nijmegen-html-linklist li a:visited, .nijmegen-html ul.nijmegen-html-linklist li a.nijmegen-link-list__link--visited {
|
|
891
911
|
--_utrecht-link-forced-colors-color: visitedtext;
|
|
892
912
|
--_utrecht-link-state-color: var(--utrecht-link-visited-color);
|
|
913
|
+
}
|
|
914
|
+
.nijmegen-html table {
|
|
915
|
+
border-collapse: collapse;
|
|
916
|
+
border-spacing: 0;
|
|
917
|
+
font-family: var(--nijmegen-table-font-family);
|
|
918
|
+
font-size: var(--nijmegen-table-font-size, 1.125rem);
|
|
919
|
+
line-height: var(--nijmegen-table-line-height, 150%);
|
|
920
|
+
margin-block-end: var(--nijmegen-table-margin-block-end);
|
|
921
|
+
width: 100%; /* stylelint-disable-line property-disallowed-list */
|
|
922
|
+
}
|
|
923
|
+
.nijmegen-html table caption {
|
|
924
|
+
color: var(--nijmegen-table-caption-color);
|
|
925
|
+
font-family: var(--nijmegen-table-caption-font-family);
|
|
926
|
+
font-size: var(--nijmegen-table-caption-font-size);
|
|
927
|
+
font-weight: var(--nijmegen-table-caption-font-weight);
|
|
928
|
+
line-height: var(--nijmegen-table-caption-line-height);
|
|
929
|
+
margin-block-end: var(--nijmegen-table-caption-margin-block-end);
|
|
930
|
+
text-align: start;
|
|
931
|
+
}
|
|
932
|
+
.nijmegen-html table tr {
|
|
933
|
+
border-block-end-color: var(--nijmegen-table-row-border-block-end-color);
|
|
934
|
+
border-block-end-style: solid;
|
|
935
|
+
border-block-end-width: var(--nijmegen-table-row-large-vw-border-block-end-width);
|
|
936
|
+
}
|
|
937
|
+
@media (width < 576px) {
|
|
938
|
+
.nijmegen-html table tr {
|
|
939
|
+
border-block-end-width: var(--nijmegen-table-row-border-block-end-width);
|
|
940
|
+
}
|
|
941
|
+
}
|
|
942
|
+
.nijmegen-html table thead {
|
|
943
|
+
background-color: var(--nijmegen-table-header-background-color);
|
|
944
|
+
border-block-end-color: var(--nijmegen-table-header-border-block-end-color);
|
|
945
|
+
border-block-end-width: var(--nijmegen-table-header-border-block-end-width);
|
|
946
|
+
break-inside: avoid;
|
|
947
|
+
color: var(--nijmegen-table-header-color);
|
|
948
|
+
font-weight: var(--nijmegen-table-header-cell-font-weight);
|
|
949
|
+
}
|
|
950
|
+
@media (width < 576px) {
|
|
951
|
+
.nijmegen-html table thead {
|
|
952
|
+
display: none;
|
|
953
|
+
}
|
|
954
|
+
}
|
|
955
|
+
.nijmegen-html table thead th {
|
|
956
|
+
text-align: start;
|
|
957
|
+
vertical-align: top;
|
|
958
|
+
padding-block-end: var(--nijmegen-table-header-cell-large-vw-padding-block-end);
|
|
959
|
+
padding-block-start: var(--nijmegen-table-header-cell-large-vw-padding-block-start);
|
|
960
|
+
padding-inline-end: var(--nijmegen-table-header-cell-large-vw-padding-inline-end);
|
|
961
|
+
padding-inline-start: var(--nijmegen-table-header-cell-large-vw-padding-inline-start);
|
|
962
|
+
}
|
|
963
|
+
@media (width >= 576px) {
|
|
964
|
+
.nijmegen-html table thead th.nijmegen-table__header-cell-end {
|
|
965
|
+
text-align: end;
|
|
966
|
+
}
|
|
967
|
+
}
|
|
968
|
+
.nijmegen-html table tbody td,
|
|
969
|
+
.nijmegen-html table tfoot td {
|
|
970
|
+
text-align: start;
|
|
971
|
+
vertical-align: top;
|
|
972
|
+
padding-block-end: var(--nijmegen-table-data-cell-large-vw-padding-block-end);
|
|
973
|
+
padding-block-start: var(--nijmegen-table-data-cell-large-vw-padding-block-start);
|
|
974
|
+
padding-inline-end: var(--nijmegen-table-data-cell-large-vw-padding-inline-end);
|
|
975
|
+
padding-inline-start: var(--nijmegen-table-data-cell-large-vw-padding-inline-start);
|
|
976
|
+
}
|
|
977
|
+
@media (width >= 576px) {
|
|
978
|
+
.nijmegen-html table tbody td.nijmegen-table__data-cell-end,
|
|
979
|
+
.nijmegen-html table tfoot td.nijmegen-table__data-cell-end {
|
|
980
|
+
text-align: end;
|
|
981
|
+
}
|
|
982
|
+
}
|
|
983
|
+
@media (width < 576px) {
|
|
984
|
+
.nijmegen-html table tbody td,
|
|
985
|
+
.nijmegen-html table tfoot td {
|
|
986
|
+
display: block;
|
|
987
|
+
padding-block-end: var(--nijmegen-table-data-cell-padding-block-end);
|
|
988
|
+
padding-block-start: var(--nijmegen-table-header-cell-padding-block-start);
|
|
989
|
+
padding-inline-end: var(--nijmegen-table-data-cell-padding-inline-end);
|
|
990
|
+
padding-inline-start: var(--nijmegen-table-data-cell-padding-inline-start);
|
|
991
|
+
}
|
|
992
|
+
.nijmegen-html table tbody td::before,
|
|
993
|
+
.nijmegen-html table tfoot td::before {
|
|
994
|
+
content: attr(data-label);
|
|
995
|
+
display: block;
|
|
996
|
+
font-weight: var(--nijmegen-table-header-cell-font-weight, 600);
|
|
997
|
+
padding-block-end: calc(var(--nijmegen-table-data-cell-padding-block-start) + var(--nijmegen-table-header-cell-padding-block-end));
|
|
998
|
+
}
|
|
999
|
+
}
|
|
1000
|
+
.nijmegen-html h1:first-child {
|
|
1001
|
+
--h1-margin-block-start: 0;
|
|
1002
|
+
}
|
|
1003
|
+
.nijmegen-html h1:has(+ h2) {
|
|
1004
|
+
margin-block-end: var(--utrecht-rich-text-acquaintance-margin-block-end);
|
|
1005
|
+
}
|
|
1006
|
+
.nijmegen-html h1:has(+ button) {
|
|
1007
|
+
margin-block-end: var(--utrecht-rich-text-acquaintance-margin-block-end);
|
|
1008
|
+
}
|
|
1009
|
+
.nijmegen-html h1:has(+ p) {
|
|
1010
|
+
margin-block-end: var(--utrecht-rich-text-acquaintance-margin-block-end);
|
|
1011
|
+
}
|
|
1012
|
+
.nijmegen-html h1:has(+ ul) {
|
|
1013
|
+
margin-block-end: var(--utrecht-rich-text-acquaintance-margin-block-end);
|
|
1014
|
+
}
|
|
1015
|
+
.nijmegen-html h1:has(+ .nijmegen-html-linklist) {
|
|
1016
|
+
margin-block-end: var(--utrecht-rich-text-acquaintance-margin-block-end);
|
|
1017
|
+
}
|
|
1018
|
+
.nijmegen-html h1:has(+ a) {
|
|
1019
|
+
margin-block-end: var(--utrecht-rich-text-acquaintance-margin-block-end);
|
|
1020
|
+
}
|
|
1021
|
+
.nijmegen-html h2:first-child {
|
|
1022
|
+
--h2-margin-block-start: 0;
|
|
1023
|
+
}
|
|
1024
|
+
.nijmegen-html h2:has(+ h3) {
|
|
1025
|
+
margin-block-end: var(--utrecht-rich-text-acquaintance-margin-block-end);
|
|
1026
|
+
}
|
|
1027
|
+
.nijmegen-html h2:has(+ button) {
|
|
1028
|
+
margin-block-end: var(--utrecht-rich-text-friend-margin-block-end);
|
|
1029
|
+
}
|
|
1030
|
+
.nijmegen-html h2:has(+ p) {
|
|
1031
|
+
margin-block-end: var(--utrecht-rich-text-friend-margin-block-end);
|
|
1032
|
+
}
|
|
1033
|
+
.nijmegen-html h2:has(+ ul) {
|
|
1034
|
+
margin-block-end: var(--utrecht-rich-text-friend-margin-block-end);
|
|
1035
|
+
}
|
|
1036
|
+
.nijmegen-html h2:has(+ .nijmegen-html-linklist) {
|
|
1037
|
+
margin-block-end: var(--utrecht-rich-text-friend-margin-block-end);
|
|
1038
|
+
}
|
|
1039
|
+
.nijmegen-html h2:has(+ a) {
|
|
1040
|
+
margin-block-end: var(--utrecht-rich-text-friend-margin-block-end);
|
|
1041
|
+
}
|
|
1042
|
+
.nijmegen-html h3:first-child {
|
|
1043
|
+
--h3-margin-block-start: 0;
|
|
1044
|
+
}
|
|
1045
|
+
.nijmegen-html h3:has(+ h4) {
|
|
1046
|
+
margin-block-end: var(--utrecht-rich-text-acquaintance-margin-block-end);
|
|
1047
|
+
}
|
|
1048
|
+
.nijmegen-html h3:has(+ button) {
|
|
1049
|
+
margin-block-end: var(--utrecht-rich-text-friend-margin-block-end);
|
|
1050
|
+
}
|
|
1051
|
+
.nijmegen-html h3:has(+ p) {
|
|
1052
|
+
margin-block-end: var(--utrecht-rich-text-friend-margin-block-end);
|
|
1053
|
+
}
|
|
1054
|
+
.nijmegen-html h3:has(+ ul) {
|
|
1055
|
+
margin-block-end: var(--utrecht-rich-text-friend-margin-block-end);
|
|
1056
|
+
}
|
|
1057
|
+
.nijmegen-html h3:has(+ .nijmegen-html-linklist) {
|
|
1058
|
+
margin-block-end: var(--utrecht-rich-text-friend-margin-block-end);
|
|
1059
|
+
}
|
|
1060
|
+
.nijmegen-html h3:has(+ a) {
|
|
1061
|
+
margin-block-end: var(--utrecht-rich-text-friend-margin-block-end);
|
|
1062
|
+
}
|
|
1063
|
+
.nijmegen-html h4:first-child {
|
|
1064
|
+
--h4-margin-block-start: 0;
|
|
1065
|
+
}
|
|
1066
|
+
.nijmegen-html h4:has(+ h5) {
|
|
1067
|
+
margin-block-end: var(--utrecht-rich-text-acquaintance-margin-block-end);
|
|
1068
|
+
}
|
|
1069
|
+
.nijmegen-html h4:has(+ button) {
|
|
1070
|
+
margin-block-end: var(--utrecht-rich-text-friend-margin-block-end);
|
|
1071
|
+
}
|
|
1072
|
+
.nijmegen-html h4:has(+ p) {
|
|
1073
|
+
margin-block-end: var(--utrecht-rich-text-friend-margin-block-end);
|
|
1074
|
+
}
|
|
1075
|
+
.nijmegen-html h4:has(+ ul) {
|
|
1076
|
+
margin-block-end: var(--utrecht-rich-text-friend-margin-block-end);
|
|
1077
|
+
}
|
|
1078
|
+
.nijmegen-html h4:has(+ .nijmegen-html-linklist) {
|
|
1079
|
+
margin-block-end: var(--utrecht-rich-text-friend-margin-block-end);
|
|
1080
|
+
}
|
|
1081
|
+
.nijmegen-html h4:has(+ a) {
|
|
1082
|
+
margin-block-end: var(--utrecht-rich-text-friend-margin-block-end);
|
|
1083
|
+
}
|
|
1084
|
+
.nijmegen-html h5:first-child {
|
|
1085
|
+
--h5-margin-block-start: 0;
|
|
1086
|
+
}
|
|
1087
|
+
.nijmegen-html h5:has(+ h6) {
|
|
1088
|
+
margin-block-end: var(--utrecht-rich-text-acquaintance-margin-block-end);
|
|
1089
|
+
}
|
|
1090
|
+
.nijmegen-html h5:has(+ button) {
|
|
1091
|
+
margin-block-end: var(--utrecht-rich-text-friend-margin-block-end);
|
|
1092
|
+
}
|
|
1093
|
+
.nijmegen-html h5:has(+ p) {
|
|
1094
|
+
margin-block-end: var(--utrecht-rich-text-friend-margin-block-end);
|
|
1095
|
+
}
|
|
1096
|
+
.nijmegen-html h5:has(+ ul) {
|
|
1097
|
+
margin-block-end: var(--utrecht-rich-text-friend-margin-block-end);
|
|
1098
|
+
}
|
|
1099
|
+
.nijmegen-html h5:has(+ .nijmegen-html-linklist) {
|
|
1100
|
+
margin-block-end: var(--utrecht-rich-text-friend-margin-block-end);
|
|
1101
|
+
}
|
|
1102
|
+
.nijmegen-html h5:has(+ a) {
|
|
1103
|
+
margin-block-end: var(--utrecht-rich-text-friend-margin-block-end);
|
|
1104
|
+
}
|
|
1105
|
+
.nijmegen-html h6:first-child {
|
|
1106
|
+
--h6-margin-block-start: 0;
|
|
1107
|
+
}
|
|
1108
|
+
.nijmegen-html h6:has(+ button) {
|
|
1109
|
+
margin-block-end: var(--utrecht-rich-text-friend-margin-block-end);
|
|
1110
|
+
}
|
|
1111
|
+
.nijmegen-html h6:has(+ p) {
|
|
1112
|
+
margin-block-end: var(--utrecht-rich-text-friend-margin-block-end);
|
|
1113
|
+
}
|
|
1114
|
+
.nijmegen-html h6:has(+ ul) {
|
|
1115
|
+
margin-block-end: var(--utrecht-rich-text-friend-margin-block-end);
|
|
1116
|
+
}
|
|
1117
|
+
.nijmegen-html h6:has(+ .nijmegen-html-linklist) {
|
|
1118
|
+
margin-block-end: var(--utrecht-rich-text-friend-margin-block-end);
|
|
1119
|
+
}
|
|
1120
|
+
.nijmegen-html h6:has(+ a) {
|
|
1121
|
+
margin-block-end: var(--utrecht-rich-text-friend-margin-block-end);
|
|
1122
|
+
}
|
|
1123
|
+
.nijmegen-html button:first-child {
|
|
1124
|
+
--button-margin-block-start: 0;
|
|
1125
|
+
}
|
|
1126
|
+
.nijmegen-html button:has(+ h2) {
|
|
1127
|
+
margin-block-end: var(--utrecht-rich-text-stranger-margin-block-end);
|
|
1128
|
+
}
|
|
1129
|
+
.nijmegen-html button:has(+ h3) {
|
|
1130
|
+
margin-block-end: var(--utrecht-rich-text-stranger-margin-block-end);
|
|
1131
|
+
}
|
|
1132
|
+
.nijmegen-html button:has(+ h4) {
|
|
1133
|
+
margin-block-end: var(--utrecht-rich-text-stranger-margin-block-end);
|
|
1134
|
+
}
|
|
1135
|
+
.nijmegen-html button:has(+ h5) {
|
|
1136
|
+
margin-block-end: var(--utrecht-rich-text-stranger-margin-block-end);
|
|
1137
|
+
}
|
|
1138
|
+
.nijmegen-html button:has(+ h6) {
|
|
1139
|
+
margin-block-end: var(--utrecht-rich-text-stranger-margin-block-end);
|
|
1140
|
+
}
|
|
1141
|
+
.nijmegen-html button:has(+ button) {
|
|
1142
|
+
margin-block-end: var(--utrecht-rich-text-friend-margin-block-end);
|
|
1143
|
+
margin-inline-end: var(--utrecht-rich-text-friend-margin-block-end);
|
|
1144
|
+
}
|
|
1145
|
+
.nijmegen-html button:has(+ p) {
|
|
1146
|
+
margin-block-end: var(--utrecht-rich-text-friend-margin-block-end);
|
|
1147
|
+
}
|
|
1148
|
+
.nijmegen-html button:has(+ ul) {
|
|
1149
|
+
margin-block-end: var(--utrecht-rich-text-friend-margin-block-end);
|
|
1150
|
+
}
|
|
1151
|
+
.nijmegen-html button:has(+ .nijmegen-html-linklist) {
|
|
1152
|
+
margin-block-end: var(--utrecht-rich-text-friend-margin-block-end);
|
|
1153
|
+
}
|
|
1154
|
+
.nijmegen-html button:has(+ a) {
|
|
1155
|
+
margin-block-end: var(--utrecht-rich-text-friend-margin-block-end);
|
|
1156
|
+
}
|
|
1157
|
+
.nijmegen-html p:first-child {
|
|
1158
|
+
--p-margin-block-start: 0;
|
|
1159
|
+
}
|
|
1160
|
+
.nijmegen-html p:has(+ h2) {
|
|
1161
|
+
margin-block-end: var(--utrecht-rich-text-acquaintance-margin-block-end);
|
|
1162
|
+
}
|
|
1163
|
+
.nijmegen-html p:has(+ h3) {
|
|
1164
|
+
margin-block-end: var(--utrecht-rich-text-acquaintance-margin-block-end);
|
|
1165
|
+
}
|
|
1166
|
+
.nijmegen-html p:has(+ h4) {
|
|
1167
|
+
margin-block-end: var(--utrecht-rich-text-acquaintance-margin-block-end);
|
|
1168
|
+
}
|
|
1169
|
+
.nijmegen-html p:has(+ h5) {
|
|
1170
|
+
margin-block-end: var(--utrecht-rich-text-acquaintance-margin-block-end);
|
|
1171
|
+
}
|
|
1172
|
+
.nijmegen-html p:has(+ h6) {
|
|
1173
|
+
margin-block-end: var(--utrecht-rich-text-acquaintance-margin-block-end);
|
|
1174
|
+
}
|
|
1175
|
+
.nijmegen-html p:has(+ button) {
|
|
1176
|
+
margin-block-end: var(--utrecht-rich-text-friend-margin-block-end);
|
|
1177
|
+
}
|
|
1178
|
+
.nijmegen-html p:has(+ p) {
|
|
1179
|
+
margin-block-end: var(--utrecht-rich-text-friend-margin-block-end);
|
|
1180
|
+
}
|
|
1181
|
+
.nijmegen-html p:has(+ ul) {
|
|
1182
|
+
margin-block-end: var(--utrecht-rich-text-friend-margin-block-end);
|
|
1183
|
+
}
|
|
1184
|
+
.nijmegen-html p:has(+ .nijmegen-html-linklist) {
|
|
1185
|
+
margin-block-end: var(--utrecht-rich-text-friend-margin-block-end);
|
|
1186
|
+
}
|
|
1187
|
+
.nijmegen-html p:has(+ a) {
|
|
1188
|
+
margin-block-end: var(--utrecht-rich-text-friend-margin-block-end);
|
|
1189
|
+
}
|
|
1190
|
+
.nijmegen-html ul:first-child {
|
|
1191
|
+
--ul-margin-block-start: 0;
|
|
1192
|
+
}
|
|
1193
|
+
.nijmegen-html ul:has(+ h2) {
|
|
1194
|
+
margin-block-end: var(--utrecht-rich-text-acquaintance-margin-block-end);
|
|
1195
|
+
}
|
|
1196
|
+
.nijmegen-html ul:has(+ h3) {
|
|
1197
|
+
margin-block-end: var(--utrecht-rich-text-acquaintance-margin-block-end);
|
|
1198
|
+
}
|
|
1199
|
+
.nijmegen-html ul:has(+ h4) {
|
|
1200
|
+
margin-block-end: var(--utrecht-rich-text-acquaintance-margin-block-end);
|
|
1201
|
+
}
|
|
1202
|
+
.nijmegen-html ul:has(+ h5) {
|
|
1203
|
+
margin-block-end: var(--utrecht-rich-text-acquaintance-margin-block-end);
|
|
1204
|
+
}
|
|
1205
|
+
.nijmegen-html ul:has(+ h6) {
|
|
1206
|
+
margin-block-end: var(--utrecht-rich-text-acquaintance-margin-block-end);
|
|
1207
|
+
}
|
|
1208
|
+
.nijmegen-html ul:has(+ button) {
|
|
1209
|
+
margin-block-end: var(--utrecht-rich-text-friend-margin-block-end);
|
|
1210
|
+
}
|
|
1211
|
+
.nijmegen-html ul:has(+ p) {
|
|
1212
|
+
margin-block-end: var(--utrecht-rich-text-friend-margin-block-end);
|
|
1213
|
+
}
|
|
1214
|
+
.nijmegen-html ul:has(+ ul) {
|
|
1215
|
+
margin-block-end: var(--utrecht-rich-text-friend-margin-block-end);
|
|
1216
|
+
}
|
|
1217
|
+
.nijmegen-html ul:has(+ .nijmegen-html-linklist) {
|
|
1218
|
+
margin-block-end: var(--utrecht-rich-text-friend-margin-block-end);
|
|
1219
|
+
}
|
|
1220
|
+
.nijmegen-html ul:has(+ a) {
|
|
1221
|
+
margin-block-end: var(--utrecht-rich-text-friend-margin-block-end);
|
|
1222
|
+
}
|
|
1223
|
+
.nijmegen-html nijmegen-html-linklist:first-child {
|
|
1224
|
+
--nijmegen-html-linklist-margin-block-start: 0;
|
|
1225
|
+
}
|
|
1226
|
+
.nijmegen-html .nijmegen-html-linklist:has(+ h2) {
|
|
1227
|
+
margin-block-end: var(--utrecht-rich-text-acquaintance-margin-block-end);
|
|
1228
|
+
}
|
|
1229
|
+
.nijmegen-html .nijmegen-html-linklist:has(+ h3) {
|
|
1230
|
+
margin-block-end: var(--utrecht-rich-text-acquaintance-margin-block-end);
|
|
1231
|
+
}
|
|
1232
|
+
.nijmegen-html .nijmegen-html-linklist:has(+ h4) {
|
|
1233
|
+
margin-block-end: var(--utrecht-rich-text-acquaintance-margin-block-end);
|
|
1234
|
+
}
|
|
1235
|
+
.nijmegen-html .nijmegen-html-linklist:has(+ h5) {
|
|
1236
|
+
margin-block-end: var(--utrecht-rich-text-acquaintance-margin-block-end);
|
|
1237
|
+
}
|
|
1238
|
+
.nijmegen-html .nijmegen-html-linklist:has(+ h6) {
|
|
1239
|
+
margin-block-end: var(--utrecht-rich-text-acquaintance-margin-block-end);
|
|
1240
|
+
}
|
|
1241
|
+
.nijmegen-html .nijmegen-html-linklist:has(+ button) {
|
|
1242
|
+
margin-block-end: var(--utrecht-rich-text-friend-margin-block-end);
|
|
1243
|
+
}
|
|
1244
|
+
.nijmegen-html .nijmegen-html-linklist:has(+ p) {
|
|
1245
|
+
margin-block-end: var(--utrecht-rich-text-friend-margin-block-end);
|
|
1246
|
+
}
|
|
1247
|
+
.nijmegen-html .nijmegen-html-linklist:has(+ ul) {
|
|
1248
|
+
margin-block-end: var(--utrecht-rich-text-friend-margin-block-end);
|
|
1249
|
+
}
|
|
1250
|
+
.nijmegen-html .nijmegen-html-linklist:has(+ .nijmegen-html-linklist) {
|
|
1251
|
+
margin-block-end: var(--utrecht-rich-text-friend-margin-block-end);
|
|
1252
|
+
}
|
|
1253
|
+
.nijmegen-html .nijmegen-html-linklist:has(+ a) {
|
|
1254
|
+
margin-block-end: var(--utrecht-rich-text-friend-margin-block-end);
|
|
1255
|
+
}
|
|
1256
|
+
.nijmegen-html a:first-child {
|
|
1257
|
+
--a-margin-block-start: 0;
|
|
1258
|
+
}
|
|
1259
|
+
.nijmegen-html a:has(+ h2) {
|
|
1260
|
+
margin-block-end: var(--utrecht-rich-text-acquaintance-margin-block-end);
|
|
1261
|
+
}
|
|
1262
|
+
.nijmegen-html a:has(+ h3) {
|
|
1263
|
+
margin-block-end: var(--utrecht-rich-text-acquaintance-margin-block-end);
|
|
1264
|
+
}
|
|
1265
|
+
.nijmegen-html a:has(+ h4) {
|
|
1266
|
+
margin-block-end: var(--utrecht-rich-text-acquaintance-margin-block-end);
|
|
1267
|
+
}
|
|
1268
|
+
.nijmegen-html a:has(+ h5) {
|
|
1269
|
+
margin-block-end: var(--utrecht-rich-text-acquaintance-margin-block-end);
|
|
1270
|
+
}
|
|
1271
|
+
.nijmegen-html a:has(+ h6) {
|
|
1272
|
+
margin-block-end: var(--utrecht-rich-text-acquaintance-margin-block-end);
|
|
1273
|
+
}
|
|
1274
|
+
.nijmegen-html a:has(+ button) {
|
|
1275
|
+
margin-block-end: var(--utrecht-rich-text-friend-margin-block-end);
|
|
1276
|
+
}
|
|
1277
|
+
.nijmegen-html a:has(+ p) {
|
|
1278
|
+
margin-block-end: var(--utrecht-rich-text-acquaintance-margin-block-end);
|
|
1279
|
+
}
|
|
1280
|
+
.nijmegen-html a:has(+ ul) {
|
|
1281
|
+
margin-block-end: var(--utrecht-rich-text-friend-margin-block-end);
|
|
1282
|
+
}
|
|
1283
|
+
.nijmegen-html a:has(+ .nijmegen-html-linklist) {
|
|
1284
|
+
margin-block-end: var(--utrecht-rich-text-friend-margin-block-end);
|
|
1285
|
+
}
|
|
1286
|
+
.nijmegen-html a:has(+ a) {
|
|
1287
|
+
margin-block-end: var(--utrecht-rich-text-friend-margin-block-end);
|
|
1288
|
+
}
|
|
1289
|
+
|
|
1290
|
+
.nijmegen-component-library-mapping {
|
|
1291
|
+
writing-mode: horizontal-tb;
|
|
1292
|
+
}
|
|
1293
|
+
.nijmegen-component-library-mapping .btn {
|
|
1294
|
+
/*
|
|
1295
|
+
`--_utrecht-button-hint` is the internal prefix for the applied optional hint, it is not an API.
|
|
1296
|
+
The hint color takes priority over the appearance color.
|
|
1297
|
+
|
|
1298
|
+
`--_utrecht-button-appearance` is the internal prefix for the appearance
|
|
1299
|
+
(primary-action, secondary-action or subtle), it is not an API.
|
|
1300
|
+
*/
|
|
1301
|
+
--_utrecht-button-background-color: var(
|
|
1302
|
+
--_utrecht-button-hint-background-color,
|
|
1303
|
+
var(--_utrecht-button-appearance-background-color, var(--utrecht-button-background-color))
|
|
1304
|
+
);
|
|
1305
|
+
--_utrecht-button-color: var(
|
|
1306
|
+
--_utrecht-button-hint-color,
|
|
1307
|
+
var(--_utrecht-button-appearance-color, var(--utrecht-button-color))
|
|
1308
|
+
);
|
|
1309
|
+
--_utrecht-button-border-color: var(
|
|
1310
|
+
--_utrecht-button-hint-border-color,
|
|
1311
|
+
var(--_utrecht-button-appearance-border-color, var(--utrecht-button-border-color, transparent))
|
|
1312
|
+
);
|
|
1313
|
+
--_utrecht-button-border-bottom-color: var(
|
|
1314
|
+
--_utrecht-button-hint-border-bottom-color,
|
|
1315
|
+
var(
|
|
1316
|
+
--_utrecht-button-hint-border-color,
|
|
1317
|
+
var(
|
|
1318
|
+
--_utrecht-button-appearance-border-bottom-color,
|
|
1319
|
+
var(
|
|
1320
|
+
--_utrecht-button-appearance-border-color,
|
|
1321
|
+
var(--utrecht-button-border-bottom-color, var(--utrecht-button-border-color, transparent))
|
|
1322
|
+
)
|
|
1323
|
+
)
|
|
1324
|
+
)
|
|
1325
|
+
);
|
|
1326
|
+
--_utrecht-button-disabled-background-color: var(
|
|
1327
|
+
--_utrecht-button-hint-disabled-background-color,
|
|
1328
|
+
var(
|
|
1329
|
+
--_utrecht-button-appearance-disabled-background-color,
|
|
1330
|
+
var(--utrecht-button-disabled-background-color, var(--utrecht-button-background-color))
|
|
1331
|
+
)
|
|
1332
|
+
);
|
|
1333
|
+
--_utrecht-button-disabled-border-color: var(
|
|
1334
|
+
--_utrecht-button-hint-disabled-border-color,
|
|
1335
|
+
var(
|
|
1336
|
+
--_utrecht-button-appearance-disabled-border-color,
|
|
1337
|
+
var(--utrecht-button-disabled-border-color, var(--utrecht-button-border-color))
|
|
1338
|
+
)
|
|
1339
|
+
);
|
|
1340
|
+
--_utrecht-button-disabled-color: var(
|
|
1341
|
+
--_utrecht-button-hint-disabled-color,
|
|
1342
|
+
var(--_utrecht-button-appearance-disabled-color, var(--utrecht-button-disabled-color, var(--utrecht-button-color)))
|
|
1343
|
+
);
|
|
1344
|
+
--_utrecht-button-pressed-background-color: var(
|
|
1345
|
+
--_utrecht-button-hint-pressed-background-color,
|
|
1346
|
+
var(
|
|
1347
|
+
--_utrecht-button-hint-background-color,
|
|
1348
|
+
var(
|
|
1349
|
+
--_utrecht-button-appearance-pressed-background-color,
|
|
1350
|
+
var(
|
|
1351
|
+
--_utrecht-button-appearance-background-color,
|
|
1352
|
+
var(--utrecht-button-pressed-background-color, var(--utrecht-button-background-color))
|
|
1353
|
+
)
|
|
1354
|
+
)
|
|
1355
|
+
)
|
|
1356
|
+
);
|
|
1357
|
+
--_utrecht-button-pressed-border-color: var(
|
|
1358
|
+
--_utrecht-button-hint-pressed-border-color,
|
|
1359
|
+
var(
|
|
1360
|
+
--_utrecht-button-hint-border-color,
|
|
1361
|
+
var(
|
|
1362
|
+
--_utrecht-button-appearance-pressed-border-color,
|
|
1363
|
+
var(
|
|
1364
|
+
--_utrecht-button-appearance-border-color,
|
|
1365
|
+
var(--utrecht-button-pressed-border-color, var(--utrecht-button-border-color))
|
|
1366
|
+
)
|
|
1367
|
+
)
|
|
1368
|
+
)
|
|
1369
|
+
);
|
|
1370
|
+
--_utrecht-button-pressed-color: var(
|
|
1371
|
+
--_utrecht-button-hint-pressed-color,
|
|
1372
|
+
var(
|
|
1373
|
+
--_utrecht-button-hint-color,
|
|
1374
|
+
var(
|
|
1375
|
+
--_utrecht-button-appearance-pressed-color,
|
|
1376
|
+
var(--_utrecht-button-appearance-color, var(--utrecht-button-pressed-color, var(--utrecht-button-color)))
|
|
1377
|
+
)
|
|
1378
|
+
)
|
|
1379
|
+
);
|
|
1380
|
+
--_utrecht-button-focus-background-color: var(
|
|
1381
|
+
--_utrecht-button-hint-focus-background-color,
|
|
1382
|
+
var(
|
|
1383
|
+
--_utrecht-button-hint-background-color,
|
|
1384
|
+
var(
|
|
1385
|
+
--_utrecht-button-appearance-focus-background-color,
|
|
1386
|
+
var(
|
|
1387
|
+
--_utrecht-button-appearance-background-color,
|
|
1388
|
+
var(--utrecht-button-focus-background-color, var(--utrecht-button-background-color))
|
|
1389
|
+
)
|
|
1390
|
+
)
|
|
1391
|
+
)
|
|
1392
|
+
);
|
|
1393
|
+
--_utrecht-button-focus-border-color: var(
|
|
1394
|
+
--_utrecht-button-hint-focus-border-color,
|
|
1395
|
+
var(
|
|
1396
|
+
--_utrecht-button-hint-border-color,
|
|
1397
|
+
var(
|
|
1398
|
+
--_utrecht-button-appearance-focus-border-color,
|
|
1399
|
+
var(
|
|
1400
|
+
--_utrecht-button-appearance-border-color,
|
|
1401
|
+
var(--utrecht-button-focus-border-color, var(--utrecht-button-border-color))
|
|
1402
|
+
)
|
|
1403
|
+
)
|
|
1404
|
+
)
|
|
1405
|
+
);
|
|
1406
|
+
--_utrecht-button-focus-color: var(
|
|
1407
|
+
--_utrecht-button-hint-focus-color,
|
|
1408
|
+
var(
|
|
1409
|
+
--_utrecht-button-hint-color,
|
|
1410
|
+
var(
|
|
1411
|
+
--_utrecht-button-appearance-focus-color,
|
|
1412
|
+
var(--_utrecht-button-appearance-color, var(--utrecht-button-focus-color, var(--utrecht-button-color)))
|
|
1413
|
+
)
|
|
1414
|
+
)
|
|
1415
|
+
);
|
|
1416
|
+
--_utrecht-button-hover-background-color: var(
|
|
1417
|
+
--_utrecht-button-hint-hover-background-color,
|
|
1418
|
+
var(
|
|
1419
|
+
--_utrecht-button-hint-background-color,
|
|
1420
|
+
var(
|
|
1421
|
+
--_utrecht-button-appearance-hover-background-color,
|
|
1422
|
+
var(
|
|
1423
|
+
--_utrecht-button-appearance-background-color,
|
|
1424
|
+
var(--utrecht-button-hover-background-color, var(--utrecht-button-background-color))
|
|
1425
|
+
)
|
|
1426
|
+
)
|
|
1427
|
+
)
|
|
1428
|
+
);
|
|
1429
|
+
--_utrecht-button-hover-border-color: var(
|
|
1430
|
+
--_utrecht-button-hint-hover-border-color,
|
|
1431
|
+
var(
|
|
1432
|
+
--_utrecht-button-hint-border-color,
|
|
1433
|
+
var(
|
|
1434
|
+
--_utrecht-button-appearance-hover-border-color,
|
|
1435
|
+
var(
|
|
1436
|
+
--_utrecht-button-appearance-border-color,
|
|
1437
|
+
var(--utrecht-button-hover-border-color, var(--utrecht-button-border-color))
|
|
1438
|
+
)
|
|
1439
|
+
)
|
|
1440
|
+
)
|
|
1441
|
+
);
|
|
1442
|
+
--_utrecht-button-hover-color: var(
|
|
1443
|
+
--_utrecht-button-hint-hover-color,
|
|
1444
|
+
var(
|
|
1445
|
+
--_utrecht-button-hint-color,
|
|
1446
|
+
var(
|
|
1447
|
+
--_utrecht-button-appearance-hover-color,
|
|
1448
|
+
var(--_utrecht-button-appearance-color, var(--utrecht-button-hover-color, var(--utrecht-button-color)))
|
|
1449
|
+
)
|
|
1450
|
+
)
|
|
1451
|
+
);
|
|
1452
|
+
--_utrecht-button-active-background-color: var(
|
|
1453
|
+
--_utrecht-button-hint-active-background-color,
|
|
1454
|
+
var(
|
|
1455
|
+
--_utrecht-button-hint-background-color,
|
|
1456
|
+
var(
|
|
1457
|
+
--_utrecht-button-appearance-active-background-color,
|
|
1458
|
+
var(
|
|
1459
|
+
--_utrecht-button-appearance-background-color,
|
|
1460
|
+
var(--utrecht-button-active-background-color, var(--utrecht-button-background-color))
|
|
1461
|
+
)
|
|
1462
|
+
)
|
|
1463
|
+
)
|
|
1464
|
+
);
|
|
1465
|
+
--_utrecht-button-active-border-color: var(
|
|
1466
|
+
--_utrecht-button-hint-active-border-color,
|
|
1467
|
+
var(
|
|
1468
|
+
--_utrecht-button-hint-border-color,
|
|
1469
|
+
var(
|
|
1470
|
+
--_utrecht-button-appearance-active-border-color,
|
|
1471
|
+
var(
|
|
1472
|
+
--_utrecht-button-appearance-border-color,
|
|
1473
|
+
var(--utrecht-button-active-border-color, var(--utrecht-button-border-color))
|
|
1474
|
+
)
|
|
1475
|
+
)
|
|
1476
|
+
)
|
|
1477
|
+
);
|
|
1478
|
+
--_utrecht-button-active-color: var(
|
|
1479
|
+
--_utrecht-button-hint-active-color,
|
|
1480
|
+
var(
|
|
1481
|
+
--_utrecht-button-hint-color,
|
|
1482
|
+
var(
|
|
1483
|
+
--_utrecht-button-appearance-active-color,
|
|
1484
|
+
var(--_utrecht-button-appearance-color, var(--utrecht-button-active-color, var(--utrecht-button-color)))
|
|
1485
|
+
)
|
|
1486
|
+
)
|
|
1487
|
+
);
|
|
1488
|
+
--_utrecht-button-border-width: var(--_utrecht-button-appearance-border-width, var(--utrecht-button-border-width, 0));
|
|
1489
|
+
--_utrecht-button-border-block-end-width: var(
|
|
1490
|
+
--utrecht-button-border-bottom-width,
|
|
1491
|
+
var(--_utrecht-button-border-width, 0)
|
|
1492
|
+
);
|
|
1493
|
+
--_utrecht-button-font-size: var(--_utrecht-button-appearance-font-size, var(--utrecht-button-font-size));
|
|
1494
|
+
--_utrecht-button-line-height: var(--_utrecht-button-appearance-line-height, var(--utrecht-button-line-height));
|
|
1495
|
+
--utrecht-icon-size: var(--utrecht-button-icon-size, 1em);
|
|
1496
|
+
align-items: center;
|
|
1497
|
+
background-color: var(--_utrecht-button-background-color);
|
|
1498
|
+
block-size: fit-content;
|
|
1499
|
+
border-block-end-color: var(--_utrecht-button-border-bottom-color);
|
|
1500
|
+
border-block-end-width: var(--_utrecht-button-border-block-end-width);
|
|
1501
|
+
border-color: var(--_utrecht-button-border-color);
|
|
1502
|
+
border-radius: var(--utrecht-button-border-radius);
|
|
1503
|
+
border-style: solid;
|
|
1504
|
+
border-width: var(--_utrecht-button-border-width);
|
|
1505
|
+
box-sizing: border-box;
|
|
1506
|
+
color: var(--_utrecht-button-color);
|
|
1507
|
+
column-gap: var(--utrecht-button-column-gap);
|
|
1508
|
+
cursor: var(--utrecht-action-activate-cursor, revert);
|
|
1509
|
+
display: inline-flex;
|
|
1510
|
+
font-family: var(--utrecht-button-font-family, var(--utrecht-document-font-family));
|
|
1511
|
+
font-size: var(--_utrecht-button-font-size, var(--utrecht-document-font-family, inherit));
|
|
1512
|
+
font-weight: var(--_utrecht-button-appearance-font-weight, var(--utrecht-button-font-weight));
|
|
1513
|
+
inline-size: var(--utrecht-button-inline-size, auto);
|
|
1514
|
+
justify-content: center;
|
|
1515
|
+
line-height: var(--_utrecht-button-line-height);
|
|
1516
|
+
max-inline-size: var(--utrecht-button-max-inline-size, fit-content);
|
|
1517
|
+
min-block-size: var(--utrecht-button-min-block-size, 44px);
|
|
1518
|
+
min-inline-size: var(--utrecht-button-min-inline-size, 44px);
|
|
1519
|
+
padding-block-end: var(--utrecht-button-padding-block-end);
|
|
1520
|
+
padding-block-start: var(--utrecht-button-padding-block-start);
|
|
1521
|
+
padding-inline-end: var(--utrecht-button-padding-inline-end);
|
|
1522
|
+
padding-inline-start: var(--utrecht-button-padding-inline-start);
|
|
1523
|
+
scale: 1;
|
|
1524
|
+
text-transform: var(--utrecht-button-text-transform);
|
|
1525
|
+
-webkit-user-select: none;
|
|
1526
|
+
user-select: none;
|
|
1527
|
+
text-decoration: none;
|
|
1528
|
+
box-shadow: none;
|
|
1529
|
+
letter-spacing: normal;
|
|
1530
|
+
width: initial;
|
|
1531
|
+
}
|
|
1532
|
+
.nijmegen-component-library-mapping .btn:disabled {
|
|
1533
|
+
background-color: var(--_utrecht-button-disabled-background-color);
|
|
1534
|
+
border-color: var(--_utrecht-button-disabled-border-color);
|
|
1535
|
+
color: var(--_utrecht-button-disabled-color);
|
|
1536
|
+
cursor: var(--utrecht-action-disabled-cursor, not-allowed);
|
|
1537
|
+
}
|
|
1538
|
+
.nijmegen-component-library-mapping .btn:focus:not(:disabled, [aria-disabled=true]) {
|
|
1539
|
+
background-color: var(--_utrecht-button-focus-background-color);
|
|
1540
|
+
border-color: var(--_utrecht-button-focus-border-color);
|
|
1541
|
+
color: var(--_utrecht-button-focus-color);
|
|
1542
|
+
scale: var(--utrecht-button-focus-scale, 1);
|
|
1543
|
+
}
|
|
1544
|
+
.nijmegen-component-library-mapping .btn:focus-visible {
|
|
1545
|
+
background-color: var(--_utrecht-button-focus-background-color);
|
|
1546
|
+
border-color: var(--_utrecht-button-focus-border-color);
|
|
1547
|
+
color: var(--_utrecht-button-focus-color);
|
|
1548
|
+
scale: var(--utrecht-button-focus-scale, 1);
|
|
1549
|
+
/* the pseudo-class for `:focus-visible` is implemented via the mixin */
|
|
1550
|
+
/* - The browser default focus ring should apply when these CSS custom properties are not set.
|
|
1551
|
+
* - Make the `box-shadow` value available, so components that have their own `box-shadow`
|
|
1552
|
+
* can combine it with the focus ring box shadow.
|
|
1553
|
+
*/
|
|
1554
|
+
--_utrecht-focus-ring-box-shadow: 0 0 0 var(--utrecht-focus-outline-width, 0)
|
|
1555
|
+
var(--utrecht-focus-inverse-outline-color, transparent);
|
|
1556
|
+
box-shadow: var(--_utrecht-focus-ring-box-shadow);
|
|
1557
|
+
outline-color: var(--utrecht-focus-outline-color, revert);
|
|
1558
|
+
outline-offset: var(--utrecht-focus-outline-offset, revert);
|
|
1559
|
+
outline-style: var(--utrecht-focus-outline-style, revert);
|
|
1560
|
+
outline-width: var(--utrecht-focus-outline-width, revert);
|
|
1561
|
+
z-index: 1;
|
|
1562
|
+
}
|
|
1563
|
+
.nijmegen-component-library-mapping .btn:hover:not(:disabled, [aria-disabled=true]) {
|
|
1564
|
+
background-color: var(--_utrecht-button-hover-background-color);
|
|
1565
|
+
border-color: var(--_utrecht-button-hover-border-color);
|
|
1566
|
+
color: var(--_utrecht-button-hover-color);
|
|
1567
|
+
scale: var(--utrecht-button-hover-scale, 1);
|
|
1568
|
+
}
|
|
1569
|
+
.nijmegen-component-library-mapping .btn:active:not(:disabled, [aria-disabled=true]) {
|
|
1570
|
+
background-color: var(--_utrecht-button-active-background-color);
|
|
1571
|
+
border-color: var(--_utrecht-button-active-border-color);
|
|
1572
|
+
color: var(--_utrecht-button-active-color);
|
|
1573
|
+
}
|
|
1574
|
+
.nijmegen-component-library-mapping .btn.btn-primary {
|
|
1575
|
+
--_utrecht-button-appearance-active-background-color: var(--utrecht-button-primary-action-active-background-color);
|
|
1576
|
+
--_utrecht-button-appearance-active-border-color: var(--utrecht-button-primary-action-active-border-color);
|
|
1577
|
+
--_utrecht-button-appearance-active-color: var(--utrecht-button-primary-action-active-color);
|
|
1578
|
+
--_utrecht-button-appearance-background-color: var(--utrecht-button-primary-action-background-color);
|
|
1579
|
+
--_utrecht-button-appearance-border-color: var(--utrecht-button-primary-action-border-color);
|
|
1580
|
+
--_utrecht-button-appearance-border-width: var(--utrecht-button-primary-action-border-width);
|
|
1581
|
+
--_utrecht-button-appearance-color: var(--utrecht-button-primary-action-color);
|
|
1582
|
+
--_utrecht-button-appearance-font-size: var(--utrecht-button-primary-action-font-size);
|
|
1583
|
+
--_utrecht-button-appearance-font-weight: var(--utrecht-button-primary-action-font-weight);
|
|
1584
|
+
--_utrecht-button-appearance-line-height: var(--utrecht-button-primary-action-line-height);
|
|
1585
|
+
--_utrecht-button-appearance-disabled-background-color: var(--utrecht-button-primary-action-disabled-background-color);
|
|
1586
|
+
--_utrecht-button-appearance-disabled-border-color: var(--utrecht-button-primary-action-disabled-border-color);
|
|
1587
|
+
--_utrecht-button-appearance-disabled-color: var(--utrecht-button-primary-action-disabled-color);
|
|
1588
|
+
--_utrecht-button-appearance-focus-background-color: var(--utrecht-button-primary-action-focus-background-color);
|
|
1589
|
+
--_utrecht-button-appearance-focus-border-color: var(--utrecht-button-primary-action-focus-border-color);
|
|
1590
|
+
--_utrecht-button-appearance-focus-color: var(--utrecht-button-primary-action-focus-color);
|
|
1591
|
+
--_utrecht-button-appearance-hover-background-color: var(--utrecht-button-primary-action-hover-background-color);
|
|
1592
|
+
--_utrecht-button-appearance-hover-border-color: var(--utrecht-button-primary-action-hover-border-color);
|
|
1593
|
+
--_utrecht-button-appearance-hover-color: var(--utrecht-button-primary-action-hover-color);
|
|
1594
|
+
--_utrecht-button-appearance-pressed-background-color: var(--utrecht-button-primary-action-pressed-background-color);
|
|
1595
|
+
--_utrecht-button-appearance-pressed-border-color: var(--utrecht-button-primary-action-pressed-border-color);
|
|
1596
|
+
--_utrecht-button-appearance-pressed-color: var(--utrecht-button-primary-action-pressed-color);
|
|
1597
|
+
}
|
|
1598
|
+
.nijmegen-component-library-mapping .btn.btn-secondary {
|
|
1599
|
+
--_utrecht-button-appearance-active-background-color: var(--utrecht-button-secondary-action-active-background-color);
|
|
1600
|
+
--_utrecht-button-appearance-active-border-color: var(--utrecht-button-secondary-action-active-border-color);
|
|
1601
|
+
--_utrecht-button-appearance-active-color: var(--utrecht-button-secondary-action-active-color);
|
|
1602
|
+
--_utrecht-button-appearance-background-color: var(--utrecht-button-secondary-action-background-color);
|
|
1603
|
+
--_utrecht-button-appearance-border-color: var(--utrecht-button-secondary-action-border-color);
|
|
1604
|
+
--_utrecht-button-appearance-border-width: var(--utrecht-button-secondary-action-border-width);
|
|
1605
|
+
--_utrecht-button-appearance-color: var(--utrecht-button-secondary-action-color);
|
|
1606
|
+
--_utrecht-button-appearance-font-size: var(--utrecht-button-secondary-action-font-size);
|
|
1607
|
+
--_utrecht-button-appearance-font-weight: var(--utrecht-button-secondary-action-font-weight);
|
|
1608
|
+
--_utrecht-button-appearance-line-height: var(--utrecht-button-secondary-action-line-height);
|
|
1609
|
+
--_utrecht-button-appearance-disabled-background-color: var(--utrecht-button-secondary-action-disabled-background-color);
|
|
1610
|
+
--_utrecht-button-appearance-disabled-border-color: var(--utrecht-button-secondary-action-disabled-border-color);
|
|
1611
|
+
--_utrecht-button-appearance-disabled-color: var(--utrecht-button-secondary-action-disabled-color);
|
|
1612
|
+
--_utrecht-button-appearance-focus-background-color: var(--utrecht-button-secondary-action-focus-background-color);
|
|
1613
|
+
--_utrecht-button-appearance-focus-border-color: var(--utrecht-button-secondary-action-focus-border-color);
|
|
1614
|
+
--_utrecht-button-appearance-focus-color: var(--utrecht-button-secondary-action-focus-color);
|
|
1615
|
+
--_utrecht-button-appearance-hover-background-color: var(--utrecht-button-secondary-action-hover-background-color);
|
|
1616
|
+
--_utrecht-button-appearance-hover-border-color: var(--utrecht-button-secondary-action-hover-border-color);
|
|
1617
|
+
--_utrecht-button-appearance-hover-color: var(--utrecht-button-secondary-action-hover-color);
|
|
1618
|
+
--_utrecht-button-appearance-pressed-background-color: var(--utrecht-button-secondary-action-pressed-background-color);
|
|
1619
|
+
--_utrecht-button-appearance-pressed-border-color: var(--utrecht-button-secondary-action-pressed-border-color);
|
|
1620
|
+
--_utrecht-button-appearance-pressed-color: var(--utrecht-button-secondary-action-pressed-color);
|
|
893
1621
|
}
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.0.2-alpha.
|
|
2
|
+
"version": "0.0.2-alpha.102",
|
|
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,13 @@
|
|
|
24
24
|
"clean": "rimraf dist"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@
|
|
27
|
+
"@babel/core": "7.24.0",
|
|
28
|
+
"@babel/preset-env": "7.24.0",
|
|
29
|
+
"@gemeentenijmegen/components-css": "0.0.1-alpha.95",
|
|
30
|
+
"@rollup/plugin-babel": "6.0.4",
|
|
31
|
+
"@rollup/plugin-commonjs": "25.0.7",
|
|
32
|
+
"@rollup/plugin-node-resolve": "15.2.3",
|
|
33
|
+
"@rollup/plugin-terser": "0.4.4",
|
|
28
34
|
"@utrecht/button-css": "2.3.0",
|
|
29
35
|
"@utrecht/document-css": "1.5.0",
|
|
30
36
|
"@utrecht/focus-ring-css": "2.3.0",
|
|
@@ -41,5 +47,5 @@
|
|
|
41
47
|
"rollup": "4.12.1",
|
|
42
48
|
"rollup-plugin-postcss": "4.0.2"
|
|
43
49
|
},
|
|
44
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "c03ffda643e7af7a6e59d618ccfe35a414a83d1a"
|
|
45
51
|
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
@use "~@utrecht/button-css/src/mixin";
|
|
2
|
+
|
|
3
|
+
@mixin component-library-class-mapping-button {
|
|
4
|
+
.btn {
|
|
5
|
+
@include utrecht-button;
|
|
6
|
+
|
|
7
|
+
text-decoration: none;
|
|
8
|
+
box-shadow: none;
|
|
9
|
+
letter-spacing: normal;
|
|
10
|
+
width: initial;
|
|
11
|
+
|
|
12
|
+
&:disabled {
|
|
13
|
+
@include utrecht-button--disabled;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&:focus:not(:disabled, [aria-disabled="true"]) {
|
|
17
|
+
@include utrecht-button--focus;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&:focus-visible {
|
|
21
|
+
@include utrecht-button--focus;
|
|
22
|
+
@include utrecht-button--focus-visible;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&:hover:not(:disabled, [aria-disabled="true"]) {
|
|
26
|
+
@include utrecht-button--hover;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&:active:not(:disabled, [aria-disabled="true"]) {
|
|
30
|
+
@include utrecht-button--active;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&.btn-primary {
|
|
34
|
+
@include utrecht-button-appearance-properties("utrecht-button", "primary-action");
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&.btn-secondary {
|
|
38
|
+
@include utrecht-button-appearance-properties("utrecht-button", "secondary-action");
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
package/src/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './table/index.js';
|
package/src/index.scss
CHANGED
|
@@ -9,8 +9,13 @@
|
|
|
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 "table/mixin";
|
|
13
|
+
@import "component-library-class-mapping/mixin";
|
|
14
|
+
@import "~@gemeentenijmegen/components-css/spacing/src/semantic/mixin";
|
|
12
15
|
|
|
13
16
|
.nijmegen-html {
|
|
17
|
+
margin-block-end: var(--nijmegen-html-margin-block-end);
|
|
18
|
+
writing-mode: horizontal-tb;
|
|
14
19
|
@include utrecht-document;
|
|
15
20
|
@include utrecht-html-button;
|
|
16
21
|
@include utrecht-html-p;
|
|
@@ -26,4 +31,22 @@
|
|
|
26
31
|
@include utrecht-html-h6;
|
|
27
32
|
@include utrecht-html-a;
|
|
28
33
|
@include nijmegen-html-unordered-list;
|
|
34
|
+
@include nijmegen-html-table;
|
|
35
|
+
|
|
36
|
+
@include spacing-h1;
|
|
37
|
+
@include spacing-h2;
|
|
38
|
+
@include spacing-h3;
|
|
39
|
+
@include spacing-h4;
|
|
40
|
+
@include spacing-h5;
|
|
41
|
+
@include spacing-h6;
|
|
42
|
+
@include spacing-button;
|
|
43
|
+
@include spacing-p;
|
|
44
|
+
@include spacing-ul;
|
|
45
|
+
@include spacing-nijmegen-html-linklist;
|
|
46
|
+
@include spacing-a;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.nijmegen-component-library-mapping {
|
|
50
|
+
writing-mode: horizontal-tb;
|
|
51
|
+
@include component-library-class-mapping-button;
|
|
29
52
|
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
@import "~@gemeentenijmegen/components-css/table/mixin";
|
|
2
|
+
@mixin nijmegen-html-table {
|
|
3
|
+
table {
|
|
4
|
+
@include nijmegen-table;
|
|
5
|
+
|
|
6
|
+
width: 100%; /* stylelint-disable-line property-disallowed-list */
|
|
7
|
+
|
|
8
|
+
caption {
|
|
9
|
+
@include nijmegen-table__caption;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
tr {
|
|
13
|
+
@include nijmegen-table__row;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
thead {
|
|
17
|
+
@include nijmegen-table__header;
|
|
18
|
+
|
|
19
|
+
th {
|
|
20
|
+
@include nijmegen-table__header-cell;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
tbody,
|
|
25
|
+
tfoot {
|
|
26
|
+
td {
|
|
27
|
+
@include nijmegen-table__data-cell;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
function responsiveTables() {
|
|
2
|
+
document.querySelectorAll('.nijmegen-html table').forEach((table) => {
|
|
3
|
+
const ths = table.querySelectorAll('thead th');
|
|
4
|
+
const headings = Array.from(ths).map((th) => th.textContent.trim());
|
|
5
|
+
|
|
6
|
+
if (headings.length === 0) return;
|
|
7
|
+
|
|
8
|
+
const tds = table.querySelectorAll('tbody td');
|
|
9
|
+
tds.forEach((td, idx) => {
|
|
10
|
+
td.setAttribute('data-label', headings[idx % headings.length]);
|
|
11
|
+
});
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
if (document.readyState === 'loading') {
|
|
16
|
+
document.addEventListener('DOMContentLoaded', responsiveTables);
|
|
17
|
+
} else {
|
|
18
|
+
responsiveTables();
|
|
19
|
+
}
|