Skip to content
This repository was archived by the owner on Oct 9, 2024. It is now read-only.

Commit b364347

Browse files
committed
Change caps utility to match font-size
1 parent 2ceabaf commit b364347

File tree

11 files changed

+20
-20
lines changed

11 files changed

+20
-20
lines changed

src/components/BaseButton.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ export default {
170170
&-round {
171171
@apply py-2 px-4 rounded-full;
172172
& .button__content {
173-
@apply small-caps;
173+
@apply caps-xs;
174174
}
175175
}
176176
}

src/components/BaseDivider.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export default {
1212

1313
<style lang="scss">
1414
.divider {
15-
@apply flex items-center text-center tiny-caps text-gray-500;
15+
@apply flex items-center text-center caps-xxs text-gray-500;
1616
1717
&:before, &:after {
1818
content: '';

src/components/ChecCard/InnerBlock.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export default {
6868
@apply text-gray-600 text-sm leading-tight font-lato;
6969
7070
&__title {
71-
@apply small-caps mb-2 text-gray-500;
71+
@apply caps-xs mb-2 text-gray-500;
7272
}
7373
}
7474
</style>

src/components/ChecDataPill.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export default {
3434
</script>
3535
<style lang="scss">
3636
.data-pill {
37-
@apply py-1 px-2 rounded-full tiny-caps bg-white text-black border border-black;
37+
@apply py-1 px-2 rounded-full caps-xxs bg-white text-black border border-black;
3838
3939
&--news {
4040
@apply bg-gray-200 border-gray-200 text-gray-500;

src/components/ChecHeader.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,13 @@ export default {
6363
}
6464
6565
&--card &__title {
66-
@apply rounded-full tiny-caps bg-gray-200 px-2 py-1 text-gray-500;
66+
@apply rounded-full caps-xxs bg-gray-200 px-2 py-1 text-gray-500;
6767
}
6868
6969
&-inner {
7070
@apply flex items-center;
7171
&__label {
72-
@apply small-caps;
72+
@apply caps-xs;
7373
&:not(:last-child) {
7474
@apply pr-4;
7575
}

src/components/ChecLoading.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export default {
5858
}
5959
6060
&__message {
61-
@apply small-caps mt-2;
61+
@apply caps-xs mt-2;
6262
}
6363
}
6464

src/components/ChecPaginate.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ export default {
184184
}
185185
186186
%control-group {
187-
@apply rounded-md bg-gray-500 p-2 text-white small-caps;
187+
@apply rounded-md bg-gray-500 p-2 text-white caps-xs;
188188
}
189189
190190
.chec-paginate {

src/components/ChecSegmentedButton.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export default {
6262

6363
<style lang="scss">
6464
.segmented-btn {
65-
@apply cursor-pointer bg-gray-200 px-3 py-1 rounded-sm text-gray-500 small-caps;
65+
@apply cursor-pointer bg-gray-200 px-3 py-1 rounded-sm text-gray-500 caps-xs;
6666
6767
&:disabled {
6868
@apply cursor-not-allowed opacity-50;

src/components/TextField.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ export default {
212212
@apply relative;
213213
214214
&__action-button {
215-
@apply tiny-caps text-blue-500 float-right mt-1 cursor-pointer;
215+
@apply caps-xxs text-blue-500 float-right mt-1 cursor-pointer;
216216
}
217217
218218
&__label {
@@ -278,7 +278,7 @@ export default {
278278
// Alignment & spacing
279279
@apply absolute flex items-center h-full right-0 top-0 mx-4;
280280
// Default styles & colours
281-
@apply cursor-default text-gray-500 tiny-caps;
281+
@apply cursor-default text-gray-500 caps-xxs;
282282
}
283283
284284
&--disabled {

src/stories/styles/typography.stories.mdx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ import { Meta, Story, Preview } from '@storybook/addon-docs/blocks';
1818
template: `
1919
<div class="p-16 bg-gray-200 text-gray-500">
2020
<template v-for="size in sizes">
21-
<div class="small-caps mt-8 mb-2">.text-{{ size }}</div>
21+
<div class="caps-xs mt-8 mb-2">.text-{{ size }}</div>
2222
<div class="flex justify-center items-start" :class="\`text-\${size}\`">
2323
<div class="p-8 bg-white">
24-
<div class="mb-2 small-caps text-gray-400">.font-normal</div>
24+
<div class="mb-2 caps-xs text-gray-400">.font-normal</div>
2525
Imagination will often carry us to worlds that never were, but without it we go nowhere.
2626
</div>
2727
<div class="ml-16 p-8 bg-white" :class="weight(size)">
28-
<div class="mb-2 small-caps text-gray-400">.{{ weight(size) }}</div>
28+
<div class="mb-2 caps-xs text-gray-400">.{{ weight(size) }}</div>
2929
Imagination will often carry us to worlds that never were, but without it we go nowhere.
3030
</div>
3131
</div>
@@ -43,12 +43,12 @@ import { Meta, Story, Preview } from '@storybook/addon-docs/blocks';
4343
{{
4444
template: `
4545
<div class="p-16 bg-gray-200 text-gray-500 grid grid-cols-2 col-gap-16 row-gap-12">
46-
<div class="p-8 bg-white small-caps">
47-
<div class="mb-2 small-caps text-gray-400">.small-caps</div>
46+
<div class="p-8 bg-white caps-xs">
47+
<div class="mb-2 caps-xs text-gray-400">.caps-xs</div>
4848
Imagination will often carry us to worlds that never were, but without it we go nowhere.
4949
</div>
50-
<div class="p-8 bg-white tiny-caps">
51-
<div class="mb-2 small-caps text-gray-400">.tiny-caps</div>
50+
<div class="p-8 bg-white caps-xxs">
51+
<div class="mb-2 caps-xs text-gray-400">.caps-xxs</div>
5252
Imagination will often carry us to worlds that never were, but without it we go nowhere.
5353
</div>
5454
</div>

0 commit comments

Comments
 (0)