forked from jgthms/marksheet
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfunctions.scss
More file actions
108 lines (99 loc) · 1.99 KB
/
Copy pathfunctions.scss
File metadata and controls
108 lines (99 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
96
97
98
99
100
101
102
103
104
105
106
107
108
@mixin arrow() {
&{
@include replace(none, 32px, 32px);
&:before,
&:after{
background: $light;
content: " ";
display: block;
height: 2px;
left: 8px;
position: absolute;
top: 16px;
@include transform(rotate(45deg));
width: 10px;}
&:after{
left: auto;
right: 8px;
@include transform(rotate(-45deg));
}
&:hover{
background: $blue;
&:before,
&:after{
background: $blue !important;
}
}
}
}
@mixin clear() {
&:after{ clear: both; content: " "; display: table;}
}
@mixin center($size) {
left: 50%;
margin-left: -($size / 2);
margin-top: -($size / 2);
position: absolute;
top: 50%;
}
@mixin fa($size) {
font-size: $size;
height: $size;
line-height: $size;
text-align: center;
width: $size;
}
@mixin label($text: "Code", $background: $yellow, $color: rgba(black, 0.5)) {
position: relative;
&:before{
background: $background;
color: $color;
content: $text;
display: inline-block;
font-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;
}
}
@mixin replace($bg, $h, $w) {
background: $bg center center no-repeat;
background-size: $w $h;
display: block;
height: $h;
outline: none;
overflow: hidden;
text-indent: -290486px;
width: $w;
}
$tablet: 768px;
$laptop: 992px;
$desktop: 1200px;
$widescreen: 1400px;
@mixin on($device) {
@media screen and (min-width: $device) {
@content;
}
}
@mixin overlay() {
bottom: 0;
left: 0;
position: absolute;
right: 0;
top: 0;
}
@mixin scrollbar($a, $b, $c: $background) {
&::-webkit-scrollbar{ background: $c; width: $a;
@include on($laptop) {
width: $b;
}
}
&::-webkit-scrollbar-thumb{ background: $css3; background-image: linear-gradient($web, $css3, $sass, $html5);}
}