-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstyles.css
150 lines (129 loc) · 3.12 KB
/
styles.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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
@import url("https://fonts.googleapis.com/css2?family=Red+Hat+Display:wght@500;700;900&display=swap");
:root {
--Pale-blue: hsl(225, 100%, 94%);
--Bright-blue: hsl(245, 75%, 52%);
--Very-pale-blue: hsl(225, 100%, 98%);
--Desaturated-blue: hsl(224, 23%, 55%);
--Dark-blue: hsl(223, 47%, 23%);
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
/* because of box sizing if we add some padding
it will add that padding in the total size
If you not add this element then the padding will
add after the total width of card
*/
}
body {
background-image: url(./images/pattern-background-desktop.svg);
background-repeat: no-repeat;
/* this will stop reapeating image after printing it once */
background-size: cover;
/* after this image will cover itself to the endings of the screen. */
background-color: var(--Pale-blue);
font-family: "Red Hat Display", sans-serif;
font-size: 16px;
}
.card-container {
padding: 0 20px;
}
.card {
width: 450px;
max-width: 100%;
background-color: white;
color: var(--Desaturated-blue);
border-radius: 20px;
overflow: hidden;
/* This will hide the image part which is going
outside of the curved radius */
margin: 50px auto;
}
.hero-image {
width: 100%;
}
.title {
color: var(--Dark-blue);
font-weight: 900;
font-size: 32px;
}
.container {
padding: 30px;
display: flex;
flex-direction: column;
justify-content: center;
text-align: center;
}
.container > * {
/* > * means please add this things to all the child classes
which are in this parent class.
*/
margin: 13px 0;
/* 2 values meanse first 13 goes to top-bottom
& second 0 to left-right */
}
.order-description {
line-height: 25px;
max-width: 300px;
margin: 0 auto;
/* this indicates the spaces between each line. */
}
.plan-countainer {
font-size: 16px;
background-color: var(--Very-pale-blue);
border-radius: 12px;
padding: 25px;
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
}
.plan-countainer strong {
color: var(--Dark-blue);
}
.plan-countainer a {
color: var(--Bright-blue);
font-size: 13px;
font-weight: 700;
}
.plan-countainer a:hover {
opacity: 0.8;
text-decoration: none;
}
.plan-description {
line-height: 25px;
}
button {
width: 100%;
font-weight: 700;
font-size: 0.9rem;
border-radius: 12px;
border: none;
cursor: pointer;
}
.proceed-button {
background-color: var(--Bright-blue);
padding: 1rem 0;
color: white;
box-shadow: 0 20px 30px -8px rgb(197, 189, 245);
}
.proceed-button:hover {
opacity: 0.8;
/* opacity meanse the transperancy of the element */
}
.cancel-button {
background-color: white;
/* same as the parent class card but button element have it's own color at the beginning
so we have to specify it again.. */
color: var(--Desaturated-blue);
margin-top: 22px;
}
.cancel-button:hover {
color: black;
}
.flex {
display: flex;
align-items: center;
gap: 15px;
}