File tree Expand file tree Collapse file tree 3 files changed +29
-32
lines changed
apps/daffio/src/app/docs/components/doc-article Expand file tree Collapse file tree 3 files changed +29
-32
lines changed Original file line number Diff line number Diff line change 1
- < button class =" daffio-doc-article__menu-button " (click) =" open() ">
2
- < fa-icon [icon] =" faBars " > </ fa-icon >
3
- < div > Menu </ div >
4
- </ button >
5
- < div class =" daffio-doc-article__grid " >
6
- < div class ="daffio-doc-article__content ">
7
- < daff-article >
1
+ < daff-container size =" lg ">
2
+ < button class =" daffio-doc-article__menu-button " (click) =" open() " >
3
+ < fa-icon [icon] =" faBars " > </ fa-icon >
4
+ < div > Menu </ div >
5
+ </ button >
6
+ < div class ="daffio-doc-article__grid ">
7
+ < div class =" daffio-doc-article__content " >
8
8
@if (breadcrumbs.length > 0) {
9
9
< nav aria-label ="Breadcrumb ">
10
10
< ol daff-breadcrumb >
20
20
</ ol >
21
21
</ nav >
22
22
}
23
-
24
- < ng-content > </ ng-content >
25
- </ daff-article >
26
- </ div >
27
- @if (toc.length > 0) {
28
- < daffio-docs-table-of-contents
29
- class ="daffio-doc-article__table-of-contents "
30
- [tableOfContents] ="toc ">
31
- </ daffio-docs-table-of-contents >
32
- }
33
- </ div >
23
+ < daff-article >
24
+ < ng-content > </ ng-content >
25
+ </ daff-article >
26
+ </ div >
27
+ @if (toc.length > 0) {
28
+ < daffio-docs-table-of-contents
29
+ class ="daffio-doc-article__table-of-contents "
30
+ [tableOfContents] ="toc ">
31
+ </ daffio-docs-table-of-contents >
32
+ }
33
+ </ div >
34
+ </ daff-container >
Original file line number Diff line number Diff line change 2
2
3
3
:host {
4
4
display : block ;
5
- max-width : 1340px ;
6
- margin : 0 auto ;
7
5
}
8
6
9
7
.daffio-doc-article {
10
8
& __grid {
11
- padding : 24 px ;
9
+ padding : 1.5 rem ;
12
10
13
11
@include daff .breakpoint (small- laptop) {
14
- display : flex ;
15
- justify-content : space-between ;
16
- gap : 64 px ;
17
- padding : 48 px ;
12
+ display : grid ;
13
+ grid-template-columns : 1 fr 15 rem ;
14
+ grid- gap : 4 rem ;
15
+ padding : 3 rem ;
18
16
}
19
17
20
18
@include daff .breakpoint (desktop) {
21
- padding : 48 px 0 ;
19
+ padding : 3 rem 0 ;
22
20
}
23
21
}
24
22
25
23
& __content {
26
- flex-grow : 1 ;
27
24
display : flex ;
28
25
flex-direction : column ;
29
- gap : 24 px ;
26
+ gap : 1.5 rem ;
30
27
}
31
28
32
29
& __table-of-contents {
33
30
display : none ;
34
31
35
32
@include daff .breakpoint (small- laptop) {
36
33
display : block ;
37
- max-width : 240px ;
38
- width : 100% ;
39
34
}
40
35
}
41
36
42
37
& __menu-button {
43
38
@include daff .clickable ();
44
39
display : flex ;
45
- gap : 8 px ;
40
+ gap : 0.5 rem ;
46
41
align-items : center ;
47
42
justify-content : center ;
48
43
background : var (--daff-theme );
51
46
border-bottom : 1px solid rgb (var (--daff-theme-contrast-rgb ), 0.1 );
52
47
color : var (--daff-theme-contrast );
53
48
overflow : auto ;
54
- padding : 16 px 24 px ;
49
+ padding : 1 rem 1.5 rem ;
55
50
position : sticky ;
56
51
top : var (--daff-sidebar-side-fixed-top-shift );
57
52
width : 100% ;
Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ import { DaffioDocsTableOfContentsModule } from '../table-of-contents/table-of-c
35
35
DaffBreadcrumbItemDirective ,
36
36
FontAwesomeModule ,
37
37
RouterLink ,
38
+ DaffContainerModule ,
38
39
] ,
39
40
} )
40
41
export class DaffioDocArticleModule { }
You can’t perform that action at this time.
0 commit comments