-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprompt.css
More file actions
135 lines (116 loc) · 2.62 KB
/
prompt.css
File metadata and controls
135 lines (116 loc) · 2.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background-color: #121212;
color: #e0e0e0;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
}
.container {
background-color: #1e1e1e;
padding: 40px;
border-radius: 20px;
box-shadow: 0 10px 30px rgba(0,0,0,0.6);
text-align: center;
width: 350px;
}
h1 {
color: #bb86fc;
margin-bottom: 10px;
}
#target-site-display {
color: #aaa;
margin-bottom: 30px;
font-style: italic;
}
.type-selector {
display: flex;
justify-content: center;
background-color: #2c2c2c;
border-radius: 12px;
padding: 5px;
margin-bottom: 25px;
}
.type-btn {
background: transparent;
border: none;
color: #aaa;
padding: 10px 15px;
cursor: pointer;
flex-grow: 1;
border-radius: 8px;
font-weight: 500;
transition: all 0.3s;
}
.type-btn.active {
background-color: #bb86fc;
color: #000;
}
/* Round the corners of the first and last buttons effectively */
.type-btn:first-child { border-top-left-radius: 8px; border-bottom-left-radius: 8px; }
.type-btn:last-child { border-top-right-radius: 8px; border-bottom-right-radius: 8px; }
.view {
display: none;
margin-bottom: 25px;
min-height: 80px; /* Prevent layout jump */
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
.view.active-view {
display: flex; /* Override display:none */
}
/* Important: .view is defined as display:flex above which overrides display:none in the cascading order if not careful.
Better specificty: */
.view { display: none; }
.view.active-view { display: flex; }
input[type="number"] {
background-color: #2c2c2c;
border: 2px solid #333;
color: #fff;
padding: 12px;
border-radius: 10px;
width: 100px;
text-align: center;
font-size: 1.2rem;
margin-top: 10px;
outline: none;
}
input[type="number"]:focus {
border-color: #bb86fc;
}
#confirm-btn {
background-color: #03dac6;
color: #000;
border: none;
padding: 12px 30px;
border-radius: 50px; /* Pill shape */
font-size: 1rem;
font-weight: bold;
cursor: pointer;
transition: transform 0.2s, background-color 0.2s;
width: 100%;
}
#confirm-btn:hover {
background-color: #018786;
transform: translateY(-2px);
}
.warning {
color: #cf6679;
font-size: 0.9rem;
margin-top: 10px;
}
#error-msg {
color: #cf6679;
margin-top: 15px;
min-height: 20px;
font-size: 0.9rem;
}
.small-text {
font-size: 0.8rem;
color: #777;
margin-top: 5px;
}