@everymatrix/casino-game-thumbnail 0.0.258 → 0.0.261

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/casino-game-thumbnail",
3
- "version": "0.0.258",
3
+ "version": "0.0.261",
4
4
  "main": "dist/casino-game-thumbnail.js",
5
5
  "svelte": "src/index.ts",
6
6
  "scripts": {
@@ -36,5 +36,5 @@
36
36
  "publishConfig": {
37
37
  "access": "public"
38
38
  },
39
- "gitHead": "29d9cee256c6fbdf17d95ed82bc3ebcc62241704"
39
+ "gitHead": "a93c0ae8104c039af7d54949a0889c11bca83acb"
40
40
  }
@@ -662,13 +662,6 @@
662
662
 
663
663
 
664
664
  <style lang="scss">
665
- //This function does a multiplication
666
- // in order to work with px the
667
- // same way as working with em
668
- @function ttp($value) {
669
- $multiplicator: 16px;
670
- @return $value * $multiplicator;
671
- }
672
665
 
673
666
  :host {
674
667
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';
@@ -721,19 +714,19 @@
721
714
 
722
715
  &Name {
723
716
  color: white;
724
- margin-bottom: ttp(.6);
717
+ margin-bottom: 10px;
725
718
  text-align: center;
726
- font-size: ttp(1.1);
719
+ font-size: 18px;
727
720
  }
728
721
 
729
722
  &Btn {
730
723
  appearance: none;
731
- padding: ttp(.4);
724
+ padding: 6px;
732
725
  background: var(--emfe-w-color-primary, #D0046C);
733
726
  color: var(--emfe-w-color-primary-50, #FBECF4);
734
- font-size: ttp(1);
727
+ font-size: 16px;
735
728
  border: 2px solid var(--emfe-w-color-primary-600, #99034F);
736
- border-radius: ttp(.3);
729
+ border-radius: 5px;
737
730
  cursor: pointer;
738
731
  transition: border 150ms ease-in-out;
739
732
 
@@ -746,10 +739,10 @@
746
739
  .GameInfoVendor {
747
740
  display: block;
748
741
  position: absolute;
749
- bottom: ttp(.5);
750
- right: ttp(.5);
742
+ bottom: 8px;
743
+ right: 8px;
751
744
  color: white;
752
- font-size: ttp(.9);
745
+ font-size: 14px;
753
746
  font-weight: normal;
754
747
  }
755
748
  }
@@ -771,17 +764,17 @@
771
764
  position: absolute;
772
765
  width: 100%;
773
766
  height: 100%;
774
- top: ttp(.5);
775
- left: ttp(.5);
767
+ top: 8px;
768
+ left: 8px;
776
769
  z-index: 0;
777
770
  &Label {
778
- font-size: ttp(.7);
779
- padding: ttp(.2);
771
+ font-size: 11px;
772
+ padding: 3px;
780
773
  background-color: var(--emfe-w-color-primary, #D0046C);
781
774
  color: var(--emfe-w-color-primary-50, #FBECF4);
782
775
  font-weight: bold;
783
776
  text-transform: uppercase;
784
- border-radius: ttp(.3);
777
+ border-radius: 5px;
785
778
  }
786
779
  }
787
780
  }
@@ -852,7 +845,7 @@
852
845
  bottom: 0;
853
846
  left: 0;
854
847
  }
855
-
848
+
856
849
  &.GameInnerContainerUnavailable {
857
850
  &::after {
858
851
  content: '';
@@ -880,7 +873,7 @@
880
873
  color: var(--emfe-w-color-white, #FFFFFF);
881
874
  fill: var(--emfe-w-color-white, #FFFFFF);
882
875
  opacity: 1;
883
- border-radius: ttp(.25);
876
+ border-radius: 4px;
884
877
  }
885
878
 
886
879
  .ListGame.GameContainerFullyDimmed:before {
@@ -898,22 +891,22 @@
898
891
  color: var(--emfe-w-color-white, #FFFFFF);
899
892
  fill: var(--emfe-w-color-white, #FFFFFF);
900
893
  opacity: 1;
901
- border-radius: ttp(.25);
894
+ border-radius: 4px;
902
895
  }
903
896
 
904
897
  .LiveProps {
905
898
  display: flex;
906
899
  flex-direction: column;
907
900
  position: absolute;
908
- bottom: ttp(.5);
909
- left: ttp(-.5);
901
+ bottom: 8px;
902
+ left: -8px;
910
903
  right: 0;
911
904
  width: 100%;
912
905
  padding: 0;
913
906
  background: linear-gradient(to top, rgba(0,0,0,.1) 0%, rgba(0,0,0,.2) 60%, rgba(0,0,0,.3) 80%, rgba(0,0,0,.99) 100%);
914
907
  color: var(--emfe-w-color-white, #FFFFFF);
915
908
  opacity: 1;
916
- font-size: ttp(.875);
909
+ font-size: 14px;
917
910
  }
918
911
 
919
912
  .ListGame:hover .LiveProps,
@@ -924,27 +917,27 @@
924
917
  // Pulsating animations
925
918
  @keyframes red-pulse {
926
919
  0% {
927
- box-shadow: 0 0 ttp(.125) 0 rgba(red, 0.75);
920
+ box-shadow: 0 0 2px 0 rgba(red, 0.75);
928
921
  }
929
922
 
930
923
  15% {
931
- box-shadow: 0 0 ttp(.625) ttp(.125) rgba(red, 0.75);
924
+ box-shadow: 0 0 10px 2px rgba(red, 0.75);
932
925
  }
933
926
 
934
927
  30% {
935
- box-shadow: 0 0 ttp(.125) 0 rgba(red, 0.75);
928
+ box-shadow: 0 0 2px 0 rgba(red, 0.75);
936
929
  }
937
930
 
938
931
  50% {
939
- box-shadow: 0 0 ttp(.625) ttp(.125) rgba(red, 0.75);
932
+ box-shadow: 0 0 10px 2px rgba(red, 0.75);
940
933
  }
941
934
 
942
935
  65% {
943
- box-shadow: 0 0 ttp(.125) 0 rgba(red, 0.75);
936
+ box-shadow: 0 0 2px 0 rgba(red, 0.75);
944
937
  }
945
938
 
946
939
  80% {
947
- box-shadow: 0 0 ttp(.625) ttp(.125) rgba(red, 0.75);
940
+ box-shadow: 0 0 10px 2px rgba(red, 0.75);
948
941
  }
949
942
 
950
943
  100% {
@@ -954,27 +947,27 @@
954
947
 
955
948
  @keyframes green-pulse {
956
949
  0% {
957
- box-shadow: 0 0 ttp(.125) 0 rgba(#56A80A, 0.75);
950
+ box-shadow: 0 0 2px 0 rgba(#56A80A, 0.75);
958
951
  }
959
952
 
960
953
  15% {
961
- box-shadow: 0 0 ttp(.625) ttp(.125) rgba(#56A80A, 0.75);
954
+ box-shadow: 0 0 10px 2px rgba(#56A80A, 0.75);
962
955
  }
963
956
 
964
957
  30% {
965
- box-shadow: 0 0 ttp(.125) 0 rgba(#56A80A, 0.75);
958
+ box-shadow: 0 0 2px 0 rgba(#56A80A, 0.75);
966
959
  }
967
960
 
968
961
  50% {
969
- box-shadow: 0 0 ttp(.625) ttp(.125) rgba(#56A80A, 0.75);
962
+ box-shadow: 0 0 10px 2px rgba(#56A80A, 0.75);
970
963
  }
971
964
 
972
965
  65% {
973
- box-shadow: 0 0 ttp(.125) 0 rgba(#56A80A, 0.75);
966
+ box-shadow: 0 0 2px 0 rgba(#56A80A, 0.75);
974
967
  }
975
968
 
976
969
  80% {
977
- box-shadow: 0 0 ttp(.625) ttp(.125) rgba(#56A80A, 0.75);
970
+ box-shadow: 0 0 10px 2px rgba(#56A80A, 0.75);
978
971
  }
979
972
 
980
973
  100% {
@@ -1097,14 +1090,14 @@
1097
1090
  .LiveIcons {
1098
1091
  position: relative;
1099
1092
  display: flex;
1100
- padding: 0 ttp(1);
1093
+ padding: 0 16px;
1101
1094
  // flex-wrap: wrap;
1102
1095
  box-sizing: border-box;
1103
1096
  flex-direction: row;
1104
1097
  align-items: center;
1105
1098
  justify-content: flex-start;
1106
1099
  min-height: auto;
1107
- margin-bottom: ttp(.3125);
1100
+ margin-bottom: 5px;
1108
1101
  @media (min-width: 1100px) {
1109
1102
  min-height: auto;
1110
1103
  }
@@ -1119,22 +1112,22 @@
1119
1112
 
1120
1113
  &.Black, &.Red, &.Green {
1121
1114
  color: var(--emfe-w-color-white, #FFFFFF);
1122
- border: ttp(.0625) solid var(--emfe-w-color-white, #FFFFFF);
1115
+ border: 1px solid var(--emfe-w-color-white, #FFFFFF);
1123
1116
  }
1124
1117
 
1125
1118
  .LatestResult {
1126
- min-width: ttp(.75);
1127
- padding: ttp(.1);
1128
- margin: 0 ttp(.0625);
1129
- margin-right: ttp(.4);
1130
- font-size: ttp(.875);
1119
+ min-width: 12px;
1120
+ padding: 2px;
1121
+ margin: 0 1px;
1122
+ margin-right: 6px;
1123
+ font-size: 14px;
1131
1124
  text-align: center;
1132
1125
  @media (min-width: 1100px) {
1133
- min-width: ttp(.75);
1134
- font-size: ttp(.875);
1135
- margin: 0 ttp(.125);
1136
- margin-right: ttp(.3);
1137
- padding: ttp(.1);
1126
+ min-width: 12px;
1127
+ font-size: 14px;
1128
+ margin: 0 2px;
1129
+ margin-right: 5px;
1130
+ padding: 2px;
1138
1131
  }
1139
1132
 
1140
1133
  &.FirstElementAnimated {
@@ -1145,10 +1138,10 @@
1145
1138
  }
1146
1139
 
1147
1140
  &.First {
1148
- min-width: ttp(1.5);
1141
+ min-width: 24px;
1149
1142
  &.Black, &.Red, &.Green {
1150
1143
  color: var(--emfe-w-color-white, #FFFFFF);
1151
- border: ttp(.0625) solid var(--emfe-w-color-white, #FFFFFF);
1144
+ border: 1px solid var(--emfe-w-color-white, #FFFFFF);
1152
1145
  }
1153
1146
  &.Black {
1154
1147
  background: var(--emfe-w-color-black, #000000)
@@ -1159,9 +1152,9 @@
1159
1152
  &.Green {
1160
1153
  background: #56A80A;
1161
1154
  }
1162
- padding: ttp(.25);
1155
+ padding: 4px;
1163
1156
  @media (min-width: 1100px) {
1164
- padding: ttp(.25);
1157
+ padding: 4px;
1165
1158
  }
1166
1159
  }
1167
1160
  }
@@ -1172,7 +1165,7 @@
1172
1165
 
1173
1166
  .LatestResult {
1174
1167
  &:first-child {
1175
- margin-bottom: ttp(.625);
1168
+ margin-bottom: 10px;
1176
1169
  }
1177
1170
  }
1178
1171
 
@@ -1249,16 +1242,16 @@
1249
1242
  }
1250
1243
  .OpenSeat, .ClosedSeat {
1251
1244
  display: inline-block;
1252
- width: ttp(1);
1253
- height: ttp(1);
1254
- margin-right: ttp(.25);
1245
+ width: 16px;
1246
+ height: 16px;
1247
+ margin-right: 4px;
1255
1248
  @media (min-width: 768px) {
1256
- width: ttp(1);
1257
- height: ttp(1);
1249
+ width: 16px;
1250
+ height: 16px;
1258
1251
  }
1259
1252
  @media (min-width: 1100px) {
1260
- width: ttp(1);
1261
- height: ttp(1);
1253
+ width: 16px;
1254
+ height: 16px;
1262
1255
  }
1263
1256
  svg {
1264
1257
  width: 100%;
@@ -1288,10 +1281,10 @@
1288
1281
  display: flex;
1289
1282
  position: relative;
1290
1283
  z-index: 10;
1291
- height: ttp(1.25);
1292
- padding: ttp(.0625) ttp(.25) ttp(.0625) 0;
1284
+ height: 20px;
1285
+ padding: 1px 4px 1px 0;
1293
1286
  align-items: center;
1294
- border-radius: ttp(.1875);
1287
+ border-radius: 3px;
1295
1288
  font-size: 12px;
1296
1289
  white-space: normal;
1297
1290
  text-transform: uppercase;
@@ -1307,7 +1300,7 @@
1307
1300
  fill: var(--emfe-w-color-white, #FFFFFF);
1308
1301
  }
1309
1302
  &.ClosedSeat {
1310
- margin-right: ttp(-.1875);
1303
+ margin-right: -3px;
1311
1304
  }
1312
1305
  }
1313
1306
  .PlayersDisplay {
@@ -1315,16 +1308,16 @@
1315
1308
  flex-direction: row;
1316
1309
  flex-wrap: wrap;
1317
1310
  align-items: center;
1318
- padding: ttp(.125) ttp(.625);
1311
+ padding: 2px 10px;
1319
1312
  background: linear-gradient(to bottom, rgba(33, 33, 33, .9) 0%, rgba(33, 33, 33, .1) 100%);
1320
1313
  color: var(--emfe-w-color-white, #FFFFFF);
1321
1314
  @media (min-width: 1100px) {
1322
- padding: ttp(.125) ttp(1);
1315
+ padding: 2px 16px;
1323
1316
  }
1324
1317
  .PlayersIcon {
1325
- width: ttp(.875);
1326
- height: ttp(.875);
1327
- margin-right: ttp(.25);
1318
+ width: 14px;
1319
+ height: 14px;
1320
+ margin-right: 4px;
1328
1321
  //@media (min-width: 1100px) {
1329
1322
  // width: 1.7rem;
1330
1323
  // height: 1.7rem;
@@ -1339,14 +1332,14 @@
1339
1332
  .ClosedGame {
1340
1333
  opacity: 1;
1341
1334
  z-index: 10;
1342
- padding: ttp(.5) ttp(.625);
1335
+ padding: 8px 10px;
1343
1336
  color: var(--emfe-w-color-white, #FFFFFF);
1344
- font-size: ttp(1.125);
1337
+ font-size: 18px;
1345
1338
  @media (min-width: 1100px) {
1346
- padding: ttp(.5) ttp(1);
1339
+ padding: 8px 16px;
1347
1340
  }
1348
1341
  span {
1349
- font-size: ttp(1.125);
1342
+ font-size: 18px;
1350
1343
  }
1351
1344
  }
1352
1345
  .LiveLimits {
@@ -1354,22 +1347,22 @@
1354
1347
  display: flex;
1355
1348
  flex-direction: row;
1356
1349
  justify-content: space-between;
1357
- padding: ttp(.125) ttp(1.25) ttp(.3125) ttp(1.25);
1350
+ padding: 2px 20px 5px 20px;
1358
1351
  background: var(--emfe-w-color-black, #000000);
1359
1352
  color: var(--emfe-w-color-white, #FFFFFF);
1360
1353
  font-weight: normal;
1361
- font-size: ttp(.75);
1354
+ font-size: 12px;
1362
1355
  @media (min-width: 1100px) {
1363
- padding: ttp(.125) ttp(1.25) ttp(.3125) ttp(1.25);
1356
+ padding: 2px 18px 5px 18px;
1364
1357
  }
1365
1358
  span {
1366
- font-size: ttp(.75);
1359
+ font-size: 12px;
1367
1360
  }
1368
1361
  }
1369
1362
  .Players {
1370
1363
  display: inline-block;
1371
- width: ttp(1.1875);
1372
- height: ttp(1.1875);
1364
+ width: 19px;
1365
+ height: 19px;
1373
1366
  }
1374
1367
  }
1375
1368
  </style>