Ezmary commited on
Commit
76bc6d8
·
verified ·
1 Parent(s): 94b2a56

Create CustomModal.scss

Browse files
src/components/components/CustomModal.scss ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // src/components/CustomModal.scss
2
+ .modal-overlay {
3
+ position: fixed; top: 0; left: 0; right: 0; bottom: 0;
4
+ background-color: rgba(0, 0, 0, 0.7);
5
+ display: flex; align-items: center; justify-content: center;
6
+ z-index: 1000; backdrop-filter: blur(5px);
7
+ }
8
+ .modal-content {
9
+ background: #2c2c2e; padding: 24px; border-radius: 16px;
10
+ width: 90%; max-width: 500px;
11
+ box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
12
+ border: 1px solid rgba(255, 255, 255, 0.15);
13
+ animation: modal-fade-in 0.3s ease-out;
14
+ .modal-header {
15
+ display: flex; justify-content: space-between; align-items: center;
16
+ margin-bottom: 20px; border-bottom: 1px solid #444; padding-bottom: 16px;
17
+ h3 { margin: 0; font-size: 20px; color: #fff; }
18
+ .close-button {
19
+ background: none; border: none; color: #aaa; font-size: 28px;
20
+ cursor: pointer; line-height: 1; padding: 0;
21
+ &:hover { color: #fff; }
22
+ }
23
+ }
24
+ .modal-body .form-group {
25
+ margin-bottom: 20px;
26
+ label { display: block; margin-bottom: 8px; font-weight: 500; color: #e0e0e0; }
27
+ input, textarea {
28
+ width: 100%; padding: 12px; border-radius: 8px;
29
+ border: 1px solid #555; background-color: #3a3a3c;
30
+ color: #fff; font-size: 15px;
31
+ &:focus {
32
+ outline: none; border-color: #0a84ff;
33
+ box-shadow: 0 0 0 2px rgba(10, 132, 255, 0.5);
34
+ }
35
+ }
36
+ textarea { resize: vertical; min-height: 100px; }
37
+ small { display: block; margin-top: 8px; color: #999; font-size: 12px; }
38
+ }
39
+ .modal-footer {
40
+ display: flex; justify-content: flex-end; margin-top: 24px;
41
+ .save-button {
42
+ background-color: #0a84ff; color: #fff; border: none;
43
+ padding: 12px 24px; border-radius: 8px; font-size: 16px;
44
+ font-weight: 600; cursor: pointer; transition: background-color 0.2s;
45
+ &:hover { background-color: #3499ff; }
46
+ }
47
+ }
48
+ }
49
+ @keyframes modal-fade-in {
50
+ from { opacity: 0; transform: scale(0.9); }
51
+ to { opacity: 1; transform: scale(1); }
52
+ }