-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
256 lines (217 loc) · 3.41 KB
/
style.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
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
* {
box-sizing: border-box;
}
#nav {
/*border: 1px solid red;*/
background-color: #ff6600;
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: 100
}
#content {
/*border: 1px solid blue;*/
position: relative;
top: 78px;
padding: 15px;
}
.container {
/*border : 1px solid #ccc;*/
}
#about, #my-work, #contact-me {
/*border: 1px solid yellow;*/
}
.menu li {
display: inline-block;
width: 150px;
padding: 10px 0px;
border: 1px solid #fff;
border-radius: 8px;
list-style-type: none;
text-align: center;
background-color: #ff6600;
color: #fff;
}
a {
display: block;
color: #fff;
text-decoration: none;
}
li:hover {
border: 1px solid #ff6600;
background-color: #fff;
}
li:hover a {
color: #ff6600;
font-weight: 800;
}
#my-avatar {
/*border: 1px solid red; /* 標示用,排版完記得拿掉 */*/
float: left;
}
#my-avatar {
float: left;
margin-right: 20px;
}
#my-avatar img {
width: 200px;
}
h1 {
margin-bottom: 0;
}
h3 {
margin: 0;
}
table {
font-size: 14px;
text-align: left;
}
th, td {
vertical-align: top;
}
td {
color: #666;
padding-left: 10px;
}
hr {
/*border: 0.5px solid #eee;*/
}
.item {
position: relative;
}
.item-info {
/*border: 1px solid red;*/ /* 標示用,排版完記得拿掉 */
background-color: rgba(255,255,255,.8); /* 背景半透明 */
position: absolute;
top: 0;
left: 0;
}
.item{
max-width: 30%;
display: inline-block;
margin-bottom: 10px;
}
.item img{
width: 100%;
}
.item-info{
width: 100%;
height:100%;
text-align: center;
/* padding: 25px 10px;*/
opacity: 0;
}
.item-info:hover {
opacity: 1;
}
#contact-me {
/*border: 1px solid green;*/ /* 標示用,完成後刪除 */
}
form.contact-form {
/*border: 1px solid red; */ /* 標示用,完成後刪除 */
width: 50%;
margin: 0 auto;
}
.form-row {
margin-bottom: 15px;
}
.form-row input, .form-row textarea {
border-radius: 3px;
width: 100%;
border: 1px solid #D6D9DC;
padding: 7px;
}
.form-row textarea {
resize: none;
height: 4em;
}
.container {
/* border: 1px solid #ccc;*/ /* 標示用,完成排版後刪除*/
width: 800px;
margin: 0 auto;
}
#content > .container > div {
padding: 78px 0;
}
hr.bar {
border: 2px solid #ff6600;
width: 80px;
}
.menu {
float: right;
}
h1 {
text-align: center;
}
#about h1 {
margin-bottom: 0;
text-align: left;
}
#my-work-gallery {
text-align: center;
}
/*
原始 css code
*/
@media screen and (min-width: 1024px) {
.menu-button {
display: none;
}
}
@media screen and (max-width: 1023px) {
.container {
width: auto;
}
#my-avatar {
width: 100%;
}
#my-avatar img {
display: block;
margin: 15px auto;
}
.menu-button {
float: right;
font-size: 25px;
line-height: 40px;
color: white;
background: transparent;
padding: 0 15px;
border: 0;
}
.menu-button-checkbox {
position: fixed;
top: 0;
right: 0;
width: 55px;
height: 40px;
opacity: 0;
}
.menu-button-checkbox:checked ~ .menu {
display: block;
}
.menu {
display: none;
margin-top: 0;
padding-left: 0;
position: fixed;
right: 0;
top: 40px;
width: 150px;
height: 100%;
background: lightgreen;
}
.menu li {
border: 0;
border-radius: 0;
}
.item {
max-width: 100%;
}
form.contact-form {
width: 80%;
}
/*
手機版的 css 都寫在這邊
*/
}