-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
116 lines (99 loc) · 1.9 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
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@100;300&display=swap');
/*
Green: #67b26f
Blue: #4ca2cd
Mid: #5aaa9d
*/
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
color: #444;
font-family: Roboto;
padding: 50px;
background: linear-gradient(to bottom right, #67b26f, #4ca2cd );
height: 100vh;
display: flex;
/* align-items is for Cross Axis */
align-items: center;
/*justify-content is for Main Axis */
justify-content: center;
}
.pizza {
display: flex;
max-width: 800px;
border-radius: 4px;
box-shadow: 0 30px 80px 10px rgba(0, 0, 0, 0.2);
/* align-items: center; */
overflow: hidden;
}
.pizza__hero {
flex: 0 0 45%;
}
.pizza__img {
width: 100%;
display: block;
}
.pizza__content {
flex: 1;
background: #fff;
padding: 35px 30px;
display: flex;
flex-direction: column;
justify-content: ;
}
.pizza__price {
flex: 0 0 50px;
background: linear-gradient(to bottom, #67b26f, #4ca2cd );
writing-mode: vertical-rl;
color: white;
font-size: 18px;
display: flex;
align-items: center;
justify-content: center;
}
.pizza__title {
display: flex;
align-items: center;
margin-bottom: 20px;
}
.pizza__heading {
font-size: 20px;
margin-right: auto;
}
.pizza__tag {
font-size: 10px;
text-transform: uppercase;
color: white;
padding: 2px 7px;
border-radius: 100px;
margin-left: 7px;
}
.pizza__tag--1 {
background-color: #67b26f;
}
.pizza__tag--2 {
background-color: #4ca2cd;
}
.pizza__description {
font-size: 14px;
}
.pizza__details {
display: flex;
justify-content: space-between;
margin-top: auto;
}
.pizza__detail {
font-size: 14px;
text-transform: uppercase;
margin-right: 20px;
font-weight: 1000;
display: flex;
align-items: center;
}
.emoji {
font-size: 20px;
margin-right: 7px;
}