-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtmp2.css
More file actions
404 lines (345 loc) · 9.65 KB
/
tmp2.css
File metadata and controls
404 lines (345 loc) · 9.65 KB
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
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
/* Font 설정 */
@font-face {
font-family: 'SBAggroB';
src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_2108@1.1/SBAggroB.woff') format('woff');
font-weight: normal;
font-style: normal;
}
/* 갤러리 스타일 */
.gallery-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* 고정된 비율 유지 */
gap: 20px;
}
.gallery-grid img {
width: 100%; /* 가로 크기를 부모 요소에 맞춤 */
height: 200px; /* 고정 높이 설정 */
object-fit: cover; /* 이미지 비율을 유지하며 크기에 맞게 잘림 */
border-radius: 8px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
transition: transform 0.3s ease;
}
.gallery-grid img:hover {
transform: scale(1.05);
}
/* CSS 변수 설정 */
:root {
--side-bar-width: 200px;
}
body {
font-family: 'SBAggroB', 'Arial', sans-serif;
margin: 0;
padding: 0;
overflow-x: hidden; /* 가로 스크롤 방지 */
padding-bottom: 120px;
}
h1 {
color: black;
font-size: 30px;
}
/* 메인 섹션 스타일 */
section {
margin-left: 240px;
padding: 2rem;
background: #ffffff;
border-radius: 12px;
margin-bottom: 2rem;
}
section h1, section h2, section h3 {
color: #006400;
margin-bottom: 1rem;
}
.activities ul, .leaders ul {
list-style: none;
padding: 0;
}
.activities li, .leaders li {
margin-bottom: 10px;
font-size: 1rem;
padding: 0.5rem;
background: #f9f9f9;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.activities li strong {
color: #008000;
}
.gallery-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
gap: 20px;
}
.gallery-grid img {
width: 100%;
border-radius: 8px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
transition: transform 0.3s ease;
}
.gallery-grid img:hover {
transform: scale(1.05);
}
/* 테이블 스타일 */
.schedule table {
width: 100%;
border-collapse: collapse;
margin-top: 20px;
text-align: center;
font-size: 1rem;
}
.schedule th, .schedule td {
text-align: center;
padding: 10px;
border: 1px solid #ddd;
}
.schedule th {
background-color: #008000;
color: white;
font-weight: bold;
}
.schedule td {
background: #f9f9f9;
color: #333;
}
.schedule tr:hover td {
background: #eef5ff;
transition: background 0.3s ease;
}
/* Header 스타일 */
header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 20px;
background-color: white;
border-bottom: 1px solid #ccc;
}
.logo {
display: flex;
align-items: center;
}
.logo img {
height: 80px;
margin-right: 15px;
}
.search-container {
display: flex;
align-items: center; /* 아이템들을 수직으로 중앙 정렬 */
position: relative;
gap: 10px; /* 입력창과 아이콘 사이의 간격 설정 */
}
.search-container input {
padding: 15px; /* 내부 여백 */
font-size: 20px; /* 글씨 크기 */
border: 3px solid #000; /* 두꺼운 테두리 */
border-radius: 5px; /* 둥근 모서리 */
font-weight: bold; /* 글씨 두껍게 */
box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2); /* 약간의 그림자 */
flex: 1; /* 입력창이 남은 공간을 차지하도록 설정 */
}
.search-container .search-icon {
cursor: pointer;
font-size: 40px; /* 아이콘 크기 조정 */
color: black;
transition: transform 0.2s ease, color 0.2s ease;
line-height: 1; /* 아이콘 수직 정렬 조정 */
}
.search-container .search-icon:hover {
transform: scale(1.1); /* 호버 시 약간의 확대 */
color: #555; /* 호버 색상 */
}
.search-container .menu-links a {
text-decoration: none;
margin-left: 15px;
font-size: 20px; /* 글씨 크기 증가 */
color: black;
}
#search-results {
position: absolute;
top: calc(100% + 5px); /* 검색창 바로 아래 */
left: 0;
width: 280px; /* 검색창 너비와 동일하게 설정 */
background-color: white;
border: 1px solid #ccc;
box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
z-index: 10;
padding: 10px;
display: none; /* 기본적으로 숨김 */
border-radius: 5px; /* 둥근 모서리 */
font-size: 16px; /* 검색 결과 글씨 크기 */
}
#search-results p {
margin: 0;
padding: 5px 0;
font-size: 16px;
}
#search-results a {
text-decoration: none;
color: black;
}
#search-results a:hover {
text-decoration: underline;
}
/* Footer 스타일 */
footer {
display: flex;
justify-content: space-between;
align-items: center;
padding: 20px;
background-color: white;
border-top: 1px
solid
#ccc;
font-size: 18px;
position: fixed;
bottom: 0;
left: 0;
width: 100%;
box-sizing: border-box; /* padding을 width에 포함시켜서 글씨가 잘리지 않게 수정 */
}
/* 아이콘 컨테이너 */
.icon-wrapper {
position: relative;
display: inline-block;
margin-right: 7px;
cursor: pointer;
}
/* 아이콘 스타일 */
.footer-icon {
width: 40px; /* 아이콘 너비 */
height: 40px; /* 아이콘 높이 */
transition: transform 0.2s ease;
}
.footer-icon:hover {
transform: scale(1.3); /* 아이콘 확대 */
}
/* 툴팁 스타일 */
.tooltip {
position: absolute;
top: -40px; /* 아이콘 위에 위치 */
left: 50%;
transform: translateX(-50%);
background-color: rgba(0, 0, 0, 0.8);
color: white;
padding: 5px 10px;
border-radius: 5px;
font-size: 14px;
white-space: nowrap;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
opacity: 0; /* 기본적으로 숨김 */
transition: opacity 0.3s ease, transform 0.3s ease;
pointer-events: none; /* 마우스 이벤트 차단 */
}
/* 툴팁 화살표 */
.tooltip::after {
content: '';
position: absolute;
bottom: -5px; /* 툴팁 아래에 삼각형 추가 */
left: 50%;
transform: translateX(-50%);
border-width: 5px;
border-style: solid;
border-color: rgba(0, 0, 0, 0.8) transparent transparent transparent;
}
/* 마우스를 올렸을 때 툴팁 표시 */
.icon-wrapper:hover .tooltip {
opacity: 1; /* 툴팁 표시 */
transform: translateX(-50%) translateY(-5px); /* 약간 위로 이동 */
}
.footer-right {
display: flex;
align-items: center;
gap: 15px; /* 아이콘과 텍스트 간 간격 */
justify-content: flex-end; /* 오른쪽 정렬 */
}
.footer-right .text {
text-align: right; /* 텍스트 오른쪽 정렬 */
}
.footer-right img {
width: 40px; /* 이미지 너비 */
height: 40px; /* 이미지 높이 */
cursor: pointer;
}
.footer-right img:hover {
opacity: 0.8; /* 마우스 호버 시 투명도 */
}
.footer-right .text p {
margin: 0;
line-height: 1.6;
}
/* 사이드바 스타일 */
.side-bar {
position: fixed;
top: 120px; /* 로고 아래로 위치 조정 */
left: 0;
width: var(--side-bar-width);
height: calc(100vh - 120px);
background-color: black;
color: white;
border-radius: 0 20px 20px 0;
transform: translate(calc(var(--side-bar-width) * -0.99), 0); /* 처음에 99% 숨기기 */
transition: transform 0.5s ease-in-out;
padding: 20px;
display: flex;
flex-direction: column;
overflow-y: auto; /* 콘텐츠가 넘칠 경우 스크롤 표시 */
z-index: 1001;
font-size: 15px; /* 글씨 크기 증가 */
}
.side-bar:hover {
transform: translate(0, 0); /* 호버 시 원래 위치로 */
}
.side-bar ul {
list-style: none;
padding: 0;
margin: 0;
position: relative; /* 리스트 위치를 기준으로 z-index 적용 가능 */
z-index: 2; /* 화살표보다 위에 표시 */
}
.side-bar li {
margin-right: 20px;
padding: 20px 25px;
cursor: pointer;
font-size: 15px; /* 글씨 크기 증가 */
}
.side-bar li:hover {
background-color: #555;
}
/* 화살표 표시 */
.side-bar::after {
content: '>';
position: absolute;
top: 45%;
right: -5px; /* 사이드바 오른쪽 외부로 살짝 나가게 설정 */
margin-right: 10px;
transform: translateY(-50%);
background-color: black;
color: white;
width: 25px;
height: 25px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 50%;
font-size: 18px;
transition: content 0.5s ease-in-out;
z-index: 1; /* 화살표를 다른 콘텐츠 아래로 */
pointer-events: none; /* 클릭 방지 */
}
.side-bar:hover::after {
content: '<'; /* 호버 시 화살표 모양 변경 */
}
.footer-links {
margin-top: 20px; /* 상단 콘텐츠와 간격 추가 */
border-top: 1px solid #666; /* 구분선 추가 */
padding-top: 10px;
}
.footer-links a {
color: white;
text-decoration: none;
font-size: 15px; /* 글씨 크기 증가 */
margin: 10px 0; /* 각 링크 간의 간격 */
display: block; /* 각 링크가 개별적으로 표시 */
}
.footer-links a:hover {
color: #ddd;
}