Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(core): Lists add triangle bullet list type #1727

Merged
merged 3 commits into from
May 6, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions projects/core/styles/markup/tui-list.less
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,20 @@
background-color: transparent;
}
}

.tui-list_triangle > & {
padding-left: @space * 7;

&:before {
content: '\25E4'; // represent symbol '◤'
left: 0;
top: auto;
width: auto;
height: auto;
background-color: transparent;
color: var(--tui-base-06);
}
}
}

&__item-title {
Expand Down
32 changes: 32 additions & 0 deletions projects/demo/src/modules/markup/lists/examples/7/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<ul class="tui-list tui-list_triangle">
<li class="tui-list__item">Code Review ($ 10)</li>
<li class="tui-list__item">
The whole project refactoring ($ 1000)
<ul class="tui-list tui-list_linear tui-list_nested">
<li class="tui-list__item">
Add auto prettier and linters on precommit ($ 50)
</li>
<li class="tui-list__item">
Rewrite to react and back ($ Infinity)
</li>
</ul>
</li>
<li class="tui-list__item">
Live workshop from
<a
tuiLink
href="https://angular.institute/corporate"
target="_blank"
>
angular.institute
</a>
($ 3000)
<ol class="tui-list tui-list_ordered tui-list_nested">
<li class="tui-list__item">Interactive samples</li>
<li class="tui-list__item">Case analysis</li>
<li class="tui-list__item">
Angular knowledge that keeps on growing
</li>
</ol>
</li>
</ul>
11 changes: 11 additions & 0 deletions projects/demo/src/modules/markup/lists/examples/7/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import {Component} from '@angular/core';
import {changeDetection} from '@demo/emulate/change-detection';
import {encapsulation} from '@demo/emulate/encapsulation';

@Component({
selector: 'tui-lists-example-7',
templateUrl: './index.html',
changeDetection,
encapsulation,
})
export class TuiList7 {}
5 changes: 5 additions & 0 deletions projects/demo/src/modules/markup/lists/lists.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import {default as example3Html} from '!!raw-loader!./examples/3/index.html';
import {default as example4Html} from '!!raw-loader!./examples/4/index.html';
import {default as example5Html} from '!!raw-loader!./examples/5/index.html';
import {default as example6Html} from '!!raw-loader!./examples/6/index.html';
import {default as example7Html} from '!!raw-loader!./examples/7/index.html';

import {FrontEndExample} from '../../interfaces/front-end-example';

Expand Down Expand Up @@ -39,4 +40,8 @@ export class ListsComponent {
readonly example6: FrontEndExample = {
HTML: example6Html,
};

readonly example7: FrontEndExample = {
HTML: example7Html,
};
}
2 changes: 2 additions & 0 deletions projects/demo/src/modules/markup/lists/lists.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import {TuiList3} from './examples/3';
import {TuiList4} from './examples/4';
import {TuiList5} from './examples/5';
import {TuiList6} from './examples/6';
import {TuiList7} from './examples/7';
import {ListsComponent} from './lists.component';

@NgModule({
Expand All @@ -27,6 +28,7 @@ import {ListsComponent} from './lists.component';
TuiList4,
TuiList5,
TuiList6,
TuiList7,
],
exports: [ListsComponent],
})
Expand Down
8 changes: 8 additions & 0 deletions projects/demo/src/modules/markup/lists/lists.template.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,12 @@
>
<tui-lists-example-6></tui-lists-example-6>
</tui-doc-example>

<tui-doc-example
id="triangle-bullets"
heading="triangle bullets"
[content]="example7"
>
<tui-lists-example-7></tui-lists-example-7>
</tui-doc-example>
</tui-doc-page>