mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-13 20:30:11 +00:00
0a440a804f
* :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
50 lines
596 B
CSS
50 lines
596 B
CSS
* {
|
|
background-image: none;
|
|
}
|
|
|
|
button:nth-child(even) {
|
|
background-color: yellow;
|
|
}
|
|
|
|
button:nth-child(odd) {
|
|
background-color: red;
|
|
}
|
|
|
|
button:first-child {
|
|
background-color: purple;
|
|
}
|
|
|
|
button:last-child:nth-child(even) {
|
|
background-color: lime;
|
|
}
|
|
|
|
button:last-child:nth-child(odd) {
|
|
background-color: purple;
|
|
}
|
|
|
|
button:last-child:first-child {
|
|
background-color: blue;
|
|
}
|
|
|
|
/* for reference */
|
|
|
|
#red {
|
|
background-color: red;
|
|
}
|
|
|
|
#lime {
|
|
background-color: lime;
|
|
}
|
|
|
|
#purple {
|
|
background-color: purple;
|
|
}
|
|
|
|
#yellow {
|
|
background-color: yellow;
|
|
}
|
|
|
|
#blue {
|
|
background-color: blue;
|
|
}
|