-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
123 lines (113 loc) · 2.61 KB
/
style.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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
/*
Set the container div and font settings.
*/
body{
background-image: linear-gradient(#386d82, rgb(172, 172, 234), rgb(19, 19, 128)), url("./images/background-img.jpg");
background-blend-mode:lighten;
background-size:cover;
background-position:bottom;
background-color: #386d82;
font-family: Arial;
font-size: 18px;
width: 100%;
height: 100vh;
overflow: hidden;
}
/*
The container holds all objects in this page. So I used absolute position.
*/
.container {
position: absolute;
height: 400px;
width: 1000px;
margin: auto;
display:flex;
flex-direction: row;
align-items: center;
justify-content: space-around;
}
/*
The page has two rectangels, this designs the left one that is bigger and wider.
The radius and background color also set.
*/
.left_rect{
width: 60%;
position: relative;
left: 30%;
top: 30%;
height: 100%;
border: 1px solid black;
padding: 20px;
border-radius: 50px 50px 50px 50px;
margin: auto;
background-color: #fdfeff;
box-shadow: 1px 1px 10px 1px rgb(57, 171, 186);
}
/*
The page has two rectangels, this designs the right one that is smaller.
The radius and background color also set.
*/
.right_rect {
width: 20%;
position:relative;
left: 30%;
top: 30%;
height: 100%;
border: 1px solid black;
padding: 20px;
border-radius: 50px 50px 50px 50px;
margin: auto;
background-color: #fdfeff;
box-shadow: 1px 1px 10px 1px rgb(57, 171, 186);
}
/*
The image setting; including loading, positoin, size and background
*/
#image {
position: relative ;
top: 5%;
left: 5%;
width: 35%;
height: 35%;
background: left/contain content-box border-box no-repeat url("./images/whoisthis.jpg") #fdfeff;
border: 0;
padding: 5px;
}
/*
Input account name and button settings;
1. margin 50% set those two to the center
2. and display block set the elements as a block
*/
input, button{
width: 100%;
display: block;
margin: 50% auto;
}
/*
Set the name, blog_addr, and location to the right and top of the left-rect
*/
#name, #blog_addr, #location {
position: relative;
left: 50%;
top: -150px;
}
/*
Set the bio to the left and bo ttom of the left-rect.
*/
#bio {
position: relative;
top: -40px;
left: 5%;
}
/*
To display error or success alert by default of error.
A rectangle with a red border on the bottom of left-rect.
*/
.error {
position: relative;
display: none;
border: 5px solid rgb(246, 106, 106);
padding: 3px;
width: 85%;
left: 20px;
}