Skip to content

Commit

Permalink
feat: added vertical variant to sd-copyright
Browse files Browse the repository at this point in the history
  • Loading branch information
yoezlem committed Sep 19, 2024
1 parent ef5f047 commit fccdbe7
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
10 changes: 10 additions & 0 deletions packages/components/src/styles/copyright/copyright.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,14 @@
content: var(--copyright);
text-shadow: 0 1px 3px #515151bf;
}

&--variant {
&-vertical {
&::after {
@apply pl-2;
writing-mode: vertical-rl;
transform: rotate(180deg);
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,11 @@ export default {
summary: 'Generates basic styles for copyright elements.',
status: 'stable',
since: '2.5.0',
attributes: []
attributes: [
{
name: 'sd-copyright--variant-...',
options: ['vertical'],
description: 'The copyrights vertical variant.'
}
]
} satisfies Style;

0 comments on commit fccdbe7

Please sign in to comment.