@mideind/netskrafl-react 1.0.2 → 1.1.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 +622 -49
- package/dist/cjs/index.js +892 -109
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/css/netskrafl.css +622 -49
- package/dist/esm/index.js +892 -109
- package/dist/esm/index.js.map +1 -1
- package/dist/types.d.ts +1 -0
- package/package.json +1 -1
|
@@ -203,6 +203,22 @@
|
|
|
203
203
|
content: "\E332";
|
|
204
204
|
}
|
|
205
205
|
|
|
206
|
+
.glyphicon-stats:before {
|
|
207
|
+
content: "\E041";
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
.glyphicon-tower:before {
|
|
211
|
+
content: "\E421";
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
.glyphicon-certificate:before {
|
|
215
|
+
content: "\E333";
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
.glyphicon-calendar:before {
|
|
219
|
+
content: "\E046";
|
|
220
|
+
}
|
|
221
|
+
|
|
206
222
|
.glyphicon-show-lines:before {
|
|
207
223
|
content: "\E159";
|
|
208
224
|
}
|
|
@@ -7880,23 +7896,78 @@ div.gatadagsins-container div.buttons {
|
|
|
7880
7896
|
left: auto;
|
|
7881
7897
|
}
|
|
7882
7898
|
|
|
7899
|
+
/* Desktop score display - hidden on mobile */
|
|
7900
|
+
|
|
7883
7901
|
div.gata-dagsins-score {
|
|
7902
|
+
display: none;
|
|
7903
|
+
}
|
|
7904
|
+
|
|
7905
|
+
/* Mobile score display */
|
|
7906
|
+
|
|
7907
|
+
div.mobile-score {
|
|
7884
7908
|
display: flex;
|
|
7885
|
-
flex-direction:
|
|
7909
|
+
flex-direction: column;
|
|
7886
7910
|
align-items: center;
|
|
7887
7911
|
justify-content: center;
|
|
7888
|
-
width: 64px;
|
|
7889
|
-
height: 26px;
|
|
7890
7912
|
color: white;
|
|
7891
7913
|
background-color: var(--tile-background);
|
|
7892
|
-
|
|
7893
|
-
|
|
7914
|
+
width: 60px;
|
|
7915
|
+
height: 60px;
|
|
7916
|
+
border-radius: 50%;
|
|
7894
7917
|
border-color: transparent;
|
|
7895
7918
|
border-style: solid;
|
|
7896
|
-
border-width:
|
|
7919
|
+
border-width: 2px;
|
|
7897
7920
|
transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
|
|
7898
7921
|
}
|
|
7899
7922
|
|
|
7923
|
+
/* Mobile score states */
|
|
7924
|
+
|
|
7925
|
+
div.mobile-score.disabled {
|
|
7926
|
+
background-color: white;
|
|
7927
|
+
color: var(--middle-shadow);
|
|
7928
|
+
border-color: var(--middle-shadow);
|
|
7929
|
+
border-style: solid;
|
|
7930
|
+
border-width: 2px;
|
|
7931
|
+
}
|
|
7932
|
+
|
|
7933
|
+
div.mobile-score.illegal {
|
|
7934
|
+
background-color: white;
|
|
7935
|
+
color: black;
|
|
7936
|
+
border-color: var(--logo-primary-light);
|
|
7937
|
+
border-style: solid;
|
|
7938
|
+
border-width: 2px;
|
|
7939
|
+
}
|
|
7940
|
+
|
|
7941
|
+
div.mobile-score.word-bad {
|
|
7942
|
+
background-color: white;
|
|
7943
|
+
color: var(--logo-primary-light);
|
|
7944
|
+
border-color: var(--logo-primary-light);
|
|
7945
|
+
border-style: solid;
|
|
7946
|
+
border-width: 2px;
|
|
7947
|
+
}
|
|
7948
|
+
|
|
7949
|
+
div.mobile-score.cold {
|
|
7950
|
+
background-color: var(--cold);
|
|
7951
|
+
}
|
|
7952
|
+
|
|
7953
|
+
div.mobile-score.warm {
|
|
7954
|
+
background-color: var(--malfridur-secondary);
|
|
7955
|
+
}
|
|
7956
|
+
|
|
7957
|
+
div.mobile-score.hot {
|
|
7958
|
+
background-color: var(--logo-accent);
|
|
7959
|
+
}
|
|
7960
|
+
|
|
7961
|
+
span.mobile-score-legend {
|
|
7962
|
+
display: inline-block;
|
|
7963
|
+
font-family: var(--number-font);
|
|
7964
|
+
font-weight: 700;
|
|
7965
|
+
font-size: 22px;
|
|
7966
|
+
line-height: 22px;
|
|
7967
|
+
}
|
|
7968
|
+
|
|
7969
|
+
/* Desktop score states */
|
|
7970
|
+
|
|
7900
7971
|
div.gata-dagsins-score.disabled {
|
|
7901
7972
|
background-color: white;
|
|
7902
7973
|
color: var(--middle-shadow);
|
|
@@ -7929,21 +8000,27 @@ span.gata-dagsins-legend {
|
|
|
7929
8000
|
line-height: 22px;
|
|
7930
8001
|
}
|
|
7931
8002
|
|
|
7932
|
-
/*
|
|
8003
|
+
/* Right side wrapper - positioned above board on mobile */
|
|
7933
8004
|
|
|
7934
8005
|
div.gatadagsins-right-side-wrapper {
|
|
7935
8006
|
flex: 0 0 80px;
|
|
7936
8007
|
display: flex;
|
|
7937
8008
|
flex-direction: row;
|
|
7938
8009
|
order: -1;
|
|
8010
|
+
margin-top: 10px; /* Accommodate sun corona at the top, to avoid clipping */
|
|
7939
8011
|
}
|
|
7940
8012
|
|
|
7941
|
-
|
|
8013
|
+
/* Mobile status bar - visible on mobile only */
|
|
8014
|
+
|
|
8015
|
+
div.gatadagsins-mobile-status {
|
|
7942
8016
|
flex: 1;
|
|
7943
8017
|
display: flex;
|
|
7944
|
-
|
|
7945
|
-
|
|
7946
|
-
|
|
8018
|
+
}
|
|
8019
|
+
|
|
8020
|
+
/* Thermometer column - hidden on mobile */
|
|
8021
|
+
|
|
8022
|
+
div.gatadagsins-thermometer-column {
|
|
8023
|
+
display: none;
|
|
7947
8024
|
}
|
|
7948
8025
|
|
|
7949
8026
|
/* Thermometer component styles */
|
|
@@ -8036,6 +8113,18 @@ div.gatadagsins-thermometer-column {
|
|
|
8036
8113
|
box-shadow: 0 0 25px rgba(var(--malfridur-secondary), 0.7);
|
|
8037
8114
|
}
|
|
8038
8115
|
|
|
8116
|
+
/* Achieved state styling (when someone else achieved top score) */
|
|
8117
|
+
|
|
8118
|
+
.thermometer-best-score.achieved:not(.celebrate) .thermometer-best-circle {
|
|
8119
|
+
background-color: #ffd700; /* Gold color to indicate achievement */
|
|
8120
|
+
border-color: #e6c200;
|
|
8121
|
+
}
|
|
8122
|
+
|
|
8123
|
+
.thermometer-best-score.achieved:not(.celebrate) .thermometer-best-label {
|
|
8124
|
+
color: #c99700; /* Darker gold for text */
|
|
8125
|
+
font-weight: bold;
|
|
8126
|
+
}
|
|
8127
|
+
|
|
8039
8128
|
/* Sun corona component styling */
|
|
8040
8129
|
|
|
8041
8130
|
.sun-corona {
|
|
@@ -8107,57 +8196,36 @@ div.gatadagsins-thermometer-column {
|
|
|
8107
8196
|
.thermometer-zone.hot,
|
|
8108
8197
|
div.gata-dagsins-score.hot {
|
|
8109
8198
|
background-color: var(--logo-accent);
|
|
8199
|
+
color: white;
|
|
8110
8200
|
}
|
|
8111
8201
|
|
|
8112
8202
|
.thermometer-zone.warm,
|
|
8113
8203
|
div.gata-dagsins-score.warm {
|
|
8114
8204
|
background-color: var(--malfridur-secondary);
|
|
8205
|
+
color: white;
|
|
8115
8206
|
}
|
|
8116
8207
|
|
|
8117
8208
|
.thermometer-zone.cold,
|
|
8118
8209
|
div.gata-dagsins-score.cold {
|
|
8119
8210
|
background-color: var(--cold);
|
|
8211
|
+
color: white;
|
|
8120
8212
|
}
|
|
8121
8213
|
|
|
8122
|
-
/*
|
|
8214
|
+
/* Simple pulse animation for the score circle */
|
|
8123
8215
|
|
|
8124
8216
|
@keyframes celebrateScore {
|
|
8125
8217
|
0%, 100% {
|
|
8126
|
-
transform:
|
|
8218
|
+
transform: scale(1);
|
|
8127
8219
|
box-shadow: 0 0 15px rgba(249, 115, 6, 0.4);
|
|
8128
8220
|
}
|
|
8129
|
-
12.5% {
|
|
8130
|
-
transform: rotate(0deg) scale(1.15); /* -10 */
|
|
8131
|
-
box-shadow: 0 0 25px rgba(249, 115, 6, 0.6);
|
|
8132
|
-
}
|
|
8133
|
-
25% {
|
|
8134
|
-
transform: rotate(0deg) scale(1.1); /* 10 */
|
|
8135
|
-
box-shadow: 0 0 20px rgba(249, 115, 6, 0.5);
|
|
8136
|
-
}
|
|
8137
|
-
37.5% {
|
|
8138
|
-
transform: rotate(0deg) scale(1.18); /* -6 */
|
|
8139
|
-
box-shadow: 0 0 30px rgba(249, 115, 6, 0.7);
|
|
8140
|
-
}
|
|
8141
8221
|
50% {
|
|
8142
|
-
transform:
|
|
8143
|
-
box-shadow: 0 0
|
|
8144
|
-
}
|
|
8145
|
-
62.5% {
|
|
8146
|
-
transform: rotate(0deg) scale(1.08); /* -4 */
|
|
8147
|
-
box-shadow: 0 0 18px rgba(249, 115, 6, 0.4);
|
|
8148
|
-
}
|
|
8149
|
-
75% {
|
|
8150
|
-
transform: rotate(0deg) scale(1.05); /* 2 */
|
|
8151
|
-
box-shadow: 0 0 16px rgba(249, 115, 6, 0.35);
|
|
8152
|
-
}
|
|
8153
|
-
87.5% {
|
|
8154
|
-
transform: rotate(0deg) scale(1.02); /* -2 */
|
|
8155
|
-
box-shadow: 0 0 15px rgba(249, 115, 6, 0.3);
|
|
8222
|
+
transform: scale(1.1);
|
|
8223
|
+
box-shadow: 0 0 25px rgba(249, 115, 6, 0.6);
|
|
8156
8224
|
}
|
|
8157
8225
|
}
|
|
8158
8226
|
|
|
8159
8227
|
div.gata-dagsins-score.hot.celebrate {
|
|
8160
|
-
animation: celebrateScore
|
|
8228
|
+
animation: celebrateScore 1.5s ease-in-out infinite;
|
|
8161
8229
|
transform-origin: center center;
|
|
8162
8230
|
}
|
|
8163
8231
|
|
|
@@ -8286,6 +8354,438 @@ div.gata-dagsins-score.hot.celebrate {
|
|
|
8286
8354
|
display: none;
|
|
8287
8355
|
}
|
|
8288
8356
|
|
|
8357
|
+
/* Mobile status component styles */
|
|
8358
|
+
|
|
8359
|
+
.mobile-status-container {
|
|
8360
|
+
display: flex;
|
|
8361
|
+
flex-direction: row;
|
|
8362
|
+
align-items: center;
|
|
8363
|
+
justify-content: space-around;
|
|
8364
|
+
width: 100%;
|
|
8365
|
+
height: 100%;
|
|
8366
|
+
padding: 0 10px;
|
|
8367
|
+
gap: 10px;
|
|
8368
|
+
}
|
|
8369
|
+
|
|
8370
|
+
.mobile-status-item {
|
|
8371
|
+
display: flex;
|
|
8372
|
+
flex-direction: column;
|
|
8373
|
+
align-items: center;
|
|
8374
|
+
justify-content: center;
|
|
8375
|
+
flex: 1;
|
|
8376
|
+
position: relative;
|
|
8377
|
+
}
|
|
8378
|
+
|
|
8379
|
+
.mobile-status-item.best-possible {
|
|
8380
|
+
cursor: pointer;
|
|
8381
|
+
position: relative;
|
|
8382
|
+
}
|
|
8383
|
+
|
|
8384
|
+
.mobile-status-label {
|
|
8385
|
+
font-size: 11px;
|
|
8386
|
+
font-family: var(--primary-font);
|
|
8387
|
+
color: #666;
|
|
8388
|
+
margin-bottom: 4px;
|
|
8389
|
+
text-align: center;
|
|
8390
|
+
white-space: nowrap;
|
|
8391
|
+
}
|
|
8392
|
+
|
|
8393
|
+
.mobile-status-score {
|
|
8394
|
+
font-size: 24px;
|
|
8395
|
+
font-weight: bold;
|
|
8396
|
+
font-family: var(--number-font);
|
|
8397
|
+
color: var(--tile-background);
|
|
8398
|
+
}
|
|
8399
|
+
|
|
8400
|
+
.mobile-status-item.player-best .mobile-status-score {
|
|
8401
|
+
color: var(--cold);
|
|
8402
|
+
}
|
|
8403
|
+
|
|
8404
|
+
.mobile-status-item.leader .mobile-status-score {
|
|
8405
|
+
color: var(--malfridur-secondary);
|
|
8406
|
+
}
|
|
8407
|
+
|
|
8408
|
+
.mobile-status-item.leader.is-player .mobile-status-score {
|
|
8409
|
+
color: var(--malfridur-green);
|
|
8410
|
+
}
|
|
8411
|
+
|
|
8412
|
+
/* Best possible score - circular display like desktop */
|
|
8413
|
+
|
|
8414
|
+
.mobile-best-score-wrapper {
|
|
8415
|
+
position: relative;
|
|
8416
|
+
width: 60px;
|
|
8417
|
+
height: 60px;
|
|
8418
|
+
flex-shrink: 0;
|
|
8419
|
+
}
|
|
8420
|
+
|
|
8421
|
+
.mobile-best-score-wrapper .mobile-status-score {
|
|
8422
|
+
position: absolute;
|
|
8423
|
+
top: 0;
|
|
8424
|
+
left: 0;
|
|
8425
|
+
background-color: var(--malfridur-green);
|
|
8426
|
+
color: white;
|
|
8427
|
+
border-radius: 50%;
|
|
8428
|
+
width: 60px;
|
|
8429
|
+
height: 60px;
|
|
8430
|
+
display: flex;
|
|
8431
|
+
align-items: center;
|
|
8432
|
+
justify-content: center;
|
|
8433
|
+
font-size: 22px;
|
|
8434
|
+
font-weight: bold;
|
|
8435
|
+
font-family: var(--number-font);
|
|
8436
|
+
transition: background-color 1.0s ease;
|
|
8437
|
+
z-index: 1;
|
|
8438
|
+
}
|
|
8439
|
+
|
|
8440
|
+
/* Mobile sun corona positioning */
|
|
8441
|
+
|
|
8442
|
+
.mobile-best-score-wrapper .sun-corona {
|
|
8443
|
+
position: absolute;
|
|
8444
|
+
top: 50%;
|
|
8445
|
+
left: 50%;
|
|
8446
|
+
transform: translate(-50%, -50%);
|
|
8447
|
+
pointer-events: none;
|
|
8448
|
+
z-index: 2;
|
|
8449
|
+
}
|
|
8450
|
+
|
|
8451
|
+
.mobile-best-score-wrapper .sun-corona.rotating {
|
|
8452
|
+
animation: rotateSunCoronaMobile 6s linear infinite;
|
|
8453
|
+
}
|
|
8454
|
+
|
|
8455
|
+
/* Mobile corona rotation - constant size, just rotation */
|
|
8456
|
+
|
|
8457
|
+
@keyframes rotateSunCoronaMobile {
|
|
8458
|
+
0% {
|
|
8459
|
+
transform: translate(-50%, -50%) rotate(0deg);
|
|
8460
|
+
}
|
|
8461
|
+
100% {
|
|
8462
|
+
transform: translate(-50%, -50%) rotate(360deg);
|
|
8463
|
+
}
|
|
8464
|
+
}
|
|
8465
|
+
|
|
8466
|
+
.mobile-best-score-wrapper .mobile-status-score.celebrate,
|
|
8467
|
+
.mobile-status-item.best-possible.celebrate .mobile-best-score-wrapper .mobile-status-score {
|
|
8468
|
+
background-color: var(--malfridur-secondary);
|
|
8469
|
+
animation: celebrationPulse 2s ease-in-out 3;
|
|
8470
|
+
box-shadow: 0 0 25px rgba(var(--malfridur-secondary), 0.7);
|
|
8471
|
+
}
|
|
8472
|
+
|
|
8473
|
+
.mobile-status-item.best-possible.achieved:not(.celebrate) .mobile-best-score-wrapper .mobile-status-score {
|
|
8474
|
+
background-color: #ffd700;
|
|
8475
|
+
}
|
|
8476
|
+
|
|
8477
|
+
/* ================= TAB STRUCTURE =============== */
|
|
8478
|
+
|
|
8479
|
+
.gatadagsins-right-side-tabs {
|
|
8480
|
+
display: flex;
|
|
8481
|
+
flex-direction: column;
|
|
8482
|
+
flex: 1;
|
|
8483
|
+
height: 100%;
|
|
8484
|
+
}
|
|
8485
|
+
|
|
8486
|
+
.tab-content {
|
|
8487
|
+
flex: 1;
|
|
8488
|
+
display: flex;
|
|
8489
|
+
flex-direction: column;
|
|
8490
|
+
overflow: hidden;
|
|
8491
|
+
align-items: center;
|
|
8492
|
+
}
|
|
8493
|
+
|
|
8494
|
+
/* ================= TAB BAR STYLES =============== */
|
|
8495
|
+
|
|
8496
|
+
.tab-bar {
|
|
8497
|
+
display: flex;
|
|
8498
|
+
border-bottom: 2px solid var(--middle-shadow);
|
|
8499
|
+
margin-bottom: 10px;
|
|
8500
|
+
gap: 5px;
|
|
8501
|
+
flex-shrink: 0;
|
|
8502
|
+
}
|
|
8503
|
+
|
|
8504
|
+
.tab-item {
|
|
8505
|
+
flex: 1;
|
|
8506
|
+
padding: 10px 5px;
|
|
8507
|
+
text-align: center;
|
|
8508
|
+
cursor: pointer;
|
|
8509
|
+
border-bottom: 3px solid transparent;
|
|
8510
|
+
border-top-left-radius: 10px;
|
|
8511
|
+
border-top-right-radius: 10px;
|
|
8512
|
+
transition: all 0.3s ease;
|
|
8513
|
+
font-family: var(--primary-font);
|
|
8514
|
+
font-size: 12px;
|
|
8515
|
+
color: var(--malfridur-accent);
|
|
8516
|
+
display: flex;
|
|
8517
|
+
flex-direction: column;
|
|
8518
|
+
align-items: center;
|
|
8519
|
+
gap: 4px;
|
|
8520
|
+
}
|
|
8521
|
+
|
|
8522
|
+
.tab-item.active {
|
|
8523
|
+
color: var(--logo-accent);
|
|
8524
|
+
border-bottom-color: var(--logo-accent);
|
|
8525
|
+
font-weight: 700;
|
|
8526
|
+
}
|
|
8527
|
+
|
|
8528
|
+
.tab-item:hover {
|
|
8529
|
+
background-color: #f0f0f0;
|
|
8530
|
+
}
|
|
8531
|
+
|
|
8532
|
+
.tab-icon {
|
|
8533
|
+
font-size: 16px;
|
|
8534
|
+
line-height: 1;
|
|
8535
|
+
display: flex;
|
|
8536
|
+
align-items: center;
|
|
8537
|
+
justify-content: center;
|
|
8538
|
+
}
|
|
8539
|
+
|
|
8540
|
+
.tab-icon .glyphicon {
|
|
8541
|
+
font-size: 16px;
|
|
8542
|
+
}
|
|
8543
|
+
|
|
8544
|
+
.tab-label {
|
|
8545
|
+
font-size: 11px;
|
|
8546
|
+
white-space: nowrap;
|
|
8547
|
+
}
|
|
8548
|
+
|
|
8549
|
+
/* ================= STATS VIEW STYLES =============== */
|
|
8550
|
+
|
|
8551
|
+
.stats-view {
|
|
8552
|
+
padding: 15px 10px;
|
|
8553
|
+
height: 100%;
|
|
8554
|
+
overflow-y: auto;
|
|
8555
|
+
}
|
|
8556
|
+
|
|
8557
|
+
.stats-view.loading,
|
|
8558
|
+
.stats-view.empty {
|
|
8559
|
+
display: flex;
|
|
8560
|
+
align-items: center;
|
|
8561
|
+
justify-content: center;
|
|
8562
|
+
height: 200px;
|
|
8563
|
+
color: #999;
|
|
8564
|
+
font-style: italic;
|
|
8565
|
+
}
|
|
8566
|
+
|
|
8567
|
+
.stats-grid {
|
|
8568
|
+
display: flex;
|
|
8569
|
+
flex-direction: column;
|
|
8570
|
+
gap: 15px;
|
|
8571
|
+
}
|
|
8572
|
+
|
|
8573
|
+
.stat-item {
|
|
8574
|
+
display: flex;
|
|
8575
|
+
align-items: center;
|
|
8576
|
+
gap: 12px;
|
|
8577
|
+
padding: 12px;
|
|
8578
|
+
background-color: #f8f8f8;
|
|
8579
|
+
border-radius: 8px;
|
|
8580
|
+
transition: all 0.3s ease;
|
|
8581
|
+
}
|
|
8582
|
+
|
|
8583
|
+
.stat-item.highlight {
|
|
8584
|
+
background-color: color-mix(in srgb, var(--double-word-color) 40%, transparent);
|
|
8585
|
+
/* border-left: 4px solid var(--logo-accent); */
|
|
8586
|
+
}
|
|
8587
|
+
|
|
8588
|
+
.stat-icon {
|
|
8589
|
+
font-size: 28px;
|
|
8590
|
+
flex-shrink: 0;
|
|
8591
|
+
display: flex;
|
|
8592
|
+
align-items: center;
|
|
8593
|
+
justify-content: center;
|
|
8594
|
+
width: 40px;
|
|
8595
|
+
color: var(--logo-accent);
|
|
8596
|
+
}
|
|
8597
|
+
|
|
8598
|
+
.stat-icon .glyphicon {
|
|
8599
|
+
font-size: 28px;
|
|
8600
|
+
}
|
|
8601
|
+
|
|
8602
|
+
.stat-info {
|
|
8603
|
+
flex: 1;
|
|
8604
|
+
display: flex;
|
|
8605
|
+
flex-direction: row;
|
|
8606
|
+
align-items: center;
|
|
8607
|
+
justify-content: space-between;
|
|
8608
|
+
gap: 12px;
|
|
8609
|
+
min-width: 0;
|
|
8610
|
+
}
|
|
8611
|
+
|
|
8612
|
+
.stat-label {
|
|
8613
|
+
flex: 0 1 auto;
|
|
8614
|
+
font-size: 12px;
|
|
8615
|
+
color: #666;
|
|
8616
|
+
font-family: var(--primary-font);
|
|
8617
|
+
text-align: left;
|
|
8618
|
+
white-space: nowrap;
|
|
8619
|
+
overflow: hidden;
|
|
8620
|
+
text-overflow: ellipsis;
|
|
8621
|
+
}
|
|
8622
|
+
|
|
8623
|
+
.stat-value {
|
|
8624
|
+
flex-shrink: 0;
|
|
8625
|
+
font-size: 24px;
|
|
8626
|
+
font-weight: bold;
|
|
8627
|
+
color: var(--logo-accent);
|
|
8628
|
+
font-family: var(--number-font);
|
|
8629
|
+
text-align: right;
|
|
8630
|
+
}
|
|
8631
|
+
|
|
8632
|
+
/* ================= LEADERBOARD VIEW STYLES =============== */
|
|
8633
|
+
|
|
8634
|
+
.leaderboard-view {
|
|
8635
|
+
padding: 15px 10px;
|
|
8636
|
+
height: 100%;
|
|
8637
|
+
overflow-y: auto;
|
|
8638
|
+
}
|
|
8639
|
+
|
|
8640
|
+
.leaderboard-view.loading,
|
|
8641
|
+
.leaderboard-view.empty {
|
|
8642
|
+
display: flex;
|
|
8643
|
+
align-items: center;
|
|
8644
|
+
justify-content: center;
|
|
8645
|
+
height: 200px;
|
|
8646
|
+
color: #999;
|
|
8647
|
+
font-style: italic;
|
|
8648
|
+
}
|
|
8649
|
+
|
|
8650
|
+
.leaderboard-header {
|
|
8651
|
+
margin-bottom: 15px;
|
|
8652
|
+
padding-bottom: 10px;
|
|
8653
|
+
display: flex;
|
|
8654
|
+
flex-direction: column;
|
|
8655
|
+
align-items: center;
|
|
8656
|
+
}
|
|
8657
|
+
|
|
8658
|
+
.leaderboard-title {
|
|
8659
|
+
font-size: 16px;
|
|
8660
|
+
font-weight: bold;
|
|
8661
|
+
color: #333;
|
|
8662
|
+
font-family: var(--primary-font);
|
|
8663
|
+
}
|
|
8664
|
+
|
|
8665
|
+
.leaderboard-date {
|
|
8666
|
+
font-size: 12px;
|
|
8667
|
+
color: #666;
|
|
8668
|
+
margin-top: 4px;
|
|
8669
|
+
font-weight: 500;
|
|
8670
|
+
}
|
|
8671
|
+
|
|
8672
|
+
.leaderboard-list {
|
|
8673
|
+
display: flex;
|
|
8674
|
+
flex-direction: column;
|
|
8675
|
+
gap: 8px;
|
|
8676
|
+
}
|
|
8677
|
+
|
|
8678
|
+
.leaderboard-entry {
|
|
8679
|
+
display: flex;
|
|
8680
|
+
align-items: center;
|
|
8681
|
+
gap: 12px;
|
|
8682
|
+
padding: 10px;
|
|
8683
|
+
background-color: #f8f8f8;
|
|
8684
|
+
border-radius: 6px;
|
|
8685
|
+
transition: all 0.3s ease;
|
|
8686
|
+
}
|
|
8687
|
+
|
|
8688
|
+
.leaderboard-entry.current-user {
|
|
8689
|
+
background-color: color-mix(in srgb, var(--double-word-color) 40%, transparent);
|
|
8690
|
+
font-weight: 700;
|
|
8691
|
+
}
|
|
8692
|
+
|
|
8693
|
+
.entry-rank {
|
|
8694
|
+
width: 32px;
|
|
8695
|
+
text-align: center;
|
|
8696
|
+
flex-shrink: 0;
|
|
8697
|
+
}
|
|
8698
|
+
|
|
8699
|
+
.medal {
|
|
8700
|
+
font-size: 20px;
|
|
8701
|
+
}
|
|
8702
|
+
|
|
8703
|
+
.rank-number {
|
|
8704
|
+
font-size: 14px;
|
|
8705
|
+
font-weight: 700;
|
|
8706
|
+
color: #999;
|
|
8707
|
+
font-family: var(--number-font);
|
|
8708
|
+
}
|
|
8709
|
+
|
|
8710
|
+
.entry-name {
|
|
8711
|
+
flex: 1;
|
|
8712
|
+
font-size: 14px;
|
|
8713
|
+
font-family: var(--primary-font);
|
|
8714
|
+
color: #333;
|
|
8715
|
+
overflow: hidden;
|
|
8716
|
+
text-overflow: ellipsis;
|
|
8717
|
+
white-space: nowrap;
|
|
8718
|
+
min-width: 0;
|
|
8719
|
+
}
|
|
8720
|
+
|
|
8721
|
+
.entry-score {
|
|
8722
|
+
font-size: 18px;
|
|
8723
|
+
font-weight: bold;
|
|
8724
|
+
font-family: var(--number-font);
|
|
8725
|
+
color: var(--malfridur-green);
|
|
8726
|
+
}
|
|
8727
|
+
|
|
8728
|
+
/* ================= MOBILE STATS BUTTON =============== */
|
|
8729
|
+
|
|
8730
|
+
.mobile-stats-button {
|
|
8731
|
+
display: flex;
|
|
8732
|
+
align-items: center;
|
|
8733
|
+
justify-content: center;
|
|
8734
|
+
width: 36px;
|
|
8735
|
+
height: 36px;
|
|
8736
|
+
background-color: var(--malfridur-green);
|
|
8737
|
+
border-radius: 50%;
|
|
8738
|
+
cursor: pointer;
|
|
8739
|
+
transition: all 0.3s ease;
|
|
8740
|
+
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
|
|
8741
|
+
}
|
|
8742
|
+
|
|
8743
|
+
.mobile-stats-button:hover {
|
|
8744
|
+
background-color: var(--malfridur-secondary);
|
|
8745
|
+
transform: scale(1.1);
|
|
8746
|
+
}
|
|
8747
|
+
|
|
8748
|
+
.mobile-stats-button .stats-icon {
|
|
8749
|
+
font-size: 20px;
|
|
8750
|
+
display: flex;
|
|
8751
|
+
align-items: center;
|
|
8752
|
+
justify-content: center;
|
|
8753
|
+
color: white;
|
|
8754
|
+
}
|
|
8755
|
+
|
|
8756
|
+
.mobile-stats-button .stats-icon .glyphicon {
|
|
8757
|
+
font-size: 18px;
|
|
8758
|
+
}
|
|
8759
|
+
|
|
8760
|
+
/* ================= STATS MODAL (MOBILE) =============== */
|
|
8761
|
+
|
|
8762
|
+
.modal-dialog.stats-modal {
|
|
8763
|
+
visibility: visible;
|
|
8764
|
+
position: fixed;
|
|
8765
|
+
top: 50%;
|
|
8766
|
+
left: 50%;
|
|
8767
|
+
transform: translate(-50%, -50%);
|
|
8768
|
+
z-index: 10000;
|
|
8769
|
+
background: white;
|
|
8770
|
+
border-radius: 8px;
|
|
8771
|
+
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
|
|
8772
|
+
width: 95%;
|
|
8773
|
+
max-width: 500px;
|
|
8774
|
+
max-height: 80vh;
|
|
8775
|
+
display: flex;
|
|
8776
|
+
flex-direction: column;
|
|
8777
|
+
}
|
|
8778
|
+
|
|
8779
|
+
.modal-dialog.stats-modal .tab-bar {
|
|
8780
|
+
margin: 0 15px;
|
|
8781
|
+
margin-top: 10px;
|
|
8782
|
+
}
|
|
8783
|
+
|
|
8784
|
+
.modal-dialog.stats-modal .modal-body {
|
|
8785
|
+
overflow-y: auto;
|
|
8786
|
+
overscroll-behavior-y: contain;
|
|
8787
|
+
}
|
|
8788
|
+
|
|
8289
8789
|
/* Desktop styles for Gáta Dagsins */
|
|
8290
8790
|
|
|
8291
8791
|
@media all and (min-width: 1024px) {
|
|
@@ -8299,6 +8799,8 @@ div.gata-dagsins-score.hot.celebrate {
|
|
|
8299
8799
|
flex-direction: column;
|
|
8300
8800
|
padding-left: 0;
|
|
8301
8801
|
padding-right: 0;
|
|
8802
|
+
margin-top: 60px;
|
|
8803
|
+
width: 80%;
|
|
8302
8804
|
}
|
|
8303
8805
|
|
|
8304
8806
|
/* Vertical thermometer */
|
|
@@ -8366,12 +8868,64 @@ div.gata-dagsins-score.hot.celebrate {
|
|
|
8366
8868
|
/* gap: 20px; */
|
|
8367
8869
|
}
|
|
8368
8870
|
|
|
8871
|
+
/* Hide mobile status and stats button on desktop */
|
|
8872
|
+
div.gatadagsins-mobile-status {
|
|
8873
|
+
display: none;
|
|
8874
|
+
}
|
|
8875
|
+
|
|
8876
|
+
.mobile-stats-button {
|
|
8877
|
+
display: none;
|
|
8878
|
+
}
|
|
8879
|
+
|
|
8880
|
+
/* Desktop tab styling adjustments */
|
|
8881
|
+
.tab-item {
|
|
8882
|
+
font-size: 13px;
|
|
8883
|
+
}
|
|
8884
|
+
|
|
8885
|
+
.tab-icon .glyphicon {
|
|
8886
|
+
font-size: 24px;
|
|
8887
|
+
}
|
|
8888
|
+
|
|
8889
|
+
.tab-label {
|
|
8890
|
+
margin-top: 2px;
|
|
8891
|
+
font-size: 12px;
|
|
8892
|
+
}
|
|
8893
|
+
|
|
8894
|
+
/* Desktop stats view */
|
|
8895
|
+
.stats-view {
|
|
8896
|
+
padding: 20px 15px;
|
|
8897
|
+
width: 100%;
|
|
8898
|
+
}
|
|
8899
|
+
|
|
8900
|
+
.stats-grid {
|
|
8901
|
+
gap: 18px;
|
|
8902
|
+
}
|
|
8903
|
+
|
|
8904
|
+
/* Desktop leaderboard view */
|
|
8905
|
+
.leaderboard-view {
|
|
8906
|
+
padding: 20px 0px;
|
|
8907
|
+
width: 100%;
|
|
8908
|
+
}
|
|
8909
|
+
|
|
8910
|
+
/* Show thermometer on desktop */
|
|
8911
|
+
div.gatadagsins-thermometer-column {
|
|
8912
|
+
display: flex;
|
|
8913
|
+
flex: 1;
|
|
8914
|
+
flex-direction: column;
|
|
8915
|
+
align-items: stretch;
|
|
8916
|
+
justify-content: flex-start;
|
|
8917
|
+
}
|
|
8918
|
+
|
|
8369
8919
|
div.gatadagsins-right-side-wrapper {
|
|
8370
8920
|
flex: 0 0 280px;
|
|
8371
8921
|
flex-direction: column;
|
|
8372
8922
|
order: 0;
|
|
8923
|
+
margin-top: 0;
|
|
8924
|
+
padding-top: 8px;
|
|
8925
|
+
padding-bottom: 24px;
|
|
8926
|
+
overflow-x: hidden;
|
|
8373
8927
|
}
|
|
8374
|
-
|
|
8928
|
+
|
|
8375
8929
|
div.gatadagsins-rack-area {
|
|
8376
8930
|
flex: 0 0 120px;
|
|
8377
8931
|
/* Push left to compensate for row ids
|
|
@@ -8379,19 +8933,38 @@ div.gata-dagsins-score.hot.celebrate {
|
|
|
8379
8933
|
padding-left: 36px;
|
|
8380
8934
|
}
|
|
8381
8935
|
|
|
8382
|
-
|
|
8383
|
-
flex-direction: column;
|
|
8384
|
-
align-items: stretch;
|
|
8385
|
-
justify-content: flex-start;
|
|
8386
|
-
padding-top: 60px;
|
|
8387
|
-
padding-bottom: 100px;
|
|
8388
|
-
}
|
|
8389
|
-
|
|
8936
|
+
/* Show desktop score on desktop */
|
|
8390
8937
|
div.gata-dagsins-score {
|
|
8938
|
+
display: flex;
|
|
8939
|
+
flex-direction: row;
|
|
8940
|
+
align-items: center;
|
|
8941
|
+
justify-content: center;
|
|
8391
8942
|
width: 64px;
|
|
8392
8943
|
height: 64px;
|
|
8393
8944
|
padding-top: 0;
|
|
8394
8945
|
border-radius: 50%;
|
|
8946
|
+
margin: 0 5px;
|
|
8947
|
+
border-color: transparent;
|
|
8948
|
+
border-style: solid;
|
|
8949
|
+
border-width: 3px;
|
|
8950
|
+
transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
|
|
8951
|
+
}
|
|
8952
|
+
|
|
8953
|
+
div.gata-dagsins-score.cold {
|
|
8954
|
+
background-color: var(--cold);
|
|
8955
|
+
}
|
|
8956
|
+
|
|
8957
|
+
div.gata-dagsins-score.warm {
|
|
8958
|
+
background-color: var(--malfridur-secondary);
|
|
8959
|
+
}
|
|
8960
|
+
|
|
8961
|
+
div.gata-dagsins-score.hot {
|
|
8962
|
+
background-color: var(--logo-accent);
|
|
8963
|
+
}
|
|
8964
|
+
|
|
8965
|
+
div.gata-dagsins-score.hot.celebrate {
|
|
8966
|
+
animation: celebrateScore 2.5s ease-in-out infinite;
|
|
8967
|
+
transform-origin: center center;
|
|
8395
8968
|
}
|
|
8396
8969
|
|
|
8397
8970
|
div.gatadagsins-container div.scramblebtn,
|