forked from hackyourfuturecanada/Week4
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
104 lines (80 loc) · 1.55 KB
/
style.css
File metadata and controls
104 lines (80 loc) · 1.55 KB
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
body {
text-align: justify;
margin: 0;
}
* {
box-sizing: border-box;
}
header{
font-size: 40px;
font-family: 'Rock Salt', cursive;
color: white;
text-align: center;
background-color: #0988ba;
text-shadow: 2px 5px 9px rgba(102,0,51,0.98);
}
h2{
font-family: 'El Messiri', sans-serif;
text-align: left;
font-size: 40px;
text-shadow: 2px 5px 9px rgba(102,0,51,0.98);
}
h3{
text-align: center;
font-size: 18px;
background-color: rgba(102, 0, 51,.8);
color: white;
}
ul {
list-style-type: none;
padding:0px;
}
img {
max-width: 100%;
max-height: 250px;
}
.grid-item {
background-color: rgba(120, 187, 214, .1);
border: 5px outset #0988ba;
border-radius: 5%;
width:calc(50% - 2 * 10px);
margin:10px;
padding:10px;
min-height:500px;
}
.grid-item:hover{
-webkit-box-shadow: 0px 0px 7px 4px rgba(255,146,0,0.75);
box-shadow: 0px 0px 7px 4px rgba(255,146,0,0.75);
color:rgb(27, 141, 145);
transform:scale(1.1);
}
#grid-floats .grid-item {
float: left;
}
#grid-floats {
overflow: hidden;
}
#grid-flex {
display:flex;
flex-wrap:wrap;
}
.grid-item:nth-child(1) {
width: calc(100% - 2 * 10px);
}
@media (min-width:769px) {
.grid-item:nth-child(1),
.grid-item:nth-child(2) {
width:calc(50% - 2 * 10);
}
.grid-item:nth-child(n + 3 ){
width: calc(100% / 3 - 2 * 10px)
}
@media (min-width:1024px) {
.grid-item:nth-child(1) {
width: calc(50% - 2 * 10px);
}
.grid-item:nth-child(n + 2 ){
width: calc(25% - 2 * 10px);
}
}
}