-
Notifications
You must be signed in to change notification settings - Fork 0
/
team.css
77 lines (68 loc) · 1.81 KB
/
team.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
/* Add styles specific to the team page */
.Member {
display: flex;
margin: 20px auto; /* Center the Member boxes on the page */ /* Limit the width of each member box */
height: 200px; /* Limit the height of each member box */
border: 2px solid black; /* Add border for each member box */
border-radius: 8px; /* Add border-radius for rounded corners */
background-color: goldenrod;
}
.Member-Image {
flex: 1;
display: flex;
justify-content: center;
align-items: center;
margin-right: 20px;
background-color: goldenrod;
border: maroon;
}
.Member-Image img {
width: 95%; /* Adjust image width as needed */
height: 95%;
border-radius: 5px;
border: maroon;
}
.Member-Content {
flex: 2;
display: flex;
flex-direction: column;
justify-content: center;
background-color: goldenrod;
font-weight: 650;
color: rgb(44, 0, 0);
}
.Member-Content h4 {
margin-bottom: 10px;
text-align: center; /* Center the text in Member-Content */
}
body {
overflow-y: scroll !important; /* Add scroll for overflow content */
}
@media (max-width: 550px){
.Member{
width: 70vw;
height: 160px;
}
}
@media (min-width: 550px){
.Member{
width: 530px;
}
}
@media (max-width: 440px) {
.Member {
flex-direction: column; /* Change flex direction to column */
max-width: 80%; /* Allow member boxes to take full width */
height: fit-content;
}
.Member-Image,
.Member-Content {
flex: 1; /* Equal width for image and content */
margin-right: 0; /* Remove margin between image and content */
padding: 8px;
}
.Member-Image img {
width: 80%; /* Make image take full width */
border-radius: 5px 5px 0 0; /* Add border-radius to top corners only */
}
}