Skip to content

Commit 564da03

Browse files
committed
introduce jagged edge
1 parent 7ccf9ee commit 564da03

File tree

3 files changed

+20
-6
lines changed

3 files changed

+20
-6
lines changed

_includes/section-break.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<div class="my-4 sm:my-0">
22
<div class="flex text-xl justify-end">
3-
<span class="bg-sky-600 px-2 text-white font-ibmsans pr-8 text-base lg:text-xl">
3+
<span class="bg-sky-600 px-2 text-white font-ibmsans pr-8 text-base lg:text-xl
4+
jagged-right">
45
{{ include.section }}
56
</span>
67
</div>

_pages/team.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@ <h2 class="font-ibmserif text-base font-semibold text-left">
3838
{% endif %}
3939

4040
<!-- Title -->
41-
<div class="flex items-center bg-gray-100">
42-
<small class="leading-none text-gray-900 text-left leading-tight">
43-
{{ member.title }}
44-
</small>
45-
</div>
41+
<div class="flex items-center bg-yellow-100 jagged-right pr-2">
42+
<small class="leading-none text-left leading-tight">
43+
{{ member.title }}
44+
</small>
45+
</div>
4646

4747
<!-- Years active -->
4848
{% if member.year %}

assets/css/main.css

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,16 @@
1717
@apply text-sky-700;
1818
}
1919
}
20+
21+
.jagged-right {
22+
clip-path: polygon(
23+
0 0,
24+
93% 0,
25+
100% 20%,
26+
93% 40%,
27+
100% 60%,
28+
93% 80%,
29+
100% 100%,
30+
0 100%
31+
);
32+
}

0 commit comments

Comments
 (0)