source: styles/globals.scss@ 9bd09b0

main
Last change on this file since 9bd09b0 was 9bd09b0, checked in by anastasovv <simon@…>, 2 years ago

Roulette place a bet functionality

  • Property mode set to 100644
File size: 12.5 KB
Line 
1@import url(https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap);
2
3html,
4body {
5 padding: 0;
6 margin: 0;
7 // font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen,
8 // Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;
9
10 font-family: 'Inter', sans-serif;
11}
12
13a {
14 color: inherit;
15 text-decoration: none;
16}
17
18* {
19 box-sizing: border-box;
20}
21
22// my code below:
23p, h1, h3 {
24 margin: 0;
25}
26
27.app {
28 color: white;
29
30 letter-spacing: 1px;
31
32 width: 100vw;
33 height: 100vh;
34
35 margin: auto;
36
37 overflow: hidden;
38
39 background-size: cover;
40 background-repeat: no-repeat;
41 background-position: 0% 50%;
42
43 text-align: center;
44}
45
46/**
47 * Component <- Header
48 */
49header.header {
50 display: flex;
51 justify-content: space-between;
52 align-items: center;
53
54 width: 92vw;
55 margin: auto;
56 margin-top: 20px;
57
58 .logo {
59 width: 80px;
60 aspect-ratio: 1;
61 border-radius: 100%;
62
63 background-image: url("/images/logo.png");
64 background-size: cover;
65
66 border: 2px solid rgba(255, 255, 255, 0.2);
67
68 cursor: pointer;
69 }
70
71 h2 {
72 cursor: pointer;
73 }
74
75 nav {
76 ul {
77 display: flex;
78 flex-direction: row;
79 list-style-type: none;
80
81 li {
82 margin-right: 4rem;
83
84 &:last-child {
85 margin-right: 0;
86 }
87 }
88 }
89
90 &.mainHeaderNavigation {
91 ul {
92 li {
93 cursor: pointer;
94 }
95 }
96 }
97 }
98}
99
100/**
101 * Component <- Full Width Text
102 *
103 * Used in "Welcome To Caessino"
104 */
105.fullwidthText {
106 width: 100vw;
107
108 display: flex;
109 flex-direction: column;
110 justify-content: center;
111 align-items: center;
112
113 margin-top: 40px;
114
115 padding: 15px 0 20px 0;
116
117 background-color: rgba(0, 0, 0, .6);
118
119 h1 {
120 color: #FFD700;
121 font-weight: lighter;
122 font-size: 2.5rem;
123 }
124
125 h3 {
126 margin-top: 15px;
127 font-weight: lighter;
128 }
129}
130
131/**
132 * Component <- Alert
133 *
134 * Similar to Full Width Text
135 */
136.alert {
137 width: 100vw;
138
139 display: flex;
140 flex-direction: column;
141 justify-content: center;
142 align-items: center;
143
144 padding: 20px 0 25px 0;
145
146 background-color: rgba(0, 0, 0, .9);
147
148 position: absolute;
149 top: 50vh;
150
151 transform: translateY(-70%);
152
153 transition: '.5s linear';
154
155 h1 {
156 color: #FFD700;
157 font-weight: lighter;
158 font-size: 2.5rem;
159 }
160
161 h3 {
162 margin-top: 10px;
163 font-weight: lighter;
164 }
165
166 button {
167 width: 500px;
168 margin-top: 20px;
169 }
170}
171
172/**
173 * Component <- Notification
174 *
175 * Displayed fixed in the top right corner
176 */
177.notification {
178 position: fixed;
179 top: 40px;
180 right: 30px;
181
182 width: 500px;
183 min-height: 200px;
184
185 display: flex;
186 flex-direction: column;
187 justify-content: center;
188 align-items: flex-end;
189
190 svg {
191 cursor: pointer;
192 }
193
194 &>div {
195 flex: 1;
196
197 width: 100%;
198
199 display: flex;
200 justify-content: center;
201 align-items: center;
202
203 font-size: 1.5rem;
204
205 margin-bottom: 1.2rem;
206
207 text-align: center;
208 }
209
210 font-size: 2rem;
211
212 padding: 20px;
213 border-radius: 15px;
214
215 box-shadow: 0 5px 25px rgba(0, 0, 0, 0.25);
216}
217
218/**
219 * Component <- Game Circle
220 *
221 * Used in Landing Page -> to display the games in circles
222 */
223.gameCircles {
224 display: flex;
225 flex-direction: row;
226 justify-content: space-between;
227 align-items: center;
228
229 width: 92vw;
230 margin: auto;
231 margin-top: 50px;
232
233 .gameCircle {
234 transition: all .2s linear;
235 cursor: pointer;
236
237 display: flex;
238 flex-direction: column;
239 justify-content: center;
240 align-items: center;
241
242 .circleLarge {
243 transition: all .2s linear;
244
245 width: 22vw;
246 aspect-ratio: 1;
247
248 border-radius: 100%;
249
250 background: linear-gradient(to top right, #ffd900cc, #B65714);
251 opacity: .95;
252
253 display: flex;
254 flex-direction: column;
255
256 .circle {
257 border-radius: 100%;
258 width: 98%;
259 background-size: cover;
260 margin: auto;
261 aspect-ratio: 1;
262 }
263 }
264
265 h3 {
266 transition: all .2s linear;
267
268 font-weight: lighter;
269 margin-top: 30px;
270
271 opacity: 0;
272 }
273
274 h1.loading {
275 color: white;
276 position: absolute;
277 width: 100vw;
278 top: 50vh;
279 left: 50vw;
280 transform: translate(-50%, -50%);
281
282 font-size: 5rem;
283
284 z-index: 10;
285 }
286
287 &:hover {
288 .circleLarge {
289 transform: scale(1.1);
290 opacity: 1;
291 }
292
293 h3 {
294 opacity: 1;
295 }
296 }
297 }
298
299 &:hover {
300 .gameCircle {
301 .circleLarge {
302 opacity: 1 !important;
303 }
304 }
305 }
306}
307
308/**
309 * Full Screen Overlay
310 */
311.fullscreen {
312 position: fixed;
313 top: 0;
314 left: 0;
315
316 width: 100vw;
317 height: 100vh;
318
319 background: linear-gradient(to right, #0B932E, #097625);
320 color: #ead24d;
321}
322
323.fs-centered {
324 &>div {
325 position: fixed;
326 top: 50vh;
327 left: 50vw;
328 transform: translate(-50%, -50%);
329 }
330}
331
332.fs-inputs-container {
333 &>div {
334 margin: auto;
335 margin-top: 2.4rem;
336 width: fit-content;
337
338 display: flex;
339 flex-direction: column;
340 justify-content: center;
341 align-items: center;
342
343 &>span {
344 margin-bottom: .5rem;
345
346 font-size: 1.5rem;
347 }
348
349 &>input {
350 margin-bottom: 2rem;
351
352 padding-left: 4px;
353 padding-right: 4px;
354
355 font-size: 2rem;
356 }
357 }
358}
359
360.statsScreen {
361 svg {
362 cursor: pointer;
363 font-size: 2.5rem;
364 color: white;
365 }
366
367 &>div {
368 h1 {
369 font-size: 2.5rem;
370 margin-bottom: 5rem;
371 }
372
373 p {
374 display: flex;
375 justify-content: space-between;
376
377 font-size: 1.5rem;
378 margin-bottom: 1rem;
379
380 &:nth-child(2n) {
381 color: white;
382 }
383
384 span {
385 margin-left: 5rem;
386 }
387 }
388 }
389}
390
391.manageCreditsScreen {
392 svg {
393 cursor: pointer;
394 font-size: 2.5rem;
395 color: white;
396 }
397
398 &>div {
399 h1 {
400 font-size: 1.5rem;
401 margin-bottom: 1rem;
402 }
403
404 p {
405 margin-bottom: 5rem;
406 color: white;
407 }
408
409 button {
410 width: 100%;
411 }
412 }
413}
414
415.inlineAlert {
416 cursor: pointer;
417
418 background-color: #ffdddd;
419 padding: .8rem 2.4rem;
420 border-radius: 15px;
421
422 color: #ff0000;
423 font-size: 1.8rem !important;
424 font-weight: 100;
425 letter-spacing: -.030em;
426}
427
428/**
429 * Component <- Loading
430 */
431.loadingScreen {
432 h1 {
433 font-size: 5rem;
434 }
435}
436
437/**
438 * Component <- RegisterScreen
439 */
440
441/**
442 * Primary Thingies
443 */
444.primaryButton {
445 background: linear-gradient(to right, #0B932E, #097625);
446 color: #ead24d;
447
448 outline: none;
449 border: none;
450 border-radius: 10px;
451
452 font-size: 1.5rem;
453 font-weight: bold;
454 padding: 5px 20px;
455
456 box-shadow: 0 5px 25px rgba(0, 0, 0, 0.25);
457
458 cursor: pointer;
459 transition: all .2s linear;
460
461 &:hover {
462 transform: scale(1.1) rotateZ(-1deg);
463 // padding: 10px 20px;
464 }
465
466 &:active {
467 transition: .05s linear;
468 transform: scale(1) rotateZ(-1deg);
469 }
470}
471
472.secondaryButton {
473 background: linear-gradient(to right, #4d99ea, #4d99ea);
474 color: white;
475
476 outline: none;
477 border: none;
478 border-radius: 10px;
479
480 font-size: 1.5rem;
481 font-weight: bold;
482 padding: 5px 20px;
483
484 box-shadow: 0 5px 25px rgba(0, 0, 0, 0.25);
485
486 cursor: pointer;
487 transition: all .2s linear;
488
489 &:hover {
490 transform: scale(1.1) rotateZ(-1deg);
491 // padding: 10px 20px;
492 }
493
494 &:active {
495 transition: .05s linear;
496 transform: scale(1) rotateZ(-1deg);
497 }
498}
499
500.tertiaryButton {
501 background: linear-gradient(to right, #484848, #6a6a6a);
502 color: white;
503
504 outline: none;
505 border: none;
506 border-radius: 10px;
507
508 font-size: 1.5rem;
509 font-weight: bold;
510 padding: 5px 20px;
511
512 box-shadow: 0 5px 25px rgba(0, 0, 0, 0.25);
513
514 cursor: pointer;
515 transition: all .2s linear;
516
517 &:hover {
518 background: linear-gradient(to right, #6e6e6e, #a0a0a0);
519 }
520
521 &:active {
522 transition: .05s linear;
523 background: linear-gradient(to right, #484848, #6a6a6a);
524 }
525}
526
527/**
528 * Input Sliders
529 */
530.primarySlider {
531 -webkit-appearance: none;
532 width: 250px;
533 height: 10px;
534 background: #0B932E;
535 outline: none;
536 border-radius: 10px;
537 -webkit-transition: .2s;
538 transition: opacity .2s;
539
540 box-shadow: 0 5px 25px rgba(234, 210, 77, 0.25);
541}
542
543.primarySlider:hover {
544 opacity: 1;
545}
546
547.primarySlider::-webkit-slider-thumb {
548 -webkit-appearance: none;
549 appearance: none;
550 outline: none;
551 border: none;
552 width: 35px;
553 height: 35px;
554 border-radius: 50%;
555 background: url("/images/gold-coin.png");
556 background-size: contain;
557 background-color: #ead24d;
558 cursor: pointer;
559}
560
561.primarySlider::-moz-range-thumb {
562 appearance: none;
563 outline: none;
564 border: none;
565 width: 35px;
566 height: 35px;
567 border-radius: 50%;
568 background: url("/images/gold-coin.png");
569 background-size: contain;
570 background-color: #ead24d;
571 cursor: pointer;
572}
573
574/**
575 * Scrollbar
576 */
577
578/* width */
579::-webkit-scrollbar {
580 width: 15px;
581}
582
583/* Track */
584::-webkit-scrollbar-track {
585 background: #0B932E;
586}
587
588/* Handle */
589::-webkit-scrollbar-thumb {
590 background: #ead24d;
591}
592
593/* Handle on hover */
594::-webkit-scrollbar-thumb:hover {
595 background: #efcb00;
596}
597
598/**
599 * File <- Blackjack Main
600 */
601.blackjackButtons {
602 position: absolute;
603
604 left: 0;
605 top: 90vh;
606
607 width: 100vw;
608 height: 10vh;
609
610 overflow: hidden;
611
612 &>div {
613 display: flex;
614 flex-direction: row;
615 justify-content: center;
616 align-items: center;
617
618 transition: .5s ease-in-out;
619
620 &>button {
621 width: 300px;
622 }
623
624 &>button:nth-child(2) {
625 margin-left: 30px;
626 }
627 }
628}
629
630.blackjackCards {
631 .card {
632 aspect-ratio: 400/560;
633 height: 150px;
634
635 background-size: contain;
636
637 position: absolute;
638
639 transition: .5s ease-in-out;
640
641 border-radius: 10px;
642
643 border: 1px solid black;
644 }
645}
646
647.blackjackDisplayBet {
648 position: absolute;
649
650 transform: translate(-50%, -50%);
651
652 left: 51vw;
653 top: 63.5vh;
654}
655
656.blackjackSideBetsModal {
657 z-index: 20;
658
659 flex-direction: column !important;
660
661 position: fixed;
662 left: 50vw;
663 top: 45vh;
664
665 width: 41vw;
666 height: 80vh;
667
668 padding: 10px;
669
670 transform: translate(-50%, -50%);
671
672 background: linear-gradient(to right, #0B932Ec0, #097625e0);
673
674 box-shadow: 0 5px 50px rgba(0, 0, 0, 0.25);
675
676 border-radius: 20px;
677
678 overflow-y: scroll;
679
680 .blackjackSideBetSelect {
681 &:first-child {
682 margin-top: 10rem;
683 }
684
685 display: flex;
686 flex-direction: column;
687 width: 100%;
688
689 h1 {
690 margin-bottom: 1rem;
691
692 color: #ead24d;
693 }
694
695 &>div {
696 text-align: left;
697
698 p {
699 margin-bottom: 1rem;
700
701 padding: 10px 20px;
702 border-radius: 5px;
703
704 cursor: pointer;
705
706 transition: all .25s linear;
707
708 span {
709 font-size: 1.2rem;
710 color: #ead24d;
711 }
712
713 &:hover {
714 color: #ead24d;
715 box-shadow: 0 5px 25px rgba(0, 0, 0, 0.25);
716 }
717 }
718 }
719 }
720}
721
722.blackjackSideBetsChooseCreditsModal {
723 z-index: 20;
724
725 flex-direction: column !important;
726
727 position: fixed;
728 left: 50vw;
729 top: 45vh;
730
731 width: 41vw;
732 height: 80vh;
733
734 padding: 10px;
735
736 transform: translate(-50%, -50%);
737
738 background: linear-gradient(to right, #00000080, #00000080);
739
740 box-shadow: 0 5px 50px rgba(0, 0, 0, 0.25);
741
742 border-radius: 20px;
743
744 p {
745 margin-bottom: 1rem;
746
747 padding: 10px 20px;
748 border-radius: 5px;
749
750 transition: all .25s linear;
751
752 span {
753 font-size: 1.2rem;
754 color: white;
755 }
756 }
757}
758
759/**
760 * File <- Roulette Main
761 */
762.rouletteMainContainer {
763 background-color: #006600;
764}
765
766#rouletteBetsImg {
767 position: absolute;
768 top: 65%;
769 left: 59%;
770
771 transform: translate(-50%, -50%);
772
773 width: 50vw;
774 height: auto;
775
776 cursor: url(/gold-coin.cur), auto;
777}
778
779#rouletteWheelImg {
780 position: absolute;
781 top: 60%;
782 left: 18%;
783
784 transform: translate(-50%, -50%);
785
786 width: 450px;
787 height: auto;
788}
789
790.rouletteInfoText {
791 position: absolute;
792 top: 15%;
793
794 width: 100vw;
795
796 text-align: center;
797
798 font-size: 1.1rem;
799}
800
801.roulettePlayersContainer {
802 position: absolute;
803 top: 15%;
804 right: 4%;
805
806 width: 10vw;
807 height: 80vh;
808
809 box-shadow: 0 0 10px rgba(10, 148, 45, .25);
810
811 padding: 1rem;
812
813 display: grid;
814 grid-template-rows: repeat(2, minmax(0, 1fr));
815
816 overflow-x: hidden;
817 overflow-y: scroll;
818
819 p {
820 word-wrap: break-word;
821 margin-top: .5rem;
822 }
823}
824
825.rouletteTimer {
826 position: absolute;
827 top: calc((60% + 450px) / 2);
828 left: calc(18.5%);
829
830 transform: translate(-50%, -50%);
831
832 font-size: 2.5rem;
833
834 color: black;
835}
836
837.rouletteBetModal {
838 z-index: 20;
839
840 flex-direction: column;
841 justify-content: center;
842 align-items: center;
843
844 position: fixed;
845 left: 0;
846 top: 0;
847
848 width: 100vw;
849 height: 100vh;
850
851 background: #000000c0;
852
853 p {
854 margin-bottom: 1rem;
855
856 padding: 10px 20px;
857 border-radius: 5px;
858
859 transition: all .25s linear;
860
861 span {
862 font-size: 1.2rem;
863 color: #ead24d;
864 }
865 }
866}
867
868/**
869 * File <- Poker Main
870 */
871
Note: See TracBrowser for help on using the repository browser.