diff --git a/client/src/components/CommentApp/components/Comment/style.scss b/client/src/components/CommentApp/components/Comment/style.scss index 2a4d228994..451cc84f17 100644 --- a/client/src/components/CommentApp/components/Comment/style.scss +++ b/client/src/components/CommentApp/components/Comment/style.scss @@ -1,8 +1,19 @@ @use '../../../../../scss/tools' as *; -.comment { - @include box; +$color-box-background: theme('colors.surface-page'); +$color-box-background-focused: theme('colors.surface-page'); +$color-box-border: theme('colors.border-furniture'); +$color-box-border-focused: theme('colors.border-field-hover'); +$color-box-text: theme('colors.text-context'); +$box-border-radius: 5px; +$box-padding: 20px; +.comment { + background-color: $color-box-background; + padding: $box-padding; + border-radius: $box-border-radius; + color: $color-box-text; + border: 1px solid $color-box-border; width: 300px; display: block; transition: @@ -17,6 +28,53 @@ &--focused { inset-inline-end: 25px; + background-color: $color-box-background-focused; + border: 1px solid $color-box-border-focused; + box-shadow: 3px 2px 3px -1px theme('colors.black-10'); + } + + textarea { + margin: 0; + padding: 12px; + width: 100%; + background-color: theme('colors.surface-field'); + border: 1px solid theme('colors.border-field-default'); + border-radius: 5px; + color: $color-box-text; + + &::placeholder { + color: theme('colors.text-placeholder'); + opacity: 1; + } + } + + &__notice-placeholder { + position: relative; + padding-bottom: 40px; + } + + &__notice { + background-color: theme('colors.warning.50'); + color: theme('colors.grey.600'); + position: absolute; + inset-inline-start: -$box-padding; + bottom: 0; + width: calc(100% + #{$box-padding} * 2); + padding: 5px 10px; + + svg.icon { + color: theme('colors.warning.100'); + width: 14px; + height: 14px; + margin-inline-end: 10px; + vertical-align: text-bottom; + } + } + + & > &__notice-placeholder:last-child &__notice, + &__replies:last-child > :last-child &__notice { + border-end-start-radius: $box-border-radius; + border-end-end-radius: $box-border-radius; } &__text { @@ -29,14 +87,10 @@ padding-bottom: 10px; word-break: break-all; white-space: pre-wrap; - - &--mode-deleting { - color: theme('colors.text-context'); - } } form { - border-top: 1px solid $color-comment-separator; + border-top: 1px solid theme('colors.border-furniture'); } &--mode-creating form { @@ -59,7 +113,25 @@ } &__button { - @include button; + background-color: inherit; + border: 1px solid theme('colors.border-button-small-outline-default'); + border-radius: 3px; + color: theme('colors.surface-button-default'); + cursor: pointer; + font-weight: 700; + height: 30px; + padding-inline-start: 10px; + padding-inline-end: 10px; + + &--primary { + color: theme('colors.text-button'); + border: 1px solid theme('colors.surface-button-default'); + background-color: theme('colors.surface-button-default'); + } + + &:disabled { + opacity: 0.3; + } } &__actions, diff --git a/client/src/components/CommentApp/components/CommentReply/index.tsx b/client/src/components/CommentApp/components/CommentReply/index.tsx index db9758e360..c342e31778 100644 --- a/client/src/components/CommentApp/components/CommentReply/index.tsx +++ b/client/src/components/CommentApp/components/CommentReply/index.tsx @@ -105,17 +105,17 @@ export default class CommentReplyComponent extends React.Component -
+