Skip to content

Commit 6793bef

Browse files
committed
remove image and label styles
moved to stacked label css
1 parent 61fea9d commit 6793bef

File tree

1 file changed

+8
-27
lines changed

1 file changed

+8
-27
lines changed

src/styles/cards/_base.scss

Lines changed: 8 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454
&__content {
5555
display: flex;
5656
flex-direction: column;
57+
flex-grow: 1;
5758
margin: 15px 20px 15px;
5859
}
5960
&__topic {
@@ -76,44 +77,28 @@
7677
color: #787679;
7778
}
7879
&__title {
79-
font-size: 1.5rem;
80+
font-size: 1.25rem;
8081
font-weight: 700;
8182
word-spacing: normal;
8283
letter-spacing: -.01rem;
83-
line-height: 30px;
84+
line-height: 28px;
8485
padding-bottom: .5rem;
8586
}
8687
&__subtitle {
8788
color: #000;
8889
font-size: 90%;
8990
}
90-
&__image {
91-
position: relative;
92-
}
93-
&__label {
94-
position: absolute;
95-
margin: 4px;
96-
font-size: .875rem;
97-
padding: 2px 4px;
98-
border-radius: 2px;
99-
letter-spacing: .5px;
100-
text-transform: uppercase;
101-
}
10291
}
10392

104-
.card--blog {
93+
.card--expand {
10594
flex-direction: row;
10695
.card {
10796
&__image {
108-
flex: 1;
97+
flex: 2;
10998
}
11099
&__content {
111100
flex: 2;
112101
}
113-
&__title {
114-
font-size: 1.25rem;
115-
line-height: 28px;
116-
}
117102
&__footer .card__author {
118103
display: none;
119104
}
@@ -123,18 +108,14 @@
123108
@media (min-width: 768px) {
124109
.card {
125110
&__title {
126-
font-size: 1.75rem;
127-
line-height: 32px;
111+
font-size: 1.5rem;
112+
line-height: 30px;
128113
letter-spacing: -0.03rem;
129114
}
130115
}
131-
.card--blog {
116+
.card--expand {
132117
flex-direction: column;
133118
.card {
134-
&__title {
135-
font-size: 1.5rem;
136-
line-height: 32px;
137-
}
138119
&__footer .card__author{
139120
display: block;
140121
}

0 commit comments

Comments
 (0)