@adatechnology/content-ui 0.4.0 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/styles.css CHANGED
@@ -245,6 +245,7 @@
245
245
  color: var(--adc-color-muted);
246
246
  }
247
247
  .adc-chip--scheduled,
248
+ .adc-chip--pending_review,
248
249
  .adc-badge {
249
250
  background: color-mix(in srgb, var(--adc-color-warning) 14%, var(--adc-color-surface));
250
251
  color: var(--adc-color-warning);
@@ -253,6 +254,10 @@
253
254
  background: color-mix(in srgb, var(--adc-color-success) 14%, var(--adc-color-surface));
254
255
  color: var(--adc-color-success);
255
256
  }
257
+ .adc-chip--rejected {
258
+ background: color-mix(in srgb, var(--adc-color-danger) 14%, var(--adc-color-surface));
259
+ color: var(--adc-color-danger);
260
+ }
256
261
  .adc-chip--archived {
257
262
  background: var(--adc-color-canvas);
258
263
  color: var(--adc-color-muted);
@@ -1012,4 +1017,452 @@
1012
1017
  opacity: 1;
1013
1018
  transform: translate(-50%, 0);
1014
1019
  }
1020
+ .adc-figure {
1021
+ margin: calc(var(--adc-space) * 4) 0;
1022
+ min-width: 0;
1023
+ }
1024
+ .adc-figure__button {
1025
+ display: block;
1026
+ width: 100%;
1027
+ padding: 0;
1028
+ border: 0;
1029
+ border-radius: var(--adc-radius);
1030
+ background: none;
1031
+ cursor: zoom-in;
1032
+ }
1033
+ .adc-figure__button:focus-visible {
1034
+ outline: 2px solid var(--adc-color-accent);
1035
+ outline-offset: 2px;
1036
+ }
1037
+ .adc-figure img {
1038
+ display: block;
1039
+ max-width: 100%;
1040
+ border-radius: var(--adc-radius);
1041
+ }
1042
+ .adc-figure figcaption {
1043
+ margin-top: calc(var(--adc-space) * 2);
1044
+ color: var(--adc-color-muted);
1045
+ font-size: 0.875rem;
1046
+ }
1047
+ .adc-gallery {
1048
+ display: grid;
1049
+ grid-template-columns: repeat(2, minmax(0, 1fr));
1050
+ gap: calc(var(--adc-space) * 2);
1051
+ margin: calc(var(--adc-space) * 4) 0;
1052
+ }
1053
+ .adc-gallery .adc-figure {
1054
+ margin: 0;
1055
+ }
1056
+ .adc-gallery .adc-figure__button {
1057
+ aspect-ratio: 4 / 3;
1058
+ }
1059
+ .adc-gallery .adc-figure img {
1060
+ width: 100%;
1061
+ height: 100%;
1062
+ object-fit: cover;
1063
+ }
1064
+ .adc-gallery .adc-figure figcaption {
1065
+ display: -webkit-box;
1066
+ overflow: hidden;
1067
+ -webkit-line-clamp: 2;
1068
+ -webkit-box-orient: vertical;
1069
+ font-size: 0.8125rem;
1070
+ }
1071
+ .adc-gallery[data-count="3"] {
1072
+ grid-template-columns: repeat(3, minmax(0, 1fr));
1073
+ }
1074
+ .adc-gallery[data-count="3"] .adc-figure__button {
1075
+ aspect-ratio: 1;
1076
+ }
1077
+ .adc-gallery:not([data-count="2"], [data-count="3"]) {
1078
+ grid-template-columns: repeat(3, minmax(0, 1fr));
1079
+ }
1080
+ .adc-gallery:not([data-count="2"], [data-count="3"]) .adc-figure__button {
1081
+ aspect-ratio: 1;
1082
+ }
1083
+ .adc-gallery:not([data-count="2"], [data-count="3"], [data-count="4"]) .adc-figure:first-child {
1084
+ grid-column: span 2;
1085
+ grid-row: span 2;
1086
+ }
1087
+ .adc-gallery:not([data-count="2"], [data-count="3"], [data-count="4"]) .adc-figure:first-child .adc-figure__button {
1088
+ aspect-ratio: auto;
1089
+ height: 100%;
1090
+ }
1091
+ @media (max-width: 480px) {
1092
+ .adc-gallery[data-count="3"] {
1093
+ grid-template-columns: repeat(2, minmax(0, 1fr));
1094
+ }
1095
+ .adc-gallery[data-count="3"] .adc-figure:first-child {
1096
+ grid-column: 1 / -1;
1097
+ }
1098
+ .adc-gallery[data-count="3"] .adc-figure:first-child .adc-figure__button {
1099
+ aspect-ratio: 4 / 3;
1100
+ }
1101
+ .adc-gallery:not([data-count="2"], [data-count="3"]) {
1102
+ grid-template-columns: repeat(2, minmax(0, 1fr));
1103
+ }
1104
+ .adc-gallery:not([data-count="2"], [data-count="3"], [data-count="4"]) .adc-figure:first-child {
1105
+ grid-column: 1 / -1;
1106
+ grid-row: auto;
1107
+ }
1108
+ .adc-gallery:not([data-count="2"], [data-count="3"], [data-count="4"]) .adc-figure:first-child .adc-figure__button {
1109
+ aspect-ratio: 4 / 3;
1110
+ height: auto;
1111
+ }
1112
+ }
1113
+ .adc-scroll-locked {
1114
+ overflow: hidden;
1115
+ }
1116
+ .adc-lightbox {
1117
+ position: fixed;
1118
+ inset: 0;
1119
+ z-index: 60;
1120
+ display: grid;
1121
+ grid-template-rows: auto 1fr;
1122
+ padding: calc(var(--adc-space) * 3);
1123
+ background: color-mix(in srgb, #000000 92%, transparent);
1124
+ color: var(--adc-color-surface);
1125
+ animation: adc-lightbox-in 0.15s ease-out;
1126
+ }
1127
+ .adc-lightbox__bar {
1128
+ display: flex;
1129
+ align-items: center;
1130
+ justify-content: space-between;
1131
+ }
1132
+ .adc-lightbox__counter {
1133
+ font-size: 0.875rem;
1134
+ font-variant-numeric: tabular-nums;
1135
+ }
1136
+ .adc-lightbox__stage {
1137
+ display: grid;
1138
+ grid-template-columns: auto minmax(0, 1fr) auto;
1139
+ align-items: center;
1140
+ gap: calc(var(--adc-space) * 2);
1141
+ min-height: 0;
1142
+ }
1143
+ .adc-lightbox__figure {
1144
+ display: grid;
1145
+ justify-items: center;
1146
+ gap: calc(var(--adc-space) * 2);
1147
+ min-height: 0;
1148
+ margin: 0;
1149
+ text-align: center;
1150
+ }
1151
+ .adc-lightbox .adc-lightbox__figure img {
1152
+ max-width: 100%;
1153
+ max-height: calc(100vh - 9rem);
1154
+ object-fit: contain;
1155
+ border-radius: 0;
1156
+ }
1157
+ .adc-lightbox__figure figcaption {
1158
+ max-width: 40rem;
1159
+ font-size: 0.9375rem;
1160
+ }
1161
+ .adc-lightbox__button {
1162
+ display: inline-flex;
1163
+ align-items: center;
1164
+ justify-content: center;
1165
+ width: 2.75rem;
1166
+ height: 2.75rem;
1167
+ padding: 0;
1168
+ border: 0;
1169
+ border-radius: 999px;
1170
+ background: color-mix(in srgb, var(--adc-color-surface) 16%, transparent);
1171
+ color: var(--adc-color-surface);
1172
+ font-size: 1.5rem;
1173
+ cursor: pointer;
1174
+ }
1175
+ .adc-lightbox__button:hover {
1176
+ background: color-mix(in srgb, var(--adc-color-surface) 28%, transparent);
1177
+ }
1178
+ .adc-lightbox__button:focus-visible {
1179
+ outline: 2px solid var(--adc-color-surface);
1180
+ outline-offset: 2px;
1181
+ }
1182
+ @keyframes adc-lightbox-in {
1183
+ from {
1184
+ opacity: 0;
1185
+ }
1186
+ }
1187
+ @media (prefers-reduced-motion: reduce) {
1188
+ .adc-lightbox {
1189
+ animation: none;
1190
+ }
1191
+ }
1192
+ .adc-photo-dialog--dragging {
1193
+ outline: 2px dashed var(--adc-color-accent);
1194
+ outline-offset: -2px;
1195
+ background: var(--adc-color-accent-soft);
1196
+ }
1197
+ .adc-photo-list {
1198
+ display: flex;
1199
+ flex-direction: column;
1200
+ gap: calc(var(--adc-space) * 3);
1201
+ margin: 0;
1202
+ padding: 0;
1203
+ list-style: none;
1204
+ }
1205
+ .adc-photo-row {
1206
+ display: grid;
1207
+ grid-template-columns: 5rem minmax(0, 1fr) auto;
1208
+ gap: calc(var(--adc-space) * 3);
1209
+ padding: calc(var(--adc-space) * 3);
1210
+ border: 1px solid var(--adc-color-border);
1211
+ border-radius: var(--adc-radius);
1212
+ }
1213
+ .adc-photo-thumb {
1214
+ width: 5rem;
1215
+ height: 5rem;
1216
+ object-fit: cover;
1217
+ border-radius: var(--adc-radius);
1218
+ background: var(--adc-color-canvas);
1219
+ }
1220
+ .adc-photo-fields {
1221
+ display: flex;
1222
+ flex-direction: column;
1223
+ gap: calc(var(--adc-space) * 2);
1224
+ min-width: 0;
1225
+ }
1226
+ .adc-photo-actions {
1227
+ display: flex;
1228
+ flex-direction: column;
1229
+ gap: calc(var(--adc-space) * 2);
1230
+ align-items: stretch;
1231
+ }
1232
+ .adc-photo-status {
1233
+ margin: 0;
1234
+ color: var(--adc-color-muted);
1235
+ font-size: 0.8125rem;
1236
+ }
1237
+ .adc-photo-status--done {
1238
+ color: var(--adc-color-success);
1239
+ }
1240
+ .adc-photo-status--error {
1241
+ color: var(--adc-color-danger);
1242
+ }
1243
+ @media (max-width: 36rem) {
1244
+ .adc-photo-row {
1245
+ grid-template-columns: 4rem minmax(0, 1fr);
1246
+ }
1247
+ .adc-photo-actions {
1248
+ grid-column: 1 / -1;
1249
+ flex-direction: row;
1250
+ flex-wrap: wrap;
1251
+ }
1252
+ }
1253
+ .adc-origin-tabs {
1254
+ display: flex;
1255
+ gap: calc(var(--adc-space) * 2);
1256
+ margin-bottom: calc(var(--adc-space) * 4);
1257
+ border-bottom: 1px solid var(--adc-color-border);
1258
+ }
1259
+ .adc-origin-tab {
1260
+ display: inline-flex;
1261
+ align-items: center;
1262
+ min-height: 2.75rem;
1263
+ padding: 0 calc(var(--adc-space) * 3);
1264
+ border-bottom: 2px solid transparent;
1265
+ color: var(--adc-color-muted);
1266
+ text-decoration: none;
1267
+ }
1268
+ .adc-origin-tab--active {
1269
+ border-bottom-color: var(--adc-color-accent);
1270
+ color: var(--adc-color-text);
1271
+ font-weight: 600;
1272
+ }
1273
+ .adc-badge--community {
1274
+ background: var(--adc-color-accent-soft);
1275
+ color: var(--adc-color-accent);
1276
+ }
1277
+ .adc-report {
1278
+ display: flex;
1279
+ align-items: center;
1280
+ margin-top: calc(var(--adc-space) * 6);
1281
+ }
1282
+ .adc-report .adc-button {
1283
+ min-height: 2.75rem;
1284
+ }
1285
+ .adc-stories__list,
1286
+ .adc-reports__list {
1287
+ display: grid;
1288
+ gap: calc(var(--adc-space) * 3);
1289
+ margin: 0;
1290
+ padding: 0;
1291
+ list-style: none;
1292
+ }
1293
+ .adc-story,
1294
+ .adc-report {
1295
+ display: flex;
1296
+ flex-wrap: wrap;
1297
+ align-items: flex-start;
1298
+ justify-content: space-between;
1299
+ gap: calc(var(--adc-space) * 3);
1300
+ padding: calc(var(--adc-space) * 4);
1301
+ border: 1px solid var(--adc-color-border);
1302
+ border-radius: var(--adc-radius);
1303
+ background: var(--adc-color-surface);
1304
+ }
1305
+ .adc-story__main,
1306
+ .adc-report__main {
1307
+ display: grid;
1308
+ flex: 1 1 16rem;
1309
+ gap: calc(var(--adc-space) * 2);
1310
+ min-width: 0;
1311
+ }
1312
+ .adc-story__title {
1313
+ overflow-wrap: anywhere;
1314
+ }
1315
+ .adc-story__meta,
1316
+ .adc-review__meta,
1317
+ .adc-row-meta {
1318
+ display: flex;
1319
+ flex-wrap: wrap;
1320
+ align-items: center;
1321
+ gap: calc(var(--adc-space) * 2);
1322
+ }
1323
+ .adc-row-meta {
1324
+ margin-top: var(--adc-space);
1325
+ }
1326
+ .adc-story__note {
1327
+ margin: 0;
1328
+ padding: calc(var(--adc-space) * 2) calc(var(--adc-space) * 3);
1329
+ border-left: 3px solid var(--adc-color-danger);
1330
+ background: color-mix(in srgb, var(--adc-color-danger) 8%, var(--adc-color-surface));
1331
+ color: var(--adc-color-text);
1332
+ font-size: 0.875rem;
1333
+ overflow-wrap: anywhere;
1334
+ }
1335
+ .adc-story__actions,
1336
+ .adc-report__actions,
1337
+ .adc-story-editor__actions,
1338
+ .adc-moderation-nav,
1339
+ .adc-review__actions,
1340
+ .adc-reports__pager {
1341
+ display: flex;
1342
+ flex-wrap: wrap;
1343
+ align-items: center;
1344
+ gap: calc(var(--adc-space) * 2);
1345
+ }
1346
+ .adc-story-editor {
1347
+ display: grid;
1348
+ gap: calc(var(--adc-space) * 4);
1349
+ }
1350
+ .adc-terms__list {
1351
+ margin: 0 0 calc(var(--adc-space) * 3);
1352
+ padding-left: calc(var(--adc-space) * 5);
1353
+ }
1354
+ .adc-terms__accept {
1355
+ display: flex;
1356
+ align-items: center;
1357
+ gap: calc(var(--adc-space) * 3);
1358
+ }
1359
+ .adc-terms__accept .adc-checkbox {
1360
+ min-width: 2.75rem;
1361
+ min-height: 2.75rem;
1362
+ }
1363
+ .adc-terms__text {
1364
+ border: 0;
1365
+ background: none;
1366
+ color: inherit;
1367
+ font: inherit;
1368
+ font-weight: 600;
1369
+ text-align: left;
1370
+ cursor: pointer;
1371
+ }
1372
+ .adc-moderation-nav {
1373
+ margin-bottom: calc(var(--adc-space) * 3);
1374
+ }
1375
+ .adc-badge--staff {
1376
+ background: var(--adc-color-canvas);
1377
+ color: var(--adc-color-muted);
1378
+ }
1379
+ .adc-segmented {
1380
+ display: inline-flex;
1381
+ flex-wrap: wrap;
1382
+ width: fit-content;
1383
+ max-width: 100%;
1384
+ border: 1px solid var(--adc-color-border);
1385
+ border-radius: var(--adc-radius);
1386
+ background: var(--adc-color-surface);
1387
+ overflow: hidden;
1388
+ }
1389
+ .adc-segmented__option {
1390
+ min-height: 2.75rem;
1391
+ padding: 0 calc(var(--adc-space) * 4);
1392
+ border: 0;
1393
+ background: transparent;
1394
+ color: var(--adc-color-text);
1395
+ font: inherit;
1396
+ font-weight: 600;
1397
+ cursor: pointer;
1398
+ transition: background var(--adc-motion) ease-out;
1399
+ }
1400
+ .adc-segmented__option + .adc-segmented__option {
1401
+ border-left: 1px solid var(--adc-color-border);
1402
+ }
1403
+ .adc-segmented__option[aria-checked=true] {
1404
+ background: var(--adc-color-accent);
1405
+ color: var(--adc-color-on-accent);
1406
+ }
1407
+ .adc-segmented__option:focus-visible {
1408
+ outline: 2px solid var(--adc-color-accent);
1409
+ outline-offset: -4px;
1410
+ }
1411
+ .adc-stepper {
1412
+ display: inline-flex;
1413
+ align-items: center;
1414
+ gap: calc(var(--adc-space) * 2);
1415
+ }
1416
+ .adc-root .adc-stepper__value {
1417
+ width: 4.5rem;
1418
+ text-align: center;
1419
+ }
1420
+ .adc-settings__form {
1421
+ display: grid;
1422
+ gap: calc(var(--adc-space) * 5);
1423
+ max-width: 28rem;
1424
+ }
1425
+ .adc-status-tab--pending_review .adc-icon {
1426
+ color: var(--adc-color-warning);
1427
+ }
1428
+ .adc-batch-summary {
1429
+ font-size: 0.875rem;
1430
+ font-weight: 600;
1431
+ }
1432
+ .adc-review {
1433
+ display: grid;
1434
+ gap: calc(var(--adc-space) * 4);
1435
+ }
1436
+ .adc-compare {
1437
+ display: grid;
1438
+ grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
1439
+ gap: calc(var(--adc-space) * 4);
1440
+ }
1441
+ .adc-compare__side {
1442
+ min-width: 0;
1443
+ padding: calc(var(--adc-space) * 4);
1444
+ border: 1px solid var(--adc-color-border);
1445
+ border-radius: var(--adc-radius);
1446
+ background: var(--adc-color-surface);
1447
+ }
1448
+ .adc-compare__side--proposed {
1449
+ border-color: var(--adc-color-accent);
1450
+ }
1451
+ .adc-compare__title {
1452
+ margin: 0 0 calc(var(--adc-space) * 2);
1453
+ color: var(--adc-color-muted);
1454
+ font-size: 0.8125rem;
1455
+ text-transform: uppercase;
1456
+ }
1457
+ .adc-compare__post-title {
1458
+ font-weight: 700;
1459
+ overflow-wrap: anywhere;
1460
+ }
1461
+ .adc-report__reason {
1462
+ margin: 0;
1463
+ overflow-wrap: anywhere;
1464
+ }
1465
+ .adc-origin-filter {
1466
+ flex: 0 0 auto;
1467
+ }
1015
1468
  /*# sourceMappingURL=styles.css.map */