-
Notifications
You must be signed in to change notification settings - Fork 0
/
layout.css
88 lines (74 loc) · 1.65 KB
/
layout.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
@charset 'utf-8';
/* 태그초기화 */
body, section, div, a, h1{margin:0;padding:0;border:none;text-decoration:none;}
h1, p, a{font-family: "맑은 고딕", "Malgun Gothic", "돋움", "dotum", "Helvetica", "Apple SD Gothic Neo", "sans-serif";}
.clear:after{content:"";display:block;clear:both}
body{
background:#ecf0f5
}
section#content{
margin:35px auto 0
}
section article {
float:left;
position:relative;
width:370px;
height:370px;
margin-bottom:35px;
background-repeat: no-repeat;
background-position: center;
}
section article h1, i, p{
position:absolute;
color:white;
}
h1, p{
width:100%;
text-align:center;
}
section article a h1.title {
top:57px;
font-size:32px;
font-weight: 600;
line-height:1.3;
}
section article a i {
top:155px;
left:50%;
font-size:50px;
margin-left:-25px;
}
section article a p.desc{
bottom:78px;
font-size:15px;
}
a {
display:block;
width:100%;
height:100%;
background-color:rgba( 0, 0, 0, 0.3 );
}
a:hover {
background-color:rgba( 0, 0, 0, 0.5 );
background-size: 110% 110%;
}
/* All Device */ /* 모든 해상도를 위한 공통 코드를 작성한다. 모든 해상도에서 이 코드가 실행됨.*/
/* Mobile Device */
section{
width:370px;
}
/* Tablet & Desktop Device */
@media all and (min-width:768px) { /* 사용자 해상도가 768px 이상일 때 이 코드가 실행됨.
}
/* Tablet Device */
@media all and (min-width:768px) and (max-width:1200px) {
section {
width:775px;
}
}
/* Desktop Device */
@media all and (min-width:1200px) {
section {
width:1180px;
}
}