1+ * {
2+ margin : 0 ;
3+ padding : 0 ;
4+ box-sizing : border-box;
5+ }
6+
7+ body {
8+ width : 100% ;
9+ min-height : 100vh ;
10+ display : grid;
11+ place-items : center;
12+ align-content : center;
13+ background-color : rgba (0 , 0 , 0 , 0.9 );
14+ font-family : Arial, Helvetica, sans-serif;
15+ }
16+
17+ h1 {
18+ color : # fff ;
19+ margin-bottom : 2rem ;
20+ }
21+
22+ .container {
23+ width : 20rem ;
24+ position : relative;
25+ background-color : # fff ;
26+ border-radius : 5px ;
27+ border : 1px solid gray;
28+ }
29+
30+ .nameDiv {
31+ display : flex;
32+ justify-content : flex-start;
33+ align-items : center;
34+ background-color : # fff ;
35+ font-size : 1rem ;
36+ padding : 0.3rem ;
37+ margin : 1rem ;
38+ border-radius : 5px ;
39+ border : 1px solid gray;
40+ }
41+
42+ .nameDiv .name , .bioDiv .bio {
43+ width : 100% ;
44+ color : # 000 ;
45+ font-size : 1rem ;
46+ min-height : 1.5rem ;
47+ padding-left : 0.5rem ;
48+ }
49+
50+ .name {
51+ display : flex;
52+ justify-content : flex-start;
53+ align-items : center;
54+ }
55+
56+ .bioDiv {
57+ display : flex;
58+ justify-content : flex-start;
59+ align-items : flex-start;
60+ background-color : # fff ;
61+ font-size : 1rem ;
62+ padding : 0.3rem ;
63+ margin : 1rem ;
64+ border-radius : 5px ;
65+ border : 1px solid gray;
66+ }
67+
68+ .bioDiv .bio {
69+ min-height : 4rem ;
70+ font-size : 1rem ;
71+ }
72+
73+ # editBtn {
74+ width : 20% ;
75+ font-size : 1rem ;
76+ background-color : # fff ;
77+ border : 0 ;
78+ outline : 0 ;
79+ padding : 0.3rem ;
80+ margin : 1rem ;
81+ margin-top : 0 ;
82+ border-radius : 5px ;
83+ cursor : pointer;
84+ border-radius : 5px ;
85+ border : 1px solid gray;
86+ }
87+
88+ # editBtn : hover {
89+ color : # fff ;
90+ background-color : royalblue;
91+ border : 1px solid royalblue;
92+ }
93+
94+ .page {
95+ width : 100% ;
96+ min-height : 100% ;
97+ background-color : gray;
98+ display : flex;
99+ justify-content : space-between;
100+ align-items : flex-end;
101+ flex-direction : column;
102+ position : absolute;
103+ top : 0 ;
104+ padding : 0.6rem 1rem ;
105+ border-radius : 5px ;
106+ }
107+
108+ .closeBtn , .inputDiv , .saveDiv {
109+ width : 100% ;
110+ }
111+
112+ .closeBtn {
113+ display : flex;
114+ justify-content : flex-end;
115+ align-items : center;
116+ }
117+
118+ # saveBtn , # inputName , # inputBio {
119+ font-size : 1rem ;
120+ font-family : sans-serif;
121+ border-radius : 5px ;
122+ padding : 0.4rem 0.5rem ;
123+ border : none;
124+ outline : none;
125+ }
126+
127+ # inputName {
128+ margin-bottom : 0.4rem ;
129+ }
130+
131+ # inputBio {
132+ margin-top : 0.4rem ;
133+ }
134+
135+ # saveBtn {
136+ background-color : # fff ;
137+ margin-top : 0 ;
138+ border : 1px solid gray;
139+ cursor : pointer;
140+ }
141+
142+ # saveBtn : hover {
143+ color : # fff ;
144+ background-color : royalblue;
145+ border : 1px solid royalblue;
146+ }
147+
148+ # close {
149+ width : 12% ;
150+ color : # fff ;
151+ background-color : transparent;
152+ cursor : pointer;
153+ border : none;
154+ outline : none;
155+ transition : transform 0.1s ease-in;
156+ }
157+
158+ # close : hover {
159+ transition : transform 0.2s ease-in;
160+ transform : scale (1.1 );
161+ background-color : # 595959 ;
162+ border-radius : 5px ;
163+ }
164+
165+ .inputDiv {
166+ width : 100% ;
167+ min-height : 4rem ;
168+ display : flex;
169+ justify-content : space-around;
170+ align-content : center;
171+ flex-direction : column;
172+ text-align : center;
173+ }
174+
175+ @media screen and (max-width : 420px ) {
176+ .container {
177+ width : 90% ;
178+ }
179+ }
180+
0 commit comments