@mideind/netskrafl-react 3.2.0 → 3.2.2

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.
@@ -387,6 +387,7 @@ div.netskrafl-container {
387
387
  --board-cell-border-radius: 2.5px;
388
388
  --board-cell-border-width-lg: 2px;
389
389
  --board-cell-border-radius-lg: 3.5px;
390
+ --selection-outline-radius: 3.5px;
390
391
  --board-cell-border-color: white;
391
392
  --board-tile-line-height-lg: 30px;
392
393
  --tab-background: #f3f3f6;
@@ -504,6 +505,7 @@ div.netskrafl-container.legacy-colors {
504
505
  --board-cell-border-radius: 0;
505
506
  --board-cell-border-width-lg: 1px;
506
507
  --board-cell-border-radius-lg: 0;
508
+ --selection-outline-radius: 3.5px;
507
509
  --board-cell-border-color: #e8e8e8;
508
510
  --board-tile-line-height-lg: 32px;
509
511
 
@@ -522,10 +524,30 @@ div.netskrafl-container.legacy-colors {
522
524
  --tab-movelist-background: #d6d1c4;
523
525
 
524
526
  /* Move list gradients for classic scheme */
525
- --humangrad-left: linear-gradient(to right, var(--human-color), var(--tab-movelist-background), var(--tab-movelist-background));
526
- --humangrad-right: linear-gradient(to right, var(--tab-movelist-background), var(--tab-movelist-background), var(--human-color));
527
- --autoplayergrad-left: linear-gradient(to right, var(--autoplayer-color), var(--tab-movelist-background), var(--tab-movelist-background));
528
- --autoplayergrad-right: linear-gradient(to right, var(--tab-movelist-background), var(--tab-movelist-background), var(--autoplayer-color));
527
+ --humangrad-left: linear-gradient(
528
+ to right,
529
+ var(--human-color),
530
+ var(--tab-movelist-background),
531
+ var(--tab-movelist-background)
532
+ );
533
+ --humangrad-right: linear-gradient(
534
+ to right,
535
+ var(--tab-movelist-background),
536
+ var(--tab-movelist-background),
537
+ var(--human-color)
538
+ );
539
+ --autoplayergrad-left: linear-gradient(
540
+ to right,
541
+ var(--autoplayer-color),
542
+ var(--tab-movelist-background),
543
+ var(--tab-movelist-background)
544
+ );
545
+ --autoplayergrad-right: linear-gradient(
546
+ to right,
547
+ var(--tab-movelist-background),
548
+ var(--tab-movelist-background),
549
+ var(--autoplayer-color)
550
+ );
529
551
  --move-text-color: black;
530
552
  --total-background-color: #b5bdc4;
531
553
  --total-margin: 2px;
@@ -544,7 +566,6 @@ div.netskrafl-container.legacy-colors {
544
566
  /* ---- Legacy Style Overrides (nested) ---- */
545
567
 
546
568
  /* Button overrides - use classic "white text on colored background" pattern */
547
-
548
569
  }
549
570
 
550
571
  div.netskrafl-container.legacy-colors div.recallbtn {
@@ -759,7 +780,6 @@ div.netskrafl-container.legacy-colors div.board div.letterscore {
759
780
  /* Rack tile overrides for mobile */
760
781
 
761
782
  div.netskrafl-container.legacy-colors div.rack div.netskrafl-tile {
762
- line-height: 34px;
763
783
  margin-left: 0;
764
784
  padding-right: 0;
765
785
  }
@@ -3954,8 +3974,12 @@ div.rack td:has(> div.netskrafl-xchgsel) {
3954
3974
  border-color: var(--human-color);
3955
3975
  }
3956
3976
 
3957
- .netskrafl-container td.sel {
3977
+ .netskrafl-container table.board td.sel,
3978
+ .netskrafl-container div.rack td.sel {
3958
3979
  outline: var(--cancel-button) solid 3px;
3980
+ border-radius: var(--selection-outline-radius);
3981
+ position: relative;
3982
+ z-index: 1;
3959
3983
  }
3960
3984
 
3961
3985
  /* Container focus styling - remove default outline */
@@ -7043,19 +7067,27 @@ div.netskrafl-container input[type="checkbox"] {
7043
7067
  text-indent: -4px;
7044
7068
  }
7045
7069
  div.rack div.netskrafl-tile {
7046
- /* Fill the entire rack slot content area */
7070
+ /* Fill the entire rack slot. Font size and line height are
7071
+ set on the inner .tileletter div, not here, to prevent the
7072
+ tile's font metrics from inflating the table cell height
7073
+ beyond its declared size (table cells treat height as a
7074
+ minimum determined partly by the content's font strut). */
7047
7075
  display: block;
7048
7076
  box-sizing: border-box;
7049
- font-size: 24px;
7050
- line-height: 32px;
7077
+ font-size: 0;
7078
+ line-height: 0;
7051
7079
  height: 100%;
7052
7080
  width: 100%;
7053
7081
  padding: 0;
7054
7082
  margin: 0;
7083
+ }
7084
+ div.rack div.netskrafl-tile .tileletter {
7085
+ font-size: 24px;
7086
+ line-height: 32px;
7055
7087
  text-indent: -3px;
7056
7088
  }
7057
- div.rack div.netskrafl-tile.netskrafl-wide,
7058
- div.rack div.netskrafl-tile.netskrafl-extra-wide {
7089
+ div.rack div.netskrafl-tile.netskrafl-wide .tileletter,
7090
+ div.rack div.netskrafl-tile.netskrafl-extra-wide .tileletter {
7059
7091
  /* Wide character tile */
7060
7092
  text-indent: -6px;
7061
7093
  }
@@ -7081,7 +7113,7 @@ div.netskrafl-container input[type="checkbox"] {
7081
7113
  }
7082
7114
  div.rack div.letterscore {
7083
7115
  left: auto;
7084
- right: 1px;
7116
+ right: 2px;
7085
7117
  bottom: 1px;
7086
7118
  }
7087
7119
  div.netskrafl-tile.netskrafl-wide div.letterscore,
@@ -7093,7 +7125,7 @@ div.netskrafl-container input[type="checkbox"] {
7093
7125
  div.rack div.netskrafl-tile.netskrafl-wide div.letterscore,
7094
7126
  div.rack div.netskrafl-tile.netskrafl-extra-wide div.letterscore {
7095
7127
  /* Adjust letter score position for wide tiles */
7096
- right: 1px;
7128
+ right: 2px;
7097
7129
  left: auto;
7098
7130
  }
7099
7131
  div.netskrafl-tile.dragging div.letterscore {
@@ -7154,6 +7186,8 @@ div.netskrafl-container input[type="checkbox"] {
7154
7186
  max-width: 34px;
7155
7187
  height: 34px;
7156
7188
  width: 34px;
7189
+ /* Override board cell border-width that leaks in via table.board td */
7190
+ border-width: 0;
7157
7191
  border-color: var(--rack-slot-background);
7158
7192
  background-color: var(--rack-slot-background);
7159
7193
  box-shadow: 2px 2px 4px 0 var(--rack-shadow);
@@ -8236,6 +8270,10 @@ div.netskrafl-container input[type="checkbox"] {
8236
8270
  div.netskrafl-container.legacy-colors div.board div.netskrafl-tile {
8237
8271
  line-height: var(--board-tile-line-height-lg);
8238
8272
  }
8273
+ /* No box-shadow on rack slots in legacy scheme */
8274
+ div.netskrafl-container.legacy-colors div.rack td {
8275
+ box-shadow: none;
8276
+ }
8239
8277
  }
8240
8278
 
8241
8279
  /* ================= GÁTA DAGSINS STYLES =============== */