@mideind/netskrafl-react 1.4.0 → 1.6.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.
@@ -341,7 +341,7 @@ div.netskrafl-container {
341
341
  --light-shadow: #666666;
342
342
  --blank-tile: #999999;
343
343
  --middle-shadow: #cccccc;
344
- --container-bg-color: #f8f8f8;
344
+ --container-bg-color: #fafafa;
345
345
  --light-header-color: #eaf5f7;
346
346
  --header-color: hsl(from var(--malfridur-accent) h 50% 60%);
347
347
  --header-hover-color: hsl(from var(--malfridur-accent) h 50% 70%);
@@ -434,6 +434,10 @@ div.netskrafl-container * {
434
434
  animation: blinkOutline 1s infinite;
435
435
  }
436
436
 
437
+ .netskrafl-container .hidden {
438
+ visibility: hidden;
439
+ }
440
+
437
441
  .netskrafl-container div.game-container {
438
442
  position: absolute;
439
443
  top: 0;
@@ -521,8 +525,8 @@ div.netskrafl-container * {
521
525
  }
522
526
 
523
527
  .netskrafl-container .ui-tabs .ui-tabs-nav .ui-tabs-anchor.sp {
524
- /* Single page version */
525
- min-width: 51px;
528
+ /* Single page version, mobile */
529
+ min-width: 61px;
526
530
  }
527
531
 
528
532
  .netskrafl-container .ui-tabs .ui-tabs-nav li.ui-tabs-active {
@@ -698,7 +702,7 @@ div.netskrafl-container * {
698
702
  div.netskrafl-container {
699
703
  transform: scale(0.96, 1);
700
704
  /* 0.96 = 360/375 */
701
- transform-origin: center top;
705
+ transform-origin: left top;
702
706
  }
703
707
  }
704
708
 
@@ -706,7 +710,7 @@ div.netskrafl-container * {
706
710
  display: block;
707
711
  float: left;
708
712
  padding-left: 4px;
709
- padding-top: 18px;
713
+ padding-top: 14px;
710
714
  }
711
715
 
712
716
  .netskrafl-container div.header-button {
@@ -734,6 +738,12 @@ div.netskrafl-container * {
734
738
  height: 30px;
735
739
  }
736
740
 
741
+ .netskrafl-container div.logo .glyphicon-home,
742
+ .netskrafl-container div.header-logo .glyphicon-home {
743
+ color: #f17736;
744
+ font-size: 24px;
745
+ }
746
+
737
747
  .netskrafl-container div.rightcol {
738
748
  position: relative;
739
749
  width: 362px;
@@ -929,14 +939,11 @@ div.netskrafl-container * {
929
939
  }
930
940
 
931
941
  .netskrafl-container div.board table.board {
932
- transform: scale(1);
933
- transform-origin: 0 0;
942
+ transform: translate(0px, 0px) scale(1);
943
+ transition: none;
944
+ transform-origin: top left;
934
945
  transform-box: view-box;
935
946
  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
947
  }
941
948
 
942
949
  .netskrafl-container table.board tr {
@@ -1376,6 +1383,15 @@ div.netskrafl-tile.dragging div.letterscore {
1376
1383
  top: 0;
1377
1384
  }
1378
1385
 
1386
+ .netskrafl-container div.modal-close .glyphicon {
1387
+ top: 0;
1388
+ }
1389
+
1390
+ .netskrafl-container div#user-friend .glyphicon {
1391
+ top: -1px;
1392
+ margin-right: 4px;
1393
+ }
1394
+
1379
1395
  .netskrafl-container .bottom-button {
1380
1396
  text-align: center;
1381
1397
  font-size: 18px;
@@ -2553,9 +2569,7 @@ div.netskrafl-tile.dragging div.letterscore {
2553
2569
  }
2554
2570
 
2555
2571
  .netskrafl-container div#main-tabs div.header-logo {
2556
- padding-left: 8px;
2557
- padding-right: 4px;
2558
- padding-top: 12px;
2572
+ display: none;
2559
2573
  }
2560
2574
 
2561
2575
  .netskrafl-container div#tabs {
@@ -2998,8 +3012,8 @@ div.netskrafl-tile.dragging div.letterscore {
2998
3012
  position: absolute;
2999
3013
  width: 200px;
3000
3014
  height: 28px;
3001
- bottom: 48px;
3002
- right: 232px;
3015
+ bottom: 24px;
3016
+ right: 222px;
3003
3017
  top: auto;
3004
3018
  background-color: var(--ok-button);
3005
3019
  }
@@ -4250,11 +4264,13 @@ div.highlight1.netskrafl-blanktile {
4250
4264
  font-size: 24px;
4251
4265
  line-height: 30px;
4252
4266
  font-weight: bold;
4267
+ margin-bottom: 20px;
4253
4268
  }
4254
4269
 
4255
4270
  .netskrafl-container div.promo-content h2 span.glyphicon-coffee-cup,
4256
4271
  .netskrafl-container div.help-container span.glyphicon-coffee-cup {
4257
4272
  color: var(--triple-word-color);
4273
+ margin-right: 6px;
4258
4274
  }
4259
4275
 
4260
4276
  .netskrafl-container div.promo-krafla {
@@ -5302,7 +5318,7 @@ div.highlight1.netskrafl-blanktile {
5302
5318
  }
5303
5319
 
5304
5320
  .netskrafl-container div#user-friend {
5305
- left: 180px;
5321
+ left: 166px;
5306
5322
  width: 280px;
5307
5323
  /* Override */
5308
5324
  background-color: var(--ok-button);
@@ -5979,9 +5995,6 @@ div.netskrafl-container input[type="checkbox"] {
5979
5995
  .netskrafl-container p.help-center {
5980
5996
  text-align: center;
5981
5997
  }
5982
- .netskrafl-container div.heading div.header-logo {
5983
- display: none;
5984
- }
5985
5998
  .netskrafl-container div.logowrapper {
5986
5999
  width: 0%;
5987
6000
  }
@@ -6179,6 +6192,12 @@ div.netskrafl-container input[type="checkbox"] {
6179
6192
  .netskrafl-container div#blank-form {
6180
6193
  display: none;
6181
6194
  }
6195
+ .netskrafl-container div.modal-dialog {
6196
+ position: absolute;
6197
+ display: flex;
6198
+ justify-content: center;
6199
+ align-items: center;
6200
+ }
6182
6201
  }
6183
6202
 
6184
6203
  @media all and (min-width: 667px) and (max-height: 360px) {
@@ -6263,8 +6282,8 @@ div.netskrafl-container input[type="checkbox"] {
6263
6282
  width: 40px;
6264
6283
  height: 40px;
6265
6284
  }
6266
- .netskrafl-container div#main-tabs div.header-logo {
6267
- display: none;
6285
+ .netskrafl-container div.logo .glyphicon-home {
6286
+ font-size: 38px;
6268
6287
  }
6269
6288
  .netskrafl-container div.circle {
6270
6289
  height: 38px;
@@ -6281,7 +6300,7 @@ div.netskrafl-container input[type="checkbox"] {
6281
6300
  .netskrafl-container div.info {
6282
6301
  display: block;
6283
6302
  position: absolute;
6284
- bottom: 148px;
6303
+ bottom: 152px;
6285
6304
  top: auto;
6286
6305
  left: 28px;
6287
6306
  width: 50px;
@@ -6363,6 +6382,7 @@ div.netskrafl-container input[type="checkbox"] {
6363
6382
  width: auto;
6364
6383
  height: auto;
6365
6384
  margin: 0;
6385
+ overflow: visible; /* No scrollbars in fullscreen mode */
6366
6386
  }
6367
6387
  .netskrafl-container .board td {
6368
6388
  min-height: 30px;
@@ -6983,9 +7003,6 @@ div.netskrafl-container input[type="checkbox"] {
6983
7003
  left: auto;
6984
7004
  background-color: transparent;
6985
7005
  }
6986
- .netskrafl-container div.modal-dialog {
6987
- position: absolute;
6988
- }
6989
7006
  .netskrafl-container .bottom-message {
6990
7007
  position: absolute;
6991
7008
  text-align: center;
@@ -7393,11 +7410,13 @@ div.netskrafl-container input[type="checkbox"] {
7393
7410
  background-size: 48px 48px;
7394
7411
  }
7395
7412
  .netskrafl-container div#promo-form {
7413
+ position: relative;
7414
+ top: auto;
7396
7415
  left: auto;
7397
- top: 60px;
7398
- right: 48px;
7399
- width: 812px;
7400
- height: 628px;
7416
+ right: auto;
7417
+ bottom: auto;
7418
+ width: 768px;
7419
+ height: 512px;
7401
7420
  line-height: 1.62em;
7402
7421
  }
7403
7422
  .netskrafl-container div.promo-content {
@@ -7414,8 +7433,8 @@ div.netskrafl-container input[type="checkbox"] {
7414
7433
  .netskrafl-container div.btn-promo-no {
7415
7434
  width: 160px;
7416
7435
  height: 28px;
7417
- bottom: 48px;
7418
- right: 48px;
7436
+ bottom: 24px;
7437
+ right: 24px;
7419
7438
  top: auto;
7420
7439
  background-color: var(--light-shadow);
7421
7440
  }
@@ -7585,7 +7604,7 @@ div.netskrafl-container input[type="checkbox"] {
7585
7604
  .netskrafl-container .modal-dialog.gatadagsins-help {
7586
7605
  visibility: visible;
7587
7606
  position: fixed;
7588
- top: 50%;
7607
+ top: 52%;
7589
7608
  left: 50%;
7590
7609
  transform: translate(-50%, -50%);
7591
7610
  z-index: 10000;
@@ -7608,7 +7627,7 @@ div.netskrafl-container input[type="checkbox"] {
7608
7627
  padding: 15px;
7609
7628
  border-bottom: 1px solid #e0e0e0;
7610
7629
  display: flex;
7611
- justify-content: space-between;
7630
+ justify-content: flex-start;
7612
7631
  align-items: center;
7613
7632
  }
7614
7633
 
@@ -7618,22 +7637,37 @@ div.netskrafl-container input[type="checkbox"] {
7618
7637
  color: #333;
7619
7638
  }
7620
7639
 
7621
- .netskrafl-container .modal-dialog.gatadagsins-help .modal-header .close {
7622
- background: none;
7640
+ .netskrafl-container .modal-dialog.gatadagsins-help .modal-content {
7641
+ position: relative;
7642
+ }
7643
+
7644
+ .netskrafl-container .modal-dialog.gatadagsins-help .close {
7645
+ position: absolute;
7646
+ top: 10px;
7647
+ right: 10px;
7648
+ background-color: var(--malfridur-accent);
7623
7649
  border: none;
7624
- font-size: 28px;
7650
+ border-radius: 6px;
7625
7651
  cursor: pointer;
7626
7652
  padding: 0;
7627
- width: 30px;
7628
- height: 30px;
7653
+ width: 36px;
7654
+ height: 36px;
7629
7655
  display: flex;
7630
7656
  align-items: center;
7631
7657
  justify-content: center;
7632
- color: #999;
7658
+ color: white;
7659
+ z-index: 10;
7660
+ transition: all 0.2s ease;
7633
7661
  }
7634
7662
 
7635
- .netskrafl-container .modal-dialog.gatadagsins-help .modal-header .close:hover {
7636
- color: #333;
7663
+ .netskrafl-container .modal-dialog.gatadagsins-help .close .glyphicon {
7664
+ font-size: 18px;
7665
+ top: 0;
7666
+ }
7667
+
7668
+ .netskrafl-container .modal-dialog.gatadagsins-help .close:hover {
7669
+ background-color: var(--logo-accent);
7670
+ transform: scale(1.05);
7637
7671
  }
7638
7672
 
7639
7673
  .netskrafl-container .modal-dialog.gatadagsins-help .modal-body {
@@ -7718,9 +7752,9 @@ div.netskrafl-container input[type="checkbox"] {
7718
7752
  width: 100%;
7719
7753
  height: 100%;
7720
7754
  background-color: rgba(0, 0, 0, 0.5);
7721
- z-index: 9999;
7755
+ /* z-index: 9999; */
7722
7756
  overflow: hidden;
7723
- touch-action: none;
7757
+ /* touch-action: none; */
7724
7758
  }
7725
7759
 
7726
7760
  /* Larger screen adjustments */
@@ -7734,6 +7768,7 @@ div.netskrafl-container input[type="checkbox"] {
7734
7768
 
7735
7769
  .netskrafl-container .modal-dialog.gatadagsins-help .modal-header {
7736
7770
  padding: 20px;
7771
+ padding-right: 20px;
7737
7772
  }
7738
7773
 
7739
7774
  .netskrafl-container .modal-dialog.gatadagsins-help .modal-header h2 {
@@ -7834,6 +7869,7 @@ div.gatadagsins-board-area.celebrate div.netskrafl-tile.netskrafl-racktile{
7834
7869
  flex-direction: row;
7835
7870
  justify-content: space-evenly;
7836
7871
  align-items: center;
7872
+ margin-bottom: 20px;
7837
7873
  }
7838
7874
 
7839
7875
  /* Override rack positioning for Gáta Dagsins */
@@ -8697,7 +8733,11 @@ div.gatadagsins-board-area.celebrate div.netskrafl-tile.netskrafl-racktile{
8697
8733
  /* ================= LEADERBOARD VIEW STYLES =============== */
8698
8734
 
8699
8735
  .netskrafl-container .leaderboard-view {
8736
+ display: flex;
8737
+ flex-direction: column;
8700
8738
  padding: 0px 10px;
8739
+ height: 100%;
8740
+ overflow: hidden;
8701
8741
  }
8702
8742
 
8703
8743
  .netskrafl-container .leaderboard-view.loading,
@@ -8716,6 +8756,7 @@ div.gatadagsins-board-area.celebrate div.netskrafl-tile.netskrafl-racktile{
8716
8756
  display: flex;
8717
8757
  flex-direction: column;
8718
8758
  align-items: center;
8759
+ flex-shrink: 0;
8719
8760
  }
8720
8761
 
8721
8762
  .netskrafl-container .leaderboard-title {
@@ -8736,13 +8777,16 @@ div.gatadagsins-board-area.celebrate div.netskrafl-tile.netskrafl-racktile{
8736
8777
  display: flex;
8737
8778
  flex-direction: column;
8738
8779
  gap: 8px;
8780
+ overflow-y: auto;
8781
+ height: 360px;
8782
+ overscroll-behavior-y: contain;
8739
8783
  }
8740
8784
 
8741
8785
  .netskrafl-container .leaderboard-entry {
8742
8786
  display: flex;
8743
8787
  align-items: center;
8744
- gap: 12px;
8745
- padding: 10px;
8788
+ gap: 8px;
8789
+ padding: 8px;
8746
8790
  background-color: #f8f8f8;
8747
8791
  border-radius: 6px;
8748
8792
  transition: all 0.3s ease;
@@ -8788,6 +8832,45 @@ div.gatadagsins-board-area.celebrate div.netskrafl-tile.netskrafl-racktile{
8788
8832
  color: var(--malfridur-green);
8789
8833
  }
8790
8834
 
8835
+ .netskrafl-container .entry-star {
8836
+ display: inline-block;
8837
+ margin-right: 8px;
8838
+ color: var(--malfridur-secondary);
8839
+ line-height: 1;
8840
+ }
8841
+
8842
+ .netskrafl-container .entry-star .glyphicon {
8843
+ font-size: 13px;
8844
+ }
8845
+
8846
+ /* ================= HELP DIALOG BONUS SQUARES =============== */
8847
+
8848
+ .netskrafl-container .help-bonus-square {
8849
+ display: inline-block;
8850
+ width: 12px;
8851
+ height: 12px;
8852
+ border-radius: 2px;
8853
+ margin-left: 4px;
8854
+ margin-right: 4px;
8855
+ vertical-align: middle;
8856
+ }
8857
+
8858
+ .netskrafl-container .help-bonus-square.double-letter {
8859
+ background-color: var(--double-letter-color);
8860
+ }
8861
+
8862
+ .netskrafl-container .help-bonus-square.triple-letter {
8863
+ background-color: var(--triple-letter-color);
8864
+ }
8865
+
8866
+ .netskrafl-container .help-bonus-square.double-word {
8867
+ background-color: var(--double-word-color);
8868
+ }
8869
+
8870
+ .netskrafl-container .help-bonus-square.triple-word {
8871
+ background-color: var(--triple-word-color);
8872
+ }
8873
+
8791
8874
  /* ================= MOBILE STATS BUTTON =============== */
8792
8875
 
8793
8876
  .netskrafl-container .mobile-stats-button {
@@ -8825,7 +8908,7 @@ div.gatadagsins-board-area.celebrate div.netskrafl-tile.netskrafl-racktile{
8825
8908
  .netskrafl-container .modal-dialog.stats-modal {
8826
8909
  visibility: visible;
8827
8910
  position: fixed;
8828
- top: 50%;
8911
+ top: 52%;
8829
8912
  left: 50%;
8830
8913
  transform: translate(-50%, -50%);
8831
8914
  z-index: 10000;
@@ -8884,7 +8967,7 @@ div.gatadagsins-board-area.celebrate div.netskrafl-tile.netskrafl-racktile{
8884
8967
  .netskrafl-container .modal-dialog.stats-modal .modal-body {
8885
8968
  padding-top: 15px;
8886
8969
  padding-bottom: 15px;
8887
- overflow-y: auto;
8970
+ overflow-y: hidden;
8888
8971
  flex: 1;
8889
8972
  overscroll-behavior-y: contain;
8890
8973
  }
@@ -8892,6 +8975,11 @@ div.gatadagsins-board-area.celebrate div.netskrafl-tile.netskrafl-racktile{
8892
8975
  /* Desktop styles for Gáta Dagsins */
8893
8976
 
8894
8977
  @media all and (min-width: 1024px) {
8978
+
8979
+ .modal-backdrop-netskrafl {
8980
+ z-index: 9999;
8981
+ }
8982
+
8895
8983
  /* Show all thermometer moves on desktop */
8896
8984
  .netskrafl-container .thermometer-move-overlay:nth-child(n+2) {
8897
8985
  display: flex;
@@ -9018,6 +9106,11 @@ div.gatadagsins-board-area.celebrate div.netskrafl-tile.netskrafl-racktile{
9018
9106
  width: 100%;
9019
9107
  }
9020
9108
 
9109
+ .netskrafl-container .leaderboard-list {
9110
+ height: 514px; /* Space for 10 entries */
9111
+ overscroll-behavior-y: contain;
9112
+ }
9113
+
9021
9114
  /* Show thermometer on desktop */
9022
9115
  .netskrafl-container div.gatadagsins-thermometer-column {
9023
9116
  display: flex;
@@ -9034,7 +9127,7 @@ div.gatadagsins-board-area.celebrate div.netskrafl-tile.netskrafl-racktile{
9034
9127
  margin-top: 0;
9035
9128
  padding-top: 8px;
9036
9129
  padding-bottom: 24px;
9037
- overflow-x: hidden;
9130
+ overflow: hidden;
9038
9131
  }
9039
9132
 
9040
9133
  .netskrafl-container div.gatadagsins-rack-area {
@@ -9042,6 +9135,7 @@ div.gatadagsins-board-area.celebrate div.netskrafl-tile.netskrafl-racktile{
9042
9135
  /* Push left to compensate for row ids
9043
9136
  on the left side of the board */
9044
9137
  padding-left: 36px;
9138
+ margin-bottom: 0;
9045
9139
  }
9046
9140
 
9047
9141
  /* Show desktop score on desktop */
@@ -9086,4 +9180,8 @@ div.gatadagsins-board-area.celebrate div.netskrafl-tile.netskrafl-racktile{
9086
9180
  margin-right: 5px;
9087
9181
  }
9088
9182
 
9183
+ .netskrafl-container div.gatadagsins-container div.info {
9184
+ bottom: 42px;
9185
+ }
9186
+
9089
9187
  }