-
Notifications
You must be signed in to change notification settings - Fork 0
/
css_task6style.css
74 lines (64 loc) · 1.32 KB
/
css_task6style.css
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
body {
font-family: Arial, Helvetica, sans-serif;
}
/* Full-width input fields */
input[type="text"],
input[type="password"] {
width: 100%;
padding: 12px 20px;
margin: 8px 0;
display: inline-block;
border: 1px solid #ccc;
box-sizing: border-box;
}
/* Set a style for all buttons */
button {
background-color: #04aa6d;
color: white;
padding: 14px 20px;
margin: 8px 0;
border: none;
cursor: pointer;
width: 100%;
}
button:hover {
opacity: 0.8;
}
/* Extra styles for the cancel button */
.cancelbtn {
width: auto;
padding: 10px 18px;
background-color: #f44336;
}
/* Center the image and position the close button */
.imgcontainer {
text-align: center;
margin: 24px 0 12px 0;
position: relative;
}
img.avatar {
width: 40%;
border-radius: 50%;
}
.container {
padding: 16px;
}
span.psw {
float: right;
padding-top: 16px;
}
:root {
--modal-width: 500px;
--modal-height: 598px;
}
/* The Modal (background) */
.modal {
border: 1px solid #ccc;
width: var(--modal-width);
height: var(--modal-height);
display: block; /* Hidden by default */
position: fixed; /* Stay in place */
left: calc(50% - var(--modal-width) / 2);
top: calc(50% - var(--modal-height) / 2);
overflow: auto; /* Enable scroll if needed */
}