-
Notifications
You must be signed in to change notification settings - Fork 11
/
style.scss
82 lines (68 loc) · 1.56 KB
/
style.scss
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
/* ===========================================
Defining media queries
=========================================== */
@mixin bp-huge {
@media only screen and (min-width: 65em) {
@content;
}
}
@mixin bp-medium {
@media only screen and (min-width: 35em) {
@content;
}
}
@mixin bp-small {
@media only screen and (min-width: 25em) {
@content;
}
}
/* ===========================================
Mixin for writing out breakpoint names in
an after pseudo element
=========================================== */
@mixin define-breakpoint($name) {
&:after {
content: $name;
display: none;
}
}
/* ===========================================
Calling our writing-out function
=========================================== */
body {
@include bp-small(){
@include define-breakpoint("bp-small");
}
@include bp-medium(){
@include define-breakpoint("bp-medium");
}
@include bp-huge(){
@include define-breakpoint("bp-large");
}
}
/* ===========================================
Demo styling only
=========================================== */
html {
height: 100%;
transform-style: preserve-3d;
}
body {
margin: 0;
text-align: center;
font-size: 4vw;
font-family: sans-serif;
background: #E33D61;
color: #FFFFFF;
text-transform: uppercase;
position: relative;
top: 50%;
transform: translateY(-50%);
font-weight: normal;
}
span {
display: block;
color: #812236;
font-weight: bold;
font-size: 5.5vw;
}