Skip to content

Commit

Permalink
πŸ’„ (#2904): small ui adjust
Browse files Browse the repository at this point in the history
Signed-off-by: Vinicius Reis <vinicius.reis@nextcloud.com>
  • Loading branch information
Vinicius Reis committed Sep 21, 2022
1 parent 28f03cc commit 76fbc1e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
8 changes: 7 additions & 1 deletion css/prosemirror.scss
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,12 @@ div.ProseMirror {
margin-top: 10px;
}

> h1,h2,h3,h4,h5,h6 {
&:first-child {
margin-top: 0;
}
}

a {
color: var(--color-primary-element);
text-decoration: underline;
Expand All @@ -110,7 +116,7 @@ div.ProseMirror {
h5,
h6 {
font-weight: 600;
line-height: 1.1em;
line-height: 1em;
margin-top: 24px;
margin-bottom: 12px;
color: var(--color-main-text);
Expand Down
4 changes: 2 additions & 2 deletions src/components/Editor/EditorOutline.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<template>
<div data-text-el="editor-outline" class="editor--outline" :class="{ 'editor--outline-mobile': mobile }">
<header class="editor--outline__header">
<h2>{{ t('text', 'Outline') }}</h2>
<NcButton class="editor--outline__btn-close"
type="tertiary"
:aria-label="t('text', 'Close outline view')"
Expand All @@ -10,6 +9,7 @@
<Close />
</template>
</NcButton>
<h2>{{ t('text', 'Outline') }}</h2>
</header>
<TableOfContents />
</div>
Expand Down Expand Up @@ -78,7 +78,7 @@ export default {
&__header {
margin: 0;
position: sticky;
padding: 0.6em;
padding: 0.6em 0.6em 0.6em 0;
display: flex;
align-items: center;
h2 {
Expand Down

0 comments on commit 76fbc1e

Please sign in to comment.