[libadwaita/wip/exalm/stylesheet2: 28/103] stylesheet: Don't disable internal entry styles for spinbutton
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libadwaita/wip/exalm/stylesheet2: 28/103] stylesheet: Don't disable internal entry styles for spinbutton
- Date: Fri, 16 Apr 2021 22:38:44 +0000 (UTC)
commit 21b634da1dbc568865ed5e9576b48bdf30c41062
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Thu Apr 8 17:20:07 2021 +0500
stylesheet: Don't disable internal entry styles for spinbutton
It's not an entry anymore, it's GtkText and it already behaves the way we
need.
src/stylesheet/_common.scss | 19 +------------------
1 file changed, 1 insertion(+), 18 deletions(-)
---
diff --git a/src/stylesheet/_common.scss b/src/stylesheet/_common.scss
index 41555bf..1a94d53 100644
--- a/src/stylesheet/_common.scss
+++ b/src/stylesheet/_common.scss
@@ -964,22 +964,9 @@ spinbutton {
padding: 0;
border-spacing: 0;
- %spinbutton_horz_entry {
+ > text {
min-width: 28px;
- // reset all the other props since the spinbutton node is styled here
- margin: 0;
- background: none;
- background-color: transparent;
- border: none;
- border-radius: 0;
- box-shadow: none;
padding: 6px;
-
- &:backdrop:disabled { background-color: transparent; }
- }
-
- > text {
- @extend %spinbutton_horz_entry;
}
/* :not here just to bump specificity above that of the list button styling */
@@ -1021,10 +1008,6 @@ spinbutton {
// OSD horizontal
.osd &:not(.vertical) {
- > text {
- @extend %spinbutton_horz_entry;
- }
-
> button.image-button.up:not(.flat),
> button.image-button.down:not(.flat) {
@include button(undecorated);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]