-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbanana1.css
162 lines (153 loc) · 2.64 KB
/
banana1.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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
* {
margin:0;
box-sizing: border-box;
}
#proj2 {
position: relative;
text-align: center;
}
#proj2::before {
content: "";
position: absolute;
inset: 0;
background-image: url(src/fruit.jpg);
opacity: 0.2;
}
#close {
display: flex;
flex-direction: row;
}
.accordion {
margin: 6vh;
width: 60vw;
}
.accordion li {
list-style: none;
width: 100%;
margin: 2vh;
padding: 1vh;
border-radius: 1vh;
background: rgb(176, 87, 141);
box-shadow: 1vh 1vh 1.7vh -0.1vh rgba(0, 0, 0, 0.15),
-1vh -1vh 1.7vh -0.1vh rgba(255, 255, 255, 0.7);
}
.accordion li label {
color: black;
display: flex;
align-items: center;
padding: 1vh;
font-size: 3vh;
font-weight: 500;
cursor: pointer;
}
label::before {
content: '+';
margin-right: 1vh;
font-size: 2.4vh;
font-weight: 600;
}
input[type="radio"] {
display: none;
}
.accordion .content {
color: black;
padding: 0 1vh;
line-height: 2.6vh;
max-height: 0;
overflow: hidden;
transition: max-height 0.5s, padding 0.5s;
}
.accordion .content p {
font-size: 2.5vh;
}
.accordion input[type="radio"]:checked + label + .content {
max-height: 40vh;
padding: 1vh 1vh 2vh;
}
.accordion input[type="radio"]:checked + label::before {
content: "-";
}
.content img {
max-width: 100%;
}
header {
isolation: isolate;
background-color: rgb(176, 87, 141);
color: black;
padding-left: 1%;
padding-bottom: 1.5%;
padding-top: .5%;
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: 100%;
padding: 5vw;
}
img {
max-width:60%
}
iframe{
max-width: 80%;
}
footer {
isolation: isolate;
margin: 0;
padding: .1%;
background-color: rgb(176, 87, 141);
color: black;
}
footer a {
color: black;
text-align: center;
}
@media screen and (max-width: 750px) {
#close {
display: flex;
flex-direction: column;
}
nav {
width: 100%;
padding:0;
}
nav ul{
padding:0;
}
nav li {
display: inline;
margin: 0 .5%;
padding: 1vh 1vw;
}
nav a {
font-size: calc(1px + 1vw);
}
img{
max-width:60%;
}
iframe{
max-width:80%;
margin:auto;
}
}