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

Commit 01d2ebe

Browse files
committed
Typography: Eliminated need of a mixin for p
Typography: Eliminated need of mixin for p
1 parent 14a3d8f commit 01d2ebe

File tree

3 files changed

+5
-11
lines changed

3 files changed

+5
-11
lines changed

.gitignore

-2
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,3 @@ 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,10 +9,3 @@
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

+5-2
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,10 @@ h6 {
4545
}
4646

4747
p {
48-
@include paragraph($p);
48+
text-align: map-get($p,textAlignment);
49+
margin: em(map-get($p,margin)) 0;
50+
line-height: 1.5;
51+
font-size: em(map-get($p,fontSize));
4952
}
5053

5154
ul, ol {
@@ -57,7 +60,7 @@ ul ul,
5760
ol ul,
5861
ul ol,
5962
ol ol {
60-
margin-bottom: 0;
63+
margin-bottom: 0;
6164
}
6265

6366
/*

0 commit comments

Comments
 (0)