diff options
author | Samy Pessé <samypesse@gmail.com> | 2015-10-06 10:38:09 +0200 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2015-10-06 10:38:09 +0200 |
commit | 4b7d957b47504b852bfbe84ce903602c8855ac24 (patch) | |
tree | 32bd4d30a5df2bd95130b59b9aa67b90d05140cc /theme/stylesheets/base | |
parent | a1c03c18a52b68ea466cd8d25086f27421923e7a (diff) | |
download | gitbook-4b7d957b47504b852bfbe84ce903602c8855ac24.zip gitbook-4b7d957b47504b852bfbe84ce903602c8855ac24.tar.gz gitbook-4b7d957b47504b852bfbe84ce903602c8855ac24.tar.bz2 |
Use black links in mobi files
Diffstat (limited to 'theme/stylesheets/base')
-rw-r--r-- | theme/stylesheets/base/markdown.less | 4 | ||||
-rw-r--r-- | theme/stylesheets/base/mixins.less | 20 |
2 files changed, 22 insertions, 2 deletions
diff --git a/theme/stylesheets/base/markdown.less b/theme/stylesheets/base/markdown.less index b2866b7..1e235a8 100644 --- a/theme/stylesheets/base/markdown.less +++ b/theme/stylesheets/base/markdown.less @@ -1,4 +1,4 @@ -.markdown-content(@md-color, @md-line-height) { +.markdown-content(@md-color: #000, @md-line-height: 1.6, @md-link-color: #4183c4) { -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; line-height: 1.4; @@ -70,7 +70,7 @@ } a { - color: #4183c4; + color: @md-link-color; text-decoration: none; } diff --git a/theme/stylesheets/base/mixins.less b/theme/stylesheets/base/mixins.less new file mode 100644 index 0000000..e932151 --- /dev/null +++ b/theme/stylesheets/base/mixins.less @@ -0,0 +1,20 @@ +@import "./markdown.less"; + +.link-inherit { + color: inherit; + + &:hover, &:focus { + color: inherit; + } +} + +.transition-transform(@transition) { + -webkit-transition: -webkit-transform @transition; + -moz-transition: -moz-transform @transition; + -o-transition: -o-transform @transition; + transition: transform @transition; +} + +.hidden { + display: none; +} |