-
Notifications
You must be signed in to change notification settings - Fork 0
/
style-hobby.css
216 lines (185 loc) · 3.87 KB
/
style-hobby.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
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
body {
margin: 0;
padding: 0;
font-family: Arial Narrow, sans-serif;
}
h1 {
margin-left: 15px;
}
.wrapper {
display: flex;
}
.sidebar {
width: 250px;
background-color: #F2DBD6;
padding: 20px;
border-radius: 8px;
}
.sidebar img {
max-width: 100%;
border-radius: 50%;
border-style: solid;
border-color: black;
}
.sidebar img:hover {
background-color: #F3F3F3;
opacity: 0.7;
}
.sidebar h1 {
margin-top: 10px;
font-size: 40px;
color: black;
}
.sidebar p {
font-size: 18px;
color: black;
font-style: italic;
text-align: justify;
}
.sidebar span {
font-weight: bold;
}
.sidebar ul {
margin-top: 60px;
list-style: none;
padding: 0;
}
.sidebar ul li {
margin-bottom: 30px;
margin-left: 90px;
}
.sidebar ul li a {
text-decoration: none;
color: black;
font-size: 23px;
}
.sidebar ul li:hover {
color: white;
background-color: #E3C5BB; /* Change the background color on hover */
border-radius: 8px; /* Remove the initial rounded corners */
margin-right: 10px; /* Adjust the padding to follow the length of the text */
margin-left: 10px;
padding-left: 50px;
font-weight: bold;
}
/* Change the icon color on hover */
.sidebar ul li:hover i {
color: black; /* Change the icon color on hover */
background-color: #E3C5BB;
border-radius: 8px;
margin-right: 10px; /* Adjust the padding to follow the length of the text */
margin-left: 40px;
}
.list-item.active a {
margin-right: 10px; /* Adjust the padding to follow the length of the text */
margin-left: 0px;
padding-left: 0px;
font-weight: bold;
font-size: xx-large;
}
.list-item.active i {
font-size: x-large;
margin-right: 10px; /* Adjust the padding to follow the length of the text */
margin-left: -3px;
}
.list-item {
position: relative;
}
.list-item i {
position: absolute;
left: -35px;
font-size: 20px;
color: black;
top: 50%;
transform: translateY(-50%);
}
.social-links {
margin-top: 70px;
margin-left: 52px;
}
.social-links a {
text-decoration: none;
font-size: 24px;
color: black;
margin-right: 30px; /* Add space between icons */
}
.social-links a i {
vertical-align: middle; /* Vertically center the icon with the text */
}
.social-links a:hover{
color: white;
}
.content {
flex: 1;
padding: 20px;
background-color: #F3F3F3;
margin-left: 20px;
margin-right: 20px;
border-radius: 8px;
margin-bottom: auto;
}
h2 {
margin-top: 0px;
font-size: xx-large;
font-family: Arial;
text-align: left;
color: black;
}
.hobby-catalog {
display: flex;
flex-wrap: wrap;
gap: 20px;
margin-top: 20px;
margin-bottom: 20px;
}
.hobby-item {
flex: 1; /* Use flex to allow items to share available space */
background-color: #fff;
border: 1px solid #ddd;
border-radius: 8px;
padding: 10px;
padding-bottom: auto;
max-width: calc(50% - 10px); /* Set a maximum width of 50% minus 10px for padding */
box-sizing: border-box; /* Ensure padding and border are included in the max-width calculation */
}
.hobby-item img {
max-width: 100%;
border-radius: 8px;
}
.hobby-item img:hover {
background-color: #F3F3F3;
opacity: 0.7;
}
.hobby-item h3 {
font-size: 20px;
margin: 10px 0;
color: black;
}
.hobby-item p {
font-size: 16px;
color: #666;
margin-bottom: 10px;
text-align: justify;
}
.hobby-item video {
width: 100%;
max-width: 100%;
border-radius: 8px;
margin-top: 10px;
}
.hobby-item video:hover {
background-color: #F3F3F3;
opacity: 0.7;
}
.footer {
text-align: center;
background-color: #F2DBD6;
color: black;
font-weight: bold;
padding: 10px 0;
border-radius: 8px;
position: relative;
bottom: 0;
width: 100%;
margin-top: 10px;
}