-
Notifications
You must be signed in to change notification settings - Fork 0
/
fruit1-final-peishu.html.css
105 lines (101 loc) · 1.74 KB
/
fruit1-final-peishu.html.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
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
* {
box-sizing: border-box;
text-decoration: none;
border: none;
}
#page-wrapper {
position: relative;
}
#page-wrapper::before {
content: "";
position: absolute;
inset: 0;
background-image: url(src/fruit1.jpg);
opacity: 0.2;
}
#container {
display: flex;
flex-direction: row;
visibility: hidden;
}
header {
isolation: isolate;
background-color: rgb(176, 87, 141);
color: black;
padding-left: 1%;
padding-bottom: 1.5%;
padding-top: .5%;
text-align: center;
}
body {
text-align: center;
}
nav {
isolation: isolate;
width: 30%;
text-align: center;
padding: 0 3%;
}
nav ul {
list-style: none;
margin: 7vh 0;
}
nav li {
border: 2px solid black;
background-color: rgb(176, 87, 141);
margin: 0 1vw;
padding: 3vh 2vw;
font-size: calc(1px + 1vw);
}
nav a {
text-decoration: none;
color: black;
font-size: medium;
}
main {
isolation: isolate;
width: 70%;
flex-direction: row;
justify-content: space-around;
align-items: center;
}
footer {
isolation: isolate;
margin: 0;
padding: .1%;
background-color: rgb(176, 87, 141);
color: black;
}
footer a {
color: black;
}
@media screen and (max-width: 750px) {
#container {
display: flex;
flex-direction: column;
}
nav {
padding: 0;
width: 100%;
margin: auto;
}
nav ul {
list-style: none;
padding: 2% 2%;
}
main {
width: 100%;
display: flex;
flex-direction: column;
}
nav li {
display: inline;
margin:auto;
padding: .5%;
list-style: none;
font-size: 65%;
}
nav a {
text-decoration: none;
}
}