mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-25 13:11:13 +00:00
reftests: Fix CSS for various tests
* :nth-child(first) => :first-child * :nth-child(last) => :last-child * Add semicolons at end of declarations * Remove spaces between color functions (shade, alpha, ...) and args
This commit is contained in:
parent
117fc68195
commit
0a440a804f
@ -10,19 +10,19 @@ button:nth-child(odd) {
|
||||
background-color: red;
|
||||
}
|
||||
|
||||
button:nth-child(first) {
|
||||
button:first-child {
|
||||
background-color: purple;
|
||||
}
|
||||
|
||||
button:nth-child(last):nth-child(even) {
|
||||
button:last-child:nth-child(even) {
|
||||
background-color: lime;
|
||||
}
|
||||
|
||||
button:nth-child(last):nth-child(odd) {
|
||||
button:last-child:nth-child(odd) {
|
||||
background-color: purple;
|
||||
}
|
||||
|
||||
button:nth-child(last):nth-child(first) {
|
||||
button:last-child:first-child {
|
||||
background-color: blue;
|
||||
}
|
||||
|
||||
|
@ -9,7 +9,7 @@
|
||||
}
|
||||
|
||||
.column1 {
|
||||
/* border-radius: 20px */;
|
||||
/* border-radius: 20px; */
|
||||
}
|
||||
|
||||
.column2 {
|
||||
@ -20,7 +20,7 @@
|
||||
box-shadow:
|
||||
rgba(0,0,0,1)
|
||||
15px 15px
|
||||
inset
|
||||
inset;
|
||||
}
|
||||
|
||||
.row3 {
|
||||
@ -28,7 +28,7 @@
|
||||
rgba(0,0,0,1)
|
||||
15px 15px 0
|
||||
10px /*spread*/
|
||||
inset
|
||||
inset;
|
||||
}
|
||||
|
||||
.reference-border {
|
||||
|
@ -1,11 +1,11 @@
|
||||
box {
|
||||
background-color: blue
|
||||
background-color: blue;
|
||||
}
|
||||
|
||||
grid box {
|
||||
background-color: red
|
||||
background-color: red;
|
||||
}
|
||||
|
||||
window > grid box {
|
||||
background-color: blue
|
||||
background-color: blue;
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
* + *,
|
||||
#red {
|
||||
color: red
|
||||
color: red;
|
||||
}
|
||||
|
||||
* ~ * ~ label,
|
||||
|
@ -1,3 +1,3 @@
|
||||
box {
|
||||
background-color: lime
|
||||
background-color: lime;
|
||||
}
|
||||
|
@ -3,5 +3,5 @@ label {
|
||||
}
|
||||
|
||||
.no-shadow {
|
||||
text-shadow: none
|
||||
text-shadow: none;
|
||||
}
|
||||
|
@ -6,5 +6,5 @@
|
||||
}
|
||||
|
||||
GtkPaned label {
|
||||
background-color: pink
|
||||
background-color: pink;
|
||||
}
|
||||
|
@ -9,9 +9,9 @@ button {
|
||||
}
|
||||
|
||||
#alpha {
|
||||
opacity: 0.5
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
||||
#ref {
|
||||
opacity: 0.125
|
||||
opacity: 0.125;
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
.only-child-ref:nth-child(first):nth-child(last) {
|
||||
.only-child-ref:first-child:last-child {
|
||||
color: blue;
|
||||
background-color: red;
|
||||
}
|
||||
|
@ -7,7 +7,7 @@
|
||||
@define-color color_base #c8c4c0;
|
||||
@define-color color_sel #406080;
|
||||
@define-color color_tip #ffffc0;
|
||||
@define-color color_dark shade (@color_base, 0.6);
|
||||
@define-color color_dark shade(@color_base, 0.6);
|
||||
|
||||
* {
|
||||
background-color: @color_base;
|
||||
@ -47,26 +47,26 @@ GtkCheckButton:selected {
|
||||
}
|
||||
|
||||
.slider, .pane-separator {
|
||||
background-color: alpha (black, 0);
|
||||
color: alpha (black, 0);
|
||||
background-color: alpha(black, 0);
|
||||
color: alpha(black, 0);
|
||||
}
|
||||
|
||||
/* GRADIENTS */
|
||||
|
||||
button, .notebook tab:active, .slider {
|
||||
background-image: linear-gradient(to bottom, shade (@color_base, 1.2), @color_base);
|
||||
background-image: linear-gradient(to bottom, shade(@color_base, 1.2), @color_base);
|
||||
}
|
||||
|
||||
button:active, .notebook tab, .trough {
|
||||
background-image: linear-gradient(to bottom, shade (@color_base, 0.8), @color_base);
|
||||
background-image: linear-gradient(to bottom, shade(@color_base, 0.8), @color_base);
|
||||
}
|
||||
|
||||
button.vertical, .slider.vertical {
|
||||
background-image: linear-gradient(to right, shade (@color_base, 1.2), @color_base);
|
||||
background-image: linear-gradient(to right, shade(@color_base, 1.2), @color_base);
|
||||
}
|
||||
|
||||
button.vertical:active, .trough.vertical {
|
||||
background-image: linear-gradient(to right, shade (@color_base, 0.8), @color_base);
|
||||
background-image: linear-gradient(to right, shade(@color_base, 0.8), @color_base);
|
||||
}
|
||||
|
||||
column-header > .button {
|
||||
@ -74,12 +74,12 @@ column-header > .button {
|
||||
}
|
||||
|
||||
.progressbar {
|
||||
background-image: linear-gradient(to bottom, shade (@color_sel, 1.2), @color_sel);
|
||||
border-color: shade (@color_sel, 0.7);
|
||||
background-image: linear-gradient(to bottom, shade(@color_sel, 1.2), @color_sel);
|
||||
border-color: shade(@color_sel, 0.7);
|
||||
}
|
||||
|
||||
.progressbar.vertical {
|
||||
background-image: linear-gradient(to right, shade (@color_sel, 1.2), @color_sel);
|
||||
background-image: linear-gradient(to right, shade(@color_sel, 1.2), @color_sel);
|
||||
}
|
||||
|
||||
/* SPACING */
|
||||
|
Loading…
Reference in New Issue
Block a user