_gnome.scss
ASCII text
1/** 2* Nautilus 3*/ 4 5// based css: 6// https://gitlab.gnome.org/GNOME/nautilus/blob/master/src/resources/css/Adwaita.css 7// hard-coded css: 8// https://gitlab.gnome.org/GNOME/nautilus/blob/master/src/resources/css/nautilus.css 9 10.nautilus-window, 11.nautilus-window notebook, 12.nautilus-window notebook > stack { 13// background-color: $surface-z0; 14} 15 16.nautilus-canvas-item { 17// border-radius: $corner-radius; 18} 19 20.nautilus-canvas-item.dim-label, 21.nautilus-list-dim-label { 22color: hint($on-surface); 23} 24 25.nautilus-desktop.nautilus-canvas-item { 26@extend %iconview-desktop; 27} 28 29// Toolbar 30 31@keyframes nautilus-operations-button-needs-attention { 32to { 33background-color: overlay("focus", $on-titlebar); 34} 35} 36 37.nautilus-operations-button-needs-attention { 38animation: nautilus-operations-button-needs-attention $ripple-fade-out-duration $ease 2 alternate; 39} 40 41.nautilus-operations-button-needs-attention-multiple { 42animation: nautilus-operations-button-needs-attention $ripple-fade-out-duration $ease 6 alternate; 43} 44 45.linked:not(.vertical) > button:not(.suggested-action):not(.destructive-action):not(:only-child).disclosure-button { 46border-radius: $circular-radius; 47} 48 49// Path bar 50 51.path-bar-box { 52transition: background-color $duration $ease-out; 53margin: $container-padding 0; 54border-radius: $corner-radius; 55 56// reset the margin 57button { 58margin: 0; 59} 60 61&.width-maximized { 62background-color: entry-fill($on-titlebar); 63} 64 65// workaround for 3.30.1 66&.background.frame { 67border-style: none; 68background-color: entry-fill($on-titlebar); 69} 70 71// for 3.30 72.path-bar button { 73label:not(:only-child) { 74&:first-child { 75margin-left: 0; 76} 77 78&:last-child { 79margin-right: 0; 80} 81} 82} 83 84// for 3.32 85.nautilus-path-bar button:not(.suggested-action):not(.destructive-action) { 86padding-left: ($medium-size - 24px) / 2; 87padding-right: ($medium-size - 24px) / 2; 88 89&.text-button { 90min-width: 0; 91} 92 93label:not(:only-child) { 94&:first-child { 95margin-left: 0; 96} 97 98&:last-child { 99margin-right: 0; 100} 101} 102 103&.text-button.image-button image:not(:only-child) { 104margin: 0; 105} 106 107&:last-child:dir(ltr), 108&:first-child:dir(rtl) { 109@extend %titlebar-button-checked; 110} 111} 112} 113 114// Floating status bar 115.nautilus-window .floating-bar { 116min-height: 32px; 117padding: 0; 118border-style: solid solid none; 119border-width: 1px; 120border-color: divider($on-surface); 121border-radius: ($corner-radius + 1px) ($corner-radius + 1px) 0 0; 122background-clip: padding-box; 123background-color: $surface-z8; 124 125// axes left border and border radius 126&.bottom.left { 127margin-right: 8px - 1px; 128border-left-style: none; 129border-top-left-radius: 0; 130} 131 132// axes right border and border radius 133&.bottom.right { 134margin-left: 8px - 1px; 135border-right-style: none; 136border-top-right-radius: 0; 137} 138 139button { 140margin: (32px - $small-size) / 2; 141 142@extend %button-small; 143} 144} 145 146.disk-space-display { 147// border-style: solid; 148// border-width: 2px; 149 150&.unknown { 151background-color: stroke($on-surface); 152color: stroke($on-surface); 153} 154 155&.used { 156background-color: $primary; 157color: $primary; 158} 159 160&.free { 161background-color: fill($on-surface); 162color: fill($on-surface); 163} 164} 165 166// View 167// Hide superfluous treeview drop target indication 168.nautilus-list-view .view:not(.dnd) { 169// border-bottom: 1px solid divider($on-surface); 170} 171 172.search-information { 173padding: 2px; 174border-bottom: 1px solid divider($on-surface); 175} 176 177.documents-entry-tag { 178@extend .entry-tag; 179} 180 181.conflict-row:not(:selected) { 182background-color: mix($warning, $surface-z1, percentage(.3)); 183} 184 185// Icon view 186.nautilus-window flowboxchild { 187.icon-background { 188// background-color: black; 189} 190 191.icon-item-background { 192padding: 4px; 193border-radius: $corner-radius; 194} 195 196&:selected { 197background-color: transparent; 198 199.icon-item-background { 200background-color: $overlay-selected; 201} 202} 203} 204 205// Batch rename dialog 206dialog.background > box.dialog-vbox.vertical > grid.horizontal { 207> scrolledwindow.frame { 208border-style: none; 209} 210 211> box.horizontal:last-child { 212margin: -6px 0 0 -6px; 213border-top: 1px solid divider($on-surface); 214 215> label { 216margin: 0 8px; 217} 218 219> box > button { 220border-radius: 0; 221} 222} 223} 224 225// Tweak to fix the messy sizing of the popover menu 226.nautilus-window > popover.menu:not(:last-child) { 227padding: 3px; 228 229> stack > box > box > box { 230margin-top: -6px; 231 232> box { 233margin-bottom: -6px; 234 235&.linked { 236margin-top: 1px; 237} 238} 239} 240 241separator { 242margin-bottom: -2px; 243} 244} 245 246.nautilus-menu-sort-heading { 247// min-height: 26px; 248// padding-left: 5px; 249// padding-right: 5px; 250margin: 1px 3px; 251font-weight: 500; 252 253&:disabled { 254color: hint($on-surface); 255} 256} 257 258// Make operations button circular 259.nautilus-window headerbar revealer > button { 260border-radius: $circular-radius; 261} 262 263// Ensure paned separator rendering. See issue #84 for details. 264.nautilus-window paned > separator { 265background-color: $surface-z0; 266} 267 268 269/** 270* gedit 271*/ 272 273// based css: 274// https://gitlab.gnome.org/GNOME/gedit/blob/master/gedit/resources/css/gedit.adwaita.css 275// hard-coded css: 276// https://gitlab.gnome.org/GNOME/gedit/blob/master/gedit/resources/css/gedit-style.css 277 278// Only normal state is handle 279.open-document-selector-name-label { 280// font-weight: bold; 281} 282 283// Only normal state is handle 284.open-document-selector-path-label { 285color: hint($on-surface); 286font-size: smaller; 287} 288 289// Only normal state is handle 290.open-document-selector-match { 291background-color: $warning; 292color: $on-warning; 293} 294 295.gedit-document-panel { 296// Try to look as the notebook tab close button 297row button.flat { 298margin-top: 8px; 299margin-bottom: 8px; 300 301@extend %button-small; 302} 303} 304 305.gedit-document-panel-group-row:not(:first-child) { 306border-top: 1px solid divider($on-surface); 307} 308 309.gedit-side-panel-paned statusbar { 310border-top: 1px solid divider($on-surface); 311} 312 313.gedit-search-slider { 314margin: 4px 4px 8px; 315 316.linked:not(.vertical) > entry { 317border-radius: $corner-radius; 318@extend %entry_raised; 319 320.gedit-search-entry-occurrences-tag { 321all: unset; 322color: hint($on-surface); 323} 324 325$buttons_width: $small-size * 2 + $container-padding * 3; 326 327&:dir(ltr) { 328margin-right: -$buttons_width; 329padding-right: $buttons_width; 330 331.gedit-search-entry-occurrences-tag { 332margin-left: $container-padding; 333} 334 335image.right { 336margin-right: 0; 337} 338} 339 340&:dir(rtl) { 341margin-left: -$buttons_width; 342padding-left: $buttons_width; 343 344.gedit-search-entry-occurrences-tag { 345margin-right: $container-padding; 346} 347 348image.left { 349margin-left: 0; 350} 351} 352 353&:not(.error) { 354background-color: $surface-z8; 355} 356 357&.error ~ button { 358color: hint($on-error); 359@include ink-color($on-error, $button-style: "flat"); 360 361&:disabled { 362color: disabled-hint($on-error); 363} 364} 365} 366 367.linked:not(.vertical) > button { 368border: solid $container-padding transparent; 369border-radius: $circular-radius; 370background-clip: padding-box; 371 372@extend %button-flat-basic; 373@extend %button-small; 374 375&:last-child:dir(ltr), 376&:not(:first-child):dir(rtl) { 377margin-left: -$container-padding / 2; 378} 379 380&:first-child:dir(rtl), 381&:not(:last-child):dir(ltr) { 382margin-right: -$container-padding / 2; 383} 384} 385} 386 387frame.gedit-map-frame > border { 388&:dir(ltr) { 389border-style: none none none solid; 390} 391 392&:dir(rtl) { 393border-style: none solid none none; 394} 395} 396 397/** 398* Tweaks 399*/ 400 401// hard-coded css: 402// https://gitlab.gnome.org/GNOME/gnome-tweaks/blob/master/data/shell.css 403 404// the sidebar 405.tweak-categories { 406// padding: 4px 0; 407// background-color: shade(@theme_bg_color, 0.99); 408background-image: image($surface-z0); 409 410separator { 411@extend %hide_separators; 412} 413} 414 415.tweak { 416// padding-top: 3px; 417padding: 3px; 418 419&.title:hover { 420box-shadow: none; 421} 422} 423 424.tweak-group-white, 425.tweak-white, 426.tweak-white:hover { 427// background-color: white; 428background-image: image($surface-z1); 429} 430 431.tweak-startup, 432.tweak-startup:hover { 433// background-color: lighter(shade(@theme_bg_color, 0.9)); 434background-image: image($surface-z1); 435} 436 437.tweak-group-startup { 438border: 1px solid divider($on-surface); 439background-clip: padding-box; 440// background-color: @view_separators; 441background-image: image($surface-z1); 442} 443 444// 445// Workaround for 3.26 446// 447 448row#Focus, 449row#ClickMethod, 450row#StaticWorkspaceTweak, // for 3.26.0 451row#dynamic-workspaces, 452row#PrimaryWorkspaceTweak, // for 3.26.0 453row#workspaces-only-on-primary { 454padding: 0; 455border: 1px solid divider($on-surface); 456background-clip: padding-box; 457background-image: image($surface-z1); 458 459row:not(:last-child) { 460border-bottom: 1px solid divider($on-surface); 461} 462 463&.tweak > list { 464margin-top: -3px; 465} 466} 467 468// Add more spaces between title and list 469row#Focus, 470row#ClickMethod, 471row#PrimaryWorkspaceTweak, // for 3.26.0 472row#workspaces-only-on-primary { 473margin-top: 4px; 474} 475 476// Workaround for gnome-tweaks >= 3.34 477// See https://github.com/nana-4/materia-theme/issues/432 478leaflet.titlebar > .titlebar.tweak-titlebar-left, 479leaflet.titlebar > .titlebar.tweak-titlebar-right, 480hdyleaflet.titlebar > .titlebar.tweak-titlebar-left, 481hdyleaflet.titlebar > .titlebar.tweak-titlebar-right { 482background-color: inherit; 483box-shadow: inherit; 484// Remove only background-color transition. 485// This shouldn't be necessary, but otherwise it gets lag... 486transition: color $duration $ease-out; 487 488+ separator { 489background-color: inherit; 490background-image: image(divider($on-titlebar)); 491} 492} 493 494/** 495* Builder 496*/ 497 498// based css for 3.22: 499// https://gitlab.gnome.org/GNOME/gnome-builder/tree/gnome-builder-3-22/data/theme 500// based css for 3.24: 501// https://gitlab.gnome.org/GNOME/gnome-builder/tree/gnome-builder-3-24/data/theme 502// based css for 3.26: 503// https://gitlab.gnome.org/GNOME/gnome-builder/tree/gnome-builder-3-26/data/themes 504 505// Layout tab and tab bar tweaks 506// The following makes the layout stack header look similar to a tab bar. 507layouttabbar { 508border-bottom: 1px solid divider($on-surface); 509background-color: $surface-z0; 510 511button { 512@extend %button-flat-activatable; 513} 514 515> box > button { 516margin: (40px - $medium-size) / 2 0; 517// border-radius: 0; 518} 519} 520 521layouttab { 522margin: 0 8px; // not working 523border-style: none solid; 524border-width: 1px; 525border-color: divider($on-surface); 526box-shadow: inset 0 -2px $primary; 527background-color: $surface-z1; 528 529separator.vertical { 530margin: 8px 4px; 531} 532 533button { 534&, 535&.text-button, 536&.image-button { 537margin-top: 8px; 538margin-bottom: 8px; 539padding: 0 4px; 540} 541} 542 543// Close button styling for layouttab. 544> box > button.close { 545// border-radius: $circular-radius; 546} 547} 548 549layout { 550border: 1px solid divider($on-surface); 551-PnlDockBin-handle-size: 1; 552} 553 554entry.search-missing { 555background-color: $error; 556color: $on-error; 557} 558 559// tweak icons for treeviews 560window.workbench treeview.image { 561color: hint($on-surface); 562} 563 564popover.popover-selector list { 565padding: 8px - 2px; 566 567row { 568border-radius: $corner-radius; 569 570image { 571&:dir(ltr) { 572margin-right: 6px; 573} 574 575&:dir(rtl) { 576margin-left: 6px; 577} 578} 579 580.accel { 581&:dir(ltr) { 582margin-left: 6px; 583} 584 585&:dir(rtl) { 586margin-right: 6px; 587} 588} 589} 590} 591 592omnibar { 593&.linked:not(.vertical) entry { 594border-radius: $corner-radius; 595} 596 597entry { 598color: hint($on-surface); 599} 600} 601 602popover.omnibar list row:not(:last-child) { 603border-bottom: 1px solid divider($on-surface); 604} 605 606entry.preferences-search { 607border-bottom: 1px solid divider($on-surface); 608box-shadow: none; 609background-color: transparent; 610 611// doesn't work properly 612&:dir(ltr) { 613// border-right: 1px solid divider($on-surface); 614} 615 616&:dir(rtl) { 617// border-left: 1px solid divider($on-surface); 618} 619} 620 621preferences stacksidebar.sidebar { 622list { 623// background-color: $surface-z0; 624} 625 626&:dir(ltr), 627&:dir(rtl) { 628list { 629border-style: none; 630} 631} 632 633list separator { 634@extend %hide_separators; 635} 636} 637 638preferences > box > box { 639&:dir(ltr) { 640border-right: 1px solid divider($on-surface); 641} 642 643&:dir(rtl) { 644border-left: 1px solid divider($on-surface); 645} 646} 647 648popover.messagepopover { 649&.background { 650padding: 0; 651} 652 653.popover-action-area button { 654@extend %button-flat-basic; 655 656padding: 8px 16px; 657border-top: 1px solid divider($on-surface); 658border-radius: 0; 659 660&:first-child { 661border-bottom-left-radius: $corner-radius; 662} 663 664&:last-child { 665border-bottom-right-radius: $corner-radius; 666} 667} 668 669.popover-content-area { 670margin: 16px; 671} 672} 673 674popover.transfers list { 675background-color: transparent; 676 677row:not(:first-child) { 678border-top: 1px solid divider($on-surface); 679} 680 681row > box { 682padding: 10px; 683} 684} 685 686dockbin { 687border: 1px solid divider($on-surface); 688-PnlDockBin-handle-size: 1; 689} 690 691dockpaned { 692border: 1px solid divider($on-surface); 693} 694 695eggsearchbar box.search-bar { 696padding: 0 8px; 697border-bottom: 1px solid divider($on-surface); 698background-color: $surface-z0; 699} 700 701docktabstrip { 702padding: 0 8px; 703border-bottom: 1px solid divider($on-surface); 704background-color: $surface-z0; 705} 706 707docktab { 708transition: $transition, 709background-size 0ms, 710background-image 0ms; 711min-height: $small-size; 712min-width: $small-size; 713margin-bottom: -1px; 714padding: $container-padding 6px; 715 716border-width: 1px; // for reorderable tabs 717border-color: transparent; // 718 719box-shadow: inset 0 -2px transparent; 720background-image: radial-gradient(circle, $primary 10%, transparent 0%); 721background-repeat: no-repeat; 722background-position: center; 723background-size: 0% 0%; 724 725color: hint($on-surface); 726font-weight: 500; 727 728&:hover { 729background-color: overlay("hover", $on-surface); 730} 731 732&:checked { 733transition: $transition, 734background-size $ripple-fade-in-duration $ease-out, 735background-image $ripple-fade-in-duration + $ripple-fade-out-duration $ease-out; 736box-shadow: inset 0 -2px $primary; 737background-color: transparent; 738background-image: radial-gradient(circle, transparent 10%, transparent 0%); 739background-size: 1000% 1000%; 740color: $on-surface; 741} 742} 743 744dockoverlayedge { 745background-color: $surface-z0; 746 747docktabstrip { 748padding: 0; 749border: none; 750} 751 752&.left-edge docktab:checked { 753box-shadow: inset -2px 0 $primary; 754} 755 756&.right-edge docktab:checked { 757box-shadow: inset 2px 0 $primary; 758} 759} 760 761pillbox { 762background-color: $surface-z0; 763border-radius: $corner-radius; 764} 765 766buildperspective row { 767// padding: 10px; 768} 769 770layoutpane entry.search { 771border-bottom: 1px solid divider($on-surface); 772box-shadow: none; 773background-color: $surface-z1; 774} 775 776editortweak entry.search { 777margin-bottom: -1px; 778box-shadow: none; 779background-color: transparent; 780} 781 782// 783// let's tweak hard-coded elements 784// 785 786.gb-search-entry-occurrences-tag { 787box-shadow: none; 788background-color: transparent; 789} 790 791// Keep search bar and layouttab height in sync. 792// layouttabbar > box, 793// eggsearchbar > revealer > box, 794docktabstrip { 795min-height: 39px; 796} 797 798eggsearchbar entry { 799// min-height: 24px; 800} 801 802window.workbench preferences preferencesgroup list entry { 803// background: none; 804// min-height: 0px; 805padding-top: 8px; 806padding-bottom: 8px; 807} 808 809button.run-arrow-button { 810// min-width: 12px; 811padding-left: ($medium-size - 16px) / 2; 812padding-right: ($medium-size - 16px) / 2; 813} 814 815// 816// Additional styles for 3.26 817// 818 819button.dzlmenubutton image { 820min-width: $medium-size - 6px; 821 822&.arrow { 823min-width: $medium-size - 9px; 824} 825} 826 827button.dzlmenubuttonitem { 828color: $on-surface; 829font-weight: normal; 830 831&:disabled { 832color: disabled($on-surface); 833} 834} 835 836idelayoutstackheader { 837border-bottom: 1px solid divider($on-surface); 838 839button:checked { 840color: $on-surface; 841} 842} 843 844// utilities stack switcher 845ideeditorutilities > dzldockpaned > box > stackswitcher { 846padding: 8px 0; 847background-color: $surface-z0; 848 849&:dir(ltr) { 850border-right: 1px solid divider($on-surface); 851} 852 853&:dir(rtl) { 854border-left: 1px solid divider($on-surface); 855} 856 857button { 858border-radius: 0; 859box-shadow: none; 860background-color: transparent; 861 862&:active { 863background-image: radial-gradient(circle, rgba($primary, .7) 10%, transparent 0%); 864} 865 866&:checked { 867background-color: transparent; 868color: $on-surface; 869} 870 871&:dir(ltr) { 872margin-right: -1px; 873 874&:checked { 875box-shadow: inset -2px 0 $primary; 876} 877} 878 879&:dir(rtl) { 880margin-left: -1px; 881 882&:checked { 883box-shadow: inset 2px 0 $primary; 884} 885} 886} 887} 888 889// buildui panel 890ideeditorsidebar notebook header { 891background: transparent; 892} 893 894popover.messagepopover { 895// padding: 0; 896 897list { 898border: 1px solid divider($on-surface); 899background-clip: padding-box; 900 901row:not(:last-child) { 902border-bottom: 1px solid divider($on-surface); 903} 904} 905} 906 907// Workaround for hard-coded .title color 908dzlsuggestionpopover > revealer > box > elastic > scrolledwindow > viewport > list > row:selected { 909.title { 910// color: @theme_selected_fg_color; 911} 912 913background-color: $primary; 914color: $on-primary; 915} 916 917// Workaround for hard-coded button background 918#titlebar_container .suggestionbutton button { 919// background-color: @content_view_bg; 920// background-image: none; 921 922padding: 0; 923border-radius: 0; 924box-shadow: inset 0 0 0 9999px $titlebar; 925 926&:backdrop { 927box-shadow: inset 0 0 0 9999px $titlebar-backdrop; 928} 929 930// For some reason background-image doesn't work well with transition :( 931image { 932transition: 933box-shadow $duration $ease-out, 934background-color $ripple-fade-in-duration $ease-out; 935min-width: $medium-size; 936min-height: $medium-size; 937border-radius: $circular-radius; 938box-shadow: inset 0 0 0 9999px transparent; 939} 940 941&:hover image { 942box-shadow: inset 0 0 0 9999px overlay("hover", $on-titlebar); 943} 944 945&:focus image { 946box-shadow: inset 0 0 0 9999px overlay("focus", $on-titlebar); 947} 948 949&:active image { 950background-color: overlay("pressed", $on-titlebar); 951} 952} 953 954/** 955* Photos 956*/ 957 958// based css: 959// https://gitlab.gnome.org/GNOME/gnome-photos/blob/master/data/Adwaita.css 960 961GdMainIconView.content-view { 962-GdMainIconView-icon-size: 48; 963 964// Make spinner visible on both dark and bright backgrounds w/o making 965// it look ugly/weird. 966&.cell:active { 967// color: disabled($on-surface); 968} 969} 970 971.documents-counter { 972margin: 8px; 973border-radius: $circular-radius; 974box-shadow: $shadow-z4; 975background-color: $primary; 976color: $on-primary; 977font-weight: bold; 978} 979 980.photos-entry-tag { 981@extend .entry-tag; 982} 983 984.documents-scrolledwin.frame { 985border-style: none; 986background-color: transparent; 987 988frame.content-view > border { 989border-style: none; 990background-color: transparent; 991} 992} 993 994.photos-icon-bg { 995} 996 997.photos-fade-in { 998opacity: 1; 999transition: opacity $duration $ease-out; 1000} 1001 1002.photos-fade-out { 1003opacity: 0; 1004transition: opacity $duration $ease-out; 1005} 1006 1007.photos-collection-icon { 1008} 1009 1010button.photos-filter-preview { 1011color: $on-surface; 1012font-weight: normal; 1013 1014&:checked { 1015background-color: $overlay-selected; 1016color: $on-surface; 1017 1018image { 1019color: $on-dark; 1020-gtk-icon-shadow: $text-shadow; 1021} 1022} 1023} 1024 1025overlay grid.horizontal > revealer > scrolledwindow.frame { 1026border-style: none; 1027background-color: transparent; 1028 1029&:dir(ltr) { 1030border-left-style: solid; 1031} 1032 1033&:dir(rtl) { 1034border-right-style: solid; 1035} 1036} 1037 1038/** 1039* Music 1040*/ 1041 1042// hard-coded css: 1043// https://gitlab.gnome.org/GNOME/gnome-music/blob/master/data/application.css 1044 1045.side-panel:dir(ltr) { 1046// border-width: 0 1px 0 0; 1047border-style: solid; 1048border-color: divider($on-surface); 1049} 1050 1051.side-panel:dir(rtl) { 1052// border-width: 0 0 0 1px; 1053border-style: solid; 1054border-color: divider($on-surface); 1055} 1056 1057.side-panel .view { 1058// background-color: mix(@theme_fg_color, @theme_bg_color, 0.9); 1059background-image: image($surface-z0); 1060 1061&:hover { 1062background-image: image(overlay("hover", $on-surface, $on: $surface-z0)); 1063} 1064} 1065 1066.side-panel .view:selected { 1067// background-color: mix(@theme_fg_color, @theme_bg_color, 0.5); 1068background-image: image($primary); 1069 1070&:hover { 1071background-image: image(overlay("hover", $on-primary, $on: $primary)); 1072} 1073} 1074 1075.songs-list { 1076// box-shadow: inset 0 -1px shade(@borders, 1.30); 1077// background-color: @theme_bg_color; 1078 1079&:hover { 1080background-image: image(overlay("hover", $on-surface)); 1081} 1082} 1083 1084frame.documents-dropdown { 1085@extend %toolbar-osd; 1086 1087margin: 8px; 1088 1089> border { 1090border: none; 1091} 1092} 1093 1094box.vertical > revealer > toolbar.search-bar { 1095border-bottom: 1px solid divider($on-surface); 1096 1097button > widget { 1098-gtk-icon-source: -gtk-icontheme("pan-down-symbolic"); 1099// -GtkArrow-arrow-scaling: 1; 1100} 1101} 1102 1103/** 1104* Terminal 1105*/ 1106 1107terminal-window notebook > header > box { 1108// Remove hard-coded margin around button(s) 1109margin: -2px; 1110 1111button { 1112border-radius: 0; 1113} 1114} 1115 1116/** 1117* To Do 1118*/ 1119 1120// less than 3.28 1121task-list-view { 1122taskrow { 1123transition: $transition; 1124margin: 0 -8px; 1125 1126&:hover { 1127transition: none; 1128} 1129 1130label { 1131margin: 0 8px; 1132} 1133 1134image.dim-label { 1135min-width: 16px; 1136} 1137} 1138 1139> box > revealer > box > button { 1140margin: (12px * 2 - $medium-size) / 2; 1141 1142.dim-label { 1143color: inherit; 1144} 1145} 1146} 1147 1148// 3.28 or later 1149tasklistview { 1150taskrow { 1151outline: none; 1152 1153entry { 1154&, 1155&:focus, 1156&:disabled { 1157box-shadow: none; 1158} 1159} 1160 1161image.dim-label { 1162min-width: 16px; 1163} 1164} 1165 1166> box > revealer > box > button { 1167margin: (12px * 2 - $medium-size) / 2; 1168 1169.dim-label { 1170color: inherit; 1171} 1172} 1173} 1174 1175/** 1176* eog 1177*/ 1178 1179#eog-thumb-nav { 1180scrolledwindow.frame { 1181border-top: none; 1182} 1183} 1184 1185/** 1186* Evolution 1187*/ 1188 1189frame.taskbar > border { 1190border-style: solid none none; 1191} 1192 1193box.vertical > paned.horizontal notebook widget .frame { 1194border-style: none; 1195} 1196 1197/** 1198* gitg 1199*/ 1200 1201frame.commit-frame > border { 1202border-style: solid none none; 1203} 1204 1205/** 1206* Characters 1207*/ 1208 1209box.dialog-vbox scrolledwindow.related { 1210border: 1px solid divider($on-surface); 1211background-clip: padding-box; 1212background-color: $surface-z1; 1213} 1214 1215list.categories { 1216background-image: image($surface-z0); 1217} 1218 1219/** 1220* Boxes 1221*/ 1222 1223.transparent-bg + stack overlay > label { 1224min-height: 24px; 1225padding: 0 4px; 1226border-radius: $corner-radius; 1227background-color: $scrim; 1228color: $on-scrim; 1229} 1230 1231/** 1232* Evince 1233*/ 1234 1235// Color is needed for Evince to match hardcoded background-color, 1236// since Documents app is also uses this style, background-color needs to be set accordingly. 1237evview.content-view.view:selected { 1238background-color: $primary; 1239color: $on-primary; 1240} 1241 1242/** 1243* Polari 1244*/ 1245 1246// hard-coded css: 1247// https://gitlab.gnome.org/GNOME/polari/blob/master/data/resources/application.css 1248 1249// background-color is needed to match hard-coded row colors. 1250// Just $primary is too harsh for activated rows, so add transparency. 1251.polari-room-list row:selected { 1252background-color: rgba($primary, .5); 1253} 1254 1255/** 1256* Fractal 1257*/ 1258 1259.message-input-area button { 1260@extend %button-flat-activatable; 1261} 1262 1263// To display the drop shadow 1264button.osd.scroll_button { 1265margin: 4px; 1266} 1267 1268/** 1269* Mines 1270*/ 1271 1272grid.minefield > button.tile { 1273border-style: solid; 1274} 1275