forked from jgthms/css-reference
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexample.sass
156 lines (144 loc) · 2.92 KB
/
example.sass
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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
.example-value,
.example-default,
.example-recommended
background: $yellow
border-radius: 2px
color: $yellow-invert
display: inline-block
padding: 0.1em 0.5em 0.15em
vertical-align: top
.example-value
cursor: pointer
position: relative
.example-default,
.example-recommended
background: #fff
float: right
.example-default
box-shadow: inset 0 0 0 1px $red
color: $red
.example-recommended
box-shadow: inset 0 0 0 1px $green
color: $green
.example-fixed
display: flex
margin-top: 1rem
.button
background: $green
color: #fff
font-size: 0.8rem
&:before
content: "Enable position fixed"
&.is-enabled
background: $red
&:before
content: "Disabled position fixed"
.example-description
font-size: 0.9rem
margin-top: 0.5rem
a
border-bottom: 1px solid $border
color: $text-strong
&:hover
border-bottom-color: $link
code
background: $background
border-radius: 2px
color: $text-strong
padding: 0.2em 0.4em
p,
pre,
ul
margin-bottom: 0.5em
&:last-child
margin-bottom: 0
ul
list-style-position: outside
list-style-type: disc
margin-left: 1.5em
pre
background: $background
color: $text-strong
font-size: 0.8em
line-height: 1.4
padding: 0.8em 1em
.shorthand
padding: 0
a
background: $background
border-radius: 2px
padding: 0.2em 0.4em
&:hover
background: $link
color: $link-invert
.example-browser
align-items: center
background: $background
border: 1px solid $border
border-bottom: none
border-top-left-radius: 3px
border-top-right-radius: 3px
display: flex
height: 1rem
justify-content: flex-start
padding-left: 0.5rem
i
background: rgba(black, 0.2)
border-radius: 290486px
display: block
flex-grow: 0
flex-shrink: 0
height: 4px
margin-right: 2px
width: 4px
.example-output
border: 1px solid $border
border-bottom-left-radius: 4px
border-bottom-right-radius: 4px
box-shadow: 0 2px 3px rgba(#000, 0.05)
font-size: 0.8em
padding: 0.5em
.example-output-div
padding: 0.8em 1em
position: relative
.example-complements
background: $background
font-size: 0.9em
margin-bottom: -3rem
strong
font-weight: $weight-normal
padding-left: 0.35em
.shorthand
padding: 0
a
background: #fff
border-radius: 2px
padding: 0.2em 0.4em
&:hover
background: $link
color: $link-invert
+mobile
.example
padding: 2rem 2rem 0
.example-preview
margin-top: 1rem
.example-complements
margin-top: 2rem
padding: 2rem
+desktop
.example
align-items: flex-start
display: flex
padding: 2rem 3rem 0
.example-header,
.example-preview
flex-grow: 1
flex-shrink: 1
.example-header
padding-right: 2rem
width: 60%
.example-preview
width: 40%
.example-complements
margin-top: 3rem
padding: 2rem 3rem