forked from jgthms/marksheet
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfunctions.sass
More file actions
72 lines (63 loc) · 1.31 KB
/
Copy pathfunctions.sass
File metadata and controls
72 lines (63 loc) · 1.31 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
=clear
&:after
clear: both
content: " "
display: table
=center($size)
left: 50%
margin-left: -($size / 2)
margin-top: -($size / 2)
position: absolute
top: 50%
=fa($size, $dimensions)
display: block
font-size: $size
height: $dimensions
line-height: $dimensions
text-align: center
width: $dimensions
=label($text: "Code", $background: $yellow, $color: rgba(black, 0.5))
position: relative
&:before
background: $background
color: $color
content: $text
display: inline-block
font-family: $family-sans-serif
font-size: 0.6rem
font-weight: 700
height: 1rem
left: -1px
letter-spacing: 0.1em
line-height: 1rem
padding: 0 0.5em
position: absolute
text-transform: uppercase
top: 0
=overlay($offset: 0)
bottom: $offset
left: $offset
position: absolute
right: $offset
top: $offset
=replace($bg, $w, $h)
background: $bg center center no-repeat
background-size: $w $h
display: block
height: $h
outline: none
overflow: hidden
text-indent: -290486px
width: $w
=from($device)
@media screen and (min-width: $device)
@content
=until($device)
@media screen and (max-width: $device)
@content
=mobile
@media screen and (max-width: 959px)
@content
=desktop
@media screen and (min-width: 960px)
@content