Skip to content

Commit

Permalink
fix(front): i#3919 spacing text editor
Browse files Browse the repository at this point in the history
  • Loading branch information
cocotime committed Sep 15, 2023
1 parent bcf1cf8 commit b08880d
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {
} from '@angular/core';
import { CommonModule } from '@angular/common';

import { TuiLinkModule } from '@taiga-ui/core';
import { TuiLinkModule, TuiButtonModule } from '@taiga-ui/core';
import { RestoreFocusDirective } from '../directives/restore-focus/restore-focus.directive';
import { ModalComponent } from '@taiga/ui/modal/components';
import { TranslocoDirective } from '@ngneat/transloco';
Expand All @@ -29,6 +29,7 @@ import { TranslocoDirective } from '@ngneat/transloco';
RestoreFocusDirective,
ModalComponent,
TranslocoDirective,
TuiButtonModule,
],
templateUrl: './discard-changes-modal.component.html',
styleUrls: ['./discard-changes-modal.component.css'],
Expand Down
35 changes: 28 additions & 7 deletions javascript/apps/taiga/src/app/styles/tools/editor-results.css
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,18 @@ Copyright (c) 2023-present Kaleidos INC

& ul {
list-style-type: square;
margin-block-end: var(--spacing-8);
margin-block-end: 0;
margin-block-start: var(--spacing-12);
}

& li {
margin-block-end: 0;
margin-block-start: var(--spacing-4);
}

& p {
margin-block-end: 0.5rem;
margin-block-start: 0;
margin-block-end: 0;
margin-block-start: var(--spacing-12);
}

& hr {
Expand All @@ -40,14 +46,29 @@ Copyright (c) 2023-present Kaleidos INC
text-decoration: underline;
}

& p:first-child,
& h1:first-child,
& h2:first-child,
& h3:first-child,
& h4:first-child,
& h5:first-child,
& h6:first-child {
margin-block-start: 0;
}

& h1,
& h2,
& h3,
& h4,
& h5,
& h6 {
font-family: "Ubuntu", sans-serif;
margin-block-start: 0;
margin-block-end: 0;
margin-block-start: var(--spacing-24);
}

h6 {
margin-block-start: var(--spacing-16);
}

& pre,
Expand All @@ -63,11 +84,11 @@ Copyright (c) 2023-present Kaleidos INC
& ol {
display: block;
list-style-type: decimal;
margin-block-end: 1em;
margin-block-start: 1em;
margin-block-end: 0;
margin-block-start: var(--spacing-12);
margin-inline-end: 0;
margin-inline-start: 0;
padding-inline-start: 40px;
padding-inline-start: 1.4rem;
}
}

Expand Down
12 changes: 6 additions & 6 deletions javascript/apps/taiga/src/assets/editor/iframe.css
Original file line number Diff line number Diff line change
Expand Up @@ -74,23 +74,23 @@ a {
}

ul {
margin-block: 0 2.5rem;
margin-block-end: 0.5rem;
margin-block-end: 0;
margin-block-start: 0.75rem;
padding-inline-start: 1.4rem;
}

ol {
display: block;
list-style-type: decimal;
margin-block-end: 1em;
margin-block-start: 1em;
margin-block-end: 0;
margin-block-start: 0.75rem;
margin-inline-end: 0;
margin-inline-start: 0;
padding-inline-start: 40px;
padding-inline-start: 1.4rem;
}

li {
margin-block-end: 0.4rem;
margin-block-start: 0.25rem;
}

hr {
Expand Down

0 comments on commit b08880d

Please sign in to comment.