Skip to content

Commit fee479a

Browse files
Improve style
1 parent 40defe7 commit fee479a

22 files changed

+116
-5
lines changed

src/atom/_atom.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
@use 'paragraph/paragraph';
2+
@use 'title/title';

src/atom/atom.pug

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,6 @@ block content
1313
.tikui-vertical-spacing--line
1414
include /documentation/atomic-design/quote/atom
1515
.tikui-vertical-spacing--line
16-
// Atoms componentDoc
16+
include:componentDoc(height=100) paragraph/paragraph.md
17+
.tikui-vertical-spacing--line
18+
include:componentDoc(height=100) title/title.md

src/atom/paragraph/_paragraph.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.paragraph {
2+
margin: 1rem 0;
3+
font-family: sans-serif;
4+
font-size: 2rem;
5+
color: #223344;
6+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
include paragraph.mixin.pug
2+
3+
+paragraph My paragraph

src/atom/paragraph/paragraph.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
## Paragraph
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
mixin paragraph
2+
p.paragraph
3+
block
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
extends /layout
2+
3+
block body
4+
include paragraph.code.pug

src/atom/title/_title.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
.title {
2+
margin: 0;
3+
color: #234;
4+
margin-bottom: 3rem;
5+
text-align: center;
6+
font-size: 4rem;
7+
font-family: sans-serif;
8+
}

src/atom/title/title.code.pug

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
include title.mixin.pug
2+
3+
+title My title

src/atom/title/title.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
## Title

0 commit comments

Comments
 (0)