forked from jgthms/html-reference
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathelement.sass
More file actions
95 lines (89 loc) · 1.99 KB
/
Copy pathelement.sass
File metadata and controls
95 lines (89 loc) · 1.99 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
.element
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
.element--experimental
background-image: repeating-linear-gradient(-45deg, hsl(0, 0%, 96%), hsl(0, 0%, 96%) 10px, hsl(0, 0%, 98%) 10px, hsl(0, 0%, 98%) 20px)
background-size: auto
border-top-color: hsl(0, 0%, 30%)
.element-links
align-items: center
display: flex
flex-wrap: wrap
font-size: 0.7rem
justify-content: flex-end
opacity: 0.5
transition-duration: $speed
transition-property: opacity
white-space: nowrap
strong
text-transform: capitalize
& > span
margin-left: 1em
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
.element-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
.tag
margin-left: 0.5em
position: relative
top: -1px
vertical-align: middle
.element-description
code
background: $background
border-radius: 2px
color: $text-strong
font-size: 0.9em
padding: 1px 5px 3px
position: relative
top: -1px
+mobile
.element-header
padding-left: 2rem
padding-right: 2rem
.element-links
margin-bottom: 0.5rem
+desktop
.element-header
padding-left: 3rem
padding-right: 3rem
.element-links
float: right
padding: 0.25rem 0