@mideind/netskrafl-react 3.4.1 → 3.4.3
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 +96 -75
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -901,6 +901,10 @@ div.netskrafl-container.legacy-colors div.netskrafl-freshtile {
|
|
|
901
901
|
color: black;
|
|
902
902
|
}
|
|
903
903
|
|
|
904
|
+
div.netskrafl-container.legacy-colors div.netskrafl-freshtile.netskrafl-blanktile {
|
|
905
|
+
color: var(--blank-tile);
|
|
906
|
+
}
|
|
907
|
+
|
|
904
908
|
div.netskrafl-container.legacy-colors div.rack td.opp {
|
|
905
909
|
border-width: 2px;
|
|
906
910
|
border-color: var(--middle-shadow);
|
|
@@ -1008,7 +1012,7 @@ div.netskrafl-container {
|
|
|
1008
1012
|
/* The outer container fills its parent and paints the background */
|
|
1009
1013
|
width: 100%;
|
|
1010
1014
|
height: 100%;
|
|
1011
|
-
overflow:
|
|
1015
|
+
overflow: hidden;
|
|
1012
1016
|
background-color: var(--container-bg-color);
|
|
1013
1017
|
}
|
|
1014
1018
|
|
|
@@ -1020,8 +1024,8 @@ div.netskrafl-container {
|
|
|
1020
1024
|
padding-top: 4px;
|
|
1021
1025
|
/* font-family: var(--primary-font); */
|
|
1022
1026
|
width: 375px;
|
|
1023
|
-
|
|
1024
|
-
height:
|
|
1027
|
+
height: calc(100vh - 58px);
|
|
1028
|
+
height: calc(100dvh - 58px);
|
|
1025
1029
|
overflow-x: hidden;
|
|
1026
1030
|
overflow-y: visible;
|
|
1027
1031
|
margin: 0 auto;
|
|
@@ -2453,7 +2457,7 @@ div.netskrafl-tile.dragging div.letterscore {
|
|
|
2453
2457
|
left: 0;
|
|
2454
2458
|
top: 0;
|
|
2455
2459
|
width: 375px;
|
|
2456
|
-
height:
|
|
2460
|
+
height: 100%;
|
|
2457
2461
|
overflow: hidden;
|
|
2458
2462
|
font-size: 13px;
|
|
2459
2463
|
line-height: 23px;
|
|
@@ -2740,7 +2744,7 @@ div.netskrafl-tile.dragging div.letterscore {
|
|
|
2740
2744
|
top: 0;
|
|
2741
2745
|
left: 0;
|
|
2742
2746
|
width: 100%;
|
|
2743
|
-
height:
|
|
2747
|
+
height: 466px;
|
|
2744
2748
|
background-color: var(--tab-movelist-background);
|
|
2745
2749
|
padding-top: 8px;
|
|
2746
2750
|
padding-bottom: 0;
|
|
@@ -2754,7 +2758,7 @@ div.netskrafl-tile.dragging div.letterscore {
|
|
|
2754
2758
|
padding: 0;
|
|
2755
2759
|
overflow: auto;
|
|
2756
2760
|
width: 100%;
|
|
2757
|
-
height:
|
|
2761
|
+
height: 356px;
|
|
2758
2762
|
}
|
|
2759
2763
|
|
|
2760
2764
|
.netskrafl-container div.movelist.bestmoves {
|
|
@@ -3192,7 +3196,7 @@ div.netskrafl-tile.dragging div.letterscore {
|
|
|
3192
3196
|
top: 0px;
|
|
3193
3197
|
left: 0px;
|
|
3194
3198
|
width: 100%;
|
|
3195
|
-
height:
|
|
3199
|
+
height: 474px;
|
|
3196
3200
|
background-color: var(--two-letter-background);
|
|
3197
3201
|
overflow: hidden;
|
|
3198
3202
|
z-index: 3;
|
|
@@ -3257,6 +3261,7 @@ div.netskrafl-tile.dragging div.letterscore {
|
|
|
3257
3261
|
|
|
3258
3262
|
.netskrafl-container div#tabs,
|
|
3259
3263
|
.netskrafl-container div#main-tabs {
|
|
3264
|
+
height: 100%;
|
|
3260
3265
|
border-width: 0;
|
|
3261
3266
|
padding: 0;
|
|
3262
3267
|
}
|
|
@@ -3265,7 +3270,8 @@ div.netskrafl-tile.dragging div.letterscore {
|
|
|
3265
3270
|
.netskrafl-container div#main-tabs > div[role="tabpanel"] {
|
|
3266
3271
|
position: relative;
|
|
3267
3272
|
top: -8px;
|
|
3268
|
-
height:
|
|
3273
|
+
height: calc(100vh - 88px);
|
|
3274
|
+
height: calc(100dvh - 88px);
|
|
3269
3275
|
/* Prevent scroll from propagating to parent */
|
|
3270
3276
|
overscroll-behavior: contain;
|
|
3271
3277
|
}
|
|
@@ -3762,7 +3768,8 @@ div.netskrafl-tile.dragging div.letterscore {
|
|
|
3762
3768
|
|
|
3763
3769
|
.netskrafl-container div #userlist,
|
|
3764
3770
|
.netskrafl-container div #elolist {
|
|
3765
|
-
height:
|
|
3771
|
+
height: calc(100vh - 240px);
|
|
3772
|
+
height: calc(100dvh - 240px);
|
|
3766
3773
|
/* 11 lines @ 36px each */
|
|
3767
3774
|
overflow-y: auto;
|
|
3768
3775
|
overflow-x: hidden;
|
|
@@ -3771,7 +3778,8 @@ div.netskrafl-tile.dragging div.letterscore {
|
|
|
3771
3778
|
}
|
|
3772
3779
|
|
|
3773
3780
|
.netskrafl-container div #gamelist {
|
|
3774
|
-
height:
|
|
3781
|
+
height: calc(100vh - 124px);
|
|
3782
|
+
height: calc(100dvh - 124px);
|
|
3775
3783
|
/* 13 lines @ 36px each */
|
|
3776
3784
|
overflow-y: auto;
|
|
3777
3785
|
overflow-x: hidden;
|
|
@@ -3780,7 +3788,8 @@ div.netskrafl-tile.dragging div.letterscore {
|
|
|
3780
3788
|
}
|
|
3781
3789
|
|
|
3782
3790
|
.netskrafl-container div #recentlist {
|
|
3783
|
-
height:
|
|
3791
|
+
height: calc(100vh - 196px);
|
|
3792
|
+
height: calc(100dvh - 196px);
|
|
3784
3793
|
/* 11 lines @ 36px each */
|
|
3785
3794
|
overflow-y: auto;
|
|
3786
3795
|
overflow-x: hidden;
|
|
@@ -3789,7 +3798,8 @@ div.netskrafl-tile.dragging div.letterscore {
|
|
|
3789
3798
|
}
|
|
3790
3799
|
|
|
3791
3800
|
.netskrafl-container div #usr-recent {
|
|
3792
|
-
height:
|
|
3801
|
+
height: calc(100vh - 160px);
|
|
3802
|
+
height: calc(100dvh - 160px);
|
|
3793
3803
|
/* 12 lines @ 36px each */
|
|
3794
3804
|
overflow-y: auto;
|
|
3795
3805
|
overflow-x: hidden;
|
|
@@ -3812,7 +3822,7 @@ div.netskrafl-tile.dragging div.letterscore {
|
|
|
3812
3822
|
top: 0;
|
|
3813
3823
|
left: 0;
|
|
3814
3824
|
width: 100%;
|
|
3815
|
-
height:
|
|
3825
|
+
height: 450px;
|
|
3816
3826
|
background-color: var(--tab-games-background);
|
|
3817
3827
|
overflow: auto;
|
|
3818
3828
|
z-index: 2;
|
|
@@ -4103,7 +4113,7 @@ div.netskrafl-freshtile {
|
|
|
4103
4113
|
}
|
|
4104
4114
|
|
|
4105
4115
|
div.netskrafl-freshtile.netskrafl-blanktile {
|
|
4106
|
-
color: var(--
|
|
4116
|
+
color: var(--blank-tile);
|
|
4107
4117
|
}
|
|
4108
4118
|
|
|
4109
4119
|
.netskrafl-container div.highlight0 {
|
|
@@ -6449,14 +6459,6 @@ div.netskrafl-container input[type="checkbox"] {
|
|
|
6449
6459
|
@media all and (max-width: 1023px) and (min-height: 632px) {
|
|
6450
6460
|
/* iPhone X or taller */
|
|
6451
6461
|
/* Tall mobile phones: use two lines to display the header */
|
|
6452
|
-
.netskrafl-container div.tabbed-page {
|
|
6453
|
-
height: 605px;
|
|
6454
|
-
overflow: hidden;
|
|
6455
|
-
}
|
|
6456
|
-
.netskrafl-container div#tabs > div[role="tabpanel"],
|
|
6457
|
-
.netskrafl-container div#main-tabs > div[role="tabpanel"] {
|
|
6458
|
-
height: 556px;
|
|
6459
|
-
}
|
|
6460
6462
|
.netskrafl-container div.scoreleft {
|
|
6461
6463
|
display: inline-block;
|
|
6462
6464
|
position: relative;
|
|
@@ -6527,41 +6529,6 @@ div.netskrafl-container input[type="checkbox"] {
|
|
|
6527
6529
|
.netskrafl-container div.board-area {
|
|
6528
6530
|
top: 98px;
|
|
6529
6531
|
}
|
|
6530
|
-
.netskrafl-container div #userlist,
|
|
6531
|
-
.netskrafl-container div #elolist {
|
|
6532
|
-
height: 424px;
|
|
6533
|
-
/* 14 lines @ 36px each */
|
|
6534
|
-
}
|
|
6535
|
-
.netskrafl-container div #gamelist {
|
|
6536
|
-
height: 576px;
|
|
6537
|
-
/* 16 lines @ 36px each */
|
|
6538
|
-
}
|
|
6539
|
-
.netskrafl-container div #recentlist {
|
|
6540
|
-
height: 504px;
|
|
6541
|
-
/* 14 lines @ 36px each */
|
|
6542
|
-
}
|
|
6543
|
-
.netskrafl-container div #usr-recent {
|
|
6544
|
-
height: 540px;
|
|
6545
|
-
/* 15 lines @ 36px each */
|
|
6546
|
-
}
|
|
6547
|
-
.netskrafl-container div #chall-sent,
|
|
6548
|
-
.netskrafl-container div #chall-received {
|
|
6549
|
-
height: 288px;
|
|
6550
|
-
/* 8 lines @ 36px each */
|
|
6551
|
-
}
|
|
6552
|
-
.netskrafl-container div.chat-container,
|
|
6553
|
-
.netskrafl-container div.twoletter {
|
|
6554
|
-
height: 476px;
|
|
6555
|
-
}
|
|
6556
|
-
.netskrafl-container div.games {
|
|
6557
|
-
height: 452px;
|
|
6558
|
-
}
|
|
6559
|
-
.netskrafl-container div.movelist-container {
|
|
6560
|
-
height: 468px;
|
|
6561
|
-
}
|
|
6562
|
-
.netskrafl-container div.movelist {
|
|
6563
|
-
height: 358px;
|
|
6564
|
-
}
|
|
6565
6532
|
}
|
|
6566
6533
|
|
|
6567
6534
|
/* iPhone 11 or larger: scale the UI to appear larger on the screen */
|
|
@@ -6571,7 +6538,6 @@ div.netskrafl-container input[type="checkbox"] {
|
|
|
6571
6538
|
) {
|
|
6572
6539
|
.netskrafl-container div.netskrafl-inner {
|
|
6573
6540
|
margin-top: 4px;
|
|
6574
|
-
height: 652px;
|
|
6575
6541
|
}
|
|
6576
6542
|
}
|
|
6577
6543
|
|
|
@@ -6583,13 +6549,16 @@ div.netskrafl-container input[type="checkbox"] {
|
|
|
6583
6549
|
orientation: landscape
|
|
6584
6550
|
) {
|
|
6585
6551
|
/* Mobile screen, landscape mode (width >= 667px AND landscape orientation) */
|
|
6552
|
+
div.netskrafl-container {
|
|
6553
|
+
container-type: inline-size;
|
|
6554
|
+
}
|
|
6586
6555
|
.netskrafl-container div.netskrafl-inner {
|
|
6587
6556
|
/* Reference width */
|
|
6588
6557
|
width: 667px;
|
|
6589
6558
|
/* Reference height */
|
|
6590
6559
|
height: 100%;
|
|
6591
6560
|
max-height: 686px;
|
|
6592
|
-
overflow
|
|
6561
|
+
overflow: visible;
|
|
6593
6562
|
}
|
|
6594
6563
|
.netskrafl-container div.header-logo {
|
|
6595
6564
|
display: none;
|
|
@@ -6635,6 +6604,14 @@ div.netskrafl-container input[type="checkbox"] {
|
|
|
6635
6604
|
left: 50%;
|
|
6636
6605
|
width: 50%;
|
|
6637
6606
|
}
|
|
6607
|
+
.netskrafl-container div.logo {
|
|
6608
|
+
display: block;
|
|
6609
|
+
position: absolute;
|
|
6610
|
+
top: 8px;
|
|
6611
|
+
left: calc(8px - (100cqw - 667px) / 2);
|
|
6612
|
+
width: 30px;
|
|
6613
|
+
z-index: 10;
|
|
6614
|
+
}
|
|
6638
6615
|
.netskrafl-container div.board-area {
|
|
6639
6616
|
position: absolute;
|
|
6640
6617
|
top: 0;
|
|
@@ -6644,6 +6621,9 @@ div.netskrafl-container input[type="checkbox"] {
|
|
|
6644
6621
|
top: 8px;
|
|
6645
6622
|
padding-top: 1px;
|
|
6646
6623
|
background-color: transparent;
|
|
6624
|
+
transform: scale(0.92);
|
|
6625
|
+
transform: scale(clamp(0.92, calc((100dvh - 16px) / 408px), 1));
|
|
6626
|
+
transform-origin: right top;
|
|
6647
6627
|
}
|
|
6648
6628
|
.netskrafl-container div.rightcol {
|
|
6649
6629
|
width: 283px;
|
|
@@ -6738,7 +6718,8 @@ div.netskrafl-container input[type="checkbox"] {
|
|
|
6738
6718
|
display: none;
|
|
6739
6719
|
}
|
|
6740
6720
|
.netskrafl-container div.movelist-container {
|
|
6741
|
-
height:
|
|
6721
|
+
height: calc(100vh - 90px);
|
|
6722
|
+
height: calc(100dvh - var(--header-size, 40px) - 44px);
|
|
6742
6723
|
padding-top: 0px;
|
|
6743
6724
|
padding-bottom: 0px;
|
|
6744
6725
|
}
|
|
@@ -6747,7 +6728,9 @@ div.netskrafl-container input[type="checkbox"] {
|
|
|
6747
6728
|
}
|
|
6748
6729
|
.netskrafl-container div.right-area.with-clock div.movelist-container {
|
|
6749
6730
|
/* If in a clock game, reduce the movelist height by two lines (2 * 20px) */
|
|
6750
|
-
height:
|
|
6731
|
+
height: calc(100vh - 130px);
|
|
6732
|
+
height: calc(100dvh - var(--header-size, 40px) - 84px);
|
|
6733
|
+
max-height: 260px;
|
|
6751
6734
|
}
|
|
6752
6735
|
.netskrafl-container div.movelist-container div.bag {
|
|
6753
6736
|
display: none;
|
|
@@ -6782,7 +6765,10 @@ div.netskrafl-container input[type="checkbox"] {
|
|
|
6782
6765
|
}
|
|
6783
6766
|
.netskrafl-container div.right-area {
|
|
6784
6767
|
top: 8px;
|
|
6785
|
-
height:
|
|
6768
|
+
height: calc(100vh - 16px);
|
|
6769
|
+
height: calc(100dvh - 16px);
|
|
6770
|
+
max-height: 316px;
|
|
6771
|
+
margin-top: 0;
|
|
6786
6772
|
padding-top: 0;
|
|
6787
6773
|
}
|
|
6788
6774
|
.netskrafl-container span.list-chall {
|
|
@@ -6799,7 +6785,29 @@ div.netskrafl-container input[type="checkbox"] {
|
|
|
6799
6785
|
}
|
|
6800
6786
|
.netskrafl-container div#tabs > div[role="tabpanel"],
|
|
6801
6787
|
.netskrafl-container div#main-tabs > div[role="tabpanel"] {
|
|
6802
|
-
height:
|
|
6788
|
+
height: calc(100vh - 152px);
|
|
6789
|
+
height: calc(100dvh - 152px);
|
|
6790
|
+
max-height: 326px;
|
|
6791
|
+
}
|
|
6792
|
+
.netskrafl-container div #userlist,
|
|
6793
|
+
.netskrafl-container div #elolist {
|
|
6794
|
+
height: calc(100vh - 204px);
|
|
6795
|
+
height: calc(100dvh - 204px);
|
|
6796
|
+
max-height: 396px;
|
|
6797
|
+
}
|
|
6798
|
+
.netskrafl-container div #gamelist {
|
|
6799
|
+
height: calc(100vh - 150px);
|
|
6800
|
+
height: calc(100dvh - 150px);
|
|
6801
|
+
max-height: 468px;
|
|
6802
|
+
}
|
|
6803
|
+
.netskrafl-container div #recentlist,
|
|
6804
|
+
.netskrafl-container div #usr-recent {
|
|
6805
|
+
height: calc(100vh - 204px);
|
|
6806
|
+
height: calc(100dvh - 204px);
|
|
6807
|
+
max-height: 396px;
|
|
6808
|
+
}
|
|
6809
|
+
.netskrafl-container div#elo-toggler {
|
|
6810
|
+
top: 6px;
|
|
6803
6811
|
}
|
|
6804
6812
|
.netskrafl-container div#tabs-1 span.list-ts-short,
|
|
6805
6813
|
.netskrafl-container div#tabs-1 span.list-manual,
|
|
@@ -6828,17 +6836,6 @@ div.netskrafl-container input[type="checkbox"] {
|
|
|
6828
6836
|
}
|
|
6829
6837
|
}
|
|
6830
6838
|
|
|
6831
|
-
/* Short landscape screens - scale board down slightly */
|
|
6832
|
-
|
|
6833
|
-
@media all and (min-width: 667px) and (orientation: landscape) and (
|
|
6834
|
-
max-height: 360px
|
|
6835
|
-
) {
|
|
6836
|
-
.netskrafl-container div.board {
|
|
6837
|
-
transform: scale(0.96);
|
|
6838
|
-
transform-origin: center top;
|
|
6839
|
-
}
|
|
6840
|
-
}
|
|
6841
|
-
|
|
6842
6839
|
/* ==========================================================================
|
|
6843
6840
|
RESPONSIVE: Large screen (iPad and larger, 1024px+)
|
|
6844
6841
|
========================================================================== */
|
|
@@ -6899,6 +6896,27 @@ div.netskrafl-container input[type="checkbox"] {
|
|
|
6899
6896
|
width: 1024px;
|
|
6900
6897
|
height: 686px;
|
|
6901
6898
|
overflow-y: hidden;
|
|
6899
|
+
transition: zoom 200ms ease;
|
|
6900
|
+
}
|
|
6901
|
+
/* Scale down to fit within available width when embedded in a sidebar
|
|
6902
|
+
layout; --sidebar-width and --sidebar-width-icon are defined by
|
|
6903
|
+
Málstaður. When standalone (no sidebar), neither rule matches and
|
|
6904
|
+
zoom remains at default (1). */
|
|
6905
|
+
:has([data-slot="sidebar"][data-state="collapsed"]) div.netskrafl-inner {
|
|
6906
|
+
zoom: 0.92;
|
|
6907
|
+
zoom: clamp(
|
|
6908
|
+
0.92,
|
|
6909
|
+
calc((100vw - var(--sidebar-width-icon, 4rem) - 24px) / 1024px),
|
|
6910
|
+
1
|
|
6911
|
+
);
|
|
6912
|
+
}
|
|
6913
|
+
:has([data-slot="sidebar"][data-state="expanded"]) div.netskrafl-inner {
|
|
6914
|
+
zoom: 0.77;
|
|
6915
|
+
zoom: clamp(
|
|
6916
|
+
0.77,
|
|
6917
|
+
calc((100vw - var(--sidebar-width, 14rem) - 12px) / 1024px),
|
|
6918
|
+
1
|
|
6919
|
+
);
|
|
6902
6920
|
}
|
|
6903
6921
|
.netskrafl-container div.game-container {
|
|
6904
6922
|
height: 100%;
|
|
@@ -7887,7 +7905,6 @@ div.netskrafl-container input[type="checkbox"] {
|
|
|
7887
7905
|
width: 32px;
|
|
7888
7906
|
}
|
|
7889
7907
|
.netskrafl-container div.tabbed-page {
|
|
7890
|
-
overflow: hidden;
|
|
7891
7908
|
left: 110px;
|
|
7892
7909
|
top: 12px;
|
|
7893
7910
|
width: 900px;
|
|
@@ -7910,6 +7927,7 @@ div.netskrafl-container input[type="checkbox"] {
|
|
|
7910
7927
|
.netskrafl-container div#tabs > div[role="tabpanel"],
|
|
7911
7928
|
.netskrafl-container div#main-tabs > div[role="tabpanel"] {
|
|
7912
7929
|
height: 657px;
|
|
7930
|
+
max-height: none;
|
|
7913
7931
|
top: 0;
|
|
7914
7932
|
}
|
|
7915
7933
|
.netskrafl-container div.userid {
|
|
@@ -8194,14 +8212,17 @@ div.netskrafl-container input[type="checkbox"] {
|
|
|
8194
8212
|
.netskrafl-container div #gamelist,
|
|
8195
8213
|
.netskrafl-container div #elolist {
|
|
8196
8214
|
height: 504px;
|
|
8215
|
+
max-height: none;
|
|
8197
8216
|
/* 14 lines @ 36px each */
|
|
8198
8217
|
}
|
|
8199
8218
|
.netskrafl-container div #recentlist {
|
|
8200
8219
|
height: 432px;
|
|
8220
|
+
max-height: none;
|
|
8201
8221
|
/* 12 lines @ 36px each */
|
|
8202
8222
|
}
|
|
8203
8223
|
.netskrafl-container div #usr-recent {
|
|
8204
8224
|
height: 432px;
|
|
8225
|
+
max-height: none;
|
|
8205
8226
|
/* 12 lines @ 36px each */
|
|
8206
8227
|
}
|
|
8207
8228
|
.netskrafl-container div #chall-sent,
|