-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
128 lines (128 loc) · 2.72 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
124
125
126
127
128
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: "Red Hat Display", sans-serif;
}
body {
width: 1440px;
height: 900px;
background-image: url(images/pattern-background-desktop.svg);
}
.container {
width: 450px;
height: 697px;
background-color: #fff;
box-shadow: 0px 40px 40px -20px rgba(13, 48, 189, 0.151826);
border-radius: 20px;
margin: 102px 495px 101px 495px;
/* we give container padding since every element other than image has that much padding,we will fix image positioning by making it absolute */
padding: 48px;
position: relative;
}
.heroine {
border-radius: 20px 20px 0px 0px;
margin-bottom: 45px;
position: absolute;
left: 0;
top: 0;
}
h1 {
/* sine we gave absolute position to img to fint containers to part,we need to give h1 margion of:image height-48px(of top padding)+45px(of bottom margin of image),if we dont do this that h1 and all other text will be under image at the top of container starting from non padding area */
margin-top: 217px;
font-weight: 900;
font-size: 28px;
line-height: 37px;
text-align: center;
color: #1f2e55;
margin-bottom: 17px;
}
article {
font-weight: 500;
font-size: 16px;
line-height: 26px;
text-align: center;
color: #717fa6;
margin-bottom: 20px;
}
section {
margin-bottom: 32px;
position: relative;
height: 98px;
width: 354px;
background-color: #f7f9ff;
border-radius: 11px;
}
.note {
position: absolute;
display: inline-block;
left: 24px;
top: 25px;
bottom: 25px;
}
h4 {
position: absolute;
display: inline-block;
font-weight: 900;
font-size: 16px;
line-height: 21px;
color: #1f2e55;
left: 92px;
top: 25px;
bottom: 52px;
}
h5 {
position: absolute;
display: inline-block;
font-weight: 500;
font-size: 16px;
line-height: 21px;
color: #717fa6;
left: 92px;
top: 52px;
bottom: 25px;
}
h6 {
position: absolute;
display: inline-block;
font-weight: 700;
font-size: 14px;
line-height: 19px;
text-decoration: underline;
color: #382ae1;
right: 24px;
top: 40px;
bottom: 39px;
}
h6:hover {
text-decoration: none;
color: #766cf1;
}
button {
margin-bottom: 32px;
background-color: #382ae1;
box-shadow: 0px 20px 20px rgba(56, 42, 225, 0.190291);
border-radius: 11px;
width: 354px;
height: 50px;
color: white;
border-color: rgba(56, 42, 225, 0.0291);
font-weight: 900;
font-size: 15px;
line-height: 20px;
}
button:hover {
background-color: #766cf1;
cursor: pointer;
}
footer {
font-weight: 900;
font-size: 15px;
line-height: 20px;
color: #717fa6;
text-align: center;
}
footer:hover {
color: #1f2e55;
cursor: pointer;
}