-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpopup.css
More file actions
145 lines (132 loc) · 2.57 KB
/
Copy pathpopup.css
File metadata and controls
145 lines (132 loc) · 2.57 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
136
137
138
139
140
141
142
143
144
145
/* popup.css */
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
width: 350px;
padding: 10px;
background-color: #f4f4f9;
}
.header h1 {
font-size: 18px;
text-align: center;
color: #333;
margin: 0 0 15px 0;
}
.site-container {
margin-bottom: 15px;
background: #fff;
border-radius: 8px;
padding: 10px;
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.site-container h3 {
margin: 0 0 10px 0;
font-size: 14px;
color: #555;
border-bottom: 1px solid #eee;
padding-bottom: 5px;
}
.rules-list {
list-style: none;
padding: 0;
margin: 0;
}
.rules-list li {
display: flex;
align-items: center;
padding: 8px 0;
font-size: 14px;
}
.rule-name {
flex-grow: 1;
margin-left: 12px;
}
.delete-btn {
background: #e74c3c;
color: white;
border: none;
width: 20px;
height: 20px;
border-radius: 50%;
cursor: pointer;
font-size: 12px;
line-height: 20px;
text-align: center;
}
.delete-btn:hover {
background: #c0392b;
}
.add-new-rule {
margin-top: 20px;
padding-top: 15px;
border-top: 1px solid #ddd;
}
.add-new-rule h2 {
font-size: 16px;
margin: 0 0 10px 0;
}
.add-new-rule input {
width: calc(100% - 20px);
padding: 8px 10px;
margin-bottom: 10px;
border: 1px solid #ccc;
border-radius: 4px;
}
.add-new-rule button {
width: 100%;
padding: 10px;
background-color: #3498db;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 14px;
}
.add-new-rule button:hover {
background-color: #2980b9;
}
.add-new-rule .picker-info {
font-size: 11px;
color: #777;
margin-top: 10px;
text-align: center;
}
/* Toggle Switch CSS */
.toggle {
position: relative;
display: inline-block;
width: 40px;
height: 24px;
}
.toggle input {
opacity: 0;
width: 0;
height: 0;
}
.slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #ccc;
transition: .4s;
border-radius: 24px;
}
.slider:before {
position: absolute;
content: "";
height: 16px;
width: 16px;
left: 4px;
bottom: 4px;
background-color: white;
transition: .4s;
border-radius: 50%;
}
input:checked + .slider {
background-color: #2ecc71;
}
input:checked + .slider:before {
transform: translateX(16px);
}