-
Notifications
You must be signed in to change notification settings - Fork 1
/
browse-products.scss
162 lines (153 loc) · 2.57 KB
/
browse-products.scss
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
151
152
153
154
155
156
157
158
159
160
161
162
* {
box-sizing: border-box;
}
// body {
// background: #E8E8E8;
// font-family: lato;
// color: #10222B;
// }
h4 {
font-size: 1.6rem;
font-weight: 700;
}
.card-wrapper {
padding: 0 15px;
}
.card {
max-width: 450px;
height: 450px;
background: white;
margin: 50px auto;
box-shadow: 0 3px 5px rgba(0,0,0,0.1);
position: relative;
overflow: hidden;
.image-wrapper {
height: 70%;
width: 100%;
overflow: hidden;
transition: height 100ms ease-out;
}
&:hover {
.image-wrapper {
height: 35%;
}
}
.content-wrapper {
padding: 15px;
.price {
margin: 10px 0;
font-weight: 300;
}
.description {
margin: 25px 0 0 0;
font-size: 1.1rem;
line-height: 1.5rem;
// display: none;
// opacity: 0;
transition: opacity 200ms ease-out;
&.show {
display: block;
opacity: 1;
}
}
.actions {
position: absolute;
bottom: 0;
left: 0;
padding: 10px;
width: 100%;
background: #fff;
.button {
width: 48%;
margin: 0 1% 0 1%;
float: left;
}
}
}
}
//Button Styling
.browse-products {
padding: 10px 15px;
border: none;
background: none;
font-size: 1rem;
text-transform: uppercase;
text-align: center;
cursor: pointer;
transition: all 100ms linear;
&.flip {
perspective: 1000;
&.flipped {
transform: rotateX(180deg);
}
&.flipper {
transition: 0.6s;
transform-style: preserve-3d;
position: relative;
}
}
&.green-solid {
border: solid 2px #95AB63;
color: #fff;
background: #95AB63;
&:hover {
background: #BDD684;
border: solid 2px #BDD684;
}
}
.backside {
display: none;
&.show {
display: inline-block;
transform: rotateX(180deg);
}
}
.front.hide {
display: none;
}
&.black-simple {
border: solid 2px #10222B;
&:hover {
background: #10222B;
color: #fff;
}
}
&.cart {
&:before {
display: inline-block;
content: '\f07a';
font-family: fontawesome;
padding: 0 10px 0 0;
}
&.added:before {
content: '\f058';
transform: rotateX(180deg);
}
}
&.more {
&:before {
content: '\f067';
font-family: fontawesome;
padding: 0 10px 0 0;
}
}
}
.image {
max-width: 100%;
height: auto;
}
img {
width:100%;
height:100%;
}
// Media Queries
@media (max-width: 768px) {
.card .image-wrapper {
height: 55%;
}
.card .content-wrapper .actions .button {
width: 100%;
float: none;
margin: 0 0 2% 0;
}
}