Codebase list sugar-artwork / ee39fc4
Merge pull request #81 from samdroid-apps/css-node-entry Migrate entry styles to "css nodes" Ignacio Rodríguez 8 years ago
1 changed file(s) with 15 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
175175
176176 /* Spin buttons */
177177
178 spinbutton button,
178179 .spinbutton.button {
179180 border-radius: 0px;
180181 border-width: 0px;
182183 background-color: @button_grey;
183184 }
184185
186 spinbutton button:last-child,
185187 .spinbutton.button:last-child {
186188 border-radius: 0px $(2*subcell_size)px $(2*subcell_size)px 0px;
187189 border-width: 0px 0px 0px $(thickness)px;
190192 }
191193
192194
195 spinbutton button:active,
193196 .spinbutton.button:active {
194197 background-color: @black;
195198 }
196199
200 spinbutton button:insensitive,
197201 .spinbutton.button:insensitive {
198202 background-color: @selection_grey;
199203 }
238242 background-color: @row_odd;
239243 }
240244
245 entry,
241246 .entry {
242247 border-radius: $(2 * subcell_size)px;
243248 border-width: $(thickness)px;
250255 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;
251256 }
252257
258 entry progress,
253259 .entry.progressbar {
254260 border-radius: $(2 * subcell_size)px;
255261 border-width: $(thickness)px;
256262 background-color: @selection_grey;
257263 }
258264
265 entry:focused,
259266 .entry:focused {
260267 background-color: @white;
261268 }
262269
270 .toolbar entry:focused,
263271 .toolbar .entry:focused {
264272 border-color: @white;
265273 }
266274
275 entry:insensitive,
267276 .entry:insensitive {
268277 background-color: @button_grey;
269 }
270
271 .entry:insensitive {
272278 border-color: @button_grey;
273279 }
274280
277283 color: @black;
278284 }
279285
286 entry:selected,
287 entry:selected:focused,
280288 .entry:selected,
281289 .entry:selected:focused,
282290 .view:selected:focused {
284292 color: @black;
285293 }
286294
295 entry:selected,
296 entry:selected:focused
287297 .entry:selected,
288298 .entry:selected:focused {
289299 border-color: @selection_grey;
477487 background-color: @button_grey;
478488 }
479489
490 .menuitem separator,
480491 .menuitem.separator {
481492 padding: 0;
482493 }
549560
550561 /* Separators */
551562
563 separator,
552564 .separator {
553565 border-style: solid;
554566 border-color: @button_grey;