diff --git a/extensions/tags/js/src/forum/addTagComposer.js b/extensions/tags/js/src/forum/addTagComposer.js
index 7cffe7ce16..2af418e0b5 100644
--- a/extensions/tags/js/src/forum/addTagComposer.js
+++ b/extensions/tags/js/src/forum/addTagComposer.js
@@ -5,6 +5,7 @@ import classList from 'flarum/common/utils/classList';
import tagsLabel from '../common/helpers/tagsLabel';
import getSelectableTags from './utils/getSelectableTags';
+import Button from '@flarum/core/src/common/components/Button';
export default function addTagComposer() {
extend(IndexSidebar.prototype, 'newDiscussionAction', function (promise) {
@@ -47,13 +48,16 @@ export default function addTagComposer() {
items.add(
'tags',
-
+ ,
+ ,
10
);
});
diff --git a/extensions/tags/less/forum.less b/extensions/tags/less/forum.less
index bca726db6b..15798ee4b5 100644
--- a/extensions/tags/less/forum.less
+++ b/extensions/tags/less/forum.less
@@ -32,6 +32,7 @@
}
.DiscussionComposer-changeTags {
margin-right: 15px;
+ line-height: inherit;
&.disabled {
opacity: 0.5;
diff --git a/framework/core/js/src/forum/components/DiscussionListItem.tsx b/framework/core/js/src/forum/components/DiscussionListItem.tsx
index fd5decba8e..6dd785b9aa 100644
--- a/framework/core/js/src/forum/components/DiscussionListItem.tsx
+++ b/framework/core/js/src/forum/components/DiscussionListItem.tsx
@@ -148,9 +148,15 @@ export default class DiscussionListItem
- {app.translator.trans('core.forum.log_in.forgot_password_link')}
+
{app.translator.trans('core.forum.log_in.sign_up_text', { a: })}
+ {app.translator.trans('core.forum.log_in.sign_up_text', {
+ a: ,
+ })}
+
+ {app.translator.trans('core.forum.sign_up.log_in_text', { + a: , + })} +
, ]; } diff --git a/framework/core/less/common/Button.less b/framework/core/less/common/Button.less index f6b829d9a0..fe31473a48 100644 --- a/framework/core/less/common/Button.less +++ b/framework/core/less/common/Button.less @@ -146,8 +146,9 @@ .Button--text { background: transparent !important; padding: 0; - color: inherit !important; + --button-color: inherit; line-height: inherit; + vertical-align: baseline; &:hover { text-decoration: underline; @@ -158,6 +159,10 @@ box-shadow: none; } } +.Button--link.Button--text { + .text-link(); + --button-color: currentColor; +} .Button--primary { .Button--color-auto('button-primary'); font-weight: bold; diff --git a/framework/core/less/common/mixins.less b/framework/core/less/common/mixins.less index 7a778a82e0..b23bea6753 100644 --- a/framework/core/less/common/mixins.less +++ b/framework/core/less/common/mixins.less @@ -5,3 +5,4 @@ @import "mixins/light-contents.less"; @import "mixins/header-background.less"; @import "mixins/vendor-prefixes.less"; +@import "mixins/typography.less"; diff --git a/framework/core/less/common/mixins/typography.less b/framework/core/less/common/mixins/typography.less new file mode 100644 index 0000000000..85f86e583c --- /dev/null +++ b/framework/core/less/common/mixins/typography.less @@ -0,0 +1,9 @@ +.text-link() { + cursor: pointer; + color: var(--link-color); + text-decoration: none; + + &:hover { + text-decoration: underline; + } +} diff --git a/framework/core/less/common/scaffolding.less b/framework/core/less/common/scaffolding.less index 732e291869..b64ddb0770 100644 --- a/framework/core/less/common/scaffolding.less +++ b/framework/core/less/common/scaffolding.less @@ -37,13 +37,7 @@ textarea { } a { - cursor: pointer; - color: var(--link-color); - text-decoration: none; - - &:hover { - text-decoration: underline; - } + .text-link(); } hr { diff --git a/framework/core/less/forum/Post.less b/framework/core/less/forum/Post.less index 264a1f3a98..5881129975 100644 --- a/framework/core/less/forum/Post.less +++ b/framework/core/less/forum/Post.less @@ -18,7 +18,7 @@ .Post-header { margin-bottom: 15px; - &, a { + &, a, .Button--text.Button--link { color: var(--muted-color); } > ul { diff --git a/framework/core/less/forum/Scrubber.less b/framework/core/less/forum/Scrubber.less index 450229eed7..53e00e34bc 100644 --- a/framework/core/less/forum/Scrubber.less +++ b/framework/core/less/forum/Scrubber.less @@ -1,16 +1,7 @@ .Scrubber { - & a { - margin-left: -1px; - color: var(--muted-color); - - & .fa { - font-size: 14px; - margin-right: 2px; - } - &:hover, &:focus { - text-decoration: none; - color: var(--link-color); - } + &-first, &-last { + width: auto !important; + padding: 0; } } .Scrubber-scrollbar {