@deriv-web-design/ui 0.0.27 → 0.0.28

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 CHANGED
@@ -352,6 +352,11 @@
352
352
  gap: var(--spacing-16);
353
353
  font-size: var(--font-size-md);
354
354
  }
355
+ .tag.custom {
356
+ color: var(--tag-custom-text-color);
357
+ padding: 0 !important;
358
+ height: auto !important;
359
+ }
355
360
  .tag.regular {
356
361
  font-weight: var(--font-weight-regular);
357
362
  }
@@ -1323,10 +1328,55 @@
1323
1328
  gap: var(--spacing-24);
1324
1329
  width: 100%;
1325
1330
  }
1331
+ .card-thumbnail.ct-horizontal {
1332
+ flex-direction: row;
1333
+ align-items: flex-start;
1334
+ gap: var(--spacing-16);
1335
+ max-width: 846px;
1336
+ }
1337
+ .card-thumbnail.ct-horizontal .ct-thumbnailWrapper {
1338
+ width: 151px;
1339
+ height: 100px;
1340
+ aspect-ratio: auto;
1341
+ flex-shrink: 0;
1342
+ border-radius: var(--radius-xl);
1343
+ }
1344
+ .card-thumbnail.ct-horizontal .ct-title {
1345
+ display: -webkit-box;
1346
+ -webkit-line-clamp: 3;
1347
+ -webkit-box-orient: vertical;
1348
+ overflow: hidden;
1349
+ }
1350
+ .card-thumbnail.ct-horizontal .ct-summary {
1351
+ display: -webkit-box;
1352
+ -webkit-line-clamp: 2;
1353
+ -webkit-box-orient: vertical;
1354
+ overflow: hidden;
1355
+ }
1356
+ .card-thumbnail.ct-reverse {
1357
+ flex-direction: row-reverse;
1358
+ }
1359
+ @media (max-width: 767px) {
1360
+ .card-thumbnail.ct-horizontal {
1361
+ padding-bottom: var(--spacing-16);
1362
+ border-bottom: 1px solid var(--color-opacity-slate-8);
1363
+ }
1364
+ .card-thumbnail.ct-horizontal .ct-thumbnailWrapper {
1365
+ width: 132px;
1366
+ height: 88px;
1367
+ border-radius: var(--radius-md);
1368
+ }
1369
+ .card-thumbnail.ct-horizontal .ct-title {
1370
+ font-size: 16px;
1371
+ }
1372
+ .card-thumbnail.ct-horizontal .ct-summary {
1373
+ display: none;
1374
+ }
1375
+ }
1326
1376
  .card-thumbnail .ct-thumbnailWrapper {
1327
1377
  position: relative;
1328
1378
  width: 100%;
1329
- aspect-ratio: 4 / 3;
1379
+ aspect-ratio: 16 / 9;
1330
1380
  border-radius: var(--radius-2xl);
1331
1381
  overflow: hidden;
1332
1382
  flex-shrink: 0;
@@ -1373,7 +1423,7 @@
1373
1423
  .card-thumbnail .ct-content {
1374
1424
  display: flex;
1375
1425
  flex-direction: column;
1376
- gap: var(--spacing-16);
1426
+ gap: var(--spacing-8);
1377
1427
  width: 100%;
1378
1428
  }
1379
1429
  .card-thumbnail .ct-metaRow {
@@ -1387,10 +1437,20 @@
1387
1437
  .card-thumbnail .ct-tagsList {
1388
1438
  display: flex;
1389
1439
  align-items: center;
1390
- gap: var(--spacing-12);
1440
+ gap: var(--spacing-8);
1391
1441
  flex: 1 0 0;
1392
1442
  min-width: 0;
1393
1443
  }
1444
+ .card-thumbnail .ct-tagItem {
1445
+ display: inline-flex;
1446
+ align-items: center;
1447
+ gap: var(--spacing-8);
1448
+ }
1449
+ .card-thumbnail .ct-tagDot {
1450
+ color: var(--tag-custom-text-color);
1451
+ font-size: var(--font-size-md);
1452
+ line-height: 1;
1453
+ }
1394
1454
  .card-thumbnail .ct-copyLink {
1395
1455
  display: inline-flex;
1396
1456
  align-items: center;
@@ -1411,26 +1471,91 @@
1411
1471
  background-color: var(--tag-fill-background);
1412
1472
  }
1413
1473
  .card-thumbnail .ct-title {
1414
- font-family: var(--typography-h5-font-family);
1415
- font-size: var(--typography-h5-font-size);
1416
- font-weight: var(--typography-h5-font-weight);
1417
- line-height: var(--typography-h5-line-height);
1474
+ font-family: var(--typography-body-lg-font-family);
1475
+ font-size: var(--typography-body-lg-font-size);
1476
+ font-weight: var(--font-weight-semi-bold);
1477
+ line-height: var(--typography-body-lg-line-height);
1418
1478
  color: var(--color-slate-1200);
1419
1479
  overflow: hidden;
1420
1480
  text-overflow: ellipsis;
1421
1481
  margin: 0;
1422
1482
  }
1423
1483
  .card-thumbnail .ct-summary {
1424
- font-family: var(--typography-body-md-font-family);
1425
- font-size: var(--typography-body-md-font-size);
1426
- font-weight: var(--typography-body-md-font-weight);
1427
- line-height: var(--typography-body-md-line-height);
1484
+ font-family: var(--typography-body-sm-font-family);
1485
+ font-size: var(--typography-body-sm-font-size);
1486
+ font-weight: var(--typography-body-sm-font-weight);
1487
+ line-height: var(--typography-body-sm-line-height);
1428
1488
  color: var(--color-slate-1200);
1429
1489
  overflow: hidden;
1430
1490
  text-overflow: ellipsis;
1431
1491
  margin: 0;
1432
1492
  }
1433
1493
 
1494
+ /* components/Card/CardCategoryVariant.css */
1495
+ .card-category {
1496
+ display: flex;
1497
+ flex-direction: column;
1498
+ gap: var(--spacing-16);
1499
+ width: 100%;
1500
+ }
1501
+ .card-category .cc-header {
1502
+ display: flex;
1503
+ flex-direction: column;
1504
+ gap: var(--spacing-16);
1505
+ cursor: pointer;
1506
+ }
1507
+ .card-category .cc-header:hover .cc-title {
1508
+ text-decoration: underline;
1509
+ }
1510
+ .card-category .cc-header:hover .cc-thumbnailImage {
1511
+ transform: scale(1.05);
1512
+ }
1513
+ .card-category .cc-thumbnailImage {
1514
+ transition: transform 0.25s ease-in-out;
1515
+ }
1516
+ .card-category .cc-title {
1517
+ font-family: var(--typography-h5-font-family);
1518
+ font-size: var(--typography-h5-font-size);
1519
+ font-weight: var(--typography-h5-font-weight);
1520
+ line-height: var(--typography-h5-line-height);
1521
+ color: var(--color-slate-1200);
1522
+ margin: 0;
1523
+ }
1524
+ .card-category .cc-thumbnailWrapper {
1525
+ width: 100%;
1526
+ aspect-ratio: 16 / 9;
1527
+ border-radius: var(--radius-2xl);
1528
+ overflow: hidden;
1529
+ position: relative;
1530
+ }
1531
+ .card-category .cc-thumbnailImage {
1532
+ position: absolute;
1533
+ inset: 0;
1534
+ width: 100%;
1535
+ height: 100%;
1536
+ object-fit: cover;
1537
+ display: block;
1538
+ }
1539
+ .card-category .cc-articleList {
1540
+ display: flex;
1541
+ flex-direction: column;
1542
+ }
1543
+ .card-category .cc-articleItem {
1544
+ padding: var(--spacing-12) 0;
1545
+ border-bottom: 1px solid var(--color-opacity-slate-8);
1546
+ }
1547
+ .card-category .cc-articleItem:first-child {
1548
+ padding-top: 0;
1549
+ }
1550
+ .card-category .cc-articleItem:last-child {
1551
+ border-bottom: none;
1552
+ padding-bottom: 0;
1553
+ }
1554
+ .card-category .cc-articleItem .card-thumbnail.ct-horizontal {
1555
+ border-bottom: none;
1556
+ padding-bottom: 0;
1557
+ }
1558
+
1434
1559
  /* components/Pagination/Pagination.css */
1435
1560
  .pagination {
1436
1561
  display: flex;
@@ -6900,4 +7025,454 @@
6900
7025
  transform 0.2s cubic-bezier(0.4, 0, 1, 1),
6901
7026
  visibility 0s linear 0.2s;
6902
7027
  }
7028
+
7029
+ /* templates/ArticleHero/ArticleHero.css */
7030
+ .bh-root {
7031
+ width: 100%;
7032
+ max-width: var(--content-width-1280);
7033
+ margin: 0 auto;
7034
+ padding: var(--spacing-56) var(--spacing-16);
7035
+ box-sizing: border-box;
7036
+ }
7037
+ @media (min-width: 992px) {
7038
+ .bh-root {
7039
+ padding: var(--spacing-112) var(--spacing-24);
7040
+ }
7041
+ }
7042
+ .bh-desktop {
7043
+ display: flex;
7044
+ flex-direction: column;
7045
+ gap: var(--spacing-8);
7046
+ }
7047
+ .bh-desktopHeader {
7048
+ display: flex;
7049
+ align-items: center;
7050
+ gap: var(--spacing-24);
7051
+ }
7052
+ .bh-headerLeft {
7053
+ flex: 1 0 0;
7054
+ min-width: 0;
7055
+ }
7056
+ .bh-headerRight {
7057
+ flex: 0 0 auto;
7058
+ width: 295px;
7059
+ }
7060
+ .bh-desktopBody {
7061
+ display: flex;
7062
+ align-items: flex-start;
7063
+ gap: var(--spacing-24);
7064
+ }
7065
+ .bh-mobile {
7066
+ display: none;
7067
+ }
7068
+ .bh-sidebar {
7069
+ flex: 1 0 0;
7070
+ min-width: 0;
7071
+ display: flex;
7072
+ align-items: flex-end;
7073
+ }
7074
+ .bh-column {
7075
+ display: flex;
7076
+ flex-direction: column;
7077
+ gap: var(--spacing-8);
7078
+ width: 100%;
7079
+ }
7080
+ .bh-columnHeader {
7081
+ display: flex;
7082
+ align-items: center;
7083
+ gap: 0;
7084
+ width: 100%;
7085
+ }
7086
+ .bh-columnLabel {
7087
+ display: inline-flex;
7088
+ align-items: center;
7089
+ justify-content: center;
7090
+ height: 24px;
7091
+ padding: 0 var(--spacing-8);
7092
+ border-radius: var(--radius-full);
7093
+ background-color: var(--tag-fill-background);
7094
+ font-family: var(--font-family-base);
7095
+ font-size: var(--font-size-xs);
7096
+ font-weight: var(--font-weight-regular);
7097
+ line-height: 20px;
7098
+ color: var(--tag-text-color);
7099
+ white-space: nowrap;
7100
+ flex-shrink: 0;
7101
+ }
7102
+ .bh-columnLine {
7103
+ flex: 1 0 0;
7104
+ min-width: 0;
7105
+ height: 1px;
7106
+ background-color: var(--color-opacity-slate-8);
7107
+ }
7108
+ .bh-columnList {
7109
+ display: flex;
7110
+ flex-direction: column;
7111
+ gap: var(--spacing-16);
7112
+ }
7113
+ .bh-listItem {
7114
+ padding-bottom: var(--spacing-16);
7115
+ border-bottom: 1px solid var(--color-opacity-slate-8);
7116
+ }
7117
+ .bh-listItem .ct-title {
7118
+ font-size: 16px;
7119
+ line-height: 24px;
7120
+ }
7121
+ .bh-listItem .ct-thumbnailWrapper {
7122
+ width: 80px !important;
7123
+ height: 53px !important;
7124
+ }
7125
+ .bh-listItem .card-thumbnail.ct-horizontal {
7126
+ border-bottom: none;
7127
+ padding-bottom: 0;
7128
+ }
7129
+ .bh-listItem:last-child {
7130
+ border-bottom: none;
7131
+ padding-bottom: 0;
7132
+ }
7133
+ .bh-divider {
7134
+ width: 1px;
7135
+ align-self: stretch;
7136
+ background-color: var(--color-opacity-slate-8);
7137
+ flex-shrink: 0;
7138
+ }
7139
+ .bh-center {
7140
+ display: flex;
7141
+ flex-direction: column;
7142
+ gap: var(--spacing-16);
7143
+ flex: 2 1 0;
7144
+ min-width: 0;
7145
+ justify-content: flex-start;
7146
+ align-self: stretch;
7147
+ }
7148
+ .bh-featured {
7149
+ display: flex;
7150
+ flex-direction: column;
7151
+ gap: var(--spacing-16);
7152
+ }
7153
+ .bh-featuredInfo {
7154
+ display: flex;
7155
+ flex-direction: column;
7156
+ gap: var(--spacing-8);
7157
+ }
7158
+ .bh-featuredTitle {
7159
+ font-family: var(--typography-h4-font-family);
7160
+ font-size: var(--typography-h4-font-size);
7161
+ font-weight: var(--typography-h4-font-weight);
7162
+ line-height: var(--typography-h4-line-height);
7163
+ color: var(--color-slate-1200);
7164
+ margin: 0;
7165
+ overflow: hidden;
7166
+ text-overflow: ellipsis;
7167
+ display: -webkit-box;
7168
+ -webkit-line-clamp: 3;
7169
+ -webkit-box-orient: vertical;
7170
+ }
7171
+ .bh-featuredSummary {
7172
+ font-family: var(--font-family-base);
7173
+ font-size: var(--font-size-sm);
7174
+ font-weight: var(--font-weight-regular);
7175
+ line-height: 24px;
7176
+ color: var(--color-slate-1200);
7177
+ margin: 0;
7178
+ overflow: hidden;
7179
+ text-overflow: ellipsis;
7180
+ display: -webkit-box;
7181
+ -webkit-line-clamp: 2;
7182
+ -webkit-box-orient: vertical;
7183
+ }
7184
+ .bh-featuredTags {
7185
+ display: flex;
7186
+ align-items: center;
7187
+ gap: var(--spacing-4);
7188
+ }
7189
+ .bh-featuredImage {
7190
+ width: 100%;
7191
+ border-radius: var(--radius-xl);
7192
+ overflow: hidden;
7193
+ position: relative;
7194
+ aspect-ratio: 594 / 381;
7195
+ }
7196
+ .bh-featuredImg {
7197
+ position: absolute;
7198
+ inset: 0;
7199
+ width: 100%;
7200
+ height: 100%;
7201
+ object-fit: cover;
7202
+ display: block;
7203
+ border-radius: inherit;
7204
+ }
7205
+ .bh-featuredFooter {
7206
+ display: flex;
7207
+ align-items: flex-start;
7208
+ gap: var(--spacing-16);
7209
+ width: 100%;
7210
+ }
7211
+ .bh-footerItem {
7212
+ display: flex;
7213
+ align-items: flex-start;
7214
+ gap: var(--spacing-16);
7215
+ flex: 1 0 0;
7216
+ min-width: 0;
7217
+ }
7218
+ .bh-footerDivider {
7219
+ width: 1px;
7220
+ align-self: stretch;
7221
+ background-color: var(--color-opacity-slate-8);
7222
+ flex-shrink: 0;
7223
+ }
7224
+ .bh-footerContent {
7225
+ flex: 1 0 0;
7226
+ min-width: 0;
7227
+ display: flex;
7228
+ flex-direction: column;
7229
+ gap: var(--spacing-8);
7230
+ }
7231
+ .bh-footerTitle {
7232
+ font-family: var(--font-family-base);
7233
+ font-size: 16px;
7234
+ font-weight: var(--font-weight-semi-bold);
7235
+ line-height: 24px;
7236
+ color: var(--color-slate-1200);
7237
+ margin: 0;
7238
+ overflow: hidden;
7239
+ text-overflow: ellipsis;
7240
+ display: -webkit-box;
7241
+ -webkit-line-clamp: 3;
7242
+ -webkit-box-orient: vertical;
7243
+ }
7244
+ .bh-tagItem {
7245
+ display: inline-flex;
7246
+ align-items: center;
7247
+ gap: var(--spacing-4);
7248
+ }
7249
+ .bh-tagDot {
7250
+ color: var(--tag-custom-text-color);
7251
+ font-size: var(--font-size-sm);
7252
+ line-height: 1;
7253
+ }
7254
+ .bh-mobileFeatured {
7255
+ display: flex;
7256
+ flex-direction: column;
7257
+ gap: var(--spacing-16);
7258
+ padding: var(--spacing-24) var(--spacing-16) 0;
7259
+ }
7260
+ .bh-mobileLabel {
7261
+ display: inline-flex;
7262
+ align-items: center;
7263
+ justify-content: center;
7264
+ height: 24px;
7265
+ padding: 0 var(--spacing-8);
7266
+ border-radius: var(--radius-full);
7267
+ background-color: var(--tag-fill-background);
7268
+ font-family: var(--font-family-base);
7269
+ font-size: var(--font-size-xs);
7270
+ font-weight: var(--font-weight-regular);
7271
+ line-height: 20px;
7272
+ color: var(--tag-text-color);
7273
+ white-space: nowrap;
7274
+ align-self: flex-start;
7275
+ }
7276
+ .bh-mobileFeaturedImage {
7277
+ width: 100%;
7278
+ aspect-ratio: 594 / 369;
7279
+ border-radius: var(--radius-md);
7280
+ overflow: hidden;
7281
+ position: relative;
7282
+ }
7283
+ .bh-mobileSection {
7284
+ display: flex;
7285
+ flex-direction: column;
7286
+ gap: var(--spacing-8);
7287
+ padding: 0 var(--spacing-16);
7288
+ padding-bottom: var(--spacing-24);
7289
+ border-bottom: 1px solid var(--color-opacity-slate-8);
7290
+ }
7291
+ .bh-mobileSection:last-child {
7292
+ border-bottom: none;
7293
+ }
7294
+ @media (max-width: 991px) {
7295
+ .bh-desktop {
7296
+ display: none;
7297
+ }
7298
+ .bh-mobile {
7299
+ display: flex;
7300
+ flex-direction: column;
7301
+ gap: var(--spacing-24);
7302
+ }
7303
+ }
7304
+ @media (min-width: 768px) and (max-width: 991px) {
7305
+ .bh-columnList {
7306
+ display: grid;
7307
+ grid-template-columns: 1fr 1fr;
7308
+ gap: var(--spacing-16);
7309
+ }
7310
+ .bh-columnList .bh-listItem:nth-last-child(-n+2) {
7311
+ border-bottom: none;
7312
+ padding-bottom: 0;
7313
+ }
7314
+ .bh-mobileSection {
7315
+ border-bottom: none !important;
7316
+ padding-bottom: 0;
7317
+ }
7318
+ .bh-mobileFeatured {
7319
+ border-bottom: none !important;
7320
+ padding-bottom: 0;
7321
+ }
7322
+ }
7323
+ @media (max-width: 767px) {
7324
+ .bh-listItemThumb {
7325
+ width: 80px;
7326
+ height: 53px;
7327
+ }
7328
+ .bh-featuredFooter {
7329
+ gap: var(--spacing-8);
7330
+ }
7331
+ }
7332
+
7333
+ /* templates/ArticleSection/ArticleSection.css */
7334
+ .as-root {
7335
+ width: 100%;
7336
+ max-width: var(--content-width-1280);
7337
+ margin: 0 auto;
7338
+ padding: var(--spacing-56) var(--spacing-16);
7339
+ box-sizing: border-box;
7340
+ }
7341
+ @media (min-width: 992px) {
7342
+ .as-root {
7343
+ padding: var(--spacing-112) var(--spacing-24);
7344
+ }
7345
+ }
7346
+ .as-header {
7347
+ display: flex;
7348
+ align-items: center;
7349
+ justify-content: space-between;
7350
+ margin-bottom: var(--spacing-24);
7351
+ }
7352
+ .as-title {
7353
+ font-family: var(--typography-h5-font-family);
7354
+ font-size: var(--typography-h5-font-size);
7355
+ font-weight: var(--typography-h5-font-weight);
7356
+ line-height: var(--typography-h5-line-height);
7357
+ color: var(--color-slate-1200);
7358
+ margin: 0;
7359
+ }
7360
+ .as-desktop {
7361
+ display: flex;
7362
+ flex-direction: column;
7363
+ gap: var(--spacing-24);
7364
+ }
7365
+ .as-mobile {
7366
+ display: none;
7367
+ }
7368
+ .as-featuredRow {
7369
+ width: 100%;
7370
+ }
7371
+ .as-featuredRow .card-thumbnail.ct-horizontal {
7372
+ align-items: center;
7373
+ border-bottom: none;
7374
+ padding-bottom: 0;
7375
+ max-width: none !important;
7376
+ gap: var(--spacing-24);
7377
+ }
7378
+ .as-featuredRow .ct-thumbnailWrapper {
7379
+ width: auto !important;
7380
+ height: auto !important;
7381
+ flex: 1 1 50% !important;
7382
+ aspect-ratio: 16 / 9 !important;
7383
+ }
7384
+ .as-featuredRow .ct-content {
7385
+ flex: 1 1 50% !important;
7386
+ }
7387
+ .as-featuredRow .ct-title {
7388
+ font-size: var(--typography-h4-font-size);
7389
+ font-weight: var(--typography-h4-font-weight);
7390
+ line-height: var(--typography-h4-line-height);
7391
+ }
7392
+ .as-grid {
7393
+ display: grid;
7394
+ grid-template-columns: repeat(4, 1fr);
7395
+ gap: var(--spacing-24);
7396
+ }
7397
+ .as-mobileFeatured {
7398
+ padding-bottom: var(--spacing-16);
7399
+ border-bottom: 1px solid var(--color-opacity-slate-8);
7400
+ }
7401
+ .as-mobileList {
7402
+ display: flex;
7403
+ flex-direction: column;
7404
+ gap: var(--spacing-16);
7405
+ margin-top: var(--spacing-16);
7406
+ }
7407
+ .as-mobileListItem {
7408
+ padding-bottom: var(--spacing-16);
7409
+ border-bottom: 1px solid var(--color-opacity-slate-8);
7410
+ }
7411
+ .as-mobileListItem:last-child {
7412
+ border-bottom: none;
7413
+ padding-bottom: 0;
7414
+ }
7415
+ .as-mobileListItem .card-thumbnail.ct-horizontal {
7416
+ border-bottom: none;
7417
+ padding-bottom: 0;
7418
+ }
7419
+ @media (max-width: 991px) {
7420
+ .as-desktop {
7421
+ display: none;
7422
+ }
7423
+ .as-mobile {
7424
+ display: flex;
7425
+ flex-direction: column;
7426
+ }
7427
+ }
7428
+ .as-showcaseGrid {
7429
+ display: grid;
7430
+ grid-template-columns: 1fr 1fr 1fr;
7431
+ gap: var(--spacing-24);
7432
+ }
7433
+ .as-showcaseFeatured {
7434
+ display: flex;
7435
+ }
7436
+ .as-showcaseCol {
7437
+ display: flex;
7438
+ flex-direction: column;
7439
+ gap: var(--spacing-16);
7440
+ }
7441
+ .as-showcaseItem {
7442
+ padding-bottom: var(--spacing-16);
7443
+ border-bottom: 1px solid var(--color-opacity-slate-8);
7444
+ }
7445
+ .as-showcaseItem:last-child {
7446
+ border-bottom: none;
7447
+ padding-bottom: 0;
7448
+ }
7449
+ .as-showcaseItem .card-thumbnail.ct-horizontal {
7450
+ border-bottom: none;
7451
+ padding-bottom: 0;
7452
+ }
7453
+ .as-mobile-grid {
7454
+ display: none;
7455
+ }
7456
+ .as-mobileScroll {
7457
+ display: flex;
7458
+ gap: var(--spacing-16);
7459
+ overflow-x: auto;
7460
+ scroll-snap-type: x mandatory;
7461
+ -webkit-overflow-scrolling: touch;
7462
+ padding: 0 var(--spacing-16);
7463
+ padding-bottom: var(--spacing-8);
7464
+ margin: 0 calc(var(--spacing-16) * -1);
7465
+ }
7466
+ .as-mobileScroll::-webkit-scrollbar {
7467
+ display: none;
7468
+ }
7469
+ .as-mobileScrollItem {
7470
+ flex: 0 0 280px;
7471
+ scroll-snap-align: start;
7472
+ }
7473
+ @media (max-width: 991px) {
7474
+ .as-mobile-grid {
7475
+ display: block;
7476
+ }
7477
+ }
6903
7478
  /*# sourceMappingURL=index.css.map */