File tree 1 file changed +27
-0
lines changed
src/newspack-ui/scss/elements
1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change 1
1
.newspack-ui {
2
2
& __segmented-control {
3
+ // Base styles
3
4
align-items : center ;
4
5
display : flex ;
5
6
gap : var (--newspack-ui-spacer-2 );
6
7
flex-direction : column ;
7
8
9
+ // Wide variant
10
+ & --wide {
11
+ display : flex ;
12
+ width : 100% ;
13
+
14
+ .newspack-ui__segmented-control__tabs {
15
+ width : 100% ;
16
+
17
+ .newspack-ui__button {
18
+ flex : 1 1 0 ; // Equal width distribution
19
+ min-width : 0 ;
20
+ white-space : nowrap ;
21
+ overflow : hidden ;
22
+ text-overflow : ellipsis ;
23
+ }
24
+ }
25
+ }
26
+
27
+ // Tabs container
8
28
& __tabs {
9
29
background : var (--newspack-ui-color-neutral-10 );
10
30
border-radius : var (--newspack-ui-border-radius-m );
14
34
justify-content : center ;
15
35
padding : calc (var (--newspack-ui-spacer-base ) / 2 );
16
36
37
+ // Button styles
17
38
.newspack-ui__button {
18
39
background : transparent ;
19
40
border : 1px solid transparent ;
20
41
border-radius : var (--newspack-ui-border-radius-xs );
21
42
color : var (--newspack-ui-color-neutral-60 );
22
43
cursor : pointer ;
44
+ margin : 0 ;
23
45
24
46
& :hover {
25
47
background : transparent ;
42
64
background : var (--newspack-ui-color-neutral-0 );
43
65
border-color : var (--newspack-ui-color-neutral-30 );
44
66
color : var (--newspack-ui-color-neutral-90 );
67
+
68
+ & :hover {
69
+ background : var (--newspack-ui-color-neutral-0 );
70
+ }
45
71
}
46
72
}
47
73
}
48
74
75
+ // Content panel styles
49
76
& __content {
50
77
width : 100% ;
51
78
}
You can’t perform that action at this time.
0 commit comments