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