@mideind/netskrafl-react 2.2.0 → 2.3.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/esm/css/netskrafl.css +233 -14
- package/dist/esm/index.js +91 -91
- package/dist/esm/index.js.map +1 -1
- package/package.json +3 -3
|
@@ -304,6 +304,14 @@
|
|
|
304
304
|
content: "\E212";
|
|
305
305
|
}
|
|
306
306
|
|
|
307
|
+
.netskrafl-container .glyphicon-share:before {
|
|
308
|
+
content: "\E223";
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
.netskrafl-container .glyphicon-copy:before {
|
|
312
|
+
content: "\E512";
|
|
313
|
+
}
|
|
314
|
+
|
|
307
315
|
/*
|
|
308
316
|
|
|
309
317
|
Skrafl-explo.css
|
|
@@ -774,8 +782,9 @@ div.netskrafl-container * {
|
|
|
774
782
|
}
|
|
775
783
|
|
|
776
784
|
.netskrafl-container div.bag {
|
|
785
|
+
display: none;
|
|
777
786
|
position: absolute;
|
|
778
|
-
right:
|
|
787
|
+
right: 9px;
|
|
779
788
|
width: 304px;
|
|
780
789
|
height: 100px;
|
|
781
790
|
/* Content is 97px max */
|
|
@@ -971,10 +980,6 @@ div.netskrafl-container * {
|
|
|
971
980
|
display: none;
|
|
972
981
|
}
|
|
973
982
|
|
|
974
|
-
.netskrafl-container div.bag {
|
|
975
|
-
display: none;
|
|
976
|
-
}
|
|
977
|
-
|
|
978
983
|
.netskrafl-container div.board-area {
|
|
979
984
|
position: absolute;
|
|
980
985
|
margin-left: 8px;
|
|
@@ -1967,13 +1972,14 @@ div.netskrafl-tile.dragging div.letterscore {
|
|
|
1967
1972
|
}
|
|
1968
1973
|
|
|
1969
1974
|
.netskrafl-container div.movelist-container div.bag {
|
|
1970
|
-
display:
|
|
1971
|
-
|
|
1975
|
+
display: flex;
|
|
1976
|
+
flex-direction: row;
|
|
1977
|
+
justify-content: center;
|
|
1978
|
+
align-items: flex-start;
|
|
1972
1979
|
position: relative;
|
|
1973
|
-
|
|
1974
|
-
|
|
1980
|
+
right: auto;
|
|
1981
|
+
background-color: var(--container-bg-color);
|
|
1975
1982
|
padding-top: 4px;
|
|
1976
|
-
padding-left: 27px;
|
|
1977
1983
|
width: 100%;
|
|
1978
1984
|
height: 104px;
|
|
1979
1985
|
}
|
|
@@ -6308,7 +6314,9 @@ div.netskrafl-container input[type="checkbox"] {
|
|
|
6308
6314
|
}
|
|
6309
6315
|
}
|
|
6310
6316
|
|
|
6311
|
-
@media all and (min-width: 667px) and (orientation: landscape) and (
|
|
6317
|
+
@media all and (min-width: 667px) and (orientation: landscape) and (
|
|
6318
|
+
max-height: 360px
|
|
6319
|
+
) {
|
|
6312
6320
|
/* Very short landscape screens - scale board down slightly */
|
|
6313
6321
|
.netskrafl-container div.board {
|
|
6314
6322
|
transform: scale(0.96);
|
|
@@ -6604,7 +6612,7 @@ div.netskrafl-container input[type="checkbox"] {
|
|
|
6604
6612
|
}
|
|
6605
6613
|
.netskrafl-container div.bag {
|
|
6606
6614
|
display: block;
|
|
6607
|
-
bottom:
|
|
6615
|
+
bottom: 32px;
|
|
6608
6616
|
}
|
|
6609
6617
|
.netskrafl-container div.rack-row {
|
|
6610
6618
|
display: block;
|
|
@@ -7073,8 +7081,6 @@ div.netskrafl-container input[type="checkbox"] {
|
|
|
7073
7081
|
}
|
|
7074
7082
|
.netskrafl-container div.movelist-container div.bag {
|
|
7075
7083
|
display: none;
|
|
7076
|
-
padding: 4px 28px 0 27px;
|
|
7077
|
-
width: auto;
|
|
7078
7084
|
}
|
|
7079
7085
|
.netskrafl-container div.game-timed {
|
|
7080
7086
|
display: block;
|
|
@@ -9168,6 +9174,206 @@ div.gatadagsins-board-area.celebrate div.netskrafl-tile.netskrafl-racktile {
|
|
|
9168
9174
|
overscroll-behavior-y: contain;
|
|
9169
9175
|
}
|
|
9170
9176
|
|
|
9177
|
+
/* ================= SHARE POPUP STYLES =============== */
|
|
9178
|
+
|
|
9179
|
+
.netskrafl-container .modal-dialog.share-popup {
|
|
9180
|
+
visibility: visible;
|
|
9181
|
+
position: fixed;
|
|
9182
|
+
top: 50%;
|
|
9183
|
+
left: 50%;
|
|
9184
|
+
transform: translate(-50%, -50%);
|
|
9185
|
+
z-index: 10000;
|
|
9186
|
+
background: white;
|
|
9187
|
+
border-radius: 16px;
|
|
9188
|
+
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
|
|
9189
|
+
width: fit-content;
|
|
9190
|
+
min-width: 280px;
|
|
9191
|
+
max-width: 90%;
|
|
9192
|
+
height: auto;
|
|
9193
|
+
display: flex;
|
|
9194
|
+
flex-direction: column;
|
|
9195
|
+
overflow: hidden;
|
|
9196
|
+
}
|
|
9197
|
+
|
|
9198
|
+
.netskrafl-container .modal-dialog.share-popup .modal-content {
|
|
9199
|
+
position: relative;
|
|
9200
|
+
display: flex;
|
|
9201
|
+
flex-direction: column;
|
|
9202
|
+
padding: 16px;
|
|
9203
|
+
padding-top: 36px;
|
|
9204
|
+
}
|
|
9205
|
+
|
|
9206
|
+
.netskrafl-container .modal-dialog.share-popup .close {
|
|
9207
|
+
position: absolute;
|
|
9208
|
+
top: 10px;
|
|
9209
|
+
right: 10px;
|
|
9210
|
+
background-color: var(--malfridur-accent);
|
|
9211
|
+
border: none;
|
|
9212
|
+
border-radius: 6px;
|
|
9213
|
+
cursor: pointer;
|
|
9214
|
+
padding: 0;
|
|
9215
|
+
width: 36px;
|
|
9216
|
+
height: 36px;
|
|
9217
|
+
display: flex;
|
|
9218
|
+
align-items: center;
|
|
9219
|
+
justify-content: center;
|
|
9220
|
+
color: white;
|
|
9221
|
+
z-index: 10;
|
|
9222
|
+
transition: all 0.2s ease;
|
|
9223
|
+
}
|
|
9224
|
+
|
|
9225
|
+
.netskrafl-container .modal-dialog.share-popup .close .glyphicon {
|
|
9226
|
+
font-size: 18px;
|
|
9227
|
+
top: 0;
|
|
9228
|
+
}
|
|
9229
|
+
|
|
9230
|
+
.netskrafl-container .modal-dialog.share-popup .close:hover {
|
|
9231
|
+
background-color: var(--logo-accent);
|
|
9232
|
+
transform: scale(1.05);
|
|
9233
|
+
}
|
|
9234
|
+
|
|
9235
|
+
/* Celebration section with sun corona */
|
|
9236
|
+
|
|
9237
|
+
.netskrafl-container .share-popup-celebration {
|
|
9238
|
+
position: relative;
|
|
9239
|
+
display: flex;
|
|
9240
|
+
align-items: center;
|
|
9241
|
+
justify-content: center;
|
|
9242
|
+
width: 90px;
|
|
9243
|
+
height: 90px;
|
|
9244
|
+
margin: 0 auto 12px;
|
|
9245
|
+
}
|
|
9246
|
+
|
|
9247
|
+
.netskrafl-container .share-popup-celebration .sun-corona {
|
|
9248
|
+
position: absolute;
|
|
9249
|
+
top: 50%;
|
|
9250
|
+
left: 50%;
|
|
9251
|
+
transform: translate(-50%, -50%);
|
|
9252
|
+
pointer-events: none;
|
|
9253
|
+
z-index: 0;
|
|
9254
|
+
}
|
|
9255
|
+
|
|
9256
|
+
.netskrafl-container .share-popup-score-circle {
|
|
9257
|
+
position: relative;
|
|
9258
|
+
display: flex;
|
|
9259
|
+
align-items: center;
|
|
9260
|
+
justify-content: center;
|
|
9261
|
+
width: 60px;
|
|
9262
|
+
height: 60px;
|
|
9263
|
+
background-color: var(--malfridur-secondary);
|
|
9264
|
+
border-radius: 50%;
|
|
9265
|
+
z-index: 1;
|
|
9266
|
+
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
|
|
9267
|
+
}
|
|
9268
|
+
|
|
9269
|
+
.netskrafl-container .share-popup-score {
|
|
9270
|
+
font-family: var(--number-font);
|
|
9271
|
+
font-size: 26px;
|
|
9272
|
+
font-weight: bold;
|
|
9273
|
+
color: white;
|
|
9274
|
+
}
|
|
9275
|
+
|
|
9276
|
+
/* Title and subtitle */
|
|
9277
|
+
|
|
9278
|
+
.netskrafl-container .share-popup-title {
|
|
9279
|
+
font-family: var(--primary-font);
|
|
9280
|
+
font-size: 20px;
|
|
9281
|
+
font-weight: bold;
|
|
9282
|
+
color: #333;
|
|
9283
|
+
text-align: center;
|
|
9284
|
+
margin-bottom: 4px;
|
|
9285
|
+
}
|
|
9286
|
+
|
|
9287
|
+
.netskrafl-container .share-popup-subtitle {
|
|
9288
|
+
font-family: var(--primary-font);
|
|
9289
|
+
font-size: 13px;
|
|
9290
|
+
color: #666;
|
|
9291
|
+
text-align: center;
|
|
9292
|
+
margin-bottom: 10px;
|
|
9293
|
+
}
|
|
9294
|
+
|
|
9295
|
+
/* Winning word display */
|
|
9296
|
+
|
|
9297
|
+
.netskrafl-container .share-popup-word {
|
|
9298
|
+
font-family: var(--primary-font);
|
|
9299
|
+
font-size: 18px;
|
|
9300
|
+
font-weight: bold;
|
|
9301
|
+
color: var(--logo-accent);
|
|
9302
|
+
text-align: center;
|
|
9303
|
+
margin-bottom: 10px;
|
|
9304
|
+
letter-spacing: 2px;
|
|
9305
|
+
}
|
|
9306
|
+
|
|
9307
|
+
/* Share text preview */
|
|
9308
|
+
|
|
9309
|
+
.netskrafl-container .share-popup-text-preview {
|
|
9310
|
+
background-color: var(--board-background);
|
|
9311
|
+
border-radius: 8px;
|
|
9312
|
+
padding: 10px 14px;
|
|
9313
|
+
font-family: var(--primary-font);
|
|
9314
|
+
font-size: 13px;
|
|
9315
|
+
color: #333;
|
|
9316
|
+
text-align: center;
|
|
9317
|
+
margin-bottom: 14px;
|
|
9318
|
+
line-height: 1.4;
|
|
9319
|
+
word-break: break-word;
|
|
9320
|
+
}
|
|
9321
|
+
|
|
9322
|
+
/* Button container */
|
|
9323
|
+
|
|
9324
|
+
.netskrafl-container .share-popup-buttons {
|
|
9325
|
+
display: flex;
|
|
9326
|
+
flex-direction: column;
|
|
9327
|
+
gap: 10px;
|
|
9328
|
+
}
|
|
9329
|
+
|
|
9330
|
+
/* Button styles */
|
|
9331
|
+
|
|
9332
|
+
.netskrafl-container .share-popup-btn {
|
|
9333
|
+
display: flex;
|
|
9334
|
+
align-items: center;
|
|
9335
|
+
justify-content: center;
|
|
9336
|
+
gap: 8px;
|
|
9337
|
+
padding: 12px 16px;
|
|
9338
|
+
border: none;
|
|
9339
|
+
border-radius: 8px;
|
|
9340
|
+
font-family: var(--primary-font);
|
|
9341
|
+
font-size: 15px;
|
|
9342
|
+
font-weight: 600;
|
|
9343
|
+
cursor: pointer;
|
|
9344
|
+
transition: all 0.2s ease;
|
|
9345
|
+
}
|
|
9346
|
+
|
|
9347
|
+
.netskrafl-container .share-popup-btn .glyphicon {
|
|
9348
|
+
font-size: 18px;
|
|
9349
|
+
top: 1px;
|
|
9350
|
+
}
|
|
9351
|
+
|
|
9352
|
+
.netskrafl-container .share-popup-btn.primary {
|
|
9353
|
+
background-color: var(--malfridur-green);
|
|
9354
|
+
color: white;
|
|
9355
|
+
}
|
|
9356
|
+
|
|
9357
|
+
.netskrafl-container .share-popup-btn.primary:hover {
|
|
9358
|
+
background-color: color-mix(in srgb, var(--malfridur-green) 85%, black);
|
|
9359
|
+
transform: scale(1.02);
|
|
9360
|
+
}
|
|
9361
|
+
|
|
9362
|
+
.netskrafl-container .share-popup-btn.secondary {
|
|
9363
|
+
background-color: var(--malfridur-accent);
|
|
9364
|
+
color: white;
|
|
9365
|
+
}
|
|
9366
|
+
|
|
9367
|
+
.netskrafl-container .share-popup-btn.secondary:hover {
|
|
9368
|
+
background-color: color-mix(in srgb, var(--malfridur-accent) 85%, black);
|
|
9369
|
+
transform: scale(1.02);
|
|
9370
|
+
}
|
|
9371
|
+
|
|
9372
|
+
.netskrafl-container .share-popup-btn.success {
|
|
9373
|
+
background-color: var(--logo-accent);
|
|
9374
|
+
color: white;
|
|
9375
|
+
}
|
|
9376
|
+
|
|
9171
9377
|
/* Desktop styles for Gáta Dagsins */
|
|
9172
9378
|
|
|
9173
9379
|
@media all and (min-width: 1024px) {
|
|
@@ -9404,4 +9610,17 @@ div.gatadagsins-board-area.celebrate div.netskrafl-tile.netskrafl-racktile {
|
|
|
9404
9610
|
.netskrafl-container div.info {
|
|
9405
9611
|
bottom: 72px;
|
|
9406
9612
|
}
|
|
9613
|
+
|
|
9614
|
+
/* Desktop share popup adjustments */
|
|
9615
|
+
.netskrafl-container .modal-dialog.share-popup {
|
|
9616
|
+
max-width: 400px;
|
|
9617
|
+
}
|
|
9618
|
+
|
|
9619
|
+
.netskrafl-container .share-popup-buttons {
|
|
9620
|
+
flex-direction: row;
|
|
9621
|
+
}
|
|
9622
|
+
|
|
9623
|
+
.netskrafl-container .share-popup-btn {
|
|
9624
|
+
flex: 1;
|
|
9625
|
+
}
|
|
9407
9626
|
}
|