-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.scss
128 lines (109 loc) · 1.9 KB
/
styles.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
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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
@keyframes emoji-clarification {
0% {
transform: scale(1);
content: attr(data-start);
}
50% {
transform: scale(2);
content: attr(data-end);
}
100% {
transform: scale(.5);
content: attr(data-start);
}
}
%emoji-clarification {
position: relative;
border-bottom: 2px dashed black;
cursor: help;
text-decoration: none;
&:hover:after { animation: emoji-clarification 1s ease infinite }
&:after {
content: "";
display: block;
font-size: 3rem;
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
display: flex;
align-items: center;
justify-content: center;
will-change: transform;
}
}
body {
transition: position 1s ease, display 1s ease, width 1s ease, margin 1s ease, padding 1s ease;
height: 100vh;
background: url('cow.jpg');
background-size: cover;
background-repeat: no-repeat;
background-position: 250px;
}
.body-container {
background: #f2c9ce;
font-family: 'Roboto Mono', 'Consolas', monospace;
display: flex;
flex-direction: column;
width: 400px;
position: fixed;
top: 0;
bottom: 0;
left: 0;
overflow: scroll;
}
.box {
box-sizing: border-box;
background: #7cc6aa;
border-radius: 20px;
padding: 20px;
color: #FFFDEA;
width: 360px;
margin: 15px auto;
}
.milk-crates {
box-sizing: border-box;
width: 320px;
margin: 15px auto;
}
.cowbox {
display: none;
}
/* unvisited link */
a:link {
color: red;
}
/* visited link */
a:visited {
color: green;
}
/* mouse over link */
a:hover {
color: hotpink;
}
/* selected link */
a:active {
color: blue;
}
.emoji-clarification {
@extend %emoji-clarification;
}
@media (max-width: 600px) {
body {
background: none;
}
.body-container {
display: flex;
position: unset;
width: 100%;
}
.cowbox {
display: block;
}
.cow {
width: 100%;
height: auto;
}
.box, .milk-crates { width: 90% }
}