Skip to content

Commit 9f45985

Browse files
committed
enhancement(Cards) refinement on styling declaration
1 parent 9d3cd93 commit 9f45985

File tree

1 file changed

+18
-6
lines changed

1 file changed

+18
-6
lines changed

sass/components/_cards.scss

+18-6
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,6 @@
1919
.card-title {
2020
font-size: 24px;
2121
font-weight: 300;
22-
&.activator {
23-
cursor: pointer;
24-
}
2522
}
2623

2724
// Card Sizes
@@ -32,13 +29,16 @@
3229
max-height: 60%;
3330
overflow: hidden;
3431
}
32+
3533
.card-image + .card-content {
3634
max-height: 40%;
3735
}
36+
3837
.card-content {
3938
max-height: 100%;
4039
overflow: hidden;
4140
}
41+
4242
.card-action {
4343
position: absolute;
4444
bottom: 0;
@@ -77,6 +77,7 @@
7777

7878
.card-image {
7979
max-width: 50%;
80+
8081
img {
8182
border-radius: 2px 0 0 2px;
8283
max-width: 100%;
@@ -108,9 +109,6 @@
108109
}
109110
}
110111

111-
112-
113-
114112
.card-image {
115113
position: relative;
116114

@@ -134,6 +132,15 @@
134132
max-width: 100%;
135133
padding: 24px;
136134
}
135+
136+
.activator {
137+
position: absolute;
138+
left: 0;
139+
right: 0;
140+
top:0;
141+
bottom: 0;
142+
cursor: pointer;
143+
}
137144
}
138145

139146
.card-content {
@@ -143,6 +150,7 @@
143150
p {
144151
margin: 0;
145152
}
153+
146154
.card-title {
147155
display: block;
148156
line-height: 32px;
@@ -151,6 +159,10 @@
151159
i {
152160
line-height: 32px;
153161
}
162+
163+
&.activator {
164+
cursor: pointer;
165+
}
154166
}
155167
}
156168

0 commit comments

Comments
 (0)