質問編集履歴

1

該当のソースコード蘭にソースを記載しました。またHTMLのコードを追記致しました。

2019/08/25 14:00

投稿

K2816
K2816

スコア7

test CHANGED
File without changes
test CHANGED
@@ -10,7 +10,7 @@
10
10
 
11
11
  以下CSS
12
12
 
13
- .modal-wrapper {        //背景固定    
13
+ .modal-wrapper {          
14
14
 
15
15
  position: fixed;
16
16
 
@@ -30,7 +30,7 @@
30
30
 
31
31
 
32
32
 
33
- .modal {            //モーダル位置の調整
33
+ .modal {            
34
34
 
35
35
  position: absolute;
36
36
 
@@ -72,7 +72,7 @@
72
72
 
73
73
 
74
74
 
75
-
75
+ 下記ソース修正致しました。
76
76
 
77
77
 
78
78
 
@@ -100,13 +100,179 @@
100
100
 
101
101
 
102
102
 
103
- ```ここに言語名を入力
103
+ ```HTML
104
+
104
-
105
+ <div class="signup-modal-wrapper" id="signup-modal">
106
+
107
+ <div class="modal">
108
+
105
- ソースコード
109
+ <div>
110
+
106
-
111
+ <i class="fa fa-2x fa-times" id="close-modal"></i>
112
+
113
+ </div>
114
+
115
+ <div id="signup-form">
116
+
117
+ <h2>Emailで新規登録</h2>
118
+
119
+ <form action="#">
120
+
121
+ <input class="form-control" type="text" placeholder="メールアドレス">
122
+
123
+ <input class="form-control" type="password" placeholder="パスワード">
124
+
125
+ <div id="submit-btn">新規登録</div>
126
+
127
+ </form>
128
+
129
+ </div>
130
+
131
+ </div>
132
+
133
+ </div>
134
+
135
+ <!-- モーダルここまで -->
136
+
107
- ```
137
+ ```
138
+
139
+
140
+
108
-
141
+ ```CSS
142
+
143
+
144
+
109
-
145
+ /*モーダル*/
146
+
147
+ .signup-modal-wrapper {
148
+
149
+ position: fixed;
150
+
151
+ top: 0;
152
+
153
+ right: 0;
154
+
155
+ bottom: 0;
156
+
157
+ left: 0;
158
+
159
+ background-color: rgba(0, 0, 0, 0.6);
160
+
161
+ z-index: 100;
162
+
163
+ display: none;
164
+
165
+ }
166
+
167
+
168
+
169
+ .modal {
170
+
171
+ position: absolute;
172
+
173
+ top: 20%;
174
+
175
+ left: 34%;
176
+
177
+ background-color: #e6ecf0;
178
+
179
+ padding: 20px 0 40px;
180
+
181
+ border-radius: 10px;
182
+
183
+ width: 450px;
184
+
185
+ height: auto;
186
+
187
+ text-align: center;
188
+
189
+ }
190
+
191
+
192
+
193
+ .fa-times {
194
+
195
+ position: absolute;
196
+
197
+ top: 12px;
198
+
199
+ right: 12px;
200
+
201
+ color: rgba(128, 128, 128, 0.46);
202
+
203
+ cursor: pointer;
204
+
205
+ }
206
+
207
+
208
+
209
+ #signup-form {
210
+
211
+ width: 100%;
212
+
213
+ }
214
+
215
+
216
+
217
+ #signup-form h2 {
218
+
219
+ color: #5f5d60;
220
+
221
+ letter-spacing: 1px;
222
+
223
+ margin-bottom: 40px;
224
+
225
+ }
226
+
227
+
228
+
229
+ #signup-form input {
230
+
231
+ width: 320px;
232
+
233
+ margin-bottom: 20px;
234
+
235
+ font-size: 12px;
236
+
237
+ padding: 12px 12px;
238
+
239
+ border: 1px solid #d0d5d8;
240
+
241
+ border-radius: 5px;
242
+
243
+ }
244
+
245
+
246
+
247
+ #submit-btn {
248
+
249
+ display: inline-block;
250
+
251
+ padding: 14px 140px;
252
+
253
+ background-color: #5dca88;
254
+
255
+ border: none;
256
+
257
+ border-radius: 3px;
258
+
259
+ color: white;
260
+
261
+ margin: 10px auto;
262
+
263
+ cursor: pointer;
264
+
265
+ }
266
+
267
+
268
+
269
+
270
+
271
+
272
+
273
+
274
+
275
+ ```
110
276
 
111
277
  ### 試したこと
112
278