| 1 |
@charset "UTF-8"; |
| 2 |
|
| 3 |
/*********** |
| 4 |
* Sidebar * |
| 5 |
***********/ |
| 6 |
|
| 7 |
@mixin selected-item-highlight { |
| 8 |
@if $new-highlight { |
| 9 |
background-color: gtk("@theme_selected_bg_color"); |
| 10 |
color: gtk("@theme_button_foreground_active"); |
| 11 |
border-right: 3px |
| 12 |
solid |
| 13 |
gtk("@theme_button_decoration_focus"); |
| 14 |
border-top: 0; |
| 15 |
border-bottom: 0; |
| 16 |
border-left: 0; |
| 17 |
border-radius: 0px; |
| 18 |
} |
| 19 |
} |
| 20 |
@mixin selected-item-highlight-rtl { |
| 21 |
@if $new-highlight { |
| 22 |
background-color: gtk("@theme_selected_bg_color"); |
| 23 |
color: gtk("@theme_button_foreground_active"); |
| 24 |
border-left: 3px |
| 25 |
solid |
| 26 |
gtk("@theme_button_decoration_focus"); |
| 27 |
border-top: 0; |
| 28 |
border-bottom: 0; |
| 29 |
border-right: 0; |
| 30 |
border-radius: 0px; |
| 31 |
} |
| 32 |
} |
| 33 |
|
| 34 |
.sidebar { |
| 35 |
border-radius: 0px; |
| 36 |
border-style: none; |
| 37 |
background-color: gtk("@theme_base_color"); |
| 38 |
|
| 39 |
&:selected { |
| 40 |
@extend %selected_items; |
| 41 |
} |
| 42 |
|
| 43 |
&:not(separator) { |
| 44 |
&:dir(ltr), |
| 45 |
&.left, |
| 46 |
&.left:dir(rtl) { |
| 47 |
border-right: 1px |
| 48 |
solid |
| 49 |
gtk("@borders"); |
| 50 |
border-left: none; |
| 51 |
} |
| 52 |
|
| 53 |
&:dir(rtl), |
| 54 |
&.right { |
| 55 |
border-left: 1px |
| 56 |
solid |
| 57 |
gtk("@borders"); |
| 58 |
border-right: none; |
| 59 |
} |
| 60 |
} |
| 61 |
|
| 62 |
.sidebar-header > separator { |
| 63 |
background-color: $ligh_border_color; |
| 64 |
} |
| 65 |
|
| 66 |
row { |
| 67 |
&:hover { |
| 68 |
} |
| 69 |
|
| 70 |
&.activatable { |
| 71 |
border: 0; |
| 72 |
&:dir(ltr) { |
| 73 |
border-right: 3px solid transparent; |
| 74 |
} |
| 75 |
&:dir(rtl) { |
| 76 |
border-left: 3px solid transparent; |
| 77 |
} |
| 78 |
|
| 79 |
&.has-open-popup, // this is for indicathing which row generated a popover see https://bugzilla.gnome.org/show_bug.cgi?id=754411 |
| 80 |
|
| 81 |
&:hover:dir(ltr) { |
| 82 |
@include selected-item-highlight(); |
| 83 |
} |
| 84 |
&:hover:dir(rtl) { |
| 85 |
@include selected-item-highlight-rtl(); |
| 86 |
} |
| 87 |
|
| 88 |
&:active:dir(ltr) { |
| 89 |
@include selected-item-highlight(); |
| 90 |
} |
| 91 |
&:active:dir(rtl) { |
| 92 |
@include selected-item-highlight-rtl(); |
| 93 |
} |
| 94 |
|
| 95 |
&:selected { |
| 96 |
&:dir(ltr) { |
| 97 |
@include selected-item-highlight(); |
| 98 |
} |
| 99 |
&:dir(rtl) { |
| 100 |
@include selected-item-highlight-rtl(); |
| 101 |
} |
| 102 |
|
| 103 |
&:active { |
| 104 |
&:dir(ltr) { |
| 105 |
@include selected-item-highlight(); |
| 106 |
} |
| 107 |
&:dir(rtl) { |
| 108 |
@include selected-item-highlight-rtl(); |
| 109 |
} |
| 110 |
} |
| 111 |
|
| 112 |
&.has-open-popup, |
| 113 |
&:hover { |
| 114 |
&:dir(ltr) { |
| 115 |
@include selected-item-highlight(); |
| 116 |
} |
| 117 |
&:dir(rtl) { |
| 118 |
@include selected-item-highlight-rtl(); |
| 119 |
} |
| 120 |
} |
| 121 |
|
| 122 |
&:backdrop { |
| 123 |
background-color: gtk( |
| 124 |
"@theme_unfocused_selected_bg_color_alt" |
| 125 |
); |
| 126 |
} |
| 127 |
} |
| 128 |
} |
| 129 |
|
| 130 |
&:selected { |
| 131 |
@extend %selected_items; |
| 132 |
} |
| 133 |
} |
| 134 |
paned & { &.left, &.right, &.left:dir(rtl), &:dir(rtl), &:dir(ltr), & { border-style: none; }} |
| 135 |
} |
| 136 |
separator.sidebar { |
| 137 |
background-color: gtk("@borders"); |
| 138 |
} |
| 139 |
|
| 140 |
// Places sidebar is a special case, since the view here have to look like chrome not content, so we override text color |
| 141 |
placessidebar { |
| 142 |
> viewport.frame { |
| 143 |
border-style: none; |
| 144 |
} |
| 145 |
|
| 146 |
row { |
| 147 |
// Needs overriding of the GtkListBoxRow padding |
| 148 |
min-height: 36px; |
| 149 |
padding: 0px; |
| 150 |
|
| 151 |
// Using margins/padding directly in the SidebarRow |
| 152 |
// will make the animation of the new bookmark row jump |
| 153 |
> revealer { |
| 154 |
padding: 0 14px; |
| 155 |
} |
| 156 |
|
| 157 |
&:selected { |
| 158 |
color: gtk("@theme_selected_fg_color"); |
| 159 |
} |
| 160 |
|
| 161 |
&:disabled { |
| 162 |
color: gtk("@insensitive_fg_color"); |
| 163 |
} |
| 164 |
|
| 165 |
&:backdrop { |
| 166 |
color: gtk("@theme_unfocused_fg_color"); |
| 167 |
|
| 168 |
&:selected { |
| 169 |
color: gtk( |
| 170 |
"@theme_unfocused_selected_bg_color_alt" |
| 171 |
); |
| 172 |
} |
| 173 |
|
| 174 |
&:disabled { |
| 175 |
color: gtk("@insensitive_unfocused_fg_color"); |
| 176 |
} |
| 177 |
} |
| 178 |
|
| 179 |
image.sidebar-icon { |
| 180 |
&:dir(ltr) { |
| 181 |
padding-right: 8px; |
| 182 |
} |
| 183 |
&:dir(rtl) { |
| 184 |
padding-left: 8px; |
| 185 |
} |
| 186 |
} |
| 187 |
|
| 188 |
label.sidebar-label { |
| 189 |
&:dir(ltr) { |
| 190 |
padding-right: 2px; |
| 191 |
} |
| 192 |
&:dir(rtl) { |
| 193 |
padding-left: 2px; |
| 194 |
} |
| 195 |
} |
| 196 |
|
| 197 |
@at-root button.sidebar-button { |
| 198 |
@include neobutton(toolbutton); |
| 199 |
|
| 200 |
min-height: 26px; |
| 201 |
min-width: 26px; |
| 202 |
margin-top: 3px; |
| 203 |
margin-bottom: 3px; |
| 204 |
padding: 0; |
| 205 |
} |
| 206 |
|
| 207 |
// in the sidebar case it makes no sense to click the selected row |
| 208 |
&:selected:active { |
| 209 |
box-shadow: none; |
| 210 |
} |
| 211 |
|
| 212 |
&.sidebar-placeholder-row { |
| 213 |
padding: 0 8px; |
| 214 |
min-height: 2px; |
| 215 |
background-image: none; |
| 216 |
background-clip: content-box; |
| 217 |
} |
| 218 |
|
| 219 |
&.sidebar-new-bookmark-row { |
| 220 |
color: gtk("@theme_selected_bg_color"); |
| 221 |
} |
| 222 |
|
| 223 |
// &:drop(active):not(:disabled) { |
| 224 |
// color: $drop_target_color; |
| 225 |
// box-shadow: inset 0 1px $drop_target_color, |
| 226 |
// inset 0 -1px $drop_target_color; |
| 227 |
// |
| 228 |
// &:selected { |
| 229 |
// color: $selected_fg_color; |
| 230 |
// background-color: $drop_target_color; |
| 231 |
// } |
| 232 |
// } |
| 233 |
} |
| 234 |
} |
| 235 |
|
| 236 |
placesview { |
| 237 |
.server-list-button > image { |
| 238 |
-gtk-icon-transform: rotate(0turn); |
| 239 |
} |
| 240 |
|
| 241 |
.server-list-button:checked > image { |
| 242 |
-gtk-icon-transform: rotate(-0.5turn); |
| 243 |
} |
| 244 |
|
| 245 |
row.activatable:hover { |
| 246 |
background-color: transparent; |
| 247 |
} |
| 248 |
|
| 249 |
// this selects the "connect to server" label |
| 250 |
> actionbar > revealer > box > label { |
| 251 |
padding-left: 8px; |
| 252 |
padding-right: 8px; |
| 253 |
} |
| 254 |
} |
| 255 |
|
| 256 |
stacksidebar { |
| 257 |
&.sidebar { |
| 258 |
row { |
| 259 |
padding: 10px 4px; |
| 260 |
> label { |
| 261 |
padding-left: 6px; |
| 262 |
padding-right: 6px; |
| 263 |
} |
| 264 |
&.needs-attention > .label { |
| 265 |
@extend %needs_attention; |
| 266 |
background-size: 6px 6px, 0 0; |
| 267 |
} |
| 268 |
} |
| 269 |
} |
| 270 |
} |