@mideind/netskrafl-react 3.2.1 → 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
 
@@ -778,7 +780,6 @@ div.netskrafl-container.legacy-colors div.board div.letterscore {
778
780
  /* Rack tile overrides for mobile */
779
781
 
780
782
  div.netskrafl-container.legacy-colors div.rack div.netskrafl-tile {
781
- line-height: 34px;
782
783
  margin-left: 0;
783
784
  padding-right: 0;
784
785
  }
@@ -3973,8 +3974,12 @@ div.rack td:has(> div.netskrafl-xchgsel) {
3973
3974
  border-color: var(--human-color);
3974
3975
  }
3975
3976
 
3976
- .netskrafl-container td.sel {
3977
+ .netskrafl-container table.board td.sel,
3978
+ .netskrafl-container div.rack td.sel {
3977
3979
  outline: var(--cancel-button) solid 3px;
3980
+ border-radius: var(--selection-outline-radius);
3981
+ position: relative;
3982
+ z-index: 1;
3978
3983
  }
3979
3984
 
3980
3985
  /* Container focus styling - remove default outline */
@@ -7062,19 +7067,27 @@ div.netskrafl-container input[type="checkbox"] {
7062
7067
  text-indent: -4px;
7063
7068
  }
7064
7069
  div.rack div.netskrafl-tile {
7065
- /* 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). */
7066
7075
  display: block;
7067
7076
  box-sizing: border-box;
7068
- font-size: 24px;
7069
- line-height: 32px;
7077
+ font-size: 0;
7078
+ line-height: 0;
7070
7079
  height: 100%;
7071
7080
  width: 100%;
7072
7081
  padding: 0;
7073
7082
  margin: 0;
7083
+ }
7084
+ div.rack div.netskrafl-tile .tileletter {
7085
+ font-size: 24px;
7086
+ line-height: 32px;
7074
7087
  text-indent: -3px;
7075
7088
  }
7076
- div.rack div.netskrafl-tile.netskrafl-wide,
7077
- 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 {
7078
7091
  /* Wide character tile */
7079
7092
  text-indent: -6px;
7080
7093
  }
@@ -7100,7 +7113,7 @@ div.netskrafl-container input[type="checkbox"] {
7100
7113
  }
7101
7114
  div.rack div.letterscore {
7102
7115
  left: auto;
7103
- right: 1px;
7116
+ right: 2px;
7104
7117
  bottom: 1px;
7105
7118
  }
7106
7119
  div.netskrafl-tile.netskrafl-wide div.letterscore,
@@ -7112,7 +7125,7 @@ div.netskrafl-container input[type="checkbox"] {
7112
7125
  div.rack div.netskrafl-tile.netskrafl-wide div.letterscore,
7113
7126
  div.rack div.netskrafl-tile.netskrafl-extra-wide div.letterscore {
7114
7127
  /* Adjust letter score position for wide tiles */
7115
- right: 1px;
7128
+ right: 2px;
7116
7129
  left: auto;
7117
7130
  }
7118
7131
  div.netskrafl-tile.dragging div.letterscore {
@@ -7173,6 +7186,8 @@ div.netskrafl-container input[type="checkbox"] {
7173
7186
  max-width: 34px;
7174
7187
  height: 34px;
7175
7188
  width: 34px;
7189
+ /* Override board cell border-width that leaks in via table.board td */
7190
+ border-width: 0;
7176
7191
  border-color: var(--rack-slot-background);
7177
7192
  background-color: var(--rack-slot-background);
7178
7193
  box-shadow: 2px 2px 4px 0 var(--rack-shadow);
@@ -8255,6 +8270,10 @@ div.netskrafl-container input[type="checkbox"] {
8255
8270
  div.netskrafl-container.legacy-colors div.board div.netskrafl-tile {
8256
8271
  line-height: var(--board-tile-line-height-lg);
8257
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
+ }
8258
8277
  }
8259
8278
 
8260
8279
  /* ================= GÁTA DAGSINS STYLES =============== */