forked from quasarframework/quasar
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlabel.ios.styl
More file actions
128 lines (117 loc) · 2.83 KB
/
label.ios.styl
File metadata and controls
128 lines (117 loc) · 2.83 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
$label-padding-vertical ?= .3rem
$label-padding-horizontal ?= .7rem
$label-border-radius ?= $generic-border-radius
$label-before-transform ?= translateY(-50%) translateX(50%) rotate(-45deg)
.label
display inline-flex
flex-direction row
align-items center
min-width 10px
border-radius $label-border-radius
padding $label-padding-vertical $label-padding-horizontal
line-height 1
white-space nowrap
text-align center
vertical-align middle
> .left-detail, > .right-detail
display inline-block
vertical-align middle
height 100%
padding $label-padding-vertical ($label-padding-horizontal / 2)
margin (- $label-padding-vertical) ($label-padding-horizontal / 2)
background rgba(0, 0, 0, .1)
opacity .8
> .left-detail
margin-left - $label-padding-horizontal
padding-left $label-padding-horizontal
border-radius $label-border-radius 0 0 $label-border-radius
> .right-detail
margin-right - $label-padding-horizontal
padding-right $label-padding-horizontal
border-radius 0 $label-border-radius $label-border-radius 0
&.circular
border-radius 50%
&.floating
position absolute
z-index 2
top -.7rem
left 100%
margin 0 0 0 -1.5rem !important
font-size .7rem
&.pointing-up, &.pointing-right, &.pointing-down, &.pointing-left
position relative
&:before
content ''
background inherit
width .6rem
height .6rem
position absolute
transform translateX(-50%) translateY(-50%) rotate(45deg)
&.pointing-up
margin-top .8rem
&:before
top 0
left 50%
&.pointing-down
margin-bottom .8rem
&:before
right auto
top 100%
left 50%
&.pointing-right
margin-right .8rem
&:before
top 50%
right 0
bottom auto
left auto
transform translateX(50%) translateY(-50%) rotate(45deg)
&.pointing-left
margin-left .8rem
&:before
top 50%
left 0
bottom auto
right auto
&.tag
position relative
margin-left 1rem
padding-left 1.5rem
padding-right 1rem
&:before, &:after
content ''
position absolute
top 50%
&:before
right 100%
transform $label-before-transform
background inherit
width 1.14rem
height 1.14rem
transition none
&:after
left 0
margin-top -.25rem
background white
width .5rem
height .5rem
box-shadow 0 -1px 1px 0 rgba(0, 0, 0, .3)
border-radius 50%
&.chip
border-radius 16px
padding 0 12px
height 32px
> i.on-right
border-radius 50%
cursor pointer
background rgba(0, 0, 0, .2)
padding 3px
img, div
float left
margin 0 8px 0 -12px
height 32px
width 32px
border-radius 50%
div
line-height 32px
background rgba(0, 0, 0, .2)