Skip to content

Commit 978830e

Browse files
committed
curved edged labels
1 parent 5a4c4c4 commit 978830e

File tree

2 files changed

+55
-5
lines changed

2 files changed

+55
-5
lines changed

examples/views/events-page.hbs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -132,11 +132,14 @@
132132
<div class="col-4 pt-5">
133133
<div class="br-10 label-card">
134134
<div class="br-10 label-card__head">
135-
<div class="label-card__label all-center">
136-
<div class="white bold">LIVE WEBINAR</div>
135+
<div class="label-card__label">
136+
<div class="position-relative all-center h-100">
137+
<div class="white bold">LIVE WEBINAR</div>
138+
</div>
137139
</div>
138140
<img
139-
src="https://previews.123rf.com/images/baranq/baranq1603/baranq160300758/53954805-businessman-portrait.jpg" class="label-card__head__cover">
141+
src="https://previews.123rf.com/images/baranq/baranq1603/baranq160300758/53954805-businessman-portrait.jpg"
142+
class="label-card__head__cover">
140143
</div>
141144
<div class="br-10 label-card__foot px-md-5 px-4">
142145
<div class="label-card__foot__tag s-100x100">
@@ -151,7 +154,7 @@
151154
<div class="mentor-row__image-container">
152155
<img src="https://minio.codingblocks.com/amoeba/4078be4e-72e1-451a-9c4e-9223d2bbcc2c"
153156
alt="photo ofRishab Kapoor" class="mentor-row__image-container__mentor-image s-60x60">
154-
<div class="mentor-row__text-container">
157+
<div class="mentor-row__text-container align-self-center">
155158
<div>By</div>
156159
<div class="bold">Rishab Kapoor</div>
157160
</div>

sass/styles/components/label-card.scss

Lines changed: 48 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,53 @@
2020
width: 55%;
2121
top: -40px;
2222
left: 22.5%;
23+
24+
& > div {
25+
&::after,
26+
&::before,
27+
& > div::after,
28+
& > div::before {
29+
content: "";
30+
position: absolute;
31+
bottom: 0;
32+
}
33+
34+
&::before {
35+
background: #e74e4b;
36+
left: -10px;
37+
}
38+
39+
&::after {
40+
background: #fb8133;
41+
right: -10px;
42+
}
43+
44+
&::before,
45+
&::after {
46+
z-index: 1;
47+
width: 10px;
48+
height: 10px;
49+
}
50+
51+
& > div {
52+
&::before {
53+
left: -20px;
54+
}
55+
56+
&::after {
57+
right: -20px;
58+
}
59+
60+
&::before,
61+
&::after {
62+
width: 20px;
63+
height: 20px;
64+
border-radius: 10px;
65+
z-index: 2;
66+
background: $white;
67+
}
68+
}
69+
}
2370
}
2471

2572
&__foot {
@@ -42,4 +89,4 @@
4289
border-radius: 50%;
4390
}
4491
}
45-
}
92+
}

0 commit comments

Comments
 (0)