File: large-pathbar.css

package info (click to toggle)
dconf-editor 49.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 7,904 kB
  • sloc: xml: 446; sh: 21; makefile: 4
file content (194 lines) | stat: -rw-r--r-- 5,184 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
/*
  This file is part of Dconf Editor

  Dconf Editor is free software: you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
  the Free Software Foundation, either version 3 of the License, or
  (at your option) any later version.

  Dconf Editor is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  GNU General Public License for more details.

  You should have received a copy of the GNU General Public License
  along with Dconf Editor.  If not, see <https://www.gnu.org/licenses/>.
*/

/*\
* * main large-window stuff
\*/

                       .pathbar {
  border-width:1px;
  border-style:solid;
  border-radius:3px;

  padding:0;
  margin:6px 0;

  /* nautilus/src/resources/css/Adwaita.css:71 .path-bar-box uses 200ms */
  transition: background-color 0.3s,
              color            0.3s,
              border-color     0.3s;
  border-color:transparent;
}

.large-window          .pathbar {
  background-color:@theme_bg_color;
  color           :@theme_fg_color;
  border-color    :@borders;
}

.large-window:backdrop .pathbar {
  background-color:@theme_unfocused_bg_color;
  color           :@theme_unfocused_fg_color;
  border-color    :@unfocused_borders;
}

/*\
* * items generic init and hacks
\*/

/* transition hacks */
box.pathbar         > button,
box.pathbar         > label {
  transition:all 0 ease;
}

/* button config */
.pathbar            > button {
  padding:0 0.1em;
  margin :0 0.1em;

  outline-offset:-4px;

  border-radius:0;

  border:none;
  border-color:transparent;
  box-shadow:none;
  background:none;
  background-color:transparent;
  color:currentColor;
}

button.invisible {
  padding:0;
  min-width:0;

  border:none;
  border-color:transparent;
  box-shadow:none;
  background:none;
  background-color:transparent;
  color:currentColor;
}

button.invisible.invisible-menu-button {
  background-repeat:no-repeat;
  background-size:1.1rem;
  background-image:-gtk-icontheme("pan-down-symbolic");
}
button.invisible.invisible-menu-button:dir(ltr) { padding-left :1.4rem; background-position:0    center; }
button.invisible.invisible-menu-button:dir(rtl) { padding-right:1.4rem; background-position:100% center; }

/* items hacks */
.thin-window.startup .pathbar  > button                         > label.item { /* class remove after 0.3s */
  transition:padding             0s;
}

.thin-window .pathbar          > button                         > label.item {
  padding:2px 1px;
}

/*\
* * border bottom
\*/

.pathbar                > button                                > label.item {
  border-width:3px 2px;
  border-radius:0;
  padding:2px 4px;
  border-style:solid;
  border-color:transparent;
  transition:border-bottom-color 0.3s,
             padding             0.2s;  /* needs to be a bit faster */
}

.pathbar                > button:hover                          > label.item {
  border-bottom-color:alpha(currentColor, 0.15);
}

.pathbar                > button.active                         > label.item,
.pathbar                > button.active:hover                   > label.item,
.pathbar                > button.active.inexistent              > label.item,
.pathbar                > button.active.inexistent:hover        > label.item {
  border-bottom-color:@theme_selected_bg_color;
}

.pathbar:backdrop       > button.active                         > label.item,
.pathbar:backdrop       > button.active:hover                   > label.item,
.pathbar:backdrop       > button.active.inexistent              > label.item,
.pathbar:backdrop       > button.active.inexistent:hover        > label.item {
  border-bottom-color:alpha(currentColor, 0.15);
}

.pathbar                > button.inexistent:not(.active):hover  > label.item {
  border-bottom-color:transparent;
}

.pathbar.config         > button.active                         > label.item {
  border-bottom-style:dashed;
}

/*\
* * root button
\*/

/* general stuff */
              .pathbar  > button.root-button                    > label.item {
  padding-left:3px;
  transition:border-width 0 ease, padding 0 ease;
  background-position:50% center;
  margin-left:0;
  margin-right:0;
  background-image:-gtk-icontheme("ca.desrt.dconf-editor-symbolic");
  background-size:1.1rem;
  background-repeat:no-repeat;
  min-width:1.1rem;
}

.large-window .pathbar  > button.root-button                    > label.item {
  padding-left:5px;
  border-left-width:0;
  background-position:60% center;
}

/* rtl/ltr specificities */
.pathbar:dir(ltr)       > button.root-button { padding-left :0; margin-left :0; }
.pathbar:dir(rtl)       > button.root-button { padding-right:0; margin-right:0; }

/*\
* * special texts "colors"
\*/

/* slash */
.pathbar                > label {
  opacity:0.55;
}
.pathbar:backdrop       > label {
  opacity:0.8;
}

/* removed paths */
.pathbar                > button.inexistent:not(.active)        > label.item {
  opacity:0.7;
}
.pathbar:backdrop       > button.inexistent:not(.active)        > label.item {
  opacity:1.0;
}

/*\
* * the end
\*/