李志伟 пре 3 година
родитељ
комит
c2f18833b6
1 измењених фајлова са 41 додато и 28 уклоњено
  1. 41
    28
      src/pages/signup.vue

+ 41
- 28
src/pages/signup.vue Прегледај датотеку

1
 <template>
1
 <template>
2
-  <div>
2
+  <div class="signup-box">
3
     <img class="bgi" src="../../public/images/signup/bgi.jpg" />
3
     <img class="bgi" src="../../public/images/signup/bgi.jpg" />
4
     <div class="form">
4
     <div class="form">
5
       <div class="formItem">
5
       <div class="formItem">
167
 }
167
 }
168
 </script>
168
 </script>
169
 <style lang="scss" scoped>
169
 <style lang="scss" scoped>
170
+// * {
171
+//   margin: 0;
172
+//   padding: 0;
173
+// }
174
+
175
+.signup-box {
176
+  overflow: hidden;
177
+  height: 100%;
178
+}
179
+
170
 .bgi {
180
 .bgi {
171
-  z-index: 1;
172
   width: 100%;
181
   width: 100%;
173
   position: absolute;
182
   position: absolute;
174
 }
183
 }
175
 .form {
184
 .form {
185
+  position: relative;
176
   color: #a6b1ab;
186
   color: #a6b1ab;
177
-  position: absolute;
178
-  margin-top: 18%;
179
-  z-index: 2;
187
+  margin-top: 80px;
188
+  padding: 0 8vw;
189
+  box-sizing: border-box;
190
+
191
+
180
   .formItem {
192
   .formItem {
181
-    position: absolute;
182
-    width: 82vw;
183
-    height: 3vh;
184
-    line-height: 3vh;
185
-    margin: 6vw;
186
-    padding: 3vw;
193
+    width: 100%;
194
+    font-size: 16px;
195
+    line-height: 2.6em;
196
+    padding: 0 1em;
187
     border: 1px solid #4f5054;
197
     border: 1px solid #4f5054;
188
     background-color: #212226;
198
     background-color: #212226;
199
+    box-sizing: border-box;
200
+
201
+    & + .formItem {
202
+      margin-top: 1.2em;
203
+    }
189
 
204
 
190
     & > label {
205
     & > label {
191
       display: inline-block;
206
       display: inline-block;
192
       width: 4.5em;
207
       width: 4.5em;
193
     }
208
     }
209
+    
194
     .duiqi {
210
     .duiqi {
195
-      background-color: #212226;
211
+      display: inline-block;
212
+      background-color: transparent;
196
       border: none;
213
       border: none;
197
       text-align: right;
214
       text-align: right;
198
-      float: right;
199
-      width: calc(100% - 7em);
215
+      width: calc(100% - 5em);
216
+      height: 2.6em;
217
+      line-height: 2.6em;
200
       overflow: hidden;
218
       overflow: hidden;
201
       text-overflow: ellipsis;
219
       text-overflow: ellipsis;
202
       white-space: nowrap;
220
       white-space: nowrap;
221
+      vertical-align: middle;
222
+      padding: 0;
223
+      margin: 0;
224
+      outline: none;
203
     }
225
     }
226
+
204
     .checkedImg {
227
     .checkedImg {
205
       width: 16px;
228
       width: 16px;
206
       top: 2px;
229
       top: 2px;
213
     color: #696969;
236
     color: #696969;
214
   }
237
   }
215
 
238
 
216
-  .name {
217
-    margin-top: 23%;
218
-  }
219
-  .phonediv {
220
-    margin-top: 40%;
221
-  }
222
-  .intendedProductdiv {
223
-    margin-top: 57%;
224
-  }
225
-  .addressdiv {
226
-    margin-top: 74%;
227
-  }
228
   .submit {
239
   .submit {
229
-    margin: 93% 0 0 27.5vw;
230
-    width: 45%;
240
+    display: block;
241
+    margin-top: 2em;
242
+    margin-left: auto;
243
+    margin-right: auto;
231
   }
244
   }
232
 }
245
 }
233
 </style>
246
 </style>