summaryrefslogtreecommitdiffstats
path: root/theme/stylesheets/base
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2015-10-06 10:38:09 +0200
committerSamy Pessé <samypesse@gmail.com>2015-10-06 10:38:09 +0200
commit4b7d957b47504b852bfbe84ce903602c8855ac24 (patch)
tree32bd4d30a5df2bd95130b59b9aa67b90d05140cc /theme/stylesheets/base
parenta1c03c18a52b68ea466cd8d25086f27421923e7a (diff)
downloadgitbook-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.less4
-rw-r--r--theme/stylesheets/base/mixins.less20
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;
+}