-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
236 lines (206 loc) · 4.18 KB
/
style.css
File metadata and controls
236 lines (206 loc) · 4.18 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
/* 전체 기본 설정 */
body {
font-family: Arial, sans-serif;
background-color: #f4f4f9;
color: #333;
margin: 0;
padding: 0;
}
/* 헤더 및 푸터 */
header, footer {
text-align: center;
padding: 20px;
background-color: #333;
color: #fff;
align-items: center;
}
h1 {
font-size: 2.5em;
margin: 10px 0;
}
h2 {
color: #555;
border-bottom: 2px solid #333;
padding-bottom: 5px;
}
header img {
display: block;
margin: 0 auto;
}
footer p {
margin: 0;
font-size: 0.9em;
}
header .header-name {
display: flex;
justify-content: left;
float: left;
position: absolute;
}
/* 헤더 액션(로그인, 홈, 회원가입 버튼 등) */
header .header-actions {
display: flex;
justify-content: center;
gap: 15px;
margin-top: 10px;
}
header .header-actions a {
text-decoration: none;
padding: 10px 20px;
background-color: #333;
color: yellow;
border-radius: 5px;
font-size: 1rem;
transition: background-color 0.3s;
}
header .header-actions a:hover {
background-color: #555;
color: #fff;
}
/* 로그인 및 회원가입 폼 공통 스타일 */
.login-form, .register-form {
width: 100%;
max-width: 500px;
margin: 40px auto;
background-color: #fff;
padding: 20px;
border-radius: 5px;
border: 1px solid #ddd;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.login-form label,
.register-form label {
font-weight: bold;
color: #333;
margin-bottom: 5px;
}
.login-form input[type="text"],
.login-form input[type="password"],
.register-form input[type="text"],
.register-form input[type="password"],
.register-form input[type="email"] {
width: 100%;
padding: 10px;
margin: 10px 0;
border: 1px solid #ddd;
border-radius: 5px;
font-family: Arial, sans-serif;
font-size: 1rem;
color: #333;
}
.login-form button,
.register-form button {
width: 100%;
padding: 10px;
background-color: #333;
color: #fff;
border: none;
border-radius: 5px;
cursor: pointer;
font-size: 1rem;
}
.login-form button:hover,
.register-form button:hover {
background-color: #555;
}
/* 푸터 */
footer {
text-align: center;
background-color: #333;
color: white;
padding: 10px;
font-size: 0.9rem;
}
/* 인풋 필드 및 텍스트 에어리어 기본 스타일 */
input[type="text"],
input[type="password"],
input[type="email"],
textarea {
font-family: Arial, sans-serif;
font-size: 1rem;
color: #333;
width: 100%;
}
/* 버튼 스타일 */
button {
background-color: #333;
color: #fff;
padding: 10px 20px;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s;
}
button:hover {
background-color: #555;
}
/* 제목 링크 */
table a {
background-color: transparent;
color: #007BFF;
padding: 0;
text-decoration: underline;
display: inline-block;
max-width: 200px; /* 제목의 최대 너비를 200px로 고정 */
overflow: hidden;
text-overflow: ellipsis; /* 제목이 길 경우 '...'으로 표시 */
white-space: nowrap; /* 줄바꿈을 방지하고 한 줄로 유지 */
}
table a:hover {
color: #0056b3;
text-decoration: none;
}
/* 게시판 목록 및 게시글 작성 페이지 */
main section {
width: 80%;
margin: 0 auto 20px;
padding: 20px;
background-color: #fff;
border: 1px solid #ddd;
border-radius: 5px;
}
table {
width: 100%;
border-collapse: collapse;
margin: 10px 0;
border: 1px solid #ddd;
}
th, td {
padding: 10px;
text-align: center;
border: 1px solid #ddd;
}
th {
background-color: #f8f8f8;
}
/* 글 작성 폼 */
form {
display: flex;
flex-direction: column;
gap: 10px;
}
form input[type="text"], form textarea {
width: 100%;
padding: 8px;
border: 1px solid #ddd;
border-radius: 5px;
}
form button {
width: 100px;
padding: 10px;
background-color: #333;
color: #fff;
border: none;
border-radius: 5px;
cursor: pointer;
}
form button:hover {
background-color: #555;
}
/* 삭제 버튼 중앙 정렬 */
td form {
text-align: center;
}
td form button {
margin: auto;
display: block;
}