forked from Opemeepor/Order-summary
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
129 lines (123 loc) · 2.44 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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
background-color: hsl(225, 100%, 94%);
background-image: url("pattern-background-desktop.svg");
background-repeat: no-repeat;
font-family: "Red Hat Display", sans-serif;
}
h1 {
font-weight: 900;
margin: 0.625rem 0;
}
a {
color: hsl(245, 75%, 52%);
}
/* to centralize order card */
main {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
/* makes the order card looks better on small screens */
padding: 0 20px;
}
.order {
max-width: 26.125rem;
margin: 1.25rem auto;
background-color: #fff;
border-radius: 1.25rem;
/* this will hide the image border overflow, so i deleted the border radius on img property */
overflow: hidden;
}
.order img {
/* this max-width will make sure your img looks good on smaller screen */
max-width: 100%;
}
.top {
width: 67%;
margin: 30px auto;
text-align: center;
}
.top p {
color: hsl(224, 23%, 55%);
line-height: 1.6rem;
margin-top: 20px;
}
.icon {
display: flex;
align-items: center;
}
.subscription {
display: flex;
justify-content: space-between;
width: 80%;
/* it needed a lighter background */
background-color: hsl(225, 100%, 98%);
margin: 1.25rem auto;
align-items: center;
padding: 0.625rem;
border-radius: 0.625rem;
}
.subscription a {
margin-right: 7px;
font-size: 0.9rem;
}
.payment {
text-decoration: none;
background-color: hsl(245, 75%, 52%);
color: #fff;
display: block;
width: 80%;
margin: 2rem auto;
text-align: center;
padding: 0.625rem 0.2rem;
border-radius: 0.625rem;
box-shadow: 0 15px 15px 5px rgba(56, 41, 224, 0.1);
}
.cancel {
display: block;
text-decoration: none;
color: hsl(224, 23%, 55%);
text-align: center;
padding-bottom: 2.5rem;
}
.money {
color: hsl(224, 23%, 55%);
}
/* make the icon section looks a bit cleaner */
.icon__content {
margin-left: 20px;
}
.icon__content p:first-child {
font-weight: bold;
}
@media screen and (max-width: 28.125rem) {
* {
box-sizing: border-box;
}
body {
font-size: 1rem;
}
.order {
width: 27.5rem;
}
.order img {
width: 27.5rem;
}
.top {
width: 80%;
}
.subscription {
padding: 0.625rem 0.625rem;
width: 80%;
margin: 0 auto;
box-sizing: border-box;
}
.subscription img {
width: 30%;
}
}