forked from BSanchez/css-reference
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathproperty.sass
More file actions
112 lines (104 loc) · 2.2 KB
/
Copy pathproperty.sass
File metadata and controls
112 lines (104 loc) · 2.2 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
.list
background: #fff
padding-bottom: 2rem
position: relative
.property
background-image: linear-gradient($primary-light, #fff)
background-repeat: no-repeat
background-size: 100% 4rem
border-top: 2px solid $primary
overflow: hidden
padding-bottom: 3rem
padding-top: 2rem
.property--shorthand
background-image: linear-gradient($purple-light, #fff)
border-top-color: $purple
.property-links
align-items: center
display: flex
font-size: 0.7rem
justify-content: flex-end
opacity: 0.5
transition-duration: $speed
transition-property: opacity
a
border-bottom: 1px solid transparent
color: $text-light
margin-left: 1em
&:before
left: auto
right: 0
transform: translateX(0) translateY(0)
white-space: nowrap
&:hover
border-bottom-color: $link
color: $link
&:before
transform: translateX(0) translateY(-4px)
&:hover
opacity: 1
.property-name
font-size: 1.2rem
font-weight: $weight-bold
a
border-bottom: 1px solid transparent
color: $text-strong
display: inline-block
position: relative
vertical-align: top
span
color: $border
padding-right: 0.6em
position: absolute
right: 100%
top: 0
&:hover
border-bottom-color: $link
color: $link
span
color: $link
.property-description
code
background: $background
border-radius: 2px
color: $text-strong
padding: 0.2em 0.4em
p
margin-top: 0.5em
.shorthand
padding: 0
a
background: $background
border-radius: 2px
padding: 0.2em 0.4em
&:hover
background: $link
color: $link-invert
.property-animation
display: flex
margin-top: 1rem
.button
background: $green
color: #fff
font-size: 0.8rem
&:before
content: "▶ Play animations"
&:first-letter
margin-right: 0.25em
&.is-playing
background: $red
&:before
content: "■ Stop"
+mobile
.property-header
padding-left: 2rem
padding-right: 2rem
.property-links
margin-bottom: 0.5rem
+desktop
.property-header
padding-left: 3rem
padding-right: 3rem
.property-links
float: right
padding: 0.25rem 0