PluginProbe ʕ •ᴥ•ʔ
NitroPack – Performance, Page Speed & Cache Plugin for Core Web Vitals, CDN & Image Optimization / 1.16.3
NitroPack – Performance, Page Speed & Cache Plugin for Core Web Vitals, CDN & Image Optimization v1.16.3
1.19.8 1.19.7 1.19.6 1.19.5 trunk 1.10.0 1.10.1 1.10.2 1.10.3 1.10.4 1.11.0 1.12.0 1.13.0 1.14.0 1.15.0 1.15.1 1.15.2 1.15.3 1.16.0 1.16.1 1.16.2 1.16.3 1.16.4 1.16.5 1.16.6 1.16.7 1.16.8 1.17.0 1.17.6 1.17.7 1.17.8 1.17.9 1.18.0 1.18.1 1.18.2 1.18.3 1.18.4 1.18.5 1.18.6 1.18.7 1.18.8 1.18.9 1.19.0 1.19.1 1.19.2 1.19.3 1.19.4 1.3.19 1.3.20 1.4.0 1.4.1 1.5.0 1.5.1 1.5.10 1.5.11 1.5.12 1.5.13 1.5.14 1.5.15 1.5.16 1.5.17 1.5.18 1.5.19 1.5.2 1.5.3 1.5.4 1.5.5 1.5.6 1.5.7 1.5.8 1.5.9 1.6.0 1.6.1 1.7.0 1.7.1 1.8.0 1.8.1 1.8.3 1.9.0 1.9.1 1.9.2
nitropack / view / stylesheet / scss / _modals.scss
nitropack / view / stylesheet / scss Last commit date
_helpers.scss 2 years ago _modals.scss 2 years ago _notifications.scss 2 years ago _variables.scss 2 years ago
_modals.scss
145 lines
1 @use "variables" as *;
2 //@use "helpers" as *;
3
4 div[modal-backdrop]] {
5 background-color: rgba(42, 0, 122, 0.5) !important;
6 z-index: 9990;
7 position: fixed;
8 inset: 0;
9 }
10 .modal-wrapper {
11 z-index: 10000;
12 width: 100%;
13 max-height: 100%;
14 height: calc(100% - 1rem);
15 position: fixed;
16 top: 0;
17 left: 0;
18 right: 0;
19 overflow-y: auto;
20 overflow-x: hidden;
21 inset: 0;
22 flex-direction: column;
23 justify-content: center;
24 display: flex;
25 align-items: center;
26 font-family: $font;
27 &.hidden {
28 display: none;
29 }
30 .btn {
31 @include btn();
32 &.btn-primary {
33 background-color: $primary-color;
34 border-color: $primary-color;
35 color: #fff;
36 &:hover {
37 background-color: $primary-hover;
38 }
39 }
40 &.btn-secondary {
41 &:hover {
42 color: $primary-color;
43 background-color: $purple-100;
44 }
45 }
46 }
47 }
48 .modal-container,
49 .popup-container {
50 max-height: 80%;
51 max-width: 600px;
52 width: 100%;
53 position: relative;
54 }
55 .modal-inner,
56 .popup-inner {
57 padding: $gutter;
58 background-color: #fff;
59 border-radius: $border-radius * 2;
60 position: relative;
61 height: 100%;
62 width: 100%;
63 box-sizing: border-box;//safemode
64 }
65 .modal-header {
66 display: flex;
67 align-items: center;
68 justify-content: space-between;
69 h3 {
70 font-size: 1rem;
71 color: $gray-700;
72 }
73 .close-modal {
74 align-self: flex-start;
75 color: $gray-700;
76 cursor: pointer;
77 }
78 }
79 .modal-body {
80 padding: 1rem 0 2rem 0;
81 display: flex;
82 flex-direction: column;
83 justify-content: space-between;
84 height: 100%;
85 }
86 .modal-footer {
87 margin-top: $gutter;
88 margin-bottom: 1rem;
89 align-self: flex-end;
90 .btn {
91 min-width: 116px;
92 text-align: center;
93 + .btn {
94 margin-left: 0.5rem;
95 }
96 }
97 }
98 /* Popup */
99 .popup-container {
100 width: 600px;
101 }
102 .popup-modal {
103 top: 15vh;
104 justify-content: flex-start;
105 }
106 .popup-header {
107 display: flex;
108 flex-direction: column;
109 align-items: center;
110 .close-modal {
111 align-self: flex-end;
112 cursor: pointer;
113 -webkit-appearance: button;
114 background-color: rgba(0, 0, 0, 0);
115 background-image: none;
116 border: 0;
117 }
118 h3 {
119 margin-top: $gutter;
120 font-size: 1.25rem;
121 color: $gray-700;
122 margin-bottom: 0;
123 }
124 }
125 .popup-body {
126 font-size: 1rem;
127 color: $gray-600;
128 margin-top: 1rem;
129 }
130 .popup-footer {
131 display: flex;
132 align-items: center;
133 justify-content: center;
134 margin-top: $gutter;
135 .btn {
136 min-width: 116px;
137
138 + .btn {
139 margin-left: 0.5rem;
140 }
141 }
142 }
143 .text-center {
144 text-align: center;
145 }