Merge pull request #81 from samdroid-apps/css-node-entry
Migrate entry styles to "css nodes"
Ignacio RodrÃguez
8 years ago
175 | 175 | |
176 | 176 | /* Spin buttons */ |
177 | 177 | |
178 | spinbutton button, | |
178 | 179 | .spinbutton.button { |
179 | 180 | border-radius: 0px; |
180 | 181 | border-width: 0px; |
182 | 183 | background-color: @button_grey; |
183 | 184 | } |
184 | 185 | |
186 | spinbutton button:last-child, | |
185 | 187 | .spinbutton.button:last-child { |
186 | 188 | border-radius: 0px $(2*subcell_size)px $(2*subcell_size)px 0px; |
187 | 189 | border-width: 0px 0px 0px $(thickness)px; |
190 | 192 | } |
191 | 193 | |
192 | 194 | |
195 | spinbutton button:active, | |
193 | 196 | .spinbutton.button:active { |
194 | 197 | background-color: @black; |
195 | 198 | } |
196 | 199 | |
200 | spinbutton button:insensitive, | |
197 | 201 | .spinbutton.button:insensitive { |
198 | 202 | background-color: @selection_grey; |
199 | 203 | } |
238 | 242 | background-color: @row_odd; |
239 | 243 | } |
240 | 244 | |
245 | entry, | |
241 | 246 | .entry { |
242 | 247 | border-radius: $(2 * subcell_size)px; |
243 | 248 | border-width: $(thickness)px; |
250 | 255 | padding: $(2 * max(my_ceil((3*subcell_size - font_height - entry_ythickness*2)/2.0),0))px $(2 * max(subcell_size - entry_xthickness, 0))px $(2 * max(my_floor((3*subcell_size - font_height - entry_ythickness*2)/2.0), 0))px $(2 * max(subcell_size - entry_xthickness, 0))px; |
251 | 256 | } |
252 | 257 | |
258 | entry progress, | |
253 | 259 | .entry.progressbar { |
254 | 260 | border-radius: $(2 * subcell_size)px; |
255 | 261 | border-width: $(thickness)px; |
256 | 262 | background-color: @selection_grey; |
257 | 263 | } |
258 | 264 | |
265 | entry:focused, | |
259 | 266 | .entry:focused { |
260 | 267 | background-color: @white; |
261 | 268 | } |
262 | 269 | |
270 | .toolbar entry:focused, | |
263 | 271 | .toolbar .entry:focused { |
264 | 272 | border-color: @white; |
265 | 273 | } |
266 | 274 | |
275 | entry:insensitive, | |
267 | 276 | .entry:insensitive { |
268 | 277 | background-color: @button_grey; |
269 | } | |
270 | ||
271 | .entry:insensitive { | |
272 | 278 | border-color: @button_grey; |
273 | 279 | } |
274 | 280 | |
277 | 283 | color: @black; |
278 | 284 | } |
279 | 285 | |
286 | entry:selected, | |
287 | entry:selected:focused, | |
280 | 288 | .entry:selected, |
281 | 289 | .entry:selected:focused, |
282 | 290 | .view:selected:focused { |
284 | 292 | color: @black; |
285 | 293 | } |
286 | 294 | |
295 | entry:selected, | |
296 | entry:selected:focused | |
287 | 297 | .entry:selected, |
288 | 298 | .entry:selected:focused { |
289 | 299 | border-color: @selection_grey; |
477 | 487 | background-color: @button_grey; |
478 | 488 | } |
479 | 489 | |
490 | .menuitem separator, | |
480 | 491 | .menuitem.separator { |
481 | 492 | padding: 0; |
482 | 493 | } |
549 | 560 | |
550 | 561 | /* Separators */ |
551 | 562 | |
563 | separator, | |
552 | 564 | .separator { |
553 | 565 | border-style: solid; |
554 | 566 | border-color: @button_grey; |