| 1 |
/** |
| 2 |
* Sticky Contact Bar - Admin Styles |
| 3 |
* |
| 4 |
* @package King_Addons |
| 5 |
*/ |
| 6 |
|
| 7 |
/* Settings page wrapper */ |
| 8 |
.ka-scbar-admin { |
| 9 |
max-width: 900px; |
| 10 |
} |
| 11 |
|
| 12 |
.ka-scbar-admin h1 { |
| 13 |
font-size: 24px; |
| 14 |
font-weight: 600; |
| 15 |
margin-bottom: 24px; |
| 16 |
display: flex; |
| 17 |
align-items: center; |
| 18 |
gap: 10px; |
| 19 |
} |
| 20 |
|
| 21 |
.ka-scbar-admin h1::before { |
| 22 |
content: ''; |
| 23 |
width: 32px; |
| 24 |
height: 32px; |
| 25 |
background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%); |
| 26 |
border-radius: 8px; |
| 27 |
} |
| 28 |
|
| 29 |
/* Tabs navigation */ |
| 30 |
.ka-scbar-admin__tabs { |
| 31 |
display: flex; |
| 32 |
gap: 0; |
| 33 |
border-bottom: 1px solid #ddd; |
| 34 |
margin-bottom: 24px; |
| 35 |
background: #fff; |
| 36 |
padding: 0 20px; |
| 37 |
border-radius: 8px 8px 0 0; |
| 38 |
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04); |
| 39 |
} |
| 40 |
|
| 41 |
.ka-scbar-admin__tab { |
| 42 |
padding: 14px 24px; |
| 43 |
background: none; |
| 44 |
border: none; |
| 45 |
border-bottom: 3px solid transparent; |
| 46 |
cursor: pointer; |
| 47 |
font-size: 14px; |
| 48 |
font-weight: 500; |
| 49 |
color: #50575e; |
| 50 |
transition: all 0.2s ease; |
| 51 |
margin-bottom: -1px; |
| 52 |
display: inline-flex; |
| 53 |
align-items: center; |
| 54 |
gap: 6px; |
| 55 |
} |
| 56 |
|
| 57 |
.ka-scbar-admin__tab:hover { |
| 58 |
color: #2271b1; |
| 59 |
background: rgba(34, 113, 177, 0.04); |
| 60 |
} |
| 61 |
|
| 62 |
.ka-scbar-admin__tab.is-active { |
| 63 |
color: #2271b1; |
| 64 |
border-bottom-color: #2271b1; |
| 65 |
} |
| 66 |
|
| 67 |
/* Pro badge */ |
| 68 |
.ka-pro-badge { |
| 69 |
display: inline-block; |
| 70 |
background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%); |
| 71 |
color: #fff; |
| 72 |
font-size: 9px; |
| 73 |
padding: 2px 6px; |
| 74 |
border-radius: 3px; |
| 75 |
text-transform: uppercase; |
| 76 |
font-weight: 700; |
| 77 |
letter-spacing: 0.3px; |
| 78 |
} |
| 79 |
|
| 80 |
/* Panel content */ |
| 81 |
.ka-scbar-admin__panels { |
| 82 |
background: #fff; |
| 83 |
padding: 24px; |
| 84 |
border-radius: 0 0 8px 8px; |
| 85 |
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06); |
| 86 |
} |
| 87 |
|
| 88 |
.ka-scbar-admin__panel { |
| 89 |
display: none; |
| 90 |
} |
| 91 |
|
| 92 |
.ka-scbar-admin__panel.is-active { |
| 93 |
display: block; |
| 94 |
} |
| 95 |
|
| 96 |
/* Form table styling */ |
| 97 |
.ka-scbar-admin .form-table { |
| 98 |
margin: 0; |
| 99 |
} |
| 100 |
|
| 101 |
.ka-scbar-admin .form-table th { |
| 102 |
padding: 16px 12px 16px 0; |
| 103 |
font-weight: 500; |
| 104 |
color: #1d2327; |
| 105 |
width: 200px; |
| 106 |
} |
| 107 |
|
| 108 |
.ka-scbar-admin .form-table td { |
| 109 |
padding: 12px 0; |
| 110 |
} |
| 111 |
|
| 112 |
.ka-scbar-admin .form-table tr { |
| 113 |
border-bottom: 1px solid #f0f0f1; |
| 114 |
} |
| 115 |
|
| 116 |
.ka-scbar-admin .form-table tr:last-child { |
| 117 |
border-bottom: none; |
| 118 |
} |
| 119 |
|
| 120 |
.ka-scbar-admin input[type="text"], |
| 121 |
.ka-scbar-admin input[type="email"], |
| 122 |
.ka-scbar-admin input[type="number"], |
| 123 |
.ka-scbar-admin select { |
| 124 |
min-width: 200px; |
| 125 |
padding: 8px 12px; |
| 126 |
border: 1px solid #ddd; |
| 127 |
border-radius: 6px; |
| 128 |
font-size: 14px; |
| 129 |
transition: border-color 0.2s, box-shadow 0.2s; |
| 130 |
} |
| 131 |
|
| 132 |
.ka-scbar-admin input[type="text"]:focus, |
| 133 |
.ka-scbar-admin input[type="email"]:focus, |
| 134 |
.ka-scbar-admin input[type="number"]:focus, |
| 135 |
.ka-scbar-admin select:focus { |
| 136 |
border-color: #2271b1; |
| 137 |
box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.15); |
| 138 |
outline: none; |
| 139 |
} |
| 140 |
|
| 141 |
.ka-scbar-admin input[type="checkbox"] { |
| 142 |
width: 18px; |
| 143 |
height: 18px; |
| 144 |
margin-right: 8px; |
| 145 |
vertical-align: middle; |
| 146 |
} |
| 147 |
|
| 148 |
.ka-scbar-admin .description { |
| 149 |
color: #646970; |
| 150 |
font-size: 12px; |
| 151 |
margin-top: 6px; |
| 152 |
line-height: 1.5; |
| 153 |
} |
| 154 |
|
| 155 |
/* Item row (button repeater) */ |
| 156 |
.ka-scbar-item-row { |
| 157 |
background: #f9f9f9; |
| 158 |
border: 1px solid #e2e4e7; |
| 159 |
padding: 20px; |
| 160 |
margin-bottom: 16px; |
| 161 |
border-radius: 8px; |
| 162 |
transition: border-color 0.2s, box-shadow 0.2s; |
| 163 |
} |
| 164 |
|
| 165 |
.ka-scbar-item-row:hover { |
| 166 |
border-color: #c3c4c7; |
| 167 |
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04); |
| 168 |
} |
| 169 |
|
| 170 |
.ka-scbar-item-row p { |
| 171 |
margin: 0 0 12px; |
| 172 |
display: flex; |
| 173 |
align-items: center; |
| 174 |
flex-wrap: wrap; |
| 175 |
gap: 8px; |
| 176 |
} |
| 177 |
|
| 178 |
.ka-scbar-item-row p:last-child { |
| 179 |
margin-bottom: 0; |
| 180 |
} |
| 181 |
|
| 182 |
.ka-scbar-item-row label { |
| 183 |
font-size: 13px; |
| 184 |
color: #50575e; |
| 185 |
display: inline-flex; |
| 186 |
align-items: center; |
| 187 |
gap: 6px; |
| 188 |
} |
| 189 |
|
| 190 |
.ka-scbar-item-row input[type="text"], |
| 191 |
.ka-scbar-item-row input[type="email"], |
| 192 |
.ka-scbar-item-row input[type="number"], |
| 193 |
.ka-scbar-item-row select { |
| 194 |
min-width: 180px; |
| 195 |
} |
| 196 |
|
| 197 |
.ka-scbar-item-row .regular-text { |
| 198 |
width: 280px; |
| 199 |
} |
| 200 |
|
| 201 |
/* Remove button */ |
| 202 |
.ka-scbar-remove, |
| 203 |
.ka-scbar-remove-condition { |
| 204 |
background: #fff; |
| 205 |
border: 1px solid #d63638; |
| 206 |
color: #d63638; |
| 207 |
padding: 6px 14px; |
| 208 |
border-radius: 4px; |
| 209 |
cursor: pointer; |
| 210 |
font-size: 13px; |
| 211 |
font-weight: 500; |
| 212 |
transition: all 0.2s; |
| 213 |
} |
| 214 |
|
| 215 |
.ka-scbar-remove:hover, |
| 216 |
.ka-scbar-remove-condition:hover { |
| 217 |
background: #d63638; |
| 218 |
color: #fff; |
| 219 |
} |
| 220 |
|
| 221 |
/* Add button */ |
| 222 |
#ka-scbar-add-item, |
| 223 |
#ka-scbar-add-condition { |
| 224 |
margin-top: 8px; |
| 225 |
} |
| 226 |
|
| 227 |
/* Condition row */ |
| 228 |
.ka-scbar-condition-row { |
| 229 |
display: flex; |
| 230 |
gap: 12px; |
| 231 |
align-items: center; |
| 232 |
margin-bottom: 12px; |
| 233 |
background: #f9f9f9; |
| 234 |
padding: 12px 16px; |
| 235 |
border-radius: 6px; |
| 236 |
border: 1px solid #e2e4e7; |
| 237 |
} |
| 238 |
|
| 239 |
.ka-scbar-condition-row select, |
| 240 |
.ka-scbar-condition-row input { |
| 241 |
flex: 1; |
| 242 |
min-width: 0; |
| 243 |
} |
| 244 |
|
| 245 |
.ka-scbar-condition-row .ka-scbar-remove-condition { |
| 246 |
flex-shrink: 0; |
| 247 |
padding: 6px 12px; |
| 248 |
} |
| 249 |
|
| 250 |
/* Submit button */ |
| 251 |
.ka-scbar-admin .submit { |
| 252 |
margin-top: 24px; |
| 253 |
padding-top: 20px; |
| 254 |
border-top: 1px solid #f0f0f1; |
| 255 |
} |
| 256 |
|
| 257 |
.ka-scbar-admin #submit { |
| 258 |
background: linear-gradient(135deg, #2271b1 0%, #135e96 100%); |
| 259 |
border: none; |
| 260 |
padding: 10px 24px; |
| 261 |
font-size: 14px; |
| 262 |
font-weight: 500; |
| 263 |
border-radius: 6px; |
| 264 |
cursor: pointer; |
| 265 |
transition: all 0.2s; |
| 266 |
} |
| 267 |
|
| 268 |
.ka-scbar-admin #submit:hover { |
| 269 |
background: linear-gradient(135deg, #135e96 0%, #0a4b78 100%); |
| 270 |
transform: translateY(-1px); |
| 271 |
box-shadow: 0 4px 12px rgba(34, 113, 177, 0.25); |
| 272 |
} |
| 273 |
|
| 274 |
/* Color row styling */ |
| 275 |
.ka-scbar-item-row input[type="text"][placeholder*="#"] { |
| 276 |
width: 120px; |
| 277 |
min-width: 120px; |
| 278 |
} |
| 279 |
|
| 280 |
/* Two-column layout for colors */ |
| 281 |
.ka-scbar-colors-row { |
| 282 |
display: flex; |
| 283 |
gap: 16px; |
| 284 |
flex-wrap: wrap; |
| 285 |
} |
| 286 |
|
| 287 |
/* Disabled state */ |
| 288 |
.ka-scbar-admin input:disabled, |
| 289 |
.ka-scbar-admin select:disabled { |
| 290 |
opacity: 0.5; |
| 291 |
cursor: not-allowed; |
| 292 |
background: #f5f5f5; |
| 293 |
} |
| 294 |
|
| 295 |
/* Responsive */ |
| 296 |
@media (max-width: 782px) { |
| 297 |
.ka-scbar-admin__tabs { |
| 298 |
flex-wrap: wrap; |
| 299 |
padding: 0 12px; |
| 300 |
} |
| 301 |
|
| 302 |
.ka-scbar-admin__tab { |
| 303 |
padding: 12px 16px; |
| 304 |
font-size: 13px; |
| 305 |
} |
| 306 |
|
| 307 |
.ka-scbar-admin .form-table th { |
| 308 |
width: auto; |
| 309 |
display: block; |
| 310 |
padding-bottom: 4px; |
| 311 |
} |
| 312 |
|
| 313 |
.ka-scbar-admin .form-table td { |
| 314 |
display: block; |
| 315 |
padding-left: 0; |
| 316 |
} |
| 317 |
|
| 318 |
.ka-scbar-item-row { |
| 319 |
padding: 16px; |
| 320 |
} |
| 321 |
|
| 322 |
.ka-scbar-item-row .regular-text { |
| 323 |
width: 100%; |
| 324 |
} |
| 325 |
|
| 326 |
.ka-scbar-condition-row { |
| 327 |
flex-wrap: wrap; |
| 328 |
} |
| 329 |
} |
| 330 |
|
| 331 |
|