Skip to content
This repository was archived by the owner on Dec 11, 2021. It is now read-only.

Commit c295fac

Browse files
committed
Typography: Added basic styles for p and lists
Typography: Added basic styles for p and lists Typography: Putting alignment behind a var
1 parent c78216a commit c295fac

File tree

4 files changed

+33
-0
lines changed

4 files changed

+33
-0
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,5 @@ external/
1010
icons/svg-min/
1111
.sass-cache/
1212
dist/
13+
.DS_Store
14+
demos/.DS_Store

scss/atoms/typography/_mixins.scss

+7
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,10 @@
99
line-height: 1;
1010
text-transform: map-get($style,capitalization);
1111
}
12+
13+
@mixin paragraph($style) {
14+
text-align: map-get($style,textAlignment);
15+
margin: em(map-get($style,margin)) 0;
16+
line-height: 1.5;
17+
font-size: em(map-get($style,fontSize));
18+
}

scss/atoms/typography/_typography.scss

+16
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,22 @@ h6 {
4444
@include heading($h6);
4545
}
4646

47+
p {
48+
@include paragraph($p);
49+
}
50+
51+
ul, ol {
52+
margin-top: 0;
53+
margin-bottom: 10px;
54+
}
55+
56+
ul ul,
57+
ol ul,
58+
ul ol,
59+
ol ol {
60+
margin-bottom: 0;
61+
}
62+
4763
/*
4864
* ==========================================================================
4965
* Block elements

scss/variables/typography.js

+8
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,14 @@ chassis.typography = {
150150
fontSize: "16px",
151151
capitalization: "uppercase"
152152
}
153+
},
154+
p: {
155+
name: "P style",
156+
value: {
157+
margin: "25px",
158+
fontSize: "16px",
159+
textAlignment: "justify"
160+
}
153161
}
154162

155163
};

0 commit comments

Comments
 (0)