source: imaps-frontend/src/components/PublishForm/PublishForm.module.css@ 0c6b92a

main
Last change on this file since 0c6b92a was 0c6b92a, checked in by stefan toskovski <stefantoska84@…>, 5 weeks ago

Pred finalna verzija

  • Property mode set to 100644
File size: 3.3 KB
Line 
1/* Modal overlay for blur and dark background */
2.modalOverlay {
3 position: fixed;
4 top: 0;
5 left: 0;
6 width: 100%;
7 height: 100%;
8 background-color: rgba(0, 0, 0, 0.6); /* Dark transparent background */
9 backdrop-filter: blur(8px); /* Stronger blur effect */
10 z-index: 999; /* Behind the modal */
11}
12
13/* Modal styles */
14.modal {
15 position: fixed;
16 top: 50%;
17 left: 50%;
18 transform: translate(-50%, -50%);
19 background-color: #ffffff;
20 border-radius: 12px;
21 box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
22 width: 420px;
23 max-width: 90%;
24 z-index: 1000; /* Above the overlay */
25 padding: 30px;
26 animation: fadeIn 0.3s ease;
27}
28
29/* Modal fade-in animation */
30@keyframes fadeIn {
31 from {
32 opacity: 0;
33 transform: translate(-50%, -55%);
34 }
35 to {
36 opacity: 1;
37 transform: translate(-50%, -50%);
38 }
39}
40
41.modalContent {
42 display: flex;
43 flex-direction: column;
44 align-items: flex-start;
45}
46
47h2 {
48 font-size: 1.8rem;
49 font-weight: 600;
50 margin-bottom: 20px;
51 color: #333333;
52 text-align: center;
53 width: 100%;
54}
55
56/* Input and form styles */
57form {
58 width: 100%;
59}
60
61label {
62 font-size: 1rem;
63 font-weight: 600;
64 margin-bottom: 5px;
65 display: block;
66 color: #555555;
67}
68
69input, select {
70 width: calc(100% - 10px);
71 padding: 10px;
72 margin-bottom: 15px;
73 border: 1px solid #cccccc;
74 border-radius: 6px;
75 font-size: 1rem;
76}
77
78/* Button styles */
79button {
80 background-color: #007bff;
81 color: #ffffff;
82 border: none;
83 border-radius: 6px;
84 padding: 12px 20px;
85 font-size: 1rem;
86 cursor: pointer;
87 transition: background-color 0.3s ease, transform 0.2s;
88}
89
90button:hover {
91 background-color: #0056b3;
92 transform: scale(1.05); /* Slight scaling effect */
93}
94
95.cancelButton {
96 background-color: #dc3545;
97 color: white;
98 border: none;
99 border-radius: 6px;
100 padding: 12px 20px;
101 font-size: 1rem;
102 cursor: pointer;
103 transition: background-color 0.3s ease, transform 0.2s;
104}
105
106.cancelButton:hover {
107 background-color: #a71d2a;
108 transform: scale(1.05); /* Slight scaling effect */
109}
110
111.approveButton {
112 background-color: #28a745;
113 color: white;
114 border: none;
115 border-radius: 6px;
116 padding: 12px 20px;
117 font-size: 1rem;
118 cursor: pointer;
119 transition: background-color 0.3s ease, transform 0.2s;
120}
121
122.approveButton:hover {
123 background-color: #218838;
124 transform: scale(1.05); /* Slight scaling effect */
125}
126
127.denyButton {
128 background-color: #ffc107;
129 color: #212529;
130 border: none;
131 border-radius: 6px;
132 padding: 12px 20px;
133 font-size: 1rem;
134 cursor: pointer;
135 transition: background-color 0.3s ease, transform 0.2s;
136}
137
138.denyButton:hover {
139 background-color: #e0a800;
140 transform: scale(1.05); /* Slight scaling effect */
141}
142
143/* Button group */
144.buttonGroup {
145 display: flex;
146 justify-content: space-between;
147 gap: 15px;
148 margin-top: 20px;
149}
150
151.error {
152 color: #ff0000;
153 font-size: 0.85rem;
154 margin-top: -10px;
155 margin-bottom: 10px;
156}
157
158p {
159 font-size: 1rem;
160 margin: 10px 0;
161 line-height: 1.6;
162}
163
164a {
165 color: #007bff;
166 text-decoration: none;
167 transition: color 0.3s ease;
168}
169
170a:hover {
171 color: #0056b3;
172}
173
174@media (max-width: 480px) {
175 .modal {
176 width: 90%;
177 }
178}
Note: See TracBrowser for help on using the repository browser.