_about.scss
1 month ago
_admin_menu.scss
1 month ago
_dashboard.scss
1 month ago
_media.scss
1 month ago
_panel.scss
1 month ago
_responsive.scss
1 month ago
_rtl.scss
1 month ago
_panel.scss
459 lines
| 1 | @use 'sass:color'; |
| 2 | @use "../utilities/variables"; |
| 3 | @use "../components/list_links"; |
| 4 | @use "dashboard"; |
| 5 | @use "about"; |
| 6 | |
| 7 | body { |
| 8 | &.wppd-mobile-sidebar-active { |
| 9 | overflow: hidden; |
| 10 | } |
| 11 | } |
| 12 | |
| 13 | body.toplevel_page_#{variables.$plugin_key} { |
| 14 | .wrap { |
| 15 | margin-top: 20px; |
| 16 | //padding: 15px; |
| 17 | |
| 18 | h1 { |
| 19 | font-size: 23px; |
| 20 | font-weight: 400; |
| 21 | } |
| 22 | |
| 23 | h2 { |
| 24 | font-size: 17px; |
| 25 | font-weight: 400; |
| 26 | } |
| 27 | |
| 28 | h3, h4, h5, h6 { |
| 29 | font-size: 15px; |
| 30 | font-weight: 400; |
| 31 | } |
| 32 | |
| 33 | P { |
| 34 | margin: 0; |
| 35 | font-size: 13px; |
| 36 | } |
| 37 | } |
| 38 | |
| 39 | .notice { |
| 40 | display: none !important; |
| 41 | } |
| 42 | |
| 43 | code { |
| 44 | background-color: variables.$background_side; |
| 45 | border-radius: 2px; |
| 46 | padding: 5px; |
| 47 | display: inline-block; |
| 48 | |
| 49 | &.wppd-copy-text { |
| 50 | display: inline-flex; |
| 51 | align-items: center; |
| 52 | gap: 3px; |
| 53 | |
| 54 | &:before { |
| 55 | content: "○"; |
| 56 | color: color.scale(variables.$meta, $lightness: 30%); |
| 57 | } |
| 58 | |
| 59 | &.wppd-text-copied { |
| 60 | &:before { |
| 61 | content: "●"; |
| 62 | color: variables.$primary |
| 63 | } |
| 64 | } |
| 65 | } |
| 66 | } |
| 67 | |
| 68 | #wpbody-content { |
| 69 | padding-bottom: 10px; |
| 70 | } |
| 71 | |
| 72 | #wpfooter { |
| 73 | display: none; |
| 74 | } |
| 75 | |
| 76 | .#{variables.$plugin_key}-wrap { |
| 77 | &.#{variables.$plugin_key}-wrapper { |
| 78 | background: white; |
| 79 | border: 1px solid variables.$border_color; |
| 80 | border-radius: 20px; |
| 81 | corner-shape: squircle; |
| 82 | display: grid; |
| 83 | grid-template-columns: 250px auto; |
| 84 | overflow: hidden; |
| 85 | color: variables.$text; |
| 86 | font-size: 14px; |
| 87 | min-height: calc(100vh - 120px - var(--wp-admin--admin-bar--height, 0)); |
| 88 | position: relative; |
| 89 | } |
| 90 | |
| 91 | * { |
| 92 | box-sizing: border-box; |
| 93 | } |
| 94 | |
| 95 | hr { |
| 96 | display: block; |
| 97 | height: 1px; |
| 98 | border: 0; |
| 99 | border-top: 1px solid variables.$border_color; |
| 100 | margin: 10px 0; |
| 101 | padding: 0; |
| 102 | } |
| 103 | |
| 104 | a { |
| 105 | text-decoration: none; |
| 106 | color: variables.$link; |
| 107 | |
| 108 | &:hover { |
| 109 | color: variables.$link_hover; |
| 110 | } |
| 111 | |
| 112 | &:focus { |
| 113 | box-shadow: none; |
| 114 | outline: none; |
| 115 | } |
| 116 | } |
| 117 | |
| 118 | .wppd-sidebar { |
| 119 | background-color: variables.$background_side; |
| 120 | border-right: 1px solid variables.$border_color; |
| 121 | padding: 20px; |
| 122 | position: relative; |
| 123 | |
| 124 | .wppd-sidebar-head { |
| 125 | display: flex; |
| 126 | align-items: center; |
| 127 | justify-content: space-between; |
| 128 | |
| 129 | .wppd-logo-wrap { |
| 130 | display: flex; |
| 131 | gap: 10px; |
| 132 | padding-inline-start: 5px; |
| 133 | |
| 134 | > div { |
| 135 | display: flex; |
| 136 | flex-direction: column; |
| 137 | gap: 5px; |
| 138 | line-height: 1; |
| 139 | |
| 140 | span:first-child { |
| 141 | color: variables.$gray; |
| 142 | } |
| 143 | |
| 144 | span:last-child { |
| 145 | color: black; |
| 146 | font-weight: bold; |
| 147 | font-size: 1.1em; |
| 148 | } |
| 149 | } |
| 150 | } |
| 151 | |
| 152 | img.wppd-logo { |
| 153 | width: 38px; |
| 154 | } |
| 155 | } |
| 156 | |
| 157 | .menu-items { |
| 158 | display: flex; |
| 159 | flex-direction: column; |
| 160 | gap: 10px; |
| 161 | margin-top: 30px; |
| 162 | |
| 163 | .menu-item { |
| 164 | display: flex; |
| 165 | align-items: center; |
| 166 | gap: 5px; |
| 167 | padding: 10px 12px; |
| 168 | border-radius: 10px; |
| 169 | corner-shape: squircle; |
| 170 | color: variables.$gray; |
| 171 | border: 1px solid transparent; |
| 172 | |
| 173 | svg { |
| 174 | min-width: 20px; |
| 175 | max-width: 20px; |
| 176 | } |
| 177 | |
| 178 | span { |
| 179 | display: block; |
| 180 | white-space: nowrap; |
| 181 | overflow: hidden !important; |
| 182 | text-overflow: ellipsis; |
| 183 | } |
| 184 | |
| 185 | &:focus { |
| 186 | box-shadow: 0 0 0 2px variables.$primary; |
| 187 | } |
| 188 | |
| 189 | &:hover, &:active, &:focus { |
| 190 | background-color: white; |
| 191 | } |
| 192 | |
| 193 | &.menu-item-current { |
| 194 | color: variables.$text; |
| 195 | background-color: variables.$background_menu; |
| 196 | border-color: variables.$border_color; |
| 197 | |
| 198 | &:hover, &:active, &:focus { |
| 199 | background-color: color.scale(variables.$background_menu, $lightness: 10%); |
| 200 | } |
| 201 | } |
| 202 | } |
| 203 | |
| 204 | hr { |
| 205 | border-color: color.scale(variables.$border_color, $lightness: -5%); |
| 206 | } |
| 207 | } |
| 208 | |
| 209 | .wppd-hide-sidebar { |
| 210 | display: none; |
| 211 | font-size: 20px; |
| 212 | color: variables.$gray; |
| 213 | } |
| 214 | |
| 215 | &.wppd-mobile-sidebar { |
| 216 | //display: block; |
| 217 | -webkit-transform: translateX(0); |
| 218 | transform: translateX(0); |
| 219 | |
| 220 | .wppd-hide-sidebar { |
| 221 | display: inherit; |
| 222 | } |
| 223 | } |
| 224 | } |
| 225 | |
| 226 | .wppd-display-sidebar { |
| 227 | display: none; |
| 228 | padding: 10px; |
| 229 | background-color: variables.$background_side; |
| 230 | border-bottom: 1px solid variables.$border_color; |
| 231 | |
| 232 | a { |
| 233 | padding: 5px; |
| 234 | display: inline-block; |
| 235 | line-height: 1; |
| 236 | font-size: 18px; |
| 237 | } |
| 238 | } |
| 239 | |
| 240 | .wppd-content { |
| 241 | //padding: 30px; |
| 242 | display: flex; |
| 243 | flex-direction: column; |
| 244 | position: relative; |
| 245 | max-height: calc(100vh - 40px - var(--wp-admin--admin-bar--height, 0)); |
| 246 | overflow-y: auto; |
| 247 | |
| 248 | > .woo-assistant-notices { |
| 249 | padding: 20px 30px; |
| 250 | margin-bottom: 0; |
| 251 | } |
| 252 | |
| 253 | .wppd-content-body { |
| 254 | padding: 30px 30px 60px; |
| 255 | margin-bottom: auto; |
| 256 | } |
| 257 | |
| 258 | > form { |
| 259 | padding: 20px 30px 30px; |
| 260 | margin-bottom: auto; |
| 261 | } |
| 262 | |
| 263 | a { |
| 264 | text-underline-offset: 3px; |
| 265 | |
| 266 | &:hover, &:focus, &:active { |
| 267 | text-decoration: underline; |
| 268 | } |
| 269 | } |
| 270 | } |
| 271 | |
| 272 | .wppd-description { |
| 273 | font-size: 0.9em; |
| 274 | color: variables.$meta; |
| 275 | } |
| 276 | |
| 277 | .wppd-header { |
| 278 | //overflow: hidden; |
| 279 | padding: 20px 30px 0 30px; |
| 280 | position: sticky; |
| 281 | top: 0; |
| 282 | background: rgba(255, 255, 255, 0.9); |
| 283 | background: linear-gradient(0deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 1) 100%); |
| 284 | z-index: 20; |
| 285 | -webkit-transform: translateY(0); |
| 286 | transform: translateY(0); |
| 287 | -webkit-transition: -webkit-transform .3s ease-out; |
| 288 | transition: -webkit-transform .3s ease-out; |
| 289 | transition: transform .3s ease-out; |
| 290 | transition: transform .3s ease-out, -webkit-transform .3s ease-out; |
| 291 | |
| 292 | &.hide-header { |
| 293 | -webkit-transform: translateY(-100%); |
| 294 | transform: translateY(-100%); |
| 295 | } |
| 296 | |
| 297 | .wppd-header-title { |
| 298 | display: flex; |
| 299 | flex-direction: column; |
| 300 | gap: 10px; |
| 301 | } |
| 302 | |
| 303 | &.wppd-has-header-image { |
| 304 | margin: -30px -30px 30px -30px; |
| 305 | |
| 306 | .wppd-header-title { |
| 307 | padding: 30px 30px 20px 30px; |
| 308 | background-size: cover; |
| 309 | align-items: start; |
| 310 | } |
| 311 | |
| 312 | .wppd-header-links { |
| 313 | padding: 0 30px; |
| 314 | |
| 315 | &:empty { |
| 316 | display: none; |
| 317 | } |
| 318 | } |
| 319 | |
| 320 | .wppd-header-separator { |
| 321 | margin-top: 0; |
| 322 | } |
| 323 | |
| 324 | h1, p { |
| 325 | background-color: rgba(255, 255, 255, 0.8); |
| 326 | display: inline-block; |
| 327 | padding: 5px 10px; |
| 328 | border-radius: 5px; |
| 329 | corner-shape: squircle; |
| 330 | backdrop-filter: sepia(90%); |
| 331 | } |
| 332 | } |
| 333 | |
| 334 | h1 { |
| 335 | margin: 0; |
| 336 | padding: 0; |
| 337 | } |
| 338 | |
| 339 | p { |
| 340 | color: variables.$meta; |
| 341 | padding: 0; |
| 342 | margin: 0; |
| 343 | font-size: 1em; |
| 344 | } |
| 345 | |
| 346 | hr { |
| 347 | margin: 20px 0 0; |
| 348 | } |
| 349 | } |
| 350 | |
| 351 | .wppd-header-links { |
| 352 | margin-top: 20px; |
| 353 | background-color: white; |
| 354 | |
| 355 | &:empty { |
| 356 | display: none; |
| 357 | } |
| 358 | } |
| 359 | |
| 360 | .wppd-section-links { |
| 361 | text-transform: uppercase; |
| 362 | |
| 363 | ul { |
| 364 | display: flex; |
| 365 | gap: 15px; |
| 366 | list-style: none; |
| 367 | margin: 0; |
| 368 | padding: 0; |
| 369 | white-space: nowrap; |
| 370 | overflow-x: auto; |
| 371 | height: 30px; |
| 372 | |
| 373 | &::-webkit-scrollbar { |
| 374 | display: none; |
| 375 | } |
| 376 | |
| 377 | li { |
| 378 | display: inline-block; |
| 379 | padding: 0; |
| 380 | margin: 0; |
| 381 | |
| 382 | &:not(:last-child):after { |
| 383 | content: "|"; |
| 384 | color: variables.$border_color; |
| 385 | display: inline-block; |
| 386 | margin-inline-start: 15px; |
| 387 | } |
| 388 | |
| 389 | a { |
| 390 | color: variables.$gray; |
| 391 | padding-bottom: 5px; |
| 392 | border-bottom: 2px solid variables.$gray_light_three; |
| 393 | |
| 394 | &:focus, &:active, &:hover { |
| 395 | outline: none; |
| 396 | box-shadow: none; |
| 397 | border-color: variables.$gray; |
| 398 | text-decoration: none; |
| 399 | } |
| 400 | |
| 401 | &.wppd-section-link-current { |
| 402 | color: variables.$primary; |
| 403 | border-color: variables.$primary; |
| 404 | } |
| 405 | } |
| 406 | } |
| 407 | } |
| 408 | |
| 409 | p { |
| 410 | margin-top: 20px; |
| 411 | } |
| 412 | |
| 413 | & + hr { |
| 414 | margin: 8px 0 0; |
| 415 | } |
| 416 | } |
| 417 | |
| 418 | .wppd-footer { |
| 419 | padding: 10px 30px; |
| 420 | background-color: color.adjust(variables.$background_side, $lightness: 1%); |
| 421 | |
| 422 | &.wppd-settings-footer { |
| 423 | pointer-events: inherit; |
| 424 | position: sticky; |
| 425 | bottom: 0; |
| 426 | z-index: 99999; |
| 427 | opacity: 0.9; |
| 428 | |
| 429 | &.wppd-submit-inactive { |
| 430 | pointer-events: none; |
| 431 | opacity: 0.8; |
| 432 | |
| 433 | * { |
| 434 | opacity: 0.7; |
| 435 | } |
| 436 | } |
| 437 | } |
| 438 | } |
| 439 | |
| 440 | .wppd-copy-text { |
| 441 | cursor: pointer; |
| 442 | |
| 443 | &.wppd-text-copied { |
| 444 | animation: waBlinkText 250ms step-start 0s infinite; |
| 445 | } |
| 446 | } |
| 447 | |
| 448 | @include list_links.wppd-list-links; |
| 449 | @include dashboard.dashboard; |
| 450 | @include about.about; |
| 451 | } |
| 452 | } |
| 453 | |
| 454 | @keyframes waBlinkText { |
| 455 | 50% { |
| 456 | opacity: 0.5; |
| 457 | } |
| 458 | } |
| 459 |