forked from quasarframework/quasar
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathQBtnGroup.styl
More file actions
88 lines (75 loc) · 2.19 KB
/
QBtnGroup.styl
File metadata and controls
88 lines (75 loc) · 2.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
.q-btn-group
border-radius: $button-border-radius
box-shadow: $button-shadow
vertical-align: middle
> .q-btn-item
border-radius: inherit
align-self: stretch
.q-btn__wrapper:before
box-shadow: none
.q-badge--floating
right: 0
> .q-btn-group
box-shadow: none
&:first-child
> .q-btn:first-child
border-top-left-radius: inherit
border-bottom-left-radius: inherit
&:last-child
> .q-btn:last-child
border-top-right-radius: inherit
border-bottom-right-radius: inherit
> .q-btn-group:not(:first-child) > .q-btn:first-child
.q-btn__wrapper:before
border-left: 0
> .q-btn-group:not(:last-child) > .q-btn:last-child
.q-btn__wrapper:before
border-right: 0
> .q-btn-item:not(:last-child)
border-top-right-radius: 0
border-bottom-right-radius: 0
> .q-btn-item:not(:first-child)
border-top-left-radius: 0
border-bottom-left-radius: 0
> .q-btn-item.q-btn--standard
.q-btn__wrapper:before
z-index: -1
&--push
border-radius: $button-push-border-radius
> .q-btn--push
&.q-btn--actionable
transform: none
.q-btn__wrapper
transition: margin-top $button-transition, margin-bottom $button-transition, box-shadow $button-transition
&:active,
&.q-btn--active
.q-btn__wrapper
margin-top: 2px
margin-bottom: -2px
&--rounded
border-radius: $button-rounded-border-radius
&--flat, &--outline, &--unelevated
box-shadow: none
&--outline
> .q-separator
display: none
> .q-btn-item + .q-btn-item
.q-btn__wrapper:before
border-left: 0
> .q-btn-item:not(:last-child)
.q-btn__wrapper:before
border-right: 0
&--stretch
align-self: stretch
border-radius: 0
&--glossy
> .q-btn-item
background-image: linear-gradient(to bottom, rgba(#fff, .3), rgba(#fff, 0) 50%, rgba(#000, .12) 51%, rgba(#000, .04)) !important
&--spread
> .q-btn-group
display: flex !important
> .q-btn-item, > .q-btn-group > .q-btn-item:not(.q-btn-dropdown__arrow-container)
width: auto
min-width: 0
max-width: 100%
flex: 10000 1 0%