-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
113 lines (111 loc) · 2.23 KB
/
Copy pathstyle.css
File metadata and controls
113 lines (111 loc) · 2.23 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
@import url('https://fonts.googleapis.com/css?family=Noto+Sans+KR:300,400,500,700,900&display=swap');
*{
box-sizing: border-box;
font-family: 'Noto Sans KR', sans-serif;
}
body{
font-size: 15px;
line-height: 1.6em;
}
.btn-open{
cursor: pointer;
}
.modal{
opacity: 0;
/* border: 1px solid black; */
/* width: 600px; */
position: fixed;
top: 50%;
left: 50%;
z-index: 1;
transform: translate(-50%,-50%);
border-radius: 10px;
overflow: hidden;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.25);
background-color: white;
}
.modal-content{
width: 600px;
display: flex;
}
.photo{
/* border: 1px solid red; */
flex: 1;
background-image: url('images/office.jpg');
background-position: right;
background-repeat: no-repeat;
background-size: cover;
/* padding: 20px; */
}
.description{
/* border: 1px solid blue; */
flex: 2;
padding: 20px;
}
.desc-header{
text-align: center;
}
.btn-close{
position: absolute;
top: 10px;
right: 10px;
background-color: transparent;
border: none;
color: #bbb;
font-size: 18px;
cursor: pointer;
}
.btn-close:hover{
color: #333;
}
.desc-content{
text-align: center;
}
.desc-content input[type=email]{
display: block;
width: 100%;
padding: 5px;
margin-bottom: 10px;
border: 1px solid #ccc;
text-align: center;
outline: none;
}
.desc-content input[type=email]::placeholder{
color: #ccc;
transition: 0.5s;
}
.desc-content input[type=email]:focus::placeholder{
visibility: hidden;
opacity: 0;
}
.desc-content button[type=button]{
display: block;
width: 100%;
padding: 5px;
background-color: crimson;
color: white;
border: none;
}
.desc-content p{
font-size: 15px;
color: #666;
}
.overlay{
opacity: 0;
/* btn-open 버튼이 오버레이 화면 앞으로 나오게 하려면 overlay를 hidden으로 숨긴다. */
visibility: hidden;
width: 100%;
height: 100vh;
position: fixed;
top: 0;
left: 0;
background-color: rgba(0, 0, 0, 0.252);
}
/* modal과 overlay의 active class를 지정하여 opacity:1로 바꾼다. */
.modal.active{
opacity: 1;
}
.overlay.active{
opacity: 1;
visibility: visible;
}