mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-16 21:50:34 +00:00
HighContrast: scale slider fix and cleanup
Set GtkScale margins on the .trough component so the .slider doesn't inherit them vanishing. Remove a bunch trailing white spaces in the process.
This commit is contained in:
parent
57171ad7e6
commit
d314625754
@ -1374,12 +1374,14 @@ GtkCheckButton.text-button, GtkRadioButton.text-button {
|
||||
-GtkRange-trough-border: 2;
|
||||
outline-offset: -9px;
|
||||
outline-radius: 4px;
|
||||
margin: 10px;
|
||||
|
||||
&.fine-tune {
|
||||
margin: 8px;
|
||||
outline-offset: -7px;
|
||||
outline-radius: 6px;
|
||||
&.trough { border-radius: 4px; }
|
||||
&.trough {
|
||||
border-radius: 4px;
|
||||
margin: 8px;
|
||||
}
|
||||
}
|
||||
&.slider {
|
||||
//FIXME: better gradient on the slider and hover state
|
||||
@ -1416,6 +1418,7 @@ GtkCheckButton.text-button, GtkRadioButton.text-button {
|
||||
}
|
||||
}
|
||||
&.trough {
|
||||
margin: 10px;
|
||||
border-width: 1px;
|
||||
border-style: solid;
|
||||
border-radius: 3px;
|
||||
@ -1453,20 +1456,20 @@ GtkCheckButton.text-button, GtkRadioButton.text-button {
|
||||
//FIXME: scale sliders
|
||||
|
||||
%scale_marks_above_horz {
|
||||
margin: 14px 10px 10px;
|
||||
&.fine-tune { margin: 12px 8px 8px; }
|
||||
.trough { margin: 14px 10px 10px; }
|
||||
&.fine-tune .trough { margin: 12px 8px 8px; }
|
||||
}
|
||||
%scale_marks_below_horz {
|
||||
margin: 10px 10px 14px;
|
||||
&.fine-tune { margin: 8px 8px 12px; }
|
||||
.trough { margin: 10px 10px 14px; }
|
||||
&.fine-tune .trough { margin: 8px 8px 12px; }
|
||||
}
|
||||
%scale_marks_above_vert {
|
||||
margin: 10px 10px 10px 14px;
|
||||
&.fine-tune { margin: 8px 8px 8px 12px; }
|
||||
.trough { margin: 10px 10px 10px 14px; }
|
||||
&.fine-tune .trough { margin: 8px 8px 8px 12px; }
|
||||
}
|
||||
%scale_marks_below_vert {
|
||||
margin: 10px 14px 10px 10px;
|
||||
&.fine-tune { margin: 8px 12px 8px 8px; }
|
||||
.trough { margin: 10px 14px 10px 10px; }
|
||||
&.fine-tune .trough { margin: 8px 12px 8px 8px; }
|
||||
}
|
||||
|
||||
/*****************
|
||||
|
@ -1468,18 +1468,17 @@ GtkCheckButton.text-button, GtkRadioButton.text-button {
|
||||
-GtkRange-slider-width: 20;
|
||||
-GtkRange-trough-border: 2;
|
||||
outline-offset: -9px;
|
||||
outline-radius: 4px;
|
||||
margin: 10px; }
|
||||
outline-radius: 4px; }
|
||||
.scale.fine-tune,
|
||||
.scale.scale-has-marks-above.scale-has-marks-below.fine-tune,
|
||||
.scale.vertical.scale-has-marks-above.scale-has-marks-below.fine-tune {
|
||||
margin: 8px;
|
||||
outline-offset: -7px;
|
||||
outline-radius: 6px; }
|
||||
.scale.fine-tune.trough,
|
||||
.scale.scale-has-marks-above.scale-has-marks-below.fine-tune.trough,
|
||||
.scale.vertical.scale-has-marks-above.scale-has-marks-below.fine-tune.trough {
|
||||
border-radius: 4px; }
|
||||
border-radius: 4px;
|
||||
margin: 8px; }
|
||||
.scale.slider,
|
||||
.scale.scale-has-marks-above.scale-has-marks-below.slider,
|
||||
.scale.vertical.scale-has-marks-above.scale-has-marks-below.slider {
|
||||
@ -1532,6 +1531,7 @@ GtkCheckButton.text-button, GtkRadioButton.text-button {
|
||||
.scale.trough,
|
||||
.scale.scale-has-marks-above.scale-has-marks-below.trough,
|
||||
.scale.vertical.scale-has-marks-above.scale-has-marks-below.trough {
|
||||
margin: 10px;
|
||||
border-width: 1px;
|
||||
border-style: solid;
|
||||
border-radius: 3px;
|
||||
@ -2181,5 +2181,3 @@ GtkColorChooserWidget #add-color-button {
|
||||
icon-shadow: none;
|
||||
border-color: transparent;
|
||||
transition-property: border, box-shadow, color; }
|
||||
|
||||
/*# sourceMappingURL=gtk.css.map */
|
||||
|
Loading…
Reference in New Issue
Block a user