@mideind/netskrafl-react 2.1.1 → 2.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.
- package/dist/esm/css/netskrafl.css +61 -39
- package/dist/esm/index.js +102 -102
- package/dist/esm/index.js.map +1 -1
- package/package.json +3 -3
|
@@ -319,9 +319,6 @@
|
|
|
319
319
|
|
|
320
320
|
*/
|
|
321
321
|
|
|
322
|
-
/*
|
|
323
|
-
*/
|
|
324
|
-
|
|
325
322
|
div.netskrafl-container {
|
|
326
323
|
--logo-primary: #c94314;
|
|
327
324
|
--logo-primary-light: hsl(from var(--logo-primary) h s 75%);
|
|
@@ -507,7 +504,6 @@ div.netskrafl-container * {
|
|
|
507
504
|
|
|
508
505
|
.netskrafl-container .ui-tabs {
|
|
509
506
|
position: relative;
|
|
510
|
-
/* position: relative prevents IE scroll bug (element with position: relative inside container with overflow: auto appear as "fixed") */
|
|
511
507
|
padding: 3px;
|
|
512
508
|
border-width: 0;
|
|
513
509
|
}
|
|
@@ -711,11 +707,11 @@ div.netskrafl-container * {
|
|
|
711
707
|
text-transform: uppercase;
|
|
712
708
|
}
|
|
713
709
|
|
|
714
|
-
@media all and (max-width:
|
|
715
|
-
/*
|
|
710
|
+
@media all and (max-width: 374px) and (orientation: portrait) {
|
|
711
|
+
/* Scale down for phones narrower than the 375px design width */
|
|
716
712
|
div.netskrafl-container {
|
|
717
713
|
transform: scale(0.96, 1);
|
|
718
|
-
/* 0.96 = 360/375 */
|
|
714
|
+
/* 0.96 = 360/375, scales 375px design to fit 360px viewport */
|
|
719
715
|
transform-origin: left top;
|
|
720
716
|
}
|
|
721
717
|
}
|
|
@@ -778,8 +774,9 @@ div.netskrafl-container * {
|
|
|
778
774
|
}
|
|
779
775
|
|
|
780
776
|
.netskrafl-container div.bag {
|
|
777
|
+
display: none;
|
|
781
778
|
position: absolute;
|
|
782
|
-
right:
|
|
779
|
+
right: 9px;
|
|
783
780
|
width: 304px;
|
|
784
781
|
height: 100px;
|
|
785
782
|
/* Content is 97px max */
|
|
@@ -975,10 +972,6 @@ div.netskrafl-container * {
|
|
|
975
972
|
display: none;
|
|
976
973
|
}
|
|
977
974
|
|
|
978
|
-
.netskrafl-container div.bag {
|
|
979
|
-
display: none;
|
|
980
|
-
}
|
|
981
|
-
|
|
982
975
|
.netskrafl-container div.board-area {
|
|
983
976
|
position: absolute;
|
|
984
977
|
margin-left: 8px;
|
|
@@ -1971,13 +1964,14 @@ div.netskrafl-tile.dragging div.letterscore {
|
|
|
1971
1964
|
}
|
|
1972
1965
|
|
|
1973
1966
|
.netskrafl-container div.movelist-container div.bag {
|
|
1974
|
-
display:
|
|
1975
|
-
|
|
1967
|
+
display: flex;
|
|
1968
|
+
flex-direction: row;
|
|
1969
|
+
justify-content: center;
|
|
1970
|
+
align-items: flex-start;
|
|
1976
1971
|
position: relative;
|
|
1977
|
-
|
|
1978
|
-
|
|
1972
|
+
right: auto;
|
|
1973
|
+
background-color: var(--container-bg-color);
|
|
1979
1974
|
padding-top: 4px;
|
|
1980
|
-
padding-left: 27px;
|
|
1981
1975
|
width: 100%;
|
|
1982
1976
|
height: 104px;
|
|
1983
1977
|
}
|
|
@@ -6083,13 +6077,14 @@ div.netskrafl-container input[type="checkbox"] {
|
|
|
6083
6077
|
|
|
6084
6078
|
/* ================= MOBILE LANDSCAPE UI ====================== */
|
|
6085
6079
|
|
|
6086
|
-
@media all and (min-width: 667px) {
|
|
6087
|
-
/* Mobile screen, landscape mode */
|
|
6080
|
+
@media all and (min-width: 667px) and (orientation: landscape) {
|
|
6081
|
+
/* Mobile screen, landscape mode (width >= 667px AND landscape orientation) */
|
|
6088
6082
|
div.netskrafl-container {
|
|
6089
6083
|
/* Reference width */
|
|
6090
6084
|
width: 667px;
|
|
6091
6085
|
/* Reference height */
|
|
6092
|
-
height:
|
|
6086
|
+
height: calc(100dvh - var(--header-size, 3rem));
|
|
6087
|
+
max-height: 686px;
|
|
6093
6088
|
overflow-y: hidden;
|
|
6094
6089
|
}
|
|
6095
6090
|
.netskrafl-container div.tabbed-page {
|
|
@@ -6311,14 +6306,17 @@ div.netskrafl-container input[type="checkbox"] {
|
|
|
6311
6306
|
}
|
|
6312
6307
|
}
|
|
6313
6308
|
|
|
6314
|
-
@media all and (min-width: 667px) and (
|
|
6309
|
+
@media all and (min-width: 667px) and (orientation: landscape) and (
|
|
6310
|
+
max-height: 360px
|
|
6311
|
+
) {
|
|
6312
|
+
/* Very short landscape screens - scale board down slightly */
|
|
6315
6313
|
.netskrafl-container div.board {
|
|
6316
6314
|
transform: scale(0.96);
|
|
6317
6315
|
transform-origin: top left;
|
|
6318
6316
|
}
|
|
6319
6317
|
}
|
|
6320
6318
|
|
|
6321
|
-
/*
|
|
6319
|
+
/* Large screen (iPad and larger) */
|
|
6322
6320
|
|
|
6323
6321
|
@media all and (min-width: 1024px) {
|
|
6324
6322
|
.netskrafl-container .ui-helper-reset {
|
|
@@ -6370,19 +6368,16 @@ div.netskrafl-container input[type="checkbox"] {
|
|
|
6370
6368
|
padding-bottom: 1px;
|
|
6371
6369
|
background-color: var(--tab-background);
|
|
6372
6370
|
}
|
|
6373
|
-
/* Large screen (iPad and larger) */
|
|
6374
6371
|
div.netskrafl-container {
|
|
6375
6372
|
width: 1024px;
|
|
6376
|
-
height:
|
|
6377
|
-
/* Was 748 */
|
|
6373
|
+
height: 686px;
|
|
6378
6374
|
overflow-y: hidden;
|
|
6379
6375
|
}
|
|
6380
6376
|
.netskrafl-container div.game-container {
|
|
6381
|
-
height:
|
|
6377
|
+
height: 100%;
|
|
6382
6378
|
}
|
|
6383
6379
|
.netskrafl-container div.heading {
|
|
6384
6380
|
height: auto;
|
|
6385
|
-
/* background-color: @heading-background; */
|
|
6386
6381
|
}
|
|
6387
6382
|
.netskrafl-container div.logo {
|
|
6388
6383
|
display: block;
|
|
@@ -6410,7 +6405,7 @@ div.netskrafl-container input[type="checkbox"] {
|
|
|
6410
6405
|
.netskrafl-container div.info {
|
|
6411
6406
|
display: block;
|
|
6412
6407
|
position: absolute;
|
|
6413
|
-
bottom:
|
|
6408
|
+
bottom: 52px;
|
|
6414
6409
|
top: auto;
|
|
6415
6410
|
left: 28px;
|
|
6416
6411
|
width: 50px;
|
|
@@ -6482,7 +6477,7 @@ div.netskrafl-container input[type="checkbox"] {
|
|
|
6482
6477
|
.netskrafl-container div.board-area {
|
|
6483
6478
|
margin: 0;
|
|
6484
6479
|
/* width should not be set here */
|
|
6485
|
-
height:
|
|
6480
|
+
height: 746px;
|
|
6486
6481
|
}
|
|
6487
6482
|
.netskrafl-container div.board {
|
|
6488
6483
|
position: absolute;
|
|
@@ -6609,7 +6604,7 @@ div.netskrafl-container input[type="checkbox"] {
|
|
|
6609
6604
|
}
|
|
6610
6605
|
.netskrafl-container div.bag {
|
|
6611
6606
|
display: block;
|
|
6612
|
-
bottom:
|
|
6607
|
+
bottom: 32px;
|
|
6613
6608
|
}
|
|
6614
6609
|
.netskrafl-container div.rack-row {
|
|
6615
6610
|
display: block;
|
|
@@ -7078,8 +7073,6 @@ div.netskrafl-container input[type="checkbox"] {
|
|
|
7078
7073
|
}
|
|
7079
7074
|
.netskrafl-container div.movelist-container div.bag {
|
|
7080
7075
|
display: none;
|
|
7081
|
-
padding: 4px 28px 0 27px;
|
|
7082
|
-
width: auto;
|
|
7083
7076
|
}
|
|
7084
7077
|
.netskrafl-container div.game-timed {
|
|
7085
7078
|
display: block;
|
|
@@ -7607,7 +7600,6 @@ div.netskrafl-container input[type="checkbox"] {
|
|
|
7607
7600
|
width: 428px;
|
|
7608
7601
|
height: 292px;
|
|
7609
7602
|
padding-top: 12px;
|
|
7610
|
-
/* Override */
|
|
7611
7603
|
}
|
|
7612
7604
|
.netskrafl-container span.left-to-move,
|
|
7613
7605
|
.netskrafl-container span.right-to-move {
|
|
@@ -7993,6 +7985,20 @@ div.gatadagsins-board-area.celebrate div.netskrafl-tile.netskrafl-racktile {
|
|
|
7993
7985
|
color: #333;
|
|
7994
7986
|
}
|
|
7995
7987
|
|
|
7988
|
+
.netskrafl-container .date-navigator .solver-count-pill {
|
|
7989
|
+
background-color: var(--malfridur-green);
|
|
7990
|
+
color: white;
|
|
7991
|
+
font-family: var(--number-font);
|
|
7992
|
+
font-size: 11px;
|
|
7993
|
+
font-weight: bold;
|
|
7994
|
+
padding: 2px 8px;
|
|
7995
|
+
border-radius: 10px;
|
|
7996
|
+
margin-left: 10px;
|
|
7997
|
+
min-width: 20px;
|
|
7998
|
+
text-align: center;
|
|
7999
|
+
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
|
|
8000
|
+
}
|
|
8001
|
+
|
|
7996
8002
|
.netskrafl-container .mobile-date-nav-container {
|
|
7997
8003
|
display: flex;
|
|
7998
8004
|
justify-content: center;
|
|
@@ -8004,10 +8010,15 @@ div.gatadagsins-board-area.celebrate div.netskrafl-tile.netskrafl-racktile {
|
|
|
8004
8010
|
padding: 0;
|
|
8005
8011
|
width: 100%;
|
|
8006
8012
|
justify-content: center;
|
|
8007
|
-
gap: 20px;
|
|
8008
8013
|
margin-bottom: 0;
|
|
8009
8014
|
}
|
|
8010
8015
|
|
|
8016
|
+
/* Add spacing between date navigator children (replacing gap) */
|
|
8017
|
+
|
|
8018
|
+
.netskrafl-container .mobile-date-nav-container .date-navigator > * + * {
|
|
8019
|
+
margin-left: 16px;
|
|
8020
|
+
}
|
|
8021
|
+
|
|
8011
8022
|
/* Mobile status bar - visible on mobile only */
|
|
8012
8023
|
|
|
8013
8024
|
.netskrafl-container div.gatadagsins-mobile-status {
|
|
@@ -9227,7 +9238,17 @@ div.gatadagsins-board-area.celebrate div.netskrafl-tile.netskrafl-racktile {
|
|
|
9227
9238
|
}
|
|
9228
9239
|
|
|
9229
9240
|
.netskrafl-container div.gatadagsins-container {
|
|
9230
|
-
height
|
|
9241
|
+
/* Dynamic viewport height minus header, adapts to browser chrome */
|
|
9242
|
+
height: calc(100dvh - var(--header-size, 3rem));
|
|
9243
|
+
max-height: 686px; /* Cap on large screens */
|
|
9244
|
+
}
|
|
9245
|
+
|
|
9246
|
+
.netskrafl-container div.gatadagsins-board-rack-wrapper {
|
|
9247
|
+
justify-content: flex-start; /* Align to the top of the screen */
|
|
9248
|
+
}
|
|
9249
|
+
|
|
9250
|
+
.netskrafl-container div.gatadagsins-board-area {
|
|
9251
|
+
flex: 0 0 auto; /* Don't expand - just fit the board */
|
|
9231
9252
|
}
|
|
9232
9253
|
|
|
9233
9254
|
.netskrafl-container div.gatadagsins-container div.board {
|
|
@@ -9256,7 +9277,7 @@ div.gatadagsins-board-area.celebrate div.netskrafl-tile.netskrafl-racktile {
|
|
|
9256
9277
|
}
|
|
9257
9278
|
|
|
9258
9279
|
.netskrafl-container .desktop-date-nav-container {
|
|
9259
|
-
margin-bottom:
|
|
9280
|
+
margin-bottom: 6px;
|
|
9260
9281
|
}
|
|
9261
9282
|
|
|
9262
9283
|
/* Desktop tab styling adjustments */
|
|
@@ -9319,13 +9340,14 @@ div.gatadagsins-board-area.celebrate div.netskrafl-tile.netskrafl-racktile {
|
|
|
9319
9340
|
flex-direction: column;
|
|
9320
9341
|
order: 0;
|
|
9321
9342
|
margin-top: 0;
|
|
9343
|
+
margin-right: 12px;
|
|
9322
9344
|
padding-top: 8px;
|
|
9323
9345
|
padding-bottom: 24px;
|
|
9324
9346
|
overflow: hidden;
|
|
9325
9347
|
}
|
|
9326
9348
|
|
|
9327
9349
|
.netskrafl-container div.gatadagsins-rack-area {
|
|
9328
|
-
flex: 0 0
|
|
9350
|
+
flex: 0 0 104px;
|
|
9329
9351
|
/* Push left to compensate for row ids
|
|
9330
9352
|
on the left side of the board */
|
|
9331
9353
|
padding-left: 36px;
|
|
@@ -9377,7 +9399,7 @@ div.gatadagsins-board-area.celebrate div.netskrafl-tile.netskrafl-racktile {
|
|
|
9377
9399
|
margin-right: 5px;
|
|
9378
9400
|
}
|
|
9379
9401
|
|
|
9380
|
-
.netskrafl-container div.
|
|
9381
|
-
bottom:
|
|
9402
|
+
.netskrafl-container div.info {
|
|
9403
|
+
bottom: 72px;
|
|
9382
9404
|
}
|
|
9383
9405
|
}
|