-
Notifications
You must be signed in to change notification settings - Fork 0
/
style_index.css
80 lines (71 loc) · 1.32 KB
/
style_index.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
79
80
body {
display: grid;
grid-template: 1fr 3fr 1fr/ 1fr 20px 1fr 1fr;
}
img {
border-radius: 50%;
box-shadow: 0 0 10px rgb(180, 169, 169);
justify-self: right;
grid-column: 1;
grid-row: 2;
}
section {
grid-column-start: 3;
grid-column-end: span 2;
grid-row: 2;
}
nav {
grid-column-start: 3;
grid-column-end: span 2;
grid-row: 3;
}
h1 {
font-size: 60px;
}
h3 {
font-size: 30px;
}
.button {
display: inline-block;
padding: 15px 32px;
text-align: center;
margin: 2px;
text-decoration: none;
background-color: white;
border-radius: 20px;
font-size: 20px;
color: black;
border-color: grey;
transition-duration: 0.6s;
box-shadow: 0 0 10px rgb(180, 169, 169);
}
.button:hover {
background-color: rgba(128, 128, 128, 0.452);
}
/* Display on a smaller screen */
@media screen and (max-width: 600px) {
body {
display: grid;
grid-template: 1fr 1fr 1fr/1fr;
}
img {
justify-self: center;
grid-column: 1;
grid-row: 1;
}
section {
grid-column: 1;
grid-row: 2;
text-align: center;
}
nav {
grid-column: 1;
grid-row:3;
text-align: center;
}
.button {
padding: 0;
width: 150px;
height: 100px;
}
}