@mideind/netskrafl-react 3.4.4 → 3.4.6
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/esm/css/netskrafl.css +139 -27
- package/dist/esm/index.js +70 -70
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -405,6 +405,7 @@ div.netskrafl-container {
|
|
|
405
405
|
--board-cell-border-color: white;
|
|
406
406
|
--board-tile-line-height-lg: 30px;
|
|
407
407
|
--tab-background: #f3f3f6;
|
|
408
|
+
--tab-active-background: var(--container-bg-color);
|
|
408
409
|
--rack-slot-background: #f3f3f6;
|
|
409
410
|
--header-background: #dde1e4;
|
|
410
411
|
--two-letter-background: hsl(from var(--malfridur-green) h 20% 90%);
|
|
@@ -418,6 +419,12 @@ div.netskrafl-container {
|
|
|
418
419
|
--dialog-overlay-opacity: 50%;
|
|
419
420
|
--tilecount-background: white;
|
|
420
421
|
--chat-accent-color: var(--header-color);
|
|
422
|
+
--chat-local-background: color-mix(in oklch, var(--human-color) 20%, white);
|
|
423
|
+
--chat-remote-background: color-mix(
|
|
424
|
+
in oklch,
|
|
425
|
+
var(--autoplayer-color) 25%,
|
|
426
|
+
white
|
|
427
|
+
);
|
|
421
428
|
--board-help-background: var(--board-background);
|
|
422
429
|
--button-background: var(--board-background);
|
|
423
430
|
--oddlist-background: var(--board-background);
|
|
@@ -479,6 +486,16 @@ div.netskrafl-container {
|
|
|
479
486
|
--dialog-overlay-opacity: 72%;
|
|
480
487
|
--tilecount-background: var(--color-neutral-400);
|
|
481
488
|
--chat-accent-color: var(--color-secondary-500);
|
|
489
|
+
--chat-local-background: color-mix(
|
|
490
|
+
in oklch,
|
|
491
|
+
var(--human-color) 70%,
|
|
492
|
+
var(--color-neutral-100)
|
|
493
|
+
);
|
|
494
|
+
--chat-remote-background: color-mix(
|
|
495
|
+
in oklch,
|
|
496
|
+
var(--autoplayer-color) 80%,
|
|
497
|
+
var(--color-neutral-100)
|
|
498
|
+
);
|
|
482
499
|
--board-help-background: var(--board-background);
|
|
483
500
|
--button-background: var(--color-neutral-300);
|
|
484
501
|
--chat-background: color-mix(
|
|
@@ -494,6 +511,11 @@ div.netskrafl-container {
|
|
|
494
511
|
var(--color-neutral-200) 50%,
|
|
495
512
|
var(--color-neutral-300)
|
|
496
513
|
);
|
|
514
|
+
--tab-active-background: color-mix(
|
|
515
|
+
in oklch,
|
|
516
|
+
var(--color-neutral-200) 50%,
|
|
517
|
+
var(--color-neutral-300)
|
|
518
|
+
);
|
|
497
519
|
--rack-slot-background: var(--color-neutral-100);
|
|
498
520
|
--header-background: color-mix(
|
|
499
521
|
in oklch,
|
|
@@ -503,7 +525,11 @@ div.netskrafl-container {
|
|
|
503
525
|
--oddlist-background: var(--board-background);
|
|
504
526
|
--evenlist-background: var(--color-neutral-50);
|
|
505
527
|
--tab-movelist-background: var(--color-neutral-300);
|
|
506
|
-
--list-header-background:
|
|
528
|
+
--list-header-background: color-mix(
|
|
529
|
+
in oklch,
|
|
530
|
+
var(--color-malfridurPalette-200) 40%,
|
|
531
|
+
var(--color-neutral-200)
|
|
532
|
+
);
|
|
507
533
|
--toggler-background: var(--color-neutral-300);
|
|
508
534
|
--toggler-border: var(--color-neutral-500);
|
|
509
535
|
|
|
@@ -520,7 +546,7 @@ div.netskrafl-container {
|
|
|
520
546
|
/* Text, links and header colors - lightened for dark backgrounds */
|
|
521
547
|
--header-color: var(--color-secondary-300);
|
|
522
548
|
--header-hover-color: var(--color-secondary-400);
|
|
523
|
-
--humangrad-color: var(--color-secondary-
|
|
549
|
+
--humangrad-color: var(--color-secondary-600);
|
|
524
550
|
--scorewrapper-background: var(--color-secondary-300);
|
|
525
551
|
--player-btn-color: var(--color-neutral-900);
|
|
526
552
|
--tab-text-color: var(--foreground);
|
|
@@ -634,10 +660,13 @@ div.netskrafl-container.legacy-colors {
|
|
|
634
660
|
/* Container and UI backgrounds */
|
|
635
661
|
--container-bg-color: #fff1dc;
|
|
636
662
|
--tab-background: #f4f4f4;
|
|
663
|
+
--tab-active-background: var(--container-bg-color);
|
|
637
664
|
--rack-slot-background: #b5bdc4;
|
|
638
665
|
--stats-item-background: #ece8e0;
|
|
639
666
|
--header-background: #d6d1c4;
|
|
640
667
|
--chat-background: #f4cda0;
|
|
668
|
+
--chat-local-background: var(--board-background);
|
|
669
|
+
--chat-remote-background: var(--logo-primary-light);
|
|
641
670
|
--light-header-color: #fcf0cd;
|
|
642
671
|
--list-header-background: #fcf0cd;
|
|
643
672
|
--two-letter-background: #b9dbcf;
|
|
@@ -994,10 +1023,10 @@ div.netskrafl-container.legacy-colors div.chall-time.selected {
|
|
|
994
1023
|
background-color: var(--human-color);
|
|
995
1024
|
}
|
|
996
1025
|
|
|
997
|
-
/* Help tabs links - use
|
|
1026
|
+
/* Help tabs links - use link-hover-color for the retro/legacy theme */
|
|
998
1027
|
|
|
999
1028
|
div.netskrafl-container.legacy-colors div.help-tabs .ui-tabs-panel a:link,div.netskrafl-container.legacy-colors div.help-tabs .ui-tabs-panel a:visited {
|
|
1000
|
-
color:
|
|
1029
|
+
color: var(--link-hover-color);
|
|
1001
1030
|
}
|
|
1002
1031
|
|
|
1003
1032
|
div.netskrafl-container.legacy-colors table.bag-content tr td {
|
|
@@ -1203,7 +1232,7 @@ div.netskrafl-container {
|
|
|
1203
1232
|
.netskrafl-container .ui-tabs .ui-tabs-nav li.ui-tabs-active {
|
|
1204
1233
|
margin-bottom: -1px;
|
|
1205
1234
|
padding-bottom: 0px;
|
|
1206
|
-
background-color: var(--
|
|
1235
|
+
background-color: var(--tab-active-background);
|
|
1207
1236
|
}
|
|
1208
1237
|
|
|
1209
1238
|
.netskrafl-container .ui-tabs .ui-tabs-panel {
|
|
@@ -1213,7 +1242,7 @@ div.netskrafl-container {
|
|
|
1213
1242
|
padding-right: 6px;
|
|
1214
1243
|
padding-top: 4px;
|
|
1215
1244
|
padding-bottom: 4px;
|
|
1216
|
-
background-color: var(--
|
|
1245
|
+
background-color: var(--tab-active-background);
|
|
1217
1246
|
}
|
|
1218
1247
|
|
|
1219
1248
|
.netskrafl-container .ui-widget {
|
|
@@ -1283,13 +1312,13 @@ div.netskrafl-container {
|
|
|
1283
1312
|
|
|
1284
1313
|
.netskrafl-container .ui-state-active,
|
|
1285
1314
|
.netskrafl-container .ui-widget-content .ui-state-active {
|
|
1286
|
-
background-color: var(--
|
|
1315
|
+
background-color: var(--tab-active-background);
|
|
1287
1316
|
font-weight: bold;
|
|
1288
1317
|
color: var(--tab-active-text-color);
|
|
1289
1318
|
}
|
|
1290
1319
|
|
|
1291
1320
|
.netskrafl-container .ui-widget-header .ui-state-active {
|
|
1292
|
-
background-color: var(--
|
|
1321
|
+
background-color: var(--tab-active-background);
|
|
1293
1322
|
font-weight: bold;
|
|
1294
1323
|
color: var(--tab-active-text-color);
|
|
1295
1324
|
}
|
|
@@ -1878,6 +1907,10 @@ div.netskrafl-tile.dragging.no-drop {
|
|
|
1878
1907
|
border-color: oklch(58% 0.13 25);
|
|
1879
1908
|
}
|
|
1880
1909
|
|
|
1910
|
+
[data-theme="dark"] input.userid::placeholder {
|
|
1911
|
+
color: var(--color-neutral-600);
|
|
1912
|
+
}
|
|
1913
|
+
|
|
1881
1914
|
div.netskrafl-tile.dragging.legacy-colors {
|
|
1882
1915
|
/* Legacy color scheme: hardcode values since CSS variables are out of
|
|
1883
1916
|
scope when the tile is a child of the document body during dragging */
|
|
@@ -3446,6 +3479,7 @@ div.netskrafl-tile.dragging div.letterscore {
|
|
|
3446
3479
|
display: inline-block;
|
|
3447
3480
|
width: 140px;
|
|
3448
3481
|
min-width: 140px;
|
|
3482
|
+
flex-shrink: 0;
|
|
3449
3483
|
overflow: hidden;
|
|
3450
3484
|
}
|
|
3451
3485
|
|
|
@@ -3465,6 +3499,7 @@ div.netskrafl-tile.dragging div.letterscore {
|
|
|
3465
3499
|
display: inline-block;
|
|
3466
3500
|
width: 400px;
|
|
3467
3501
|
min-width: 400px;
|
|
3502
|
+
flex-shrink: 0;
|
|
3468
3503
|
overflow: hidden;
|
|
3469
3504
|
}
|
|
3470
3505
|
|
|
@@ -3483,6 +3518,7 @@ div.netskrafl-tile.dragging div.letterscore {
|
|
|
3483
3518
|
display: inline-block;
|
|
3484
3519
|
width: 40px;
|
|
3485
3520
|
max-width: 40px;
|
|
3521
|
+
flex-shrink: 0;
|
|
3486
3522
|
text-align: center;
|
|
3487
3523
|
margin-right: 6px;
|
|
3488
3524
|
}
|
|
@@ -3592,7 +3628,53 @@ div.netskrafl-tile.dragging div.letterscore {
|
|
|
3592
3628
|
}
|
|
3593
3629
|
|
|
3594
3630
|
.netskrafl-container div.user-cat#user-search {
|
|
3631
|
+
/* On mobile, show only the search icon; the input is hidden */
|
|
3632
|
+
display: block;
|
|
3633
|
+
position: absolute;
|
|
3634
|
+
top: 28px;
|
|
3635
|
+
right: 6px;
|
|
3636
|
+
background-color: var(--header-color);
|
|
3637
|
+
color: white;
|
|
3638
|
+
border-radius: 5px;
|
|
3639
|
+
padding: 1px;
|
|
3640
|
+
}
|
|
3641
|
+
|
|
3642
|
+
.netskrafl-container div.user-cat#user-search span.glyphicon-search {
|
|
3643
|
+
font-size: 20px;
|
|
3644
|
+
}
|
|
3645
|
+
|
|
3646
|
+
.netskrafl-container div.user-cat#user-search span:hover {
|
|
3647
|
+
/* Override the general hover style on mobile */
|
|
3648
|
+
color: white;
|
|
3649
|
+
background-color: transparent;
|
|
3650
|
+
}
|
|
3651
|
+
|
|
3652
|
+
.netskrafl-container div.user-cat#user-search input#search-id {
|
|
3653
|
+
/* Hidden on mobile until search is activated */
|
|
3595
3654
|
display: none;
|
|
3655
|
+
color: var(--text-color);
|
|
3656
|
+
}
|
|
3657
|
+
|
|
3658
|
+
.netskrafl-container div.user-cat#user-search.search-active {
|
|
3659
|
+
/* Indicate active search mode via a different background color */
|
|
3660
|
+
background-color: var(--toggler-selected);
|
|
3661
|
+
}
|
|
3662
|
+
|
|
3663
|
+
.netskrafl-container div.user-cat#user-search.search-active input#search-id {
|
|
3664
|
+
/* When search is active on mobile, show the input anchored to the left,
|
|
3665
|
+
centered vertically within the headings area */
|
|
3666
|
+
display: inline-block;
|
|
3667
|
+
position: absolute;
|
|
3668
|
+
right: 52px;
|
|
3669
|
+
top: 50%;
|
|
3670
|
+
transform: translateY(-50%);
|
|
3671
|
+
width: calc(375px - 84px);
|
|
3672
|
+
}
|
|
3673
|
+
|
|
3674
|
+
.netskrafl-container div#initials:has(#user-search.search-active) #user-headings {
|
|
3675
|
+
/* Hide the category buttons when mobile search is active,
|
|
3676
|
+
but keep their layout space */
|
|
3677
|
+
visibility: hidden;
|
|
3596
3678
|
}
|
|
3597
3679
|
|
|
3598
3680
|
.netskrafl-container div#chall-form {
|
|
@@ -4357,11 +4439,11 @@ div.highlight1.netskrafl-blanktile {
|
|
|
4357
4439
|
}
|
|
4358
4440
|
|
|
4359
4441
|
.netskrafl-container div.chat-msg.local {
|
|
4360
|
-
background-color: var(--
|
|
4442
|
+
background-color: var(--chat-local-background);
|
|
4361
4443
|
}
|
|
4362
4444
|
|
|
4363
4445
|
.netskrafl-container div.chat-msg.remote {
|
|
4364
|
-
background-color: var(--
|
|
4446
|
+
background-color: var(--chat-remote-background);
|
|
4365
4447
|
}
|
|
4366
4448
|
|
|
4367
4449
|
.netskrafl-container div.chat-msg img {
|
|
@@ -5128,15 +5210,15 @@ div.highlight1.netskrafl-blanktile {
|
|
|
5128
5210
|
padding: 6px 10px 4px 6px;
|
|
5129
5211
|
margin: 0;
|
|
5130
5212
|
z-index: 5;
|
|
5131
|
-
color:
|
|
5132
|
-
background-color:
|
|
5213
|
+
color: var(--tab-text-color);
|
|
5214
|
+
background-color: var(--header-color);
|
|
5133
5215
|
border-radius: 5px;
|
|
5134
5216
|
cursor: pointer;
|
|
5135
5217
|
}
|
|
5136
5218
|
|
|
5137
5219
|
.netskrafl-container div.userid:hover {
|
|
5138
|
-
background-color: var(--
|
|
5139
|
-
color:
|
|
5220
|
+
background-color: var(--header-hover-color);
|
|
5221
|
+
color: var(--tab-text-color);
|
|
5140
5222
|
}
|
|
5141
5223
|
|
|
5142
5224
|
.netskrafl-container div.listitem {
|
|
@@ -5216,10 +5298,6 @@ div.highlight1.netskrafl-blanktile {
|
|
|
5216
5298
|
vertical-align: middle;
|
|
5217
5299
|
}
|
|
5218
5300
|
|
|
5219
|
-
.netskrafl-container div.user-cat#user-search {
|
|
5220
|
-
float: right;
|
|
5221
|
-
}
|
|
5222
|
-
|
|
5223
5301
|
.netskrafl-container div.user-cat span {
|
|
5224
5302
|
font-size: 16px;
|
|
5225
5303
|
cursor: pointer;
|
|
@@ -5245,6 +5323,7 @@ div.highlight1.netskrafl-blanktile {
|
|
|
5245
5323
|
padding-top: 6px;
|
|
5246
5324
|
padding-bottom: 6px;
|
|
5247
5325
|
top: 0;
|
|
5326
|
+
left: 2px;
|
|
5248
5327
|
}
|
|
5249
5328
|
|
|
5250
5329
|
.netskrafl-container span.versus-cat span {
|
|
@@ -5473,7 +5552,7 @@ div.highlight1.netskrafl-blanktile {
|
|
|
5473
5552
|
}
|
|
5474
5553
|
|
|
5475
5554
|
.netskrafl-container #userlist span.glyphicon.glyphicon-star {
|
|
5476
|
-
color: var(--
|
|
5555
|
+
color: var(--option-selected);
|
|
5477
5556
|
}
|
|
5478
5557
|
|
|
5479
5558
|
.netskrafl-container #userlist span.glyphicon.glyphicon-hand-right,
|
|
@@ -5532,8 +5611,10 @@ div.highlight1.netskrafl-blanktile {
|
|
|
5532
5611
|
display: none;
|
|
5533
5612
|
position: absolute;
|
|
5534
5613
|
top: 220px;
|
|
5535
|
-
left:
|
|
5536
|
-
|
|
5614
|
+
left: 50%;
|
|
5615
|
+
transform: translateX(-50%);
|
|
5616
|
+
width: max-content;
|
|
5617
|
+
max-width: 90%;
|
|
5537
5618
|
z-index: 10;
|
|
5538
5619
|
text-align: center;
|
|
5539
5620
|
}
|
|
@@ -6454,12 +6535,13 @@ div.netskrafl-container input[type="checkbox"] {
|
|
|
6454
6535
|
}
|
|
6455
6536
|
|
|
6456
6537
|
/* ==========================================================================
|
|
6457
|
-
RESPONSIVE: Mobile
|
|
6538
|
+
RESPONSIVE: Mobile default (overridden by the landscape query below)
|
|
6458
6539
|
========================================================================== */
|
|
6459
6540
|
|
|
6460
|
-
@media all and (max-width: 1023px)
|
|
6461
|
-
/*
|
|
6462
|
-
|
|
6541
|
+
@media all and (max-width: 1023px) {
|
|
6542
|
+
/* Default mobile styles: two-line header, score and tab layout.
|
|
6543
|
+
The landscape query further down overrides these for wide+short
|
|
6544
|
+
viewports with orientation: landscape. */
|
|
6463
6545
|
.netskrafl-container div.scoreleft {
|
|
6464
6546
|
display: inline-block;
|
|
6465
6547
|
position: relative;
|
|
@@ -6596,7 +6678,7 @@ div.netskrafl-container input[type="checkbox"] {
|
|
|
6596
6678
|
text-align: center;
|
|
6597
6679
|
}
|
|
6598
6680
|
.netskrafl-container div.logowrapper {
|
|
6599
|
-
|
|
6681
|
+
display: none;
|
|
6600
6682
|
}
|
|
6601
6683
|
.netskrafl-container div.playerwrapper {
|
|
6602
6684
|
width: 100%;
|
|
@@ -6819,6 +6901,12 @@ div.netskrafl-container input[type="checkbox"] {
|
|
|
6819
6901
|
.netskrafl-container div.user-cat#user-headings {
|
|
6820
6902
|
line-height: 28px;
|
|
6821
6903
|
}
|
|
6904
|
+
.netskrafl-container div.user-cat#user-search {
|
|
6905
|
+
top: 6px;
|
|
6906
|
+
}
|
|
6907
|
+
.netskrafl-container div.user-cat#user-search.search-active input#search-id {
|
|
6908
|
+
width: calc(667px - 84px);
|
|
6909
|
+
}
|
|
6822
6910
|
.netskrafl-container div #userlist,
|
|
6823
6911
|
.netskrafl-container div #elolist {
|
|
6824
6912
|
height: calc(100vh - 180px);
|
|
@@ -7025,6 +7113,9 @@ div.netskrafl-container input[type="checkbox"] {
|
|
|
7025
7113
|
.netskrafl-container div.game-container div.header-logo {
|
|
7026
7114
|
display: none;
|
|
7027
7115
|
}
|
|
7116
|
+
.netskrafl-container div.game-container div.logowrapper {
|
|
7117
|
+
display: none;
|
|
7118
|
+
}
|
|
7028
7119
|
.netskrafl-container div.board-help {
|
|
7029
7120
|
display: block;
|
|
7030
7121
|
z-index: 2;
|
|
@@ -8088,7 +8179,25 @@ div.netskrafl-container input[type="checkbox"] {
|
|
|
8088
8179
|
line-height: 32px;
|
|
8089
8180
|
}
|
|
8090
8181
|
.netskrafl-container div.user-cat#user-search {
|
|
8091
|
-
|
|
8182
|
+
top: 18px;
|
|
8183
|
+
right: 22px;
|
|
8184
|
+
background-color: transparent;
|
|
8185
|
+
color: inherit;
|
|
8186
|
+
padding: 0;
|
|
8187
|
+
border-radius: 0;
|
|
8188
|
+
}
|
|
8189
|
+
.netskrafl-container div.user-cat#user-search span.glyphicon-search {
|
|
8190
|
+
font-size: 16px;
|
|
8191
|
+
}
|
|
8192
|
+
.netskrafl-container div.user-cat#user-search span:hover,
|
|
8193
|
+
.netskrafl-container div.user-cat#user-search:focus-within span.glyphicon-search {
|
|
8194
|
+
color: white;
|
|
8195
|
+
background-color: var(--header-hover-color);
|
|
8196
|
+
border-radius: 5px;
|
|
8197
|
+
}
|
|
8198
|
+
.netskrafl-container div.user-cat#user-search input#search-id {
|
|
8199
|
+
/* Always visible on desktop */
|
|
8200
|
+
display: inline-block;
|
|
8092
8201
|
}
|
|
8093
8202
|
.netskrafl-container div#chall-form {
|
|
8094
8203
|
position: absolute;
|
|
@@ -8315,6 +8424,9 @@ div.netskrafl-container input[type="checkbox"] {
|
|
|
8315
8424
|
margin-right: 160px;
|
|
8316
8425
|
font-size: inherit;
|
|
8317
8426
|
}
|
|
8427
|
+
.netskrafl-container div#initials {
|
|
8428
|
+
margin-top: 2px;
|
|
8429
|
+
}
|
|
8318
8430
|
.netskrafl-container div.stats-box {
|
|
8319
8431
|
width: auto;
|
|
8320
8432
|
position: static;
|