cts--is-code now also correctly pads.
@@ -54,8 +54,6 @@ chat-textfield-simple {
min-width: 0; // so a size is specified and break-word works
word-break: break-word;
- @include padToHeight($normalFontSize, 22/16, $thinBorderWidth, $formInputHeight);
-
&:focus {
color: black;
@@ -68,8 +66,12 @@ chat-textfield-simple {
border-color: $won-primary-color;
}
+ &:not(.cts__text--is-code) {
+ @include padToHeight($normalFontSize, 22/16, $thinBorderWidth, $formInputHeight);
+ }
+
&.cts__text--is-code {
- font-size: 0.8rem;
+ @include padToHeight($normalFontSize * 0.8, 22/16, $thinBorderWidth, $formInputHeight);
font-family: $font-family-monospace;
}
}
