@mideind/netskrafl-react 3.4.2 → 3.4.4

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.
@@ -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);
@@ -2686,7 +2690,7 @@ div.netskrafl-tile.dragging div.letterscore {
2686
2690
  top: 0;
2687
2691
  padding-top: 34px;
2688
2692
  left: 0;
2689
- height: 464px;
2693
+ height: 474px;
2690
2694
  width: 100%;
2691
2695
  font-size: 16px;
2692
2696
  line-height: 16px;
@@ -3818,12 +3822,13 @@ div.netskrafl-tile.dragging div.letterscore {
3818
3822
  top: 0;
3819
3823
  left: 0;
3820
3824
  width: 100%;
3825
+ /* Total height: 474px */
3821
3826
  height: 450px;
3827
+ padding-top: 12px;
3828
+ padding-bottom: 12px;
3822
3829
  background-color: var(--tab-games-background);
3823
3830
  overflow: auto;
3824
3831
  z-index: 2;
3825
- padding-top: 12px;
3826
- padding-bottom: 12px;
3827
3832
  border-radius: 4px 4px 0 0;
3828
3833
  }
3829
3834
 
@@ -4109,7 +4114,7 @@ div.netskrafl-freshtile {
4109
4114
  }
4110
4115
 
4111
4116
  div.netskrafl-freshtile.netskrafl-blanktile {
4112
- color: var(--light-shadow);
4117
+ color: var(--blank-tile);
4113
4118
  }
4114
4119
 
4115
4120
  .netskrafl-container div.highlight0 {
@@ -4303,7 +4308,7 @@ div.highlight1.netskrafl-blanktile {
4303
4308
  top: 0px;
4304
4309
  left: 0px;
4305
4310
  width: 100%;
4306
- height: 466px;
4311
+ height: 474px;
4307
4312
  background-color: var(--chat-background);
4308
4313
  z-index: 1;
4309
4314
  border-radius: 4px 4px 0 0;
@@ -6542,9 +6547,14 @@ div.netskrafl-container input[type="checkbox"] {
6542
6547
  ========================================================================== */
6543
6548
 
6544
6549
  @media all and (min-width: 667px) and (max-width: 1023px) and (
6545
- orientation: landscape
6546
- ) {
6547
- /* Mobile screen, landscape mode (width >= 667px AND landscape orientation) */
6550
+ max-height: 667px
6551
+ ) and (orientation: landscape) {
6552
+ /* Mobile screens in landscape (width 667–1023px, max-height 667px, landscape orientation) */
6553
+ .netskrafl-container .ui-helper-reset {
6554
+ /* Controls the height of the tab row; 50px is too tall for limited
6555
+ vertical space in landscape */
6556
+ line-height: 40px;
6557
+ }
6548
6558
  div.netskrafl-container {
6549
6559
  container-type: inline-size;
6550
6560
  }
@@ -6617,8 +6627,10 @@ div.netskrafl-container input[type="checkbox"] {
6617
6627
  top: 8px;
6618
6628
  padding-top: 1px;
6619
6629
  background-color: transparent;
6620
- transform: scale(0.92);
6621
- transform: scale(min(1, tan(atan2(100dvh - 16px, 408px))));
6630
+ /* 0.88 is the scale required on an iPhone SE to fit the board
6631
+ vertically */
6632
+ transform: scale(0.88);
6633
+ transform: scale(clamp(0.88, calc((100dvh - 16px) / 408px), 1));
6622
6634
  transform-origin: right top;
6623
6635
  }
6624
6636
  .netskrafl-container div.rightcol {
@@ -6739,15 +6751,29 @@ div.netskrafl-container input[type="checkbox"] {
6739
6751
  left: 90px;
6740
6752
  }
6741
6753
  .netskrafl-container div#own-stats {
6742
- height: 16px;
6754
+ height: 32px;
6755
+ margin-top: 6px;
6756
+ margin-bottom: 6px;
6757
+ }
6758
+ .netskrafl-container div.stats-fig {
6759
+ margin-top: 0;
6760
+ height: 22px;
6761
+ line-height: 22px;
6743
6762
  }
6744
6763
  .netskrafl-container p#own-best {
6745
6764
  left: auto;
6746
6765
  right: 6px;
6747
6766
  top: 0px;
6748
6767
  text-align: right;
6749
- font-size: 0.85em;
6750
- line-height: 1.4em;
6768
+ font-size: 13px;
6769
+ line-height: 17px;
6770
+ margin-top: 8px;
6771
+ }
6772
+ .netskrafl-container div#own-toggler {
6773
+ top: -2px;
6774
+ }
6775
+ .netskrafl-container div.toggler span.glyphicon {
6776
+ top: 2px;
6751
6777
  }
6752
6778
  .netskrafl-container div #chall-sent,
6753
6779
  .netskrafl-container div #chall-received {
@@ -6781,29 +6807,41 @@ div.netskrafl-container input[type="checkbox"] {
6781
6807
  }
6782
6808
  .netskrafl-container div#tabs > div[role="tabpanel"],
6783
6809
  .netskrafl-container div#main-tabs > div[role="tabpanel"] {
6784
- height: calc(100vh - 152px);
6785
- height: calc(100dvh - 152px);
6786
- max-height: 326px;
6810
+ height: calc(100vh - 142px);
6811
+ height: calc(100dvh - 142px);
6812
+ max-height: 336px;
6813
+ }
6814
+ .netskrafl-container div#initials {
6815
+ margin-top: 6px;
6816
+ margin-bottom: 6px;
6817
+ height: 32px;
6818
+ }
6819
+ .netskrafl-container div.user-cat#user-headings {
6820
+ line-height: 28px;
6787
6821
  }
