Skip to content

Commit 990b119

Browse files
committed
improve docs styles
1 parent f50de67 commit 990b119

File tree

2 files changed

+86
-1
lines changed

2 files changed

+86
-1
lines changed

packages/angular/preview/src/app/docs/docs.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { Component, Input, ViewChild, ElementRef } from '@angular/core';
22

33
@Component({
44
selector: 'app-docs',
5-
template: ` <div #docsRoot [innerHTML]="template | safeHtml"></div> `,
5+
template: ` <div #docsRoot [innerHTML]="template | safeHtml" class='docsMainBlock'></div> `,
66
styleUrls: ['./docs.style.scss'],
77
})
88
export class DocsComponent {
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
.docsMainBlock {
2+
padding: 50px 40px 10px;
3+
max-width: 1440px;
4+
margin: 0 auto 150px;
5+
6+
::ng-deep {
7+
color: #414141;
8+
9+
h1, h2, h3, h4, h5, h6 {
10+
font-weight: 700;
11+
margin: 0 0 20px;
12+
}
13+
14+
h1, h2 {
15+
border-bottom: 1px solid #ededed;
16+
padding-bottom: 8px;
17+
}
18+
19+
h3, h4, h5, h6 {
20+
margin-top: 40px;
21+
width: 100%;
22+
justify-content: start;
23+
}
24+
25+
h1 {
26+
font-size: 36px
27+
}
28+
29+
h2 {
30+
font-size: 26px
31+
}
32+
33+
h3 {
34+
font-size: 24px
35+
}
36+
37+
h4 {
38+
font-size: 18px
39+
}
40+
41+
h5, h6 {
42+
font-size: 16px
43+
}
44+
45+
:not(pre) > code {
46+
font-family: monospace,sans-serif;
47+
border-radius: .25em;
48+
padding: .2em .4em;
49+
font-size: .85em;
50+
background-color: hsla(0,0%,65.1%,.2);
51+
}
52+
53+
a {
54+
text-decoration: none;
55+
}
56+
57+
blockquote {
58+
background-color: rgba(202,200,200,.2);
59+
border-left: 5px solid #897dec;
60+
border-radius: 5px;
61+
padding: 1em 10px 1em 18px;
62+
margin: 0 0 1em;
63+
}
64+
65+
ul {
66+
padding-left: 18px;
67+
margin-bottom: 0;
68+
}
69+
70+
ol {
71+
list-style: revert;
72+
list-style-position: outside;
73+
margin: 0 0 16px;
74+
padding: 0 0 0 32px;
75+
}
76+
77+
hr {
78+
border: none;
79+
border-bottom: 1px solid #ededed;
80+
border-radius: 5px;
81+
margin-bottom: 40px;
82+
margin-top: 30px;
83+
}
84+
}
85+
}

0 commit comments

Comments
 (0)