forked from ParryQiu/css-reference
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheading.sass
More file actions
78 lines (70 loc) · 1.36 KB
/
Copy pathheading.sass
File metadata and controls
78 lines (70 loc) · 1.36 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
.heading
background: $plum
color: $plum-light
padding: 4rem 3rem
.heading-title
font-size: 2rem
line-height: 1.2
strong
color: $plum-invert
font-weight: $weight-bold
.heading-share
align-items: center
position: relative
.heading-share-label
color: $plum-light
font-size: 0.8em
margin-right: 0.5rem
.heading-share-button
align-items: center
display: inline-flex
height: 3rem
justify-content: center
position: relative
width: 3rem
&:before
+overlay
background: $plum-dark
border-radius: 5px
content: ""
display: block
height: 100%
opacity: 0
transform: scale(1.2)
transform-origin: center center
transition-duration: $speed
transition-property: opacity, transform
width: 100%
svg
height: 1.5rem
position: relative
width: 1.5rem
&:hover:before
opacity: 1
transform: scale(1)
+mobile
.heading-share
margin-top: 2rem
+until(1199px)
.heading-share
min-width: 8rem
text-align: center
.heading-share-label
display: block
margin-bottom: 0.5rem
.heading-share-button
vertical-align: top
+desktop
.heading
align-items: center
display: flex
.heading-content
flex-grow: 1
flex-shrink: 1
+from(1200px)
.heading-share
display: flex
.heading-share-label
margin-right: 0.5rem
.heading-share-button
display: flex