_budgie.scss
ASCII text
1// based css: 2// https://github.com/solus-project/budgie-desktop/blob/master/theme/3.20/sass/_main.scss 3 4/****************** 5* Budgie Desktop * 6******************/ 7 8// Container for both the "panel" area and the shadow. Wise to keep 9// this transparent.. 10.budgie-container { background-color: transparent; } 11 12// Budgie Menu 13.budgie-menu { 14padding : 0; 15 16scrolledwindow:not(.categories) { background-color: $base_color; } 17 18entry.search { 19border-bottom: 1px solid $borders_color; 20border-radius: $md_radius $md_radius 0 0; 21box-shadow: inset 0 1px $highlight_color; 22font-size: 120%; 23} 24 25button { 26@extend row.activatable; 27 28min-height: 32px; 29padding: 0 8px; 30border-radius: 0; 31color: $fg_color; 32font-weight: normal; 33 34&:disabled { color: $disabled_fg_color; } 35 36&:checked { @extend %selected_items; } 37} 38 39row { all: unset; } 40} 41 42// Menu Button 43button.budgie-menu-launcher { 44padding: 0 2px; 45} 46 47// User Menu 48.user-menu { 49padding: 10px; 50 51// .content-box separator { background-color: $borders_color; } 52} 53 54// Raven Trigger 55button.raven-trigger { 56padding-left: 2px; 57padding-right: 2px; 58} 59 60// Panel 61.budgie-panel { 62background-color: $topbar_color; 63color: $inversed_fg_color; 64font-weight: 500; 65 66button { border-radius: 0; } 67 68separator { 69background-color: $track_color; 70color: $inversed_fg_color; 71} 72 73// used to indicate unread notifications 74.alert { color: $destructive_color; } 75 76// End Section needs to be fancy 77.end-region { 78border-radius: 2px; 79background-color: rgba(0,0,0,0.2); 80} 81} 82 83// Tasklist 84.budgie-panel #tasklist-button { 85padding: 0 4px; 86 87@extend %flat_button; 88 89@extend %underscores; 90} 91 92// Icon Tasklist 93.budgie-panel { 94button.flat.launcher { 95padding-top: 0; 96padding-bottom: 0; 97 98@extend %underscores; 99} 100 101.unpinned button.flat.launcher, 102.pinned button.flat.launcher.running { @extend %underscores:checked; } 103} 104 105%underscores { 106.top & { 107border-image: radial-gradient(circle closest-corner at center calc(1px), 108currentColor 0%, 109transparent 0%) 1100 0 0 / 0px 0 0; 111 112&:checked { 113border-image: radial-gradient(circle closest-corner at center calc(1px), 114currentColor 100%, 115transparent 0%) 1162 0 0 / 2px 0 0; 117} 118} 119 120.bottom & { 121border-image: radial-gradient(circle closest-corner at center calc(100% - 1px), 122currentColor 0%, 123transparent 0%) 1240 0 0 / 0 0 0px; 125 126&:checked { 127border-image: radial-gradient(circle closest-corner at center calc(100% - 1px), 128currentColor 100%, 129transparent 0%) 1300 0 2 / 0 0 2px; 131} 132} 133 134.left & { 135border-image: radial-gradient(circle closest-corner at calc(1px) center, 136currentColor 0%, 137transparent 0%) 1380 0 0 0 / 0 0px 0 0; 139 140&:checked { 141border-image: radial-gradient(circle closest-corner at calc(1px) center, 142currentColor 100%, 143transparent 0%) 1440 2 0 0 / 0 2px 0 0; 145} 146} 147 148.right & { 149border-image: radial-gradient(circle closest-corner at calc(100% - 1px) center, 150currentColor 0%, 151transparent 0%) 1520 0 0 0 / 0 0 0 0px; 153 154&:checked { 155border-image: radial-gradient(circle closest-corner at calc(100% - 1px) center, 156currentColor 100%, 157transparent 0%) 1580 0 0 2 / 0 0 0 2px; 159} 160} 161} 162 163frame.raven-frame > border { 164border-style: none; 165box-shadow: $z-depth-4; 166} 167 168$pos_list: ((top, bottom), (bottom, top), (left, right), (right, left)); 169 170@each $pos, $b_pos in $pos_list { 171// Panel borders 172// .#{$pos} .budgie-panel { border-#{$b_pos}: 1px solid $borders_color; } 173 174// Raven borders 175.#{$pos} frame.raven-frame > border { 176margin-#{$b_pos}: 32px; 177// border-#{$b_pos}: 1px solid $borders_color; 178} 179 180// Shadows 181// .#{$pos} .shadow-block { background-image: linear-gradient(to $b_pos, $borders_color, transparent); } 182} 183 184// Raven 185.raven { 186background-color: $base_color; 187 188stackswitcher.linked > button { 189@extend %flat_button; 190 191border-image: radial-gradient(circle closest-corner at center calc(100% - 1px), 192$warning_bg_color 0%, 193transparent 0%) 1940 0 0 / 0 0 0px; 195border-radius: 0; 196 197&:checked { 198border-image: radial-gradient(circle closest-corner at center calc(100% - 1px), 199$warning_bg_color 100%, 200transparent 0%) 2010 0 2 / 0 0 2px; 202background-color: transparent; 203} 204} 205 206.raven-header { 207min-height: $medium_size; 208padding: 3px; 209border-style: none none solid; 210border-width: 1px; 211border-color: $borders_color; 212 213&:not(.top) { 214margin-top: -6px; // remove extra spaces, but not perfect :( 215 216button { 217@extend %simple_flat_button; 218 219&.image-button { 220border-radius: $circular_radius; 221-gtk-outline-radius: $circular_radius; 222} 223} 224} 225 226&.top { 227padding: 2px 0; 228border-style: none; 229background-color: $primary_color; 230color: $inversed_fg_color; 231 232stackswitcher button { 233margin: -$container_padding 0; 234min-height: $medium_size; 235} 236 237button.image-button { 238&:dir(ltr) { margin-right: 2px; } 239&:dir(rtl) { margin-left: 2px; } 240} 241 242> image { margin: 0 8px; } 243 244> label { 245margin: 0 -8px; 246font-weight: bold; 247} 248} 249 250&.bottom { border-style: solid none none; } 251} 252 253viewport.frame .raven-header { margin-top: -8px; } 254 255.expander-button { @extend %circular_button; } 256 257.raven-background { 258border-bottom: 1px solid $borders_color; 259background-color: $lighter_bg_color; 260 261// &.middle { border-bottom-style: none; } // applet background between two headers 262 263&.frame { border-style: none none solid; } 264 265> overlay > image { color: $track_color; } 266} 267 268scrolledwindow.raven-background { border-bottom-style: none; } 269 270> stack > box > .raven-background { 271border-bottom-style: none; 272background-color: $primary_color; 273color: $inversed_fg_color; 274 275stackswitcher button { margin: -4px 0; } 276} 277 278.powerstrip button { 279margin: 2px 0 1px; 280padding: ($large_size - 24px) / 2; 281} 282 283.option-subtitle { font-size: smaller; } 284} 285 286// Calendar 287calendar.raven-calendar { 288// padding: 3px; 289border-style: none; 290background-color: transparent; 291 292&:selected { 293border-radius: 2px; 294background-color: $primary_color; 295} 296} 297 298// MPRIS Applet 299.raven-mpris { 300color: white; 301background-color: scale-alpha(black, $middle_opacity); 302 303label { min-height: 24px; } 304 305button.image-button { padding: ($large_size - 24px) / 2; } 306} 307 308// Notifications 309.budgie-notification-window { background-color: transparent; } 310 311.budgie-notification { 312.notification-title { font-size: 120%; } 313 314.notification-body { @extend .dim-label; } 315} 316 317.drop-shadow { 318margin: 5px 9px; 319padding: 3px; 320border-radius: 2px; 321box-shadow: $z-depth-2, inset 0 1px $highlight_color; 322background-color: $lighter_bg_color; 323 324button { @extend %simple_flat_button; } 325 326.linked > button { border-radius: 2px; } 327} 328 329%budgie_dialog { 330border-radius: 2px; 331background-color: $lighter_bg_color; 332 333decoration { border-radius: 2px; } 334} 335 336// Session Dialog 337.budgie-session-dialog { 338@extend %budgie_dialog; 339 340label:not(:last-child), 341.dialog-title { font-size: 120%; } 342 343.linked.horizontal > button { 344padding: 8px 16px; 345border-top: 1px solid $borders_color; 346border-radius: 0; 347 348@extend %simple_flat_button; 349 350&:first-child { border-bottom-left-radius: 2px; } 351 352&:last-child { border-bottom-right-radius: 2px; } 353} 354} 355 356// PolKit Dialog 357.budgie-polkit-dialog { 358@extend %budgie_dialog; 359 360.message { color: $tertiary_fg_color; } 361 362.failure { color: $destructive_color; } 363} 364 365// Run Dialog 366.budgie-run-dialog { 367@extend %budgie_dialog; 368 369background-color: $base_color; 370 371entry.search { 372font-size: 120%; 373padding: 0 + $container_padding 8px + $container_padding; 374box-shadow: inset 0 1px $highlight_color; 375background-color: transparent; 376} 377 378list .dim-label { opacity: 1; } 379 380scrolledwindow { border-top: 1px solid $borders_color; } 381} 382