1 | /* Active modal: Disable scrolling when the modal is open */
|
---|
2 | .activeModal {
|
---|
3 | overflow-y: hidden; /* Disable scrolling */
|
---|
4 | }
|
---|
5 |
|
---|
6 | /* Modal and overlay styles */
|
---|
7 | .modal,
|
---|
8 | .overlay {
|
---|
9 | position: fixed;
|
---|
10 | top: 0;
|
---|
11 | left: 0;
|
---|
12 | width: 100vw;
|
---|
13 | height: 100vh;
|
---|
14 | }
|
---|
15 |
|
---|
16 | /* Overlay: Dark background with optional blur */
|
---|
17 | .overlay {
|
---|
18 | background: rgba(0, 0, 0, 0.7); /* Darken the background */
|
---|
19 | backdrop-filter: blur(5px); /* Optional blur effect */
|
---|
20 | z-index: 999; /* Ensure the overlay appears below the modal */
|
---|
21 | }
|
---|
22 |
|
---|
23 | /* Modal content: Centered and styled */
|
---|
24 | .modalContent {
|
---|
25 | position: absolute;
|
---|
26 | top: 50%;
|
---|
27 | left: 50%;
|
---|
28 | transform: translate(-50%, -50%);
|
---|
29 | background-color: #2c2f33; /* Darker background for modal content */
|
---|
30 | color: #ffffff; /* White text for contrast */
|
---|
31 | padding: 20px;
|
---|
32 | border-radius: 8px;
|
---|
33 | max-width: 600px;
|
---|
34 | width: 100%;
|
---|
35 | box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
|
---|
36 | z-index: 1000; /* Ensure the modal appears above the overlay */
|
---|
37 | }
|
---|
38 |
|
---|
39 | /* Heading styles */
|
---|
40 | h2,
|
---|
41 | h3 {
|
---|
42 | margin-bottom: 15px;
|
---|
43 | color: #ffffff; /* White text for the headings */
|
---|
44 | }
|
---|
45 |
|
---|
46 | /* Button for opening the modal */
|
---|
47 | .btnModal {
|
---|
48 | padding: 10px 20px;
|
---|
49 | font-size: 18px;
|
---|
50 | background-color: #007bff;
|
---|
51 | color: white;
|
---|
52 | border: none;
|
---|
53 | border-radius: 5px;
|
---|
54 | cursor: pointer;
|
---|
55 | margin: 20px;
|
---|
56 | display: block;
|
---|
57 | }
|
---|
58 |
|
---|
59 | .btnModal:hover {
|
---|
60 | background-color: #0056b3;
|
---|
61 | }
|
---|
62 |
|
---|
63 | /* Close button inside the modal */
|
---|
64 | .closeModal {
|
---|
65 | position: absolute;
|
---|
66 | top: 10px;
|
---|
67 | right: 10px;
|
---|
68 | padding: 5px 10px;
|
---|
69 | background-color: #dc3545;
|
---|
70 | color: white;
|
---|
71 | border: none;
|
---|
72 | border-radius: 5px;
|
---|
73 | cursor: pointer;
|
---|
74 | }
|
---|
75 |
|
---|
76 | .closeModal:hover {
|
---|
77 | background-color: #c82333;
|
---|
78 | }
|
---|
79 |
|
---|
80 | /* Form styles */
|
---|
81 | .form {
|
---|
82 | display: flex;
|
---|
83 | flex-direction: column;
|
---|
84 | }
|
---|
85 |
|
---|
86 | .formGroup {
|
---|
87 | margin-bottom: 15px;
|
---|
88 | }
|
---|
89 |
|
---|
90 | /* Form labels */
|
---|
91 | .formGroup label {
|
---|
92 | display: block;
|
---|
93 | margin-bottom: 5px;
|
---|
94 | color: #ffffff; /* White text for labels */
|
---|
95 | }
|
---|
96 |
|
---|
97 | /* Input, select, and textarea styles */
|
---|
98 | .formGroup input,
|
---|
99 | .formGroup select,
|
---|
100 | .formGroup textarea {
|
---|
101 | width: 100%;
|
---|
102 | padding: 8px;
|
---|
103 | border-radius: 4px;
|
---|
104 | border: 1px solid #ccc;
|
---|
105 | background-color: #23272a; /* Darker input background */
|
---|
106 | color: #ffffff; /* White text inside the input fields */
|
---|
107 | }
|
---|
108 |
|
---|
109 | .formGroup input::placeholder,
|
---|
110 | .formGroup textarea::placeholder {
|
---|
111 | color: #888888; /* Slightly lighter color for placeholder text */
|
---|
112 | }
|
---|
113 |
|
---|
114 | /* Checkbox alignment fix */
|
---|
115 | .formGroupCheckbox {
|
---|
116 | display: flex;
|
---|
117 | align-items: center; /* Vertical alignment */
|
---|
118 | color: #ffffff;
|
---|
119 | }
|
---|
120 |
|
---|
121 | /* Add button */
|
---|
122 | .addButton {
|
---|
123 | background-color: #28a745;
|
---|
124 | color: white;
|
---|
125 | padding: 8px 15px;
|
---|
126 | border: none;
|
---|
127 | border-radius: 5px;
|
---|
128 | cursor: pointer;
|
---|
129 | margin-top: 10px;
|
---|
130 | }
|
---|
131 |
|
---|
132 | .addButton:hover {
|
---|
133 | background-color: #218838;
|
---|
134 | }
|
---|
135 |
|
---|
136 | /* Save button styling */
|
---|
137 | .submitButton {
|
---|
138 | background-color: #28a745;
|
---|
139 | color: white;
|
---|
140 | padding: 10px 20px;
|
---|
141 | border: none;
|
---|
142 | border-radius: 5px;
|
---|
143 | cursor: pointer;
|
---|
144 | font-size: 16px;
|
---|
145 | margin-top: 15px;
|
---|
146 | }
|
---|
147 |
|
---|
148 | .submitButton:hover {
|
---|
149 | background-color: #218838;
|
---|
150 | }
|
---|
151 |
|
---|
152 | /* Pin list */
|
---|
153 | .pinList {
|
---|
154 | list-style-type: none;
|
---|
155 | padding: 0;
|
---|
156 | margin-top: 15px;
|
---|
157 | }
|
---|
158 |
|
---|
159 | /* Individual pin item */
|
---|
160 | .pinItem {
|
---|
161 | background-color: #444;
|
---|
162 | padding: 8px;
|
---|
163 | margin-bottom: 5px;
|
---|
164 | color: white;
|
---|
165 | border-radius: 5px;
|
---|
166 | display: flex;
|
---|
167 | justify-content: space-between;
|
---|
168 | align-items: center;
|
---|
169 | }
|
---|
170 |
|
---|
171 | /* Remove button */
|
---|
172 | .removeButton {
|
---|
173 | background-color: #dc3545;
|
---|
174 | color: white;
|
---|
175 | border: none;
|
---|
176 | padding: 5px 10px;
|
---|
177 | border-radius: 5px;
|
---|
178 | cursor: pointer;
|
---|
179 | }
|
---|
180 |
|
---|
181 | .removeButton:hover {
|
---|
182 | background-color: #c82333;
|
---|
183 | }
|
---|