diff --git a/frontend/.size-limit.js b/frontend/.size-limit.js index 6fc238c8..a6495759 100644 --- a/frontend/.size-limit.js +++ b/frontend/.size-limit.js @@ -15,10 +15,6 @@ module.exports = [ path: 'public/last-comments.mjs', limit: '32 KB', }, - { - path: 'public/last-comments.css', - limit: '6 KB', - }, { path: 'public/deleteme.mjs', limit: '11 KB', diff --git a/frontend/app/components/button/_kind/_link/button_kind_link.css b/frontend/app/components/button/_kind/_link/button_kind_link.css index efc59116..faf2e6f8 100644 --- a/frontend/app/components/button/_kind/_link/button_kind_link.css +++ b/frontend/app/components/button/_kind/_link/button_kind_link.css @@ -1,6 +1,6 @@ .button_kind_link { background: transparent; - font-weight: bold; + font-weight: 600; color: var(--color9); &:hover { diff --git a/frontend/app/components/comment-form/__field/comment-form__field.css b/frontend/app/components/comment-form/__field/comment-form__field.css index ee7165b2..2934b674 100644 --- a/frontend/app/components/comment-form/__field/comment-form__field.css +++ b/frontend/app/components/comment-form/__field/comment-form__field.css @@ -9,7 +9,6 @@ min-height: var(--height); padding: 10px 12px; margin: 0; - font-family: 'PT Sans', Helvetica, Arial, sans-serif; font-size: 16px; line-height: 1.4; border: 0; diff --git a/frontend/app/components/comment/__action/comment__action.css b/frontend/app/components/comment/__action/comment__action.css index 0c4840a3..53d7e21c 100644 --- a/frontend/app/components/comment/__action/comment__action.css +++ b/frontend/app/components/comment/__action/comment__action.css @@ -1,7 +1,6 @@ .comment__action { font-size: 14px; vertical-align: middle; - font-weight: normal; & + .comment__action { margin-left: 8px; diff --git a/frontend/app/components/comment/__control/comment__control.css b/frontend/app/components/comment/__control/comment__control.css index db1e4cfe..efbe0e32 100644 --- a/frontend/app/components/comment/__control/comment__control.css +++ b/frontend/app/components/comment/__control/comment__control.css @@ -1,6 +1,5 @@ .comment__control { margin-right: 8px; - color: var(--color33); &:last-child { margin-right: 0; diff --git a/frontend/app/components/comment/__controls/comment__controls.css b/frontend/app/components/comment/__controls/comment__controls.css index c01d01bd..aaa1e48a 100644 --- a/frontend/app/components/comment/__controls/comment__controls.css +++ b/frontend/app/components/comment/__controls/comment__controls.css @@ -3,10 +3,10 @@ vertical-align: middle; user-select: none; font-size: 14px; - font-weight: 700; @media (hover: hover) { opacity: 0; + transition: opacity 0.15s; &:hover, &:focus-within { diff --git a/frontend/app/components/comment/comment.css b/frontend/app/components/comment/comment.css index e8448115..d4bae72b 100644 --- a/frontend/app/components/comment/comment.css +++ b/frontend/app/components/comment/comment.css @@ -2,7 +2,7 @@ display: block; padding: 12px 0 8px; font-size: 16px; - line-height: 1.2; + line-height: 1.4; transition: background 0.3s ease-in-out; @media (hover: hover) { diff --git a/frontend/app/components/comment/comment.tsx b/frontend/app/components/comment/comment.tsx index e21da6a2..991ddeb3 100644 --- a/frontend/app/components/comment/comment.tsx +++ b/frontend/app/components/comment/comment.tsx @@ -398,18 +398,15 @@ export class Comment extends Component { if (isAdmin) { controls.push( this.state.isCopied ? ( - + ) : ( - - ) - ); - - controls.push( - ); @@ -430,7 +427,7 @@ export class Comment extends Component { if (isAdmin) { if (this.props.isUserBanned) { controls.push( - ); @@ -456,7 +453,7 @@ export class Comment extends Component { if (!this.props.data.delete) { controls.push( - ); diff --git a/frontend/app/components/list-comments/list-comments.module.css b/frontend/app/components/list-comments/list-comments.module.css deleted file mode 100644 index f5122fac..00000000 --- a/frontend/app/components/list-comments/list-comments.module.css +++ /dev/null @@ -1,3 +0,0 @@ -.root { - font-family: 'PT Sans', Helvetica, Arial, sans-serif; -} diff --git a/frontend/app/components/list-comments/list-comments.tsx b/frontend/app/components/list-comments/list-comments.tsx index 332e6c3e..4c23492a 100644 --- a/frontend/app/components/list-comments/list-comments.tsx +++ b/frontend/app/components/list-comments/list-comments.tsx @@ -1,12 +1,9 @@ import { h } from 'preact'; import { useIntl } from 'react-intl'; -import clsx from 'clsx'; import type { Comment as CommentType } from 'common/types'; import { Comment } from 'components/comment'; -import styles from './list-comments.module.css'; - type Props = { comments: CommentType[]; }; @@ -15,7 +12,7 @@ export function ListComments({ comments = [] }: Props) { const intl = useIntl(); return ( -
+
{comments.map((comment) => ( <% if (htmlWebpackPlugin.options.env === 'production') { %> - + <% } %> diff --git a/frontend/templates/markdown-help.html b/frontend/templates/markdown-help.html index 4a01a4ed..01cd3e73 100644 --- a/frontend/templates/markdown-help.html +++ b/frontend/templates/markdown-help.html @@ -54,7 +54,7 @@ } body { - font: 16px/26px Helvetica, "Helvetica Neue", Arial, sans-serif; + font: 16px/26px Helvetica, 'Helvetica Neue', Arial, sans-serif; } .wrapper {