Skip to content

Commit a27e1a3

Browse files
committed
styles: add width to period table
1 parent f782d34 commit a27e1a3

File tree

3 files changed

+37
-17
lines changed

3 files changed

+37
-17
lines changed

.stylelintrc.json

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,26 @@
77
"no-empty-source": null,
88
"selector-type-no-unknown": null,
99
"at-rule-no-unknown": null,
10-
"scss/at-rule-no-unknown": true
10+
"scss/at-rule-no-unknown": true,
11+
"selector-pseudo-class-no-unknown": [
12+
true,
13+
{
14+
"ignorePseudoClasses": [
15+
"host"
16+
]
17+
}
18+
],
19+
"selector-pseudo-element-no-unknown": [
20+
true,
21+
{
22+
"ignorePseudoElements": [
23+
"ng-deep"
24+
]
25+
}
26+
]
1127
},
1228
"ignore": [
1329
"custom-elements",
1430
"default-namespace"
1531
]
16-
}
32+
}

src/app/presentation/home/home.component.html

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,17 @@ <h1>- LEDGE -</h1>
77
</p>
88
</div>
99

10-
<div class="period-title markdown">
11-
<h4>它可以帮助您的企业在数字化时代更好地前进。</h4>
12-
<h2 class="title intro">DevOps 元素周期表 —— 选择您的 DevOps 工具</h2>
10+
<div class="home-section period-section">
11+
<div class="period-title markdown">
12+
<h4>它可以帮助您的企业在数字化时代更好地前进。</h4>
13+
<h2 class="title intro">DevOps 元素周期表 —— 选择您的 DevOps 工具</h2>
14+
</div>
15+
<app-periodic-table
16+
[selectedMetal]="highlightState"
17+
(currentAtomCategory)="setCurrentAtomCategory($event)"
18+
>
19+
</app-periodic-table>
1320
</div>
14-
<app-periodic-table
15-
[selectedMetal]="highlightState"
16-
(currentAtomCategory)="setCurrentAtomCategory($event)"
17-
>
18-
</app-periodic-table>
1921

2022
<div class="home-section">
2123
<div class="section-title">「它可以」</div>
@@ -58,7 +60,7 @@ <h3 class="center">
5860
沉淀我们的各种实践,向您提供全程的数据化变革策略、规划与咨询
5961
</h3>
6062
</div>
61-
<img src="/assets/images/esp.svg" alt="ESP Modeling" />
63+
<img src="/assets/images/esp.svg" alt="ESP Modeling"/>
6264
</div>
6365

6466
<div class="home-section box-shadow">
@@ -67,7 +69,7 @@ <h3 class="center">
6769
<div class="contributor" *ngFor="let user of contributors">
6870
<div class="avatar">
6971
<a href="{{ user.link }}" target="_blank"
70-
><img src="{{ user.avatar }}" alt=""
72+
><img src="{{ user.avatar }}" alt=""
7173
/></a>
7274
</div>
7375
<div class="username">

src/app/presentation/home/home.component.scss

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,15 @@
8686

8787
.home-section {
8888
width: 1200px;
89-
margin: 0 auto;
89+
margin: 2em auto 0;
9090
border-radius: 8px;
9191
background-color: $white;
9292

93+
&.period-section {
94+
width: auto;
95+
padding: 2em;
96+
}
97+
9398
.section-title {
9499
font-size: 40px;
95100
letter-spacing: 2.5px;
@@ -123,8 +128,7 @@
123128
line-height: 1.5;
124129
letter-spacing: 1px;
125130
text-align: center;
126-
margin: 0px auto;
127-
margin-top: 16px;
131+
margin: 16px auto 0;
128132
width: 800px;
129133
}
130134

@@ -143,9 +147,7 @@
143147
}
144148

145149
:host ::ng-deep {
146-
147150
.devops-content {
148-
149151
.no-toc-markdown {
150152
width: 100%;
151153
}

0 commit comments

Comments
 (0)