From 01d2ebe335d7377ab73146ace761a4b88dba2df6 Mon Sep 17 00:00:00 2001 From: Thejdeep Gudivada Date: Fri, 4 Mar 2016 23:18:43 +0530 Subject: [PATCH] Typography: Eliminated need of a mixin for p Typography: Eliminated need of mixin for p --- .gitignore | 2 -- scss/atoms/typography/_mixins.scss | 7 ------- scss/atoms/typography/_typography.scss | 7 +++++-- 3 files changed, 5 insertions(+), 11 deletions(-) diff --git a/.gitignore b/.gitignore index 591b198..651780f 100644 --- a/.gitignore +++ b/.gitignore @@ -10,5 +10,3 @@ external/ icons/svg-min/ .sass-cache/ dist/ -.DS_Store -demos/.DS_Store diff --git a/scss/atoms/typography/_mixins.scss b/scss/atoms/typography/_mixins.scss index 2d6eb82..dae7c48 100644 --- a/scss/atoms/typography/_mixins.scss +++ b/scss/atoms/typography/_mixins.scss @@ -9,10 +9,3 @@ line-height: 1; text-transform: map-get($style,capitalization); } - -@mixin paragraph($style) { - text-align: map-get($style,textAlignment); - margin: em(map-get($style,margin)) 0; - line-height: 1.5; - font-size: em(map-get($style,fontSize)); -} diff --git a/scss/atoms/typography/_typography.scss b/scss/atoms/typography/_typography.scss index 4b04aa1..3cbb855 100644 --- a/scss/atoms/typography/_typography.scss +++ b/scss/atoms/typography/_typography.scss @@ -45,7 +45,10 @@ h6 { } p { - @include paragraph($p); + text-align: map-get($p,textAlignment); + margin: em(map-get($p,margin)) 0; + line-height: 1.5; + font-size: em(map-get($p,fontSize)); } ul, ol { @@ -57,7 +60,7 @@ ul ul, ol ul, ul ol, ol ol { - margin-bottom: 0; + margin-bottom: 0; } /*