2
2
@forward ' buttons' ;
3
3
4
4
notebook {
5
- & , & .frame { border : none ; }
6
-
7
5
> header {
8
- padding : 6px ;
9
- border : none ;
6
+ padding : 1px ;
7
+ border-width : 0px ;
8
+ background-clip : padding-box ;
10
9
background-color : $window_bg_color ;
11
- box-shadow : none ;
12
- border-color : transparent ;
10
+ border-color : $window_bg_color ;
13
11
14
- tabs { margin : 0 px ; }
12
+ tabs { margin : -1 px ; }
15
13
16
14
& .top , & .bottom , & .left , & .right {
15
+ > tabs > tab {
16
+ & :hover { background-color : $hover_color ; }
17
+ }
18
+ }
19
+
20
+ & .top {
17
21
border-bottom-style : solid ;
18
22
> tabs {
19
- margin-bottom : 0px ;
20
- > tab {
21
- padding : 2px 8px ;
22
- border-radius : $button_radius ;
23
- transition : $button_transition ;
24
- background-color : transparent ;
25
-
26
- & :hover {
27
- background-color : $hover_color ;
28
- }
29
- & :checked {
30
- background-color : $selected_color ;
31
- & :hover { background-color : $selected_hover_color ; }
32
- }
23
+ margin-bottom : -2px ;
24
+ > tab :not (.reorderable-page ) {
25
+ & :hover { box-shadow : inset 0 -4px $border_color ; }
26
+ & :checked { box-shadow : inset 0 -4px $accent_bg_color ; }
27
+ }
28
+ }
29
+ }
30
+
31
+ & .bottom {
32
+ border-top-style : solid ;
33
+ > tabs {
34
+ margin-top : -2px ;
35
+ > tab :not (.reorderable-page ) {
36
+ & :hover { box-shadow : inset 0 4px $border_color ; }
37
+ & :checked { box-shadow : inset 0 4px $accent_bg_color ; }
38
+ }
39
+ }
40
+ }
41
+
42
+ & .left {
43
+ border-right-style : solid ;
44
+ > tabs {
45
+ margin-right : -2px ;
46
+ > tab :not (.reorderable-page ) {
47
+ & :hover { box-shadow : inset -4px 0 $border_color ; }
48
+ & :checked { box-shadow : inset -4px 0 $accent_bg_color ; }
49
+ }
50
+ }
51
+ }
52
+
53
+ & .right {
54
+ border-left-style : solid ;
55
+ > tabs {
56
+ margin-left : -2px ;
57
+ > tab :not (.reorderable-page ) {
58
+ & :hover { box-shadow : inset 4px 0 $border_color ; }
59
+ & :checked { box-shadow : inset 4px 0 $accent_bg_color ; }
33
60
}
34
61
}
35
62
}
@@ -89,11 +116,7 @@ notebook {
89
116
min-width : 16px ;
90
117
border-radius : 0 ;
91
118
92
- & :hover:not (:active ):not (:backdrop) {
93
- background-clip : padding-box ;
94
- background-image : none ;
95
- background-color : transparentize (white , 0.7 );
96
- border-color : transparent ;
119
+ & :hover:not (:active ) {
97
120
box-shadow : none ;
98
121
}
99
122
@@ -105,8 +128,6 @@ notebook {
105
128
min-width : 30px ;
106
129
padding : 3px 12px ;
107
130
108
- outline-offset : -5px ;
109
-
110
131
color : $window_fg_color ;
111
132
font-weight : normal ;
112
133
@@ -115,22 +136,24 @@ notebook {
115
136
116
137
& .reorderable-page {
117
138
-gtk-outline-radius : calc ($button_radius + 2px );
118
- outline-width : 2px ;
119
- outline-offset : -2px ;
120
- outline-style : solid ;
121
- outline-color : entry_focus_border ();
139
+ margin : 4px 2px ;
140
+ border-radius : $button_radius ;
141
+ @include focus-ring ($transition : $button_transition );
122
142
123
143
& :hover {
124
144
background-color : $hover_color ;
145
+ box-shadow : none ;
125
146
}
126
147
& :checked {
127
148
background-color : $selected_color ;
149
+ box-shadow : none ;
128
150
& :hover { background-color : $selected_hover_color ; }
129
151
}
130
152
}
131
153
132
154
// colors the button like the label, overridden otherwise
133
155
button .flat {
156
+ color : gtkalpha (currentColor , 0.3 );
134
157
padding : 0 ;
135
158
margin-top : 4px ;
136
159
margin-bottom : 4px ;
@@ -161,8 +184,8 @@ notebook {
161
184
& .top ,
162
185
& .bottom {
163
186
tabs {
164
- padding-left : 0 px ;
165
- padding-right : 0 px ;
187
+ padding-left : 4 px ;
188
+ padding-right : 4 px ;
166
189
167
190
& :not (:only-child ) {
168
191
margin-left : 3px ;
@@ -217,6 +240,6 @@ notebook {
217
240
}
218
241
219
242
> stack:not (:only-child ) { // the :not(:only-child) is for "hidden" notebooks
220
- background-color : $window_bg_color ;
243
+ background-color : $view_bg_color ;
221
244
}
222
245
}
0 commit comments