| 1 |
// main container |
| 2 |
.budgie-container { background-color: transparent; } |
| 3 |
|
| 4 |
$menuitem_size: 28px; |
| 5 |
$medium_size: 32px; |
| 6 |
$large_size: 44px; |
| 7 |
$container_padding: 6px; |
| 8 |
$z-depth-2: rgba(0, 0, 0, 0.28); |
| 9 |
$z-depth-4: rgba(0, 0, 0, 0.34); |
| 10 |
|
| 11 |
*:drop(active):focus, |
| 12 |
*:drop(active) { |
| 13 |
box-shadow: inset 0 0 0 1px $selected_bg_color |
| 14 |
} |
| 15 |
|
| 16 |
.budgie-panel { |
| 17 |
// solid-mode |
| 18 |
// always use dark-color of dark variant |
| 19 |
background-color: $panel_bg; |
| 20 |
color: white; |
| 21 |
font-weight: normal; |
| 22 |
|
| 23 |
// used to indicate unread notifications |
| 24 |
.alert { color: $suggested_color; } |
| 25 |
|
| 26 |
&:backdrop { |
| 27 |
color: white; |
| 28 |
background-color: $panel_bg; |
| 29 |
} |
| 30 |
|
| 31 |
// transparent-mode |
| 32 |
&.transparent { |
| 33 |
background-color: transparentize($panel_bg, 0.6); |
| 34 |
color: white; |
| 35 |
|
| 36 |
} |
| 37 |
|
| 38 |
button { |
| 39 |
min-height: 16px; |
| 40 |
min-width: 16px; |
| 41 |
padding: 0; |
| 42 |
border-radius: 0; |
| 43 |
} |
| 44 |
|
| 45 |
&.horizontal button { padding: 0 4px; } |
| 46 |
|
| 47 |
&.vertical button { padding: 4px 0; } |
| 48 |
|
| 49 |
separator { background-color: transparentize($fg_color, 0.6); } |
| 50 |
|
| 51 |
&.vertical #tasklist-button { min-height: 32px; } |
| 52 |
|
| 53 |
.end-region { |
| 54 |
background-color: rgba(0,0,0,0.3); |
| 55 |
border-radius: 0px; |
| 56 |
separator { background-color: transparentize(white, 0.85); } |
| 57 |
label { |
| 58 |
font-weight: 700; |
| 59 |
color: white; |
| 60 |
} |
| 61 |
} |
| 62 |
} |
| 63 |
|
| 64 |
.budgie-panel { |
| 65 |
button.flat.launcher { |
| 66 |
padding: 0; |
| 67 |
border-radius: 0; |
| 68 |
border: none; |
| 69 |
background-image: radial-gradient(circle farthest-corner at center, |
| 70 |
gtkalpha($fg_color, 0) 100%, |
| 71 |
transparent 0%), |
| 72 |
image(gtkalpha($fg_color, 0)); |
| 73 |
background-position: center center; |
| 74 |
|
| 75 |
> image { |
| 76 |
opacity: 0.87; |
| 77 |
} |
| 78 |
|
| 79 |
&:hover { |
| 80 |
-gtk-icon-effect: highlight; |
| 81 |
|
| 82 |
> image { opacity: 1.0; } |
| 83 |
} |
| 84 |
&:active { |
| 85 |
> image { opacity: 1.0; } |
| 86 |
} |
| 87 |
&:checked { |
| 88 |
background-color: transparent; |
| 89 |
&:hover { -gtk-icon-effect: highlight; } |
| 90 |
|
| 91 |
> image { opacity: 1.0; } |
| 92 |
} |
| 93 |
} |
| 94 |
|
| 95 |
.unpinned button.flat.launcher, |
| 96 |
.pinned button.flat.launcher.running { |
| 97 |
&:hover { -gtk-icon-effect: highlight; } |
| 98 |
|
| 99 |
> image { |
| 100 |
background-size: 2px 2px; |
| 101 |
background-repeat: no-repeat; |
| 102 |
opacity: 1.0; |
| 103 |
} |
| 104 |
|
| 105 |
&:hover, |
| 106 |
&:active, |
| 107 |
&:checked { |
| 108 |
> image { background-image: none; } |
| 109 |
} |
| 110 |
} |
| 111 |
} |
| 112 |
|
| 113 |
// draw underscores and dots |
| 114 |
@each $position, $_line in (top, 0 2px), |
| 115 |
(bottom, 0 -2px), |
| 116 |
(left, 2px 0), |
| 117 |
(right, -2px 0) { |
| 118 |
.#{$position} .budgie-panel { |
| 119 |
button#tasklist-button, |
| 120 |
button.flat.launcher { |
| 121 |
&:hover { |
| 122 |
box-shadow: inset #{$_line} gtkalpha($fg_color, 0.4); |
| 123 |
background-color: transparentize($fg_color, 0.6); |
| 124 |
border: none; |
| 125 |
} |
| 126 |
&:active, |
| 127 |
&:checked { |
| 128 |
box-shadow: inset #{$_line} $selected_bg_color; |
| 129 |
} |
| 130 |
} |
| 131 |
|
| 132 |
.unpinned button.flat.launcher, |
| 133 |
.pinned button.flat.launcher.running { |
| 134 |
> image { |
| 135 |
background-image: image($selected_bg_color); |
| 136 |
background-position: #{$position} center; |
| 137 |
} |
| 138 |
|
| 139 |
&:hover, |
| 140 |
&:active, |
| 141 |
&:checked { |
| 142 |
box-shadow: inset #{$_line} $selected_bg_color; |
| 143 |
} |
| 144 |
} |
| 145 |
} |
| 146 |
} |
| 147 |
|
| 148 |
@each $along_side, $opp_side in (top, bottom), |
| 149 |
(bottom, top), |
| 150 |
(left, right), |
| 151 |
(right, left) { |
| 152 |
// panel shadow styling |
| 153 |
.#{$along_side} .shadow-block { |
| 154 |
background-color: transparent; |
| 155 |
background-image: linear-gradient(to #{$opp_side}, |
| 156 |
gtkalpha(#000000, 0.23), |
| 157 |
gtkalpha(#000000, 0.08), |
| 158 |
transparent); |
| 159 |
} |
| 160 |
} |
| 161 |
|
| 162 |
// budgie specific popover widgets |
| 163 |
.budgie-popover { |
| 164 |
border-style: none; |
| 165 |
border-width: 1px; |
| 166 |
border-color: $z-depth-2; |
| 167 |
border-radius: 1px; |
| 168 |
box-shadow: 0 3px 4px rgba(0, 0, 0, 0.28); |
| 169 |
background-color: $bg_color; |
| 170 |
|
| 171 |
.container { padding: 2px; } |
| 172 |
|
| 173 |
border { border: none; } |
| 174 |
|
| 175 |
list { background-color: transparent; } |
| 176 |
|
| •177 |
scrolledwindow.sidebar:not(.categories) label { |
| 178 |
padding: 4px 6px; |
| 179 |
} |
| 180 |
|
| 181 |
row { |
| 182 |
padding: 0; |
| 183 |
|
| 184 |
&:hover { box-shadow: none; } |
| 185 |
} |
| 186 |
|
| 187 |
&:not(.budgie-menu) button.flat:not(.image-button) { |
| 188 |
min-height: $menuitem_size; |
| 189 |
padding: 0 8px; |
| 190 |
color: $fg_color; |
| 191 |
font-weight: normal; |
| 192 |
|
| 193 |
&:disabled { color: $insensitive_fg_color; } |
| 194 |
} |
| 195 |
|
| 196 |
&.budgie-menu { |
| 197 |
.container { padding: 0; } |
| 198 |
} |
| 199 |
|
| 200 |
&.user-menu { |
| 201 |
.container { padding: 8px; } |
| 202 |
|
| 203 |
separator { margin: 4px 0; } |
| 204 |
} |
| 205 |
|
| 206 |
&.sound-popover { |
| 207 |
separator { margin: 3px 0; } |
| 208 |
} |
| 209 |
|
| 210 |
&.night-light-indicator { |
| 211 |
.container { padding: 8px; } |
| 212 |
} |
| 213 |
|
| 214 |
&.places-menu { |
| 215 |
.container { padding: 8px; } |
| 216 |
|
| 217 |
.places-list:not(.always-expand) { |
| 218 |
margin-top: 4px; |
| 219 |
padding-top: 4px; |
| 220 |
border-top: 1px solid $borders_color; |
| 221 |
} |
| 222 |
|
| 223 |
// I guess this really should be hard-coded as well as other dim-labels. |
| 224 |
.alternative-label { |
| 225 |
padding: 3px; |
| 226 |
font-size: 15px; |
| 227 |
} |
| 228 |
} |
| 229 |
|
| 230 |
&.workspace-popover { |
| 231 |
.container { padding: 2px 8px 8px; } |
| 232 |
|
| 233 |
separator { margin: 4px 0; } |
| 234 |
|
| 235 |
flowboxchild { padding: 0; } |
| 236 |
} |
| 237 |
} |
| 238 |
|
| 239 |
// main menu styling |
| 240 |
.workspace-switcher { |
| 241 |
.workspace-layout { |
| 242 |
border: 0 solid $panel_bg; |
| 243 |
|
| 244 |
.top &, |
| 245 |
.bottom & { |
| 246 |
&:dir(ltr) { border-left-width: 1px; } |
| 247 |
|
| 248 |
&:dir(rtl) { border-right-width: 1px; } |
| 249 |
} |
| 250 |
|
| 251 |
.left &, |
| 252 |
.right & { border-top-width: 1px; } |
| 253 |
} |
| 254 |
|
| 255 |
.workspace-item, |
| 256 |
.workspace-add-button { |
| 257 |
border: 0 solid darken($panel_bg, 5%); |
| 258 |
|
| 259 |
.top &, |
| 260 |
.bottom & { |
| 261 |
&:dir(ltr) { border-right-width: 1px; } |
| 262 |
|
| 263 |
&:dir(rtl) { border-left-width: 1px; } |
| 264 |
} |
| 265 |
|
| 266 |
.left &, |
| 267 |
.right & { border-bottom-width: 1px; } |
| 268 |
} |
| 269 |
|
| 270 |
.workspace-item { |
| 271 |
|
| 272 |
&.current-workspace { background-color: darken($panel_bg, 5%); } |
| 273 |
} |
| 274 |
|
| 275 |
.workspace-add-button { |
| 276 |
&:hover { box-shadow: none; } |
| 277 |
|
| 278 |
&:active { background-image: none; } |
| 279 |
|
| 280 |
&:active image { margin: 1px 0 -1px; } |
| 281 |
} |
| 282 |
|
| 283 |
.workspace-icon-button { |
| 284 |
.budgie-panel & { // to overwrite the .budgie-panel button style below |
| 285 |
min-height: 24px; |
| 286 |
min-width: 24px; |
| 287 |
padding: 0; |
| 288 |
border-radius: 2px; |
| 289 |
} |
| 290 |
} |
| 291 |
} |
| 292 |
|
| 293 |
// Budgie Menu |
| 294 |
.budgie-menu { |
| 295 |
&.background { |
| 296 |
padding: 0; |
| 297 |
background-color: $base_color; |
| 298 |
} |
| 299 |
|
| 300 |
scrollbar, |
| 301 |
entry.search { background-color: transparent; } |
| 302 |
|
| 303 |
entry.search { |
| 304 |
border-style: none; |
| 305 |
border-bottom: 1px solid $borders_color; |
| 306 |
border-radius: 1px; |
| 307 |
box-shadow: none; |
| 308 |
font-size: 120%; |
| 309 |
padding-top: 6px; |
| 310 |
padding-bottom: 6px; |
| 311 |
} |
| 312 |
|
| 313 |
button { |
| 314 |
min-height: 32px; |
| 315 |
padding: 0 8px; |
| 316 |
border-radius: 0; |
| 317 |
color: $fg_color; |
| 318 |
font-weight: normal; |
| 319 |
} |
| 320 |
|
| 321 |
row { |
| 322 |
padding: 0; |
| 323 |
|
| 324 |
&:hover { box-shadow: none; } |
| 325 |
} |
| 326 |
} |
| 327 |
|
| 328 |
// Menu Button |
| 329 |
button.budgie-menu-launcher { |
| 330 |
// padding: 0 2px; |
| 331 |
color: white; |
| 332 |
border: none; |
| 333 |
|
| 334 |
&:hover { |
| 335 |
background-color: transparentize($fg_color, 0.6); |
| 336 |
border: none; |
| 337 |
} |
| 338 |
} |
| 339 |
|
| 340 |
// User Menu |
| 341 |
popover.background.user-menu { |
| 342 |
padding: 8px; |
| 343 |
|
| 344 |
.content-box { background-color: transparent; } |
| 345 |
|
| 346 |
separator { margin: 4px 0; } |
| 347 |
|
| 348 |
row { |
| 349 |
padding: 0; |
| 350 |
box-shadow: none; |
| 351 |
background-image: none; |
| 352 |
} |
| 353 |
} |
| 354 |
|
| 355 |
// Raven Trigger |
| 356 |
button.raven-trigger { |
| 357 |
color: white; |
| 358 |
border: none; |
| 359 |
|
| 360 |
&:hover { |
| 361 |
background-color: transparentize($fg_color, 0.6); |
| 362 |
border: none; |
| 363 |
} |
| 364 |
} |
| 365 |
|
| 366 |
// Places Menu |
| 367 |
popover.background.places-menu { |
| 368 |
padding: 8px; |
| 369 |
|
| 370 |
// FIXME: untested |
| 371 |
.message-bar { |
| 372 |
// margin-bottom: 4px; |
| 373 |
} |
| 374 |
|
| 375 |
.name-button.text-button { |
| 376 |
// padding: 4px 8px; |
| 377 |
padding-left: 8px; |
| 378 |
padding-right: 8px; |
| 379 |
|
| 380 |
image { |
| 381 |
&:dir(ltr) { margin-right: 8px - 5px; } |
| 382 |
&:dir(rtl) { margin-left: 8px - 5px; } |
| 383 |
} |
| 384 |
} |
| 385 |
|
| 386 |
// FIXME: untested |
| 387 |
.unmount-button { |
| 388 |
// padding: ($medium_size - 24px) / 2; |
| 389 |
} |
| 390 |
|
| 391 |
.places-section-header > image { |
| 392 |
&:dir(ltr) { margin: 0 8px - 10px 0 8px - 3px; } |
| 393 |
&:dir(rtl) { margin: 0 8px - 3px 0 8px - 10px; } |
| 394 |
} |
| 395 |
|
| 396 |
.places-list { |
| 397 |
margin-top: 4px; |
| 398 |
padding-top: 4px; |
| 399 |
border-top: 1px solid $borders_color; |
| 400 |
background-color: transparent; |
| 401 |
} |
| 402 |
|
| 403 |
row { |
| 404 |
padding: 0; |
| 405 |
box-shadow: none; |
| 406 |
background-image: none; |
| 407 |
} |
| 408 |
|
| 409 |
// FIXME: untested |
| 410 |
.unlock-area { |
| 411 |
entry { |
| 412 |
} |
| 413 |
|
| 414 |
button { |
| 415 |
} |
| 416 |
} |
| 417 |
} |
| 418 |
|
| 419 |
frame.raven-frame > border { |
| 420 |
border-style: none; |
| 421 |
box-shadow: none; |
| 422 |
} |
| 423 |
|
| 424 |
// Raven |
| 425 |
.raven { |
| 426 |
background-color: $bg_color; |
| 427 |
color: $fg_color; |
| 428 |
padding: $container_padding 0 0 0; |
| 429 |
border: none; |
| 430 |
|
| 431 |
.raven-header { |
| 432 |
min-height: $medium_size; |
| 433 |
padding: 3px; |
| 434 |
|
| 435 |
&.top { |
| 436 |
padding: 2px 0; |
| 437 |
background-color: $bg_color; |
| 438 |
color: $fg_color; |
| 439 |
|
| 440 |
stackswitcher button { |
| 441 |
margin: -$container_padding 0; |
| 442 |
min-height: $medium_size; |
| 443 |
} |
| 444 |
|
| 445 |
} |
| 446 |
|
| 447 |
&.bottom { border-top: 1px solid $borders_color; } |
| 448 |
} |
| 449 |
|
| 450 |
viewport.frame .raven-header { margin-top: -8px; } |
| 451 |
|
| 452 |
.raven-background { |
| 453 |
border-style: solid none; |
| 454 |
border-width: 1px; |
| 455 |
border-color: $borders_color; |
| 456 |
background-color: $base_color; |
| 457 |
|
| 458 |
// &.middle { border-bottom-style: none; } // applet background between two headers |
| 459 |
|
| 460 |
} |
| 461 |
|
| 462 |
scrolledwindow.raven-background { border-bottom-style: none; } |
| 463 |
|
| 464 |
.powerstrip button { |
| 465 |
margin: 2px 0 1px; |
| 466 |
padding: ($large_size - 24px) / 2; |
| 467 |
} |
| 468 |
|
| 469 |
.option-subtitle { font-size: smaller; } |
| 470 |
} |
| 471 |
|
| 472 |
// Calendar |
| 473 |
calendar.raven-calendar { |
| 474 |
// padding: 3px; |
| 475 |
border-style: none; |
| 476 |
background-color: transparent; |
| 477 |
|
| 478 |
&:selected { |
| 479 |
border-radius: 2px; |
| 480 |
background-color: $bg_color; |
| 481 |
} |
| 482 |
} |
| 483 |
|
| 484 |
// MPRIS Applet |
| 485 |
.raven-mpris { |
| 486 |
background-color: rgba($bg_color, 0.8); |
| 487 |
color: $fg_color; |
| 488 |
|
| 489 |
label { min-height: 24px; } |
| 490 |
|
| 491 |
} |
| 492 |
|
| 493 |
// Notifications |
| 494 |
.budgie-notification-window { |
| 495 |
background-color: transparent; |
| 496 |
color: $osd_fg_color; |
| 497 |
border-radius: 2px; |
| 498 |
// draw actual backgrounds |
| 499 |
.drop-shadow { background-color: $osd_bg_color; } |
| 500 |
} |
| 501 |
|
| 502 |
.budgie-notification { |
| 503 |
.notification-title { font-size: 110%; color: $osd_fg_color; } |
| 504 |
.notification-body { @extend .dim-label; color: $osd_fg_color; } |
| 505 |
background-color: $osd_bg_color; |
| 506 |
color: $osd_fg_color; |
| 507 |
} |
| 508 |
|
| 509 |
// On Screen Display in Budgie |
| 510 |
.budgie-osd-window { |
| 511 |
@extend .budgie-notification-window; |
| 512 |
} |
| 513 |
|
| 514 |
// Internal part of the OSD |
| 515 |
.budgie-osd { |
| 516 |
@extend .budgie-notification; |
| 517 |
.budgie-osd-text { font-size: 120%; } |
| 518 |
} |
| 519 |
|
| 520 |
// Alt+tab switcher in Budgie |
| 521 |
.budgie-switcher-window { |
| 522 |
@extend .budgie-notification; |
| 523 |
|
| 524 |
.drop-shadow { |
| 525 |
margin: 8px 8px 16px; // reserve area for shadows |
| 526 |
border-radius: 2px; |
| 527 |
background-color: $osd_bg_color; |
| 528 |
box-shadow: $z-depth-2; |
| 529 |
label.budgie-switcher-title { |
| 530 |
color: $osd_fg_color; |
| 531 |
&:dir(ltr) { padding: 0 0 0 6px; } |
| 532 |
&:dir(rtl) { padding: 0 6px 0 0; } |
| 533 |
} |
| 534 |
} |
| 535 |
} |
| 536 |
|
| 537 |
// Internal part of the Switcher |
| 538 |
.budgie-switcher { |
| 539 |
@extend .budgie-notification; |
| 540 |
} |
| 541 |
|
| 542 |
.drop-shadow { |
| 543 |
margin: 5px 9px; |
| 544 |
padding: 3px; |
| 545 |
border-radius: 2px; |
| 546 |
box-shadow: none; |
| 547 |
background-color: $bg_color; |
| 548 |
|
| 549 |
.linked > button { border-radius: 2px; } |
| 550 |
} |
| 551 |
|
| 552 |
%budgie_dialog { |
| 553 |
border-radius: 2px; |
| 554 |
background-color: $bg_color; |
| 555 |
|
| 556 |
decoration { border-radius: 2px; } |
| 557 |
} |
| 558 |
|
| 559 |
// Session Dialog |
| 560 |
.budgie-session-dialog { |
| 561 |
@extend %budgie_dialog; |
| 562 |
|
| 563 |
label:not(:last-child), |
| 564 |
.dialog-title { font-size: 120%; } |
| 565 |
|
| 566 |
.linked.horizontal > button { |
| 567 |
padding: 8px 16px; |
| 568 |
border-top: 1px solid $borders_color; |
| 569 |
border-radius: 0; |
| 570 |
|
| 571 |
&:first-child { border-bottom-left-radius: 2px; } |
| 572 |
|
| 573 |
&:last-child { border-bottom-right-radius: 2px; } |
| 574 |
} |
| 575 |
} |
| 576 |
|
| 577 |
// PolKit Dialog |
| 578 |
.budgie-polkit-dialog { |
| 579 |
@extend %budgie_dialog; |
| 580 |
|
| 581 |
.message { color: $fg_color; } |
| 582 |
|
| 583 |
.failure { color: $destructive_color; } |
| 584 |
} |
| 585 |
|
| 586 |
// Run Dialog |
| 587 |
.budgie-run-dialog { |
| 588 |
@extend %budgie_dialog; |
| 589 |
|
| 590 |
background-color: $base_color; |
| 591 |
border-style: none; |
| 592 |
|
| 593 |
entry.search { |
| 594 |
font-size: 120%; |
| 595 |
box-shadow: none; |
| 596 |
background-color: transparent; |
| 597 |
border-style: none; |
| 598 |
border-bottom: 1px solid $borders_color; |
| 599 |
border-radius: 1px; |
| 600 |
padding-top: 6px; |
| 601 |
padding-bottom: 6px; |
| 602 |
} |
| 603 |
|
| 604 |
list .dim-label { opacity: 1; } |
| 605 |
|
| 606 |
scrolledwindow { border-top: 1px solid $borders_color; } |
| 607 |
} |