mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
UX: fix user bio & category topic template editors
This commit is contained in:
parent
31e2385316
commit
482982dce8
3 changed files with 27 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
|||
{{#if canChangeBio}}
|
||||
<div class="control-group pref-bio">
|
||||
<label class="control-label">{{i18n 'user.bio'}}</label>
|
||||
<div class="controls bio-composer">
|
||||
<div class="controls bio-composer input-xxlarge">
|
||||
{{d-editor value=model.bio_raw}}
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -138,3 +138,28 @@
|
|||
display: none;
|
||||
flex: 0;
|
||||
}
|
||||
|
||||
.user-preferences .bio-composer,
|
||||
.edit-category-tab-topic-template {
|
||||
textarea {
|
||||
width: 100%;
|
||||
}
|
||||
.d-editor-container {
|
||||
display: block;
|
||||
}
|
||||
.d-editor-textarea-wrapper {
|
||||
border: 1px solid $primary-low;
|
||||
}
|
||||
.d-editor-preview-wrapper {
|
||||
max-width: 100%;
|
||||
margin: 10px 0 0 0;
|
||||
}
|
||||
.d-editor-preview {
|
||||
background-color: dark-light-diff($primary, $secondary, 97%, -70%);
|
||||
}
|
||||
}
|
||||
|
||||
.user-preferences .bio-composer {
|
||||
padding: 10px;
|
||||
border: 1px solid $primary-low;
|
||||
}
|
||||
|
|
|
@ -82,6 +82,7 @@ $base-font-family: Helvetica, Arial, sans-serif !default;
|
|||
// standard color transformations, use these if possible, and add any new dark-light-diffs here
|
||||
|
||||
//primary
|
||||
$primary-very-low: dark-light-diff($primary, $secondary, 97%, -75%);
|
||||
$primary-low: dark-light-diff($primary, $secondary, 90%, -65%);
|
||||
$primary-low-mid: dark-light-diff($primary, $secondary, 70%, -45%);
|
||||
$primary-medium: dark-light-diff($primary, $secondary, 50%, -20%);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue