From 76c1dff6b3c971046d276cb7982ab93b2af4e16a Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Sun, 29 Dec 2019 21:39:23 -0800 Subject: [PATCH] style download buttons a bit better --- docs/book.toml | 3 ++ docs/{assets/css/style.scss => custom.css} | 58 ++-------------------- docs/index.markdown | 2 +- 3 files changed, 7 insertions(+), 56 deletions(-) rename docs/{assets/css/style.scss => custom.css} (71%) diff --git a/docs/book.toml b/docs/book.toml index 56d415864..231c8a236 100644 --- a/docs/book.toml +++ b/docs/book.toml @@ -6,3 +6,6 @@ src = "." [build] build-dir = "../gh_pages" create-missing = false + +[output.html] +additional-css = ["custom.css"] diff --git a/docs/assets/css/style.scss b/docs/custom.css similarity index 71% rename from docs/assets/css/style.scss rename to docs/custom.css index 0fc86dd7b..e1975efd6 100644 --- a/docs/assets/css/style.scss +++ b/docs/custom.css @@ -1,8 +1,3 @@ ---- ---- - -@import "{{ site.theme }}"; - .btn { -moz-box-shadow:inset 0px 1px 0px 0px #e184f3; -webkit-box-shadow:inset 0px 1px 0px 0px #e184f3; @@ -21,12 +16,13 @@ border:1px solid #a511c0; display:inline-block; cursor:pointer; - color:#ffffff; + color:#ffffff !important; font-weight:bold; padding:0.25em 1em; text-decoration:none; text-shadow:0px 1px 0px #9b14b3; } + .btn:hover { background:-webkit-gradient(linear, left top, left bottom, color-stop(0.05, #a20dbd), color-stop(1, #c123de)); background:-moz-linear-gradient(top, #a20dbd 5%, #c123de 100%); @@ -37,57 +33,9 @@ filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#a20dbd', endColorstr='#c123de',GradientType=0); background-color:#a20dbd; } + .btn:active { position:relative; top:1px; } -svg.octicon { - margin-right: 0.25em; -} -a.btn svg.octicon { - fill: white; - vertical-align: text-bottom; -} - -h2 svg.octicon { - fill: #eaeaea; - vertical-align: text-bottom; -} - -#toc { - font-size: 0.8em; - width: 250px; - position: fixed; - background-color: #222; - border: solid 1px #111; - padding: 1.1em; - overflow-y: auto; - max-height: 100%; -} - -#toc li { - list-style: square; -} - -#toc ul { - margin-left: 0em; - padding-left: 1em; -} - -#toc li { - margin-left: 1em; - padding-left: 0em; -} - -#container { - margin-left: 300px; -} - -.container-lg { - padding: 1em; -} - -.text-right { - float: right; -} diff --git a/docs/index.markdown b/docs/index.markdown index 785d7a82a..3edd3e5db 100644 --- a/docs/index.markdown +++ b/docs/index.markdown @@ -1,5 +1,5 @@ -*A GPU-accelerated cross-platform terminal emulator and multiplexer written by @wez and implemented in Rust* +*WezTerm is a GPU-accelerated cross-platform terminal emulator and multiplexer written by @wez and implemented in Rust* Download