-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstorystyle.css
74 lines (64 loc) · 2.02 KB
/
storystyle.css
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
body {
background-color: #616160;
display: flex;
justify-content: center;
background-image: url("images/features/bg.jpg");
background-size: cover;
margin-bottom: 15em;
}
body main{ width: 30em;}
body p { color: #fff; font-family: 'Arvo', serif; text-shadow: 1px 1px #ff0000;}
body p:hover{ font-size: 3em; color: red;}
body a { border: 2px solid #fff; padding: 1em; color: #fff; text-decoration: none; position: relative; top: 1em; z-index: 10;}
img:first-child {
position: fixed;
left: -17em;
top: 0;
transition: 2s;
transition-timing-function: ease;
transition-timing-function: cubic-bezier(0,1.63,.96,-0.38);
}
img:first-child:hover{left: 5em;}
img:nth-child(3) { position: fixed; right: 0; top: 0; }
img:nth-child(4) { position: fixed; bottom: 0; width: 100%; }
img:nth-child(5) {
position: fixed;
top: 10em;
height: 10em;
width: 15em;
right: 4em;
transition: 3s;
transition-timing-function: ease;
transition-timing-function: cubic-bezier(.44,.13,.05,.83);
}
img:nth-child(5):hover{ transform: rotate(720deg);}
img:nth-child(6) {
position: fixed;
bottom: 4em;
height: 10em;
width: 15em;
right: 1em;
transition: 2s;
transition-timing-function: ease;
transition-timing-function: cubic-bezier(.44,.13,.05,.83);
}
/* Media queries */
@media (max-width:62em) {
body main { width: 25em; }
img:nth-child(3) { width: 25%; }
img:nth-child(3) { width: 25%; }
img:nth-child(5){ display: none;}
}
@media (max-width:50em) {
body p:hover{ font-size: 1em; color: red;}
img:first-child{ left: -20em;}
img:nth-child(6){ width: 10em; height: 7em; right: 0em;}
img:first-child:hover{left: 3em;}
}
@media (max-width:30em) {
img:nth-child(3) { width: 25%; display: none; }
body p{ text-align: right;}
img:first-child:hover{left: -7em;}
img:first-child:active{left: 2em;}
img:first-child { left: -10em; width: 17em; }
}