aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/organisms/layout/comment.module.scss
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2023-11-07 16:55:58 +0100
committerArmand Philippot <git@armandphilippot.com>2023-11-11 18:15:27 +0100
commitbd9c9ae7e2ae973969569dd434836de9f38b07d4 (patch)
tree84905097c4f2c2db36794c20910e3893189a65e1 /src/components/organisms/layout/comment.module.scss
parentc9c1c90b30e243563bb4f731da15b3fe657556d2 (diff)
refactor(components): split Comment component into 3 components
* add ApprovedComment, PendingComment and ReplyCommentForm components * let consumer handle reply form visibility * move structured data into article page (each article already has the comments data and already handle json ltd schema so I prefered to move the schema in the final consumer instead of adding a script element foreach comment)
Diffstat (limited to 'src/components/organisms/layout/comment.module.scss')
-rw-r--r--src/components/organisms/layout/comment.module.scss78
1 files changed, 0 insertions, 78 deletions
diff --git a/src/components/organisms/layout/comment.module.scss b/src/components/organisms/layout/comment.module.scss
deleted file mode 100644
index 096f4c4..0000000
--- a/src/components/organisms/layout/comment.module.scss
+++ /dev/null
@@ -1,78 +0,0 @@
-@use "../../../styles/abstracts/functions" as fun;
-@use "../../../styles/abstracts/mixins" as mix;
-@use "../../../styles/abstracts/placeholders";
-
-.avatar {
- img {
- border-radius: fun.convert-px(3);
- box-shadow:
- 0 0 0 fun.convert-px(1) var(--color-shadow-light),
- fun.convert-px(2) fun.convert-px(2) 0 fun.convert-px(1)
- var(--color-shadow);
- }
-}
-
-.author {
- color: var(--color-primary-darker);
- font-family: var(--font-family-regular);
- font-size: var(--font-size-md);
- font-weight: 600;
- text-align: center;
- text-shadow: none;
-}
-
-.body {
- overflow-wrap: break-word;
-
- :global {
- a {
- @extend %link;
-
- &[hreflang],
- &.download,
- &.external {
- @extend %link-with-icon;
- }
-
- &[hreflang] {
- @extend %link-with-lang;
- }
-
- &[hreflang]:not(.download, .external) {
- --is-icon-hidden: "";
- }
-
- &.download {
- @extend %download-link;
- }
-
- &.external {
- @extend %external-link;
- }
-
- &.download,
- &.external {
- &:not([hreflang]) {
- --is-lang-hidden: "";
- }
- }
-
- &.external.download {
- @extend %external-download-link;
- }
- }
- }
-}
-
-.form {
- &__wrapper {
- margin-top: var(--spacing-sm);
- }
-
- &__heading {
- width: fit-content;
- margin: 0 auto var(--spacing-md) auto;
- }
-
- margin-inline: auto;
-}