6788
6822
  .netskrafl-container div #userlist,
6789
6823
  .netskrafl-container div #elolist {
6790
- height: calc(100vh - 204px);
6791
- height: calc(100dvh - 204px);
6792
- max-height: 396px;
6824
+ height: calc(100vh - 180px);
6825
+ height: calc(100dvh - 180px);
6826
+ max-height: 420px;
6793
6827
  }
6794
6828
  .netskrafl-container div #gamelist {
6795
- height: calc(100vh - 150px);
6796
- height: calc(100dvh - 150px);
6797
- max-height: 468px;
6829
+ height: calc(100vh - 136px);
6830
+ height: calc(100dvh - 136px);
6831
+ max-height: 482px;
6798
6832
  }
6799
6833
  .netskrafl-container div #recentlist,
6800
6834
  .netskrafl-container div #usr-recent {
6801
- height: calc(100vh - 204px);
6802
- height: calc(100dvh - 204px);
6803
- max-height: 396px;
6835
+ height: calc(100vh - 180px);
6836
+ height: calc(100dvh - 180px);
6837
+ max-height: 420px;
6838
+ }
6839
+ .netskrafl-container span#numgames,
6840
+ .netskrafl-container span#numchallenges {
6841
+ margin-top: 12px;
6804
6842
  }
6805
6843
  .netskrafl-container div#elo-toggler {
6806
- top: 6px;
6844
+ top: 2px;
6807
6845
  }
6808
6846
  .netskrafl-container div#tabs-1 span.list-ts-short,
6809
6847
  .netskrafl-container div#tabs-1 span.list-manual,
@@ -6900,16 +6938,18 @@ div.netskrafl-container input[type="checkbox"] {
6900
6938
  zoom remains at default (1). */
6901
6939
  :has([data-slot="sidebar"][data-state="collapsed"]) div.netskrafl-inner {
6902
6940
  zoom: 0.92;
6903
- zoom: min(
6904
- 1,
6905
- tan(atan2(100vw - var(--sidebar-width-icon, 4rem) - 24px, 1024px))
6941
+ zoom: clamp(
6942
+ 0.92,
6943
+ calc((100vw - var(--sidebar-width-icon, 4rem) - 24px) / 1024px),
6944
+ 1
6906
6945
  );
6907
6946
  }
6908
6947
  :has([data-slot="sidebar"][data-state="expanded"]) div.netskrafl-inner {
6909
6948
  zoom: 0.77;
6910
- zoom: min(
6911
- 1,
6912
- tan(atan2(100vw - var(--sidebar-width, 14rem) - 12px, 1024px))
6949
+ zoom: clamp(
6950
+ 0.77,
6951
+ calc((100vw - var(--sidebar-width, 14rem) - 12px) / 1024px),
6952
+ 1
6913
6953
  );
6914
6954
  }
6915
6955
  .netskrafl-container div.game-container {