@jsb188/css 1.1.1 → 1.1.2

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/css/alert.css CHANGED
@@ -1,62 +1,113 @@
1
+ /* Modal cover for alerts & screens */
1
2
 
2
- /* Modal screen cover */
3
+ .gr_modal {
4
+ background: linear-gradient(360deg, rgba(var(--color-modal), 1) 0%, rgba(var(--color-modal), 0.58) 50%);
5
+ backdrop-filter: saturate(125%) blur(1px);
6
+ }
3
7
 
4
- .modal_cover {
5
- position: fixed;
6
- top: 0; right: 0; bottom: 0; left: 0;
7
- opacity: 0;
8
- transition: ease opacity .2s;
8
+ .gr_modal_background {
9
+ background: linear-gradient(
10
+ to bottom,
11
+ rgba(var(--color-modal-alt), 1) 0%,
12
+ rgba(var(--color-modal-alt), 0.87) 50%,
13
+ rgba(var(--color-modal-alt), 1) 100%
14
+ );
15
+ backdrop-filter: saturate(125%) blur(1px);
9
16
  }
10
17
 
11
- .modal_cover.visible {
12
- opacity: 1;
18
+ .gr_modal_solid {
19
+ background: linear-gradient(to bottom, rgba(var(--color-bg), 1) 0%, rgba(var(--color-bg), 0.87) 50%, rgba(var(--color-bg), 1) 100%);
20
+ backdrop-filter: saturate(125%) blur(1px);
21
+
22
+ --color-modal: 210, 210, 210;
13
23
  }
14
24
 
15
- .modal_cover .main_content {
16
- cursor: auto;
17
- box-shadow: var(--shadow-float-light);
25
+ .gr_modal_content {
26
+ background-image: linear-gradient(to bottom, #CCF0FF 0px, transparent 250px);
18
27
  }
19
28
 
20
- .alert_shadow {
21
- box-shadow: 0 0 0 8px var(--color-bg-active), 0 15px 25px rgba(0,0,0,.1) !important;
29
+ .gr_cta_popup {
30
+ background-image: url("https://assets.chiefhappiness.co/marketday/static/modal-cta-popup.jpg?v=20260906");
31
+ /*background-image: url('/img/modal-cta-popup.jpg');*/
32
+ background-position: top center;
33
+ background-repeat: no-repeat;
22
34
  }
23
35
 
24
- .modal_cover.p_m .scr_area {
25
- max-height: calc(100vh - var(--rem-medium) - var(--rem-medium));
36
+ .gr_contrast {
37
+ background-color: rgba(10, 10, 10, 0.93);
38
+ backdrop-filter: saturate(125%) blur(1px);
26
39
  }
27
40
 
28
- .modal_cover.p_d .scr_area {
29
- max-height: calc(100vh - var(--rem-default) - var(--rem-default));
41
+ .modal_main_content {
42
+ cursor: auto;
30
43
  }
31
44
 
32
- .modal_cover .main_content.full {
33
- box-shadow: var(--shadow-float-full);
45
+ .modal_pattern_fade_out:before {
46
+ /* Let modal controls receive clicks through the decorative pattern. */
47
+ pointer-events: none;
48
+ background: linear-gradient(to bottom, rgba(var(--color-assist), 0.25) 0px, rgba(var(--color-assist), 0) 350px);
34
49
  }
35
50
 
36
- /* Close button inside modals */
51
+ /* Gradient and color helpers for modals */
37
52
 
38
- .m_close {
39
- position: absolute;
40
- top: var(--rem-default);
41
- right: var(--rem-default);
42
- cursor: pointer;
53
+ .fade_modal_down {
54
+ background: linear-gradient(
55
+ to bottom,
56
+ rgba(var(--color-modal-alt), 1) 0%,
57
+ rgba(var(--color-modal-alt), 0.58) 58%,
58
+ rgba(var(--color-modal-alt), 0) 100%
59
+ );
60
+ }
61
+ .fade_modal_up {
62
+ background: linear-gradient(
63
+ to top,
64
+ rgba(var(--color-modal-alt), 1) 0%,
65
+ rgba(var(--color-modal-alt), 0.58) 58%,
66
+ rgba(var(--color-modal-alt), 0) 100%
67
+ );
43
68
  }
44
69
 
45
- .m_close:hover {
46
- background-color: var(--color-bg-active);
70
+ .bg_modal {
71
+ background: rgba(var(--color-modal), 0.8);
47
72
  }
73
+ .bg_modal_alt {
74
+ background: rgba(var(--color-modal-alt), 0.8);
75
+ }
76
+
77
+ /* Alert black-to-transparent background */
48
78
 
49
- /* Modal error message */
79
+ .gr_modal_alert_w_screen {
80
+ background-color: rgba(var(--color-darker-rgb), 0.064);
81
+ }
82
+
83
+ /* Different outlines + shadows for each modal type */
84
+
85
+ .alert_shadow_default {
86
+ /* box-shadow: 0 0 20px rgb(var(--color-modal)), 0 4px 12px rgba(0,0,0,.04); */
87
+ /* box-shadow: 0 0 40px 10px rgb(var(--color-modal)); */
88
+ box-shadow:
89
+ 0 20px 40px rgb(var(--color-modal)),
90
+ 0 0 100px rgba(255, 255, 255, 1);
91
+ }
92
+
93
+ .alert_shadow_drawer {
94
+ /* box-shadow: 0 0 0 3px rgba(0,0,0,.04), 0 0 40px rgb(var(--color-modal)), -75px 0 75px rgba(255,255,255, 1); */
95
+ box-shadow:
96
+ 0 0 0 3px rgba(var(--color-modal), 0.5),
97
+ 0 0 30px rgb(var(--color-bg-medium)),
98
+ -75px 0 75px rgba(255, 255, 255, 1);
99
+ /* box-shadow: 0 0 0 3px rgba(0,0,0,.04), 0 20px 40px rgb(var(--color-modal)), 0 0 100px rgba(255,255,255, 1); */
100
+ }
50
101
 
51
- .m_err {
52
- position: relative;
53
- padding: var(--rem-default);
54
- margin-bottom: var(--rem-small);
55
- background-color: var(--color-bg-active);
56
- /* border: solid 4px var(--color-bg-active); */
102
+ .full.alert_shadow_default {
103
+ box-shadow:
104
+ 0 0 4px rgba(0, 0, 0, 0.03),
105
+ 0 20px 40px rgb(var(--color-modal));
57
106
  }
58
107
 
59
- .m_err .m_close {
60
- top: var(--rem-xsmall);
61
- right: var(--rem-xsmall);
108
+ .alert_shadow_error {
109
+ box-shadow:
110
+ 0 8px 15px rgba(0, 0, 0, 0.07),
111
+ 0 0 0 4px rgba(var(--color-error), 0.5),
112
+ 0 0 20px rgba(var(--color-error), 0.1);
62
113
  }