@mideind/netskrafl-react 1.3.0 → 1.5.0
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/cjs/css/netskrafl.css +101 -24
- package/dist/cjs/index.js +232 -178
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/css/netskrafl.css +101 -24
- package/dist/esm/index.js +232 -178
- package/dist/esm/index.js.map +1 -1
- package/dist/types.d.ts +2 -2
- package/package.json +1 -1
|
@@ -929,14 +929,11 @@ div.netskrafl-container * {
|
|
|
929
929
|
}
|
|
930
930
|
|
|
931
931
|
.netskrafl-container div.board table.board {
|
|
932
|
-
transform: scale(1);
|
|
933
|
-
|
|
932
|
+
transform: translate(0px, 0px) scale(1);
|
|
933
|
+
transition: none;
|
|
934
|
+
transform-origin: top left;
|
|
934
935
|
transform-box: view-box;
|
|
935
936
|
touch-action: pan-x pan-y;
|
|
936
|
-
/*
|
|
937
|
-
!!! Scrolling into view doesn't seem to work with this transition enabled
|
|
938
|
-
transition: transform .2s ease-in-out;
|
|
939
|
-
*/
|
|
940
937
|
}
|
|
941
938
|
|
|
942
939
|
.netskrafl-container table.board tr {
|
|
@@ -6281,7 +6278,7 @@ div.netskrafl-container input[type="checkbox"] {
|
|
|
6281
6278
|
.netskrafl-container div.info {
|
|
6282
6279
|
display: block;
|
|
6283
6280
|
position: absolute;
|
|
6284
|
-
bottom:
|
|
6281
|
+
bottom: 152px;
|
|
6285
6282
|
top: auto;
|
|
6286
6283
|
left: 28px;
|
|
6287
6284
|
width: 50px;
|
|
@@ -6363,6 +6360,7 @@ div.netskrafl-container input[type="checkbox"] {
|
|
|
6363
6360
|
width: auto;
|
|
6364
6361
|
height: auto;
|
|
6365
6362
|
margin: 0;
|
|
6363
|
+
overflow: visible; /* No scrollbars in fullscreen mode */
|
|
6366
6364
|
}
|
|
6367
6365
|
.netskrafl-container .board td {
|
|
6368
6366
|
min-height: 30px;
|
|
@@ -7585,7 +7583,7 @@ div.netskrafl-container input[type="checkbox"] {
|
|
|
7585
7583
|
.netskrafl-container .modal-dialog.gatadagsins-help {
|
|
7586
7584
|
visibility: visible;
|
|
7587
7585
|
position: fixed;
|
|
7588
|
-
top:
|
|
7586
|
+
top: 52%;
|
|
7589
7587
|
left: 50%;
|
|
7590
7588
|
transform: translate(-50%, -50%);
|
|
7591
7589
|
z-index: 10000;
|
|
@@ -7608,7 +7606,7 @@ div.netskrafl-container input[type="checkbox"] {
|
|
|
7608
7606
|
padding: 15px;
|
|
7609
7607
|
border-bottom: 1px solid #e0e0e0;
|
|
7610
7608
|
display: flex;
|
|
7611
|
-
justify-content:
|
|
7609
|
+
justify-content: flex-start;
|
|
7612
7610
|
align-items: center;
|
|
7613
7611
|
}
|
|
7614
7612
|
|
|
@@ -7618,22 +7616,37 @@ div.netskrafl-container input[type="checkbox"] {
|
|
|
7618
7616
|
color: #333;
|
|
7619
7617
|
}
|
|
7620
7618
|
|
|
7621
|
-
.netskrafl-container .modal-dialog.gatadagsins-help .modal-
|
|
7622
|
-
|
|
7619
|
+
.netskrafl-container .modal-dialog.gatadagsins-help .modal-content {
|
|
7620
|
+
position: relative;
|
|
7621
|
+
}
|
|
7622
|
+
|
|
7623
|
+
.netskrafl-container .modal-dialog.gatadagsins-help .close {
|
|
7624
|
+
position: absolute;
|
|
7625
|
+
top: 10px;
|
|
7626
|
+
right: 10px;
|
|
7627
|
+
background-color: var(--malfridur-accent);
|
|
7623
7628
|
border: none;
|
|
7624
|
-
|
|
7629
|
+
border-radius: 6px;
|
|
7625
7630
|
cursor: pointer;
|
|
7626
7631
|
padding: 0;
|
|
7627
|
-
width:
|
|
7628
|
-
height:
|
|
7632
|
+
width: 36px;
|
|
7633
|
+
height: 36px;
|
|
7629
7634
|
display: flex;
|
|
7630
7635
|
align-items: center;
|
|
7631
7636
|
justify-content: center;
|
|
7632
|
-
color:
|
|
7637
|
+
color: white;
|
|
7638
|
+
z-index: 10;
|
|
7639
|
+
transition: all 0.2s ease;
|
|
7633
7640
|
}
|
|
7634
7641
|
|
|
7635
|
-
.netskrafl-container .modal-dialog.gatadagsins-help .
|
|
7636
|
-
|
|
7642
|
+
.netskrafl-container .modal-dialog.gatadagsins-help .close .glyphicon {
|
|
7643
|
+
font-size: 18px;
|
|
7644
|
+
top: 0;
|
|
7645
|
+
}
|
|
7646
|
+
|
|
7647
|
+
.netskrafl-container .modal-dialog.gatadagsins-help .close:hover {
|
|
7648
|
+
background-color: var(--logo-accent);
|
|
7649
|
+
transform: scale(1.05);
|
|
7637
7650
|
}
|
|
7638
7651
|
|
|
7639
7652
|
.netskrafl-container .modal-dialog.gatadagsins-help .modal-body {
|
|
@@ -7718,9 +7731,9 @@ div.netskrafl-container input[type="checkbox"] {
|
|
|
7718
7731
|
width: 100%;
|
|
7719
7732
|
height: 100%;
|
|
7720
7733
|
background-color: rgba(0, 0, 0, 0.5);
|
|
7721
|
-
z-index: 9999;
|
|
7734
|
+
/* z-index: 9999; */
|
|
7722
7735
|
overflow: hidden;
|
|
7723
|
-
touch-action: none;
|
|
7736
|
+
/* touch-action: none; */
|
|
7724
7737
|
}
|
|
7725
7738
|
|
|
7726
7739
|
/* Larger screen adjustments */
|
|
@@ -7734,6 +7747,7 @@ div.netskrafl-container input[type="checkbox"] {
|
|
|
7734
7747
|
|
|
7735
7748
|
.netskrafl-container .modal-dialog.gatadagsins-help .modal-header {
|
|
7736
7749
|
padding: 20px;
|
|
7750
|
+
padding-right: 20px;
|
|
7737
7751
|
}
|
|
7738
7752
|
|
|
7739
7753
|
.netskrafl-container .modal-dialog.gatadagsins-help .modal-header h2 {
|
|
@@ -7834,6 +7848,7 @@ div.gatadagsins-board-area.celebrate div.netskrafl-tile.netskrafl-racktile{
|
|
|
7834
7848
|
flex-direction: row;
|
|
7835
7849
|
justify-content: space-evenly;
|
|
7836
7850
|
align-items: center;
|
|
7851
|
+
margin-bottom: 20px;
|
|
7837
7852
|
}
|
|
7838
7853
|
|
|
7839
7854
|
/* Override rack positioning for Gáta Dagsins */
|
|
@@ -8697,7 +8712,11 @@ div.gatadagsins-board-area.celebrate div.netskrafl-tile.netskrafl-racktile{
|
|
|
8697
8712
|
/* ================= LEADERBOARD VIEW STYLES =============== */
|
|
8698
8713
|
|
|
8699
8714
|
.netskrafl-container .leaderboard-view {
|
|
8715
|
+
display: flex;
|
|
8716
|
+
flex-direction: column;
|
|
8700
8717
|
padding: 0px 10px;
|
|
8718
|
+
height: 100%;
|
|
8719
|
+
overflow: hidden;
|
|
8701
8720
|
}
|
|
8702
8721
|
|
|
8703
8722
|
.netskrafl-container .leaderboard-view.loading,
|
|
@@ -8716,6 +8735,7 @@ div.gatadagsins-board-area.celebrate div.netskrafl-tile.netskrafl-racktile{
|
|
|
8716
8735
|
display: flex;
|
|
8717
8736
|
flex-direction: column;
|
|
8718
8737
|
align-items: center;
|
|
8738
|
+
flex-shrink: 0;
|
|
8719
8739
|
}
|
|
8720
8740
|
|
|
8721
8741
|
.netskrafl-container .leaderboard-title {
|
|
@@ -8736,13 +8756,16 @@ div.gatadagsins-board-area.celebrate div.netskrafl-tile.netskrafl-racktile{
|
|
|
8736
8756
|
display: flex;
|
|
8737
8757
|
flex-direction: column;
|
|
8738
8758
|
gap: 8px;
|
|
8759
|
+
overflow-y: auto;
|
|
8760
|
+
height: 360px;
|
|
8761
|
+
overscroll-behavior-y: contain;
|
|
8739
8762
|
}
|
|
8740
8763
|
|
|
8741
8764
|
.netskrafl-container .leaderboard-entry {
|
|
8742
8765
|
display: flex;
|
|
8743
8766
|
align-items: center;
|
|
8744
|
-
gap:
|
|
8745
|
-
padding:
|
|
8767
|
+
gap: 8px;
|
|
8768
|
+
padding: 8px;
|
|
8746
8769
|
background-color: #f8f8f8;
|
|
8747
8770
|
border-radius: 6px;
|
|
8748
8771
|
transition: all 0.3s ease;
|
|
@@ -8788,6 +8811,45 @@ div.gatadagsins-board-area.celebrate div.netskrafl-tile.netskrafl-racktile{
|
|
|
8788
8811
|
color: var(--malfridur-green);
|
|
8789
8812
|
}
|
|
8790
8813
|
|
|
8814
|
+
.netskrafl-container .entry-star {
|
|
8815
|
+
display: inline-block;
|
|
8816
|
+
margin-right: 8px;
|
|
8817
|
+
color: var(--malfridur-secondary);
|
|
8818
|
+
line-height: 1;
|
|
8819
|
+
}
|
|
8820
|
+
|
|
8821
|
+
.netskrafl-container .entry-star .glyphicon {
|
|
8822
|
+
font-size: 13px;
|
|
8823
|
+
}
|
|
8824
|
+
|
|
8825
|
+
/* ================= HELP DIALOG BONUS SQUARES =============== */
|
|
8826
|
+
|
|
8827
|
+
.netskrafl-container .help-bonus-square {
|
|
8828
|
+
display: inline-block;
|
|
8829
|
+
width: 12px;
|
|
8830
|
+
height: 12px;
|
|
8831
|
+
border-radius: 2px;
|
|
8832
|
+
margin-left: 4px;
|
|
8833
|
+
margin-right: 4px;
|
|
8834
|
+
vertical-align: middle;
|
|
8835
|
+
}
|
|
8836
|
+
|
|
8837
|
+
.netskrafl-container .help-bonus-square.double-letter {
|
|
8838
|
+
background-color: var(--double-letter-color);
|
|
8839
|
+
}
|
|
8840
|
+
|
|
8841
|
+
.netskrafl-container .help-bonus-square.triple-letter {
|
|
8842
|
+
background-color: var(--triple-letter-color);
|
|
8843
|
+
}
|
|
8844
|
+
|
|
8845
|
+
.netskrafl-container .help-bonus-square.double-word {
|
|
8846
|
+
background-color: var(--double-word-color);
|
|
8847
|
+
}
|
|
8848
|
+
|
|
8849
|
+
.netskrafl-container .help-bonus-square.triple-word {
|
|
8850
|
+
background-color: var(--triple-word-color);
|
|
8851
|
+
}
|
|
8852
|
+
|
|
8791
8853
|
/* ================= MOBILE STATS BUTTON =============== */
|
|
8792
8854
|
|
|
8793
8855
|
.netskrafl-container .mobile-stats-button {
|
|
@@ -8825,7 +8887,7 @@ div.gatadagsins-board-area.celebrate div.netskrafl-tile.netskrafl-racktile{
|
|
|
8825
8887
|
.netskrafl-container .modal-dialog.stats-modal {
|
|
8826
8888
|
visibility: visible;
|
|
8827
8889
|
position: fixed;
|
|
8828
|
-
top:
|
|
8890
|
+
top: 52%;
|
|
8829
8891
|
left: 50%;
|
|
8830
8892
|
transform: translate(-50%, -50%);
|
|
8831
8893
|
z-index: 10000;
|
|
@@ -8884,7 +8946,7 @@ div.gatadagsins-board-area.celebrate div.netskrafl-tile.netskrafl-racktile{
|
|
|
8884
8946
|
.netskrafl-container .modal-dialog.stats-modal .modal-body {
|
|
8885
8947
|
padding-top: 15px;
|
|
8886
8948
|
padding-bottom: 15px;
|
|
8887
|
-
overflow-y:
|
|
8949
|
+
overflow-y: hidden;
|
|
8888
8950
|
flex: 1;
|
|
8889
8951
|
overscroll-behavior-y: contain;
|
|
8890
8952
|
}
|
|
@@ -8892,6 +8954,11 @@ div.gatadagsins-board-area.celebrate div.netskrafl-tile.netskrafl-racktile{
|
|
|
8892
8954
|
/* Desktop styles for Gáta Dagsins */
|
|
8893
8955
|
|
|
8894
8956
|
@media all and (min-width: 1024px) {
|
|
8957
|
+
|
|
8958
|
+
.modal-backdrop-netskrafl {
|
|
8959
|
+
z-index: 9999;
|
|
8960
|
+
}
|
|
8961
|
+
|
|
8895
8962
|
/* Show all thermometer moves on desktop */
|
|
8896
8963
|
.netskrafl-container .thermometer-move-overlay:nth-child(n+2) {
|
|
8897
8964
|
display: flex;
|
|
@@ -9018,6 +9085,11 @@ div.gatadagsins-board-area.celebrate div.netskrafl-tile.netskrafl-racktile{
|
|
|
9018
9085
|
width: 100%;
|
|
9019
9086
|
}
|
|
9020
9087
|
|
|
9088
|
+
.netskrafl-container .leaderboard-list {
|
|
9089
|
+
height: 514px; /* Space for 10 entries */
|
|
9090
|
+
overscroll-behavior-y: contain;
|
|
9091
|
+
}
|
|
9092
|
+
|
|
9021
9093
|
/* Show thermometer on desktop */
|
|
9022
9094
|
.netskrafl-container div.gatadagsins-thermometer-column {
|
|
9023
9095
|
display: flex;
|
|
@@ -9034,7 +9106,7 @@ div.gatadagsins-board-area.celebrate div.netskrafl-tile.netskrafl-racktile{
|
|
|
9034
9106
|
margin-top: 0;
|
|
9035
9107
|
padding-top: 8px;
|
|
9036
9108
|
padding-bottom: 24px;
|
|
9037
|
-
overflow
|
|
9109
|
+
overflow: hidden;
|
|
9038
9110
|
}
|
|
9039
9111
|
|
|
9040
9112
|
.netskrafl-container div.gatadagsins-rack-area {
|
|
@@ -9042,6 +9114,7 @@ div.gatadagsins-board-area.celebrate div.netskrafl-tile.netskrafl-racktile{
|
|
|
9042
9114
|
/* Push left to compensate for row ids
|
|
9043
9115
|
on the left side of the board */
|
|
9044
9116
|
padding-left: 36px;
|
|
9117
|
+
margin-bottom: 0;
|
|
9045
9118
|
}
|
|
9046
9119
|
|
|
9047
9120
|
/* Show desktop score on desktop */
|
|
@@ -9086,4 +9159,8 @@ div.gatadagsins-board-area.celebrate div.netskrafl-tile.netskrafl-racktile{
|
|
|
9086
9159
|
margin-right: 5px;
|
|
9087
9160
|
}
|
|
9088
9161
|
|
|
9162
|
+
.netskrafl-container div.gatadagsins-container div.info {
|
|
9163
|
+
bottom: 42px;
|
|
9164
|
+
}
|
|
9165
|
+
|
|
9089
9166
|
}
|