-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathw3d2.css
78 lines (63 loc) · 1.29 KB
/
w3d2.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
75
76
77
78
h1 { color: red; }
#bigonly, #smallonly {
border: 1px solid red;
margin: 10px;
padding: 10px;
}
#mystuff {
border: 3px solid blue;
padding: 10px;
margin: 10px;
display: flex;
flex-direction:row;
background-color: teal;
}
.stuff {
background-color: red;
padding: 10px;
margin: 10px;
flex: 1;
}
#animated {
padding: 10px;
margin: 10px;
border: 2px solid grey;
background-color: #eee;
width: 300px;
}
@keyframes changebox {
from {
width: 300px;
background-color: #eee;
transform: scale(0.75);
}
to {
width: 600px;
background-color: #333;
transform: scale(3);
}
}
#animated:hover {
animation: changebox;
animation-duration: 3s;
animation-direction: alternate;
animation-iteration-count: infinite;
}
@media screen and (min-width: 600px) {
#bigonly { display: block;}
#smallonly { display: none;}
}
@media screen and (max-width: 600px) {
#smallonly { display: block;}
#bigonly { display: none;}
#mystuff {
background-color: pink;
flex-direction: column;
}
}
#peggyswindow {
background: url('https://images.unsplash.com/photo-1496158704988-c4595d02a8e2?ixlib=rb-0.3.5&s=25402ea169389086d7c7e774f28bef22&auto=format&fit=crop&w=1050&q=80');
height: 200px;
background-position: cover;
background-attachment: fixed;
}