forked from CodeYourFuture/HTML-CSS-Module-Project
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_abstract.scss
More file actions
44 lines (43 loc) · 946 Bytes
/
Copy path_abstract.scss
File metadata and controls
44 lines (43 loc) · 946 Bytes
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
// Colors
$primary-col:#ff4500;
$main-left-col:#800080;
$blk-col:#000000;
//mixins
@mixin flx-center{
display: flex;
justify-content: center;
align-items: center;
}
// MEDIA QUERY MANAGER
/*
phone 0 - 600px;
tab-port < 900px;
tab-land < 1200px;
normal < 1800px;
big-desk > 1800px
//default 1rem = 16px;
inside media query rem and em are same, set to browser defaule
but research suggests em is better than rem in media query;
*/
@mixin respond ($break-point){
@if $break-point == phone {
@media (max-width: 37.5em) {//600px/16
@content
};
}
@if $break-point == tab-port {
@media (max-width: 56.25em) {//900px/16
@content
};
}
@if $break-point == tab-land {
@media (max-width: 75em) {//1200px/16
@content
};
}
@if $break-point == big-desk {
@media (min-width: 112.5em) {//1800px/16
@content
};
}
}