Skip to content

Commit

Permalink
chore(demo): change styles (#6228)
Browse files Browse the repository at this point in the history
  • Loading branch information
splincode authored Dec 12, 2023
1 parent 17edca6 commit d43a02e
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {Component, ViewEncapsulation} from '@angular/core';
import {Component} from '@angular/core';
import {changeDetection} from '@demo/emulate/change-detection';
import {tuiRawLoad} from '@taiga-ui/addon-doc';
import {of} from 'rxjs';
Expand All @@ -8,7 +8,6 @@ import {switchMap} from 'rxjs/operators';
selector: 'changelog',
templateUrl: './changelog.template.html',
styleUrls: ['./changelog.style.less'],
encapsulation: ViewEncapsulation.None,
changeDetection,
})
export class ChangelogComponent {
Expand Down
7 changes: 5 additions & 2 deletions projects/demo/src/modules/info/changelog/changelog.style.less
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/* stylelint-disable selector-type-no-unknown */
markdown {
.changelog ::ng-deep {
& > :nth-child(1),
& > :nth-child(2) {
display: none;
Expand All @@ -9,6 +8,10 @@ markdown {
margin-left: 1.25rem;
}

& h2[id]:nth-of-type(1) {
margin-top: 0;
}

& h3:not([id^='feat']):not([id^='bug']):not([id^='deprecations']) {
font-size: 1.75rem;
padding-bottom: 0.5em;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
<tui-doc-page header="Changelog">
<markdown [data]="(changelog | async) || ''"></markdown>
<markdown
class="changelog"
[data]="(changelog | async) || ''"
></markdown>
</tui-doc-page>
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
@import '@taiga-ui/core/styles/taiga-ui-local';

:host {
display: flex;
flex-direction: column;
height: 100%;
}

.table {
width: 100%;
}
Expand Down

0 comments on commit d43a02e

Please sign in to comment.