gtk-4.0/widgets/_file-chooser.scss 2.4 K raw
1
/****************
2
 * File chooser *
3
 ****************/
4
$_placesidebar_icons_opacity: 0.7;
5
6
placessidebar {
7
  > viewport.frame { border-style: none; }
8
9
  row {
10
    // Needs overriding of the GtkListBoxRow padding
11
    min-height: 36px;
12
    padding: 0px;
13
14
    // Using margins/padding directly in the SidebarRow
15
    // will make the animation of the new bookmark row jump
16
    > revealer { padding: 0 14px; }
17
18
    &:selected { color: $selected_fg_color; }
19
20
    &:disabled { color: $insensitive_fg_color; }
21
22
    &:backdrop {
23
      color: $backdrop_fg_color;
24
25
      &:selected { color: $backdrop_selected_fg_color; }
26
27
      &:disabled { color: $backdrop_insensitive_color; }
28
    }
29
30
    image.sidebar-icon {
31
      opacity: $_placesidebar_icons_opacity; // dim the device icons
32
33
      &:dir(ltr) { padding-right: 8px; }
34
      &:dir(rtl) { padding-left: 8px; }
35
    }
36
37
    label.sidebar-label {
38
      &:dir(ltr) { padding-right: 2px; }
39
      &:dir(rtl) { padding-left: 2px; }
40
    }
41
42
    @at-root button.sidebar-button {
43
      @extend %button_basic.flat;
44
45
      @extend %button_selected.flat;
46
47
      min-height: 26px;
48
      min-width: 26px;
49
      margin-top: 3px;
50
      margin-bottom: 3px;
51
      padding: 0;
52
      border-radius: 100%;
53
      -gtk-outline-radius: 100%;
54
55
      &:not(:hover):not(:active),
56
      &:backdrop { > image { opacity: $_placesidebar_icons_opacity; }}
57
    }
58
59
    // in the sidebar case it makes no sense to click the selected row
60
    &:selected:active { box-shadow: none; }
61
62
    &.sidebar-placeholder-row {
63
      padding: 0 8px;
64
      min-height: 2px;
65
      background-image: image($drop_target_color);
66
      background-clip: content-box;
67
    }
68
69
    &.sidebar-new-bookmark-row { color: $selected_bg_color; }
70
71
    &:drop(active):not(:disabled) {
72
      color: $drop_target_color;
73
      box-shadow: inset 0 1px $drop_target_color,
74
                  inset 0 -1px $drop_target_color;
75
76
      &:selected {
77
        color: $selected_fg_color;
78
        background-color: $drop_target_color;
79
      }
80
    }
81
  }
82
}
83
84
placesview {
85
  .server-list-button > image {
86
    transition: 200ms $ease-out-quad;
87
    -gtk-icon-transform: rotate(0turn);
88
  }
89
90
  .server-list-button:checked > image {
91
    transition: 200ms $ease-out-quad;
92
    -gtk-icon-transform: rotate(-0.5turn);
93
  }
94
95
  row.activatable:hover { background-color: transparent; }
96
97
  // this selects the "connect to server" label
98
  > actionbar > revealer > box > label {
99
    padding-left: 8px;
100
    padding-right: 8px;
101
  }
102
}