diff options
| author | aouvrard <antoine.ouvrard@nereide.fr> | 2018-02-04 19:13:13 +0100 |
|---|---|---|
| committer | aouvrard <antoine.ouvrard@nereide.fr> | 2018-02-04 19:13:13 +0100 |
| commit | 9eee010f8fa93b1738be7b74e30174b170078e08 (patch) | |
| tree | b2e726953945a30632c0a654ae5e2e394ae80cfe /assets/sass/base/_typography.scss | |
ajout su site en construction
Diffstat (limited to 'assets/sass/base/_typography.scss')
| -rw-r--r-- | assets/sass/base/_typography.scss | 123 |
1 files changed, 123 insertions, 0 deletions
diff --git a/assets/sass/base/_typography.scss b/assets/sass/base/_typography.scss new file mode 100644 index 0000000..a9ef65e --- /dev/null +++ b/assets/sass/base/_typography.scss @@ -0,0 +1,123 @@ +@import '../libs/vars'; +@import '../libs/functions'; +@import '../libs/mixins'; + +/// +/// Identity by HTML5 UP +/// html5up.net | @ajlkn +/// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license) +/// + +/* Type */ + + body, input, select, textarea { + color: _palette(fg); + font-family: _font(family); + font-size: 14pt; + font-weight: _font(weight); + line-height: 2; + letter-spacing: _size(letter-spacing); + text-transform: uppercase; + + @include breakpoint(xlarge) { + font-size: 11pt; + } + + @include breakpoint(xsmall) { + font-size: 10pt; + line-height: 1.75; + } + } + + a { + @include vendor('transition', ( + 'color #{_duration(transition)} ease', + 'border-color #{_duration(transition)} ease' + )); + color: inherit; + text-decoration: none; + + &:before { + @include vendor('transition', ( + 'color #{_duration(transition)} ease', + 'text-shadow #{_duration(transition)} ease' + )); + } + + &:hover { + color: _palette(highlight); + } + } + + strong, b { + color: _palette(fg-bold); + } + + em, i { + font-style: italic; + } + + p { + margin: 0 0 _size(element-margin) 0; + } + + h1, h2, h3, h4, h5, h6 { + color: _palette(fg-bold); + line-height: 1.5; + margin: 0 0 (_size(element-margin) * 0.5) 0; + + a { + color: inherit; + text-decoration: none; + } + } + + h1 { + font-size: 1.85em; + letter-spacing: (_size(letter-spacing) * 1.1); + margin: 0 0 (_size(element-margin) * 0.35) 0; + } + + h2 { + font-size: 1.25em; + } + + h3 { + font-size: 1em; + } + + h4 { + font-size: 1em; + } + + h5 { + font-size: 1em; + } + + h6 { + font-size: 1em; + } + + @include breakpoint(xsmall) { + h1 { + font-size: 1.65em; + } + } + + sub { + font-size: 0.8em; + position: relative; + top: 0.5em; + } + + sup { + font-size: 0.8em; + position: relative; + top: -0.5em; + } + + hr { + border: 0; + border-bottom: solid _size(border-width) _palette(border); + margin: (_size(element-margin) * 2) 0; + }
\ No newline at end of file |
