From ab7adc8a14baeb93d3c2214a4d2bdc856884d509 Mon Sep 17 00:00:00 2001 From: Raphael Date: Wed, 17 Jul 2019 12:24:47 +0200 Subject: [PATCH] =?UTF-8?q?mise=20=C3=A0=20jour=20du=20reset=20(partie=202?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sass/base/_reset.scss | 48 +++++++++++++++++++++++++++++++++++++------ 1 file changed, 42 insertions(+), 6 deletions(-) diff --git a/sass/base/_reset.scss b/sass/base/_reset.scss index c971838..47d88c8 100644 --- a/sass/base/_reset.scss +++ b/sass/base/_reset.scss @@ -39,7 +39,6 @@ html { font-size: calc(1em * 0.625); /* 3 */ } -/* Body */ body { margin: 0; @include font-size(base); @@ -49,7 +48,10 @@ body { line-height: $line-height-base; } -/* Links */ +/** + * links + */ + a { color: $link-color; text-decoration: $link-decoration; @@ -62,7 +64,10 @@ a { } } -/* Headings */ +/** + * headings + */ + h1, .h1-like { @include font-size(h1); @if variable_exists(font-family-headings) and $font-family-headings != $font-family-base{ @@ -99,7 +104,10 @@ h6, .h6-like { font-weight: $weight-medium; } -/* Vertical rythm */ +/** + * vertical rythm + */ + h1, h2, h3, @@ -122,7 +130,10 @@ pre { margin-bottom: $paragraph-margin-bottom; } -/* Avoid margins on nested elements */ +/** + * avoid margin on nested elements + */ + li p, li .p-like, li ul, @@ -133,7 +144,10 @@ ul ul { margin-bottom: 0; } -/* Styling elements */ +/** + * common elements styling + */ + a, area, button, @@ -169,6 +183,19 @@ img { border-style: none; } +/** + * fill color matching to text color + */ + +svg:not([fill]) { + fill: currentColor; +} + + +/** + * hide overflow in IE + */ + svg:not(:root) { overflow: hidden; } @@ -192,6 +219,11 @@ var { font-style: italic; } + +/** + * monospace tags and mark tag styling + */ + pre, code, kbd, @@ -249,6 +281,10 @@ sub { top: 0.5ex; } +/** + * quotes, blockquote and hr styling + */ + blockquote { position: relative; padding-left: 3em;