-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle2.css
More file actions
123 lines (113 loc) · 2.25 KB
/
style2.css
File metadata and controls
123 lines (113 loc) · 2.25 KB
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
:root {
--green: #4c9484;
}
/** code by webdevtrick ( https://webdevtrick.com ) **/
body {
margin: 0;
padding: 0;
}
.content
{
padding: 30px 5%;
display: flex;
margin-left: 100px;
}
.product-info div.main {
height: 100vh;
display: flex;
align-items: center;
justify-content: center;
background-color: #80EDFF;
}
.product-info div.container {
background-color: white;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
margin: 30px;
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.45);
}
.imag {
display: flex;
justify-content: center;
width: 100%;
}
.product-info h1 {
font-weight: 600;
font-size: 36px;
margin: 0 0 15px;
}
.product-info p {
font-weight: 300;
line-height: 24px;
margin: 0 0 30px 0;
}
.product-info a {
text-decoration: none;
text-transform: uppercase;
color: var(--green);
font-weight: bold;
font-size: 14px;
position: relative;
display: inline-block;
z-index: 1;
padding: 5px;
left: -5px;
}
.product-info a:hover {
color: var(--green);
}
.product-info a::before {
content: '';
z-index: -1;
position: absolute;
top: calc(50%);
left: 0;
width: 100%;
height: 40%;
pointer-events: none;
background: #d8d05b;
transform: scale3d(0, 1, 1);
transform-origin: 0% 50%;
transition: transform 0.33s;
}
.product-info a:hover::before {
transform: scale3d(1, 1, 1);
transform-origin: 0% 50%;
}
.product-info div.imag {
height: 300px;
width: 100%;
background-position: center;
background-size: cover;
}
.product-info div.text-container {
display: flex;
flex-direction: column;
margin: 60px 45px 55px;
}
@media screen and (min-width: 768px) {
div.container {
flex-direction: row;
width: 100%;
}
div.imag {
height: 420px;
min-width: 360px;
}
div.text-container {
margin: 0 60px;
max-width: 660px;
}
}
@media screen and (min-width: 1024px) {
div.container {
max-width: 1200px;
}
}
.price {
display: inline-block;
font-size: 40px;
font-weight: 700;
}