|
4 | 4 | left: 0; |
5 | 5 | width: 100vw; |
6 | 6 | height: 100vh; |
7 | | - background: rgba(0,0,0,0.2); |
| 7 | + background: rgba(0,0,0,0.5); |
8 | 8 | overflow: hidden; |
9 | 9 | z-index: 98; |
10 | 10 | } |
11 | | -.on-success div{ |
12 | | - position: absolute; |
13 | | - top: 50%; |
14 | | - left: 50%; |
15 | | - transform: translate(-50%, -50%); |
16 | | - width: 60vw; |
17 | | - height: 40vh; |
18 | | - border-radius: 2em; |
19 | | - text-align: center; |
20 | | - background: #333333; |
21 | | - z-index: 99; |
| 11 | +.on-success div { |
| 12 | + position: absolute; |
| 13 | + top: 50%; |
| 14 | + left: 50%; |
| 15 | + transform: translate(-50%, -50%); |
| 16 | + width: 90vw; |
| 17 | + height: 90vh; |
| 18 | + max-width: 600px; |
| 19 | + max-height: 500px; |
| 20 | + border-radius: 2em; |
| 21 | + text-align: center; |
| 22 | + background: #333333; |
22 | 23 | display: flex; |
23 | 24 | flex-flow: column wrap; |
24 | 25 | align-items: center; |
25 | 26 | justify-content: center; |
| 27 | + z-index: 99; |
26 | 28 | } |
27 | | - |
28 | 29 | .on-success div h1 { |
29 | 30 | color: white; |
30 | 31 | } |
31 | 32 | .error { |
32 | 33 | border:2px solid red; |
33 | 34 | } |
34 | | - |
35 | 35 | .errorsBlock { |
36 | 36 | font-size: 14px; |
37 | 37 | color: red; |
38 | 38 | } |
39 | | - |
40 | 39 | .hiddenWindow { |
41 | 40 | display: none; |
42 | 41 | } |
43 | | - |
44 | | -@media only screen and (max-width : 680px) { |
45 | | - .on-success h1 { |
46 | | - font-size: 30px; |
47 | | - } |
48 | | -} |
49 | | - |
50 | | -a img { |
51 | | - position: absolute; |
52 | | - height: 4em; |
53 | | - width: 4em; |
54 | | - top: 4%; |
55 | | -} |
56 | | - |
57 | | -a img:hover { |
58 | | - height: 5em; |
59 | | - width: 5em; |
60 | | -} |
61 | | - |
62 | 42 | form { |
63 | 43 | background-color: #efefef; |
64 | | - width: 40em; |
| 44 | + width: calc(100% - 10em); |
| 45 | + max-width: 640px; |
| 46 | + min-height: 500px; |
| 47 | + padding: 3em; |
65 | 48 | flex: 0; |
66 | | - padding: 3em 5em; |
67 | 49 | text-align: center; |
68 | 50 | z-index: 2; |
69 | 51 | } |
70 | | -input { |
71 | | - font-family: "Montserrat", sans-serif; |
72 | | - font-weight: 300; |
73 | | - font-size: 16px; |
74 | | - background: inherit; |
75 | | - border: none; |
76 | | - border-bottom: 2px solid black; |
77 | | - padding: 0.5em; |
78 | | -} |
79 | | -select { |
80 | | - font-family: "Montserrat", sans-serif; |
81 | | - font-weight: 300; |
82 | | - font-size: 16px; |
83 | | - background: inherit; |
84 | | - border: 2px solid black; |
85 | | -} |
| 52 | +input, |
| 53 | +select, |
86 | 54 | textarea { |
87 | | - font-family: "Montserrat", sans-serif; |
88 | | - font-weight: 300; |
89 | | - font-size: 16px; |
90 | | - background: inherit; |
| 55 | + font-family: "Montserrat", sans-serif; |
| 56 | + font-weight: 300; |
| 57 | + font-size: 16px; |
| 58 | + background: inherit; |
91 | 59 | border: 2px solid black; |
92 | 60 | } |
93 | | -input[type='file']{ |
| 61 | +input { |
| 62 | + border: none; |
| 63 | + border-bottom: 2px solid black; |
| 64 | + padding: 0.5em; |
| 65 | +} |
| 66 | +input[type='file'] { |
94 | 67 | width: 60%; |
95 | | - border:none; |
96 | | - font-family: "Montserrat", sans-serif; |
97 | | - font-weight: 400; |
98 | | - font-size: 16px; |
99 | | - padding: 1em 2em; |
| 68 | + border:none; |
| 69 | + font-family: "Montserrat", sans-serif; |
| 70 | + font-weight: 400; |
| 71 | + font-size: 16px; |
| 72 | + padding: 1em 2em; |
100 | 73 | } |
101 | 74 | button { |
102 | | - font-family: "Montserrat", sans-serif; |
103 | | - font-weight: 700; |
104 | | - font-size: 18px; |
105 | | - padding: 1em 2em; |
106 | | - margin: 1em; |
107 | | - text-transform: uppercase; |
108 | | - border: none; |
109 | | - border-radius: 2em; |
110 | | - background: #20D7C0; |
111 | | - color: white; |
112 | | - cursor: pointer; |
113 | | - transition: all 0.3s ease-in-out; |
| 75 | + font-family: "Montserrat", sans-serif; |
| 76 | + font-weight: 700; |
| 77 | + font-size: 18px; |
| 78 | + padding: 1em 2em; |
| 79 | + margin: 1em; |
| 80 | + text-transform: uppercase; |
| 81 | + border: none; |
| 82 | + border-radius: 2em; |
| 83 | + background: #20D7C0; |
| 84 | + color: white; |
| 85 | + cursor: pointer; |
| 86 | + transition: all 0.3s ease-in-out; |
| 87 | +} |
| 88 | +button:hover { |
| 89 | + background: black; |
| 90 | + color: #20D7C0; |
114 | 91 | } |
115 | | -button:hover{ |
116 | | - background: black; |
117 | | - color: #20D7C0; |
118 | | -} |
119 | | - |
120 | | -@media all and (max-width: 640px){ |
121 | | - form { |
122 | | - width: 21em; |
123 | | - font-size: 1em; |
124 | | - } |
125 | | - input[type=text], textarea { |
126 | | - width:50%; |
127 | | - } |
128 | | - a img { |
129 | | - height: 3em; |
130 | | - width: 3em; |
131 | | - } |
132 | 92 |
|
133 | | - a img:hover { |
134 | | - height: 4em; |
135 | | - width: 4em; |
136 | | - } |
| 93 | +@media all and (max-width: 640px) { |
| 94 | + .on-success h1 { |
| 95 | + font-size: 30px; |
| 96 | + } |
| 97 | + form { |
| 98 | + font-size: 1em; |
| 99 | + } |
| 100 | + input[type=text], |
| 101 | + textarea { |
| 102 | + width:50%; |
| 103 | + } |
137 | 104 | } |
0 commit comments