From f597e0d0923e914ec4690016a7aab8ebdaaab4db Mon Sep 17 00:00:00 2001 From: Rocknest <35231115+Rocknest@users.noreply.github.com> Date: Thu, 10 Oct 2019 18:03:57 +0300 Subject: [PATCH 1/8] Change layout and styles --- lib/std/special/docs/index.html | 507 ++++++++++++++++++++++---------- 1 file changed, 359 insertions(+), 148 deletions(-) diff --git a/lib/std/special/docs/index.html b/lib/std/special/docs/index.html index ec226f220b372e287d01ebb6f44c1ccd39aeb8fa..f0d68ffdab70448461b1a01f87ae5deff64a9d71 100644 --- a/lib/std/special/docs/index.html +++ b/lib/std/special/docs/index.html @@ -5,28 +5,28 @@ Documentation - Zig - - -
- -

Loading...

- - -

- - - - - - - - - - - - - -
-- 2.54.0 From a34b697c0c6655407d08aee1b7f56ce5ca5205a2 Mon Sep 17 00:00:00 2001 From: Rocknest <35231115+Rocknest@users.noreply.github.com> Date: Thu, 10 Oct 2019 18:55:14 +0300 Subject: [PATCH 2/8] Add transtition to search field --- lib/std/special/docs/index.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/std/special/docs/index.html b/lib/std/special/docs/index.html index f0d68ffdab70448461b1a01f87ae5deff64a9d71..c26468be177f2942233a6aa9f9b0e6f00147e96d 100644 --- a/lib/std/special/docs/index.html +++ b/lib/std/special/docs/index.html @@ -428,10 +428,13 @@ border-bottom-style: solid; border-bottom-color: #000; outline: none; + transition: border-bottom-color 0.35s, background 0.35s, box-shadow 0.35s; } .search:focus { border-bottom-color: #ffbb4d; + background: white; + box-shadow: 0 0.3em 1em 0.125em rgba(0, 0, 0, 0.18); } .search::placeholder { -- 2.54.0 From 238ea85b7efcef797d7cb88c97dc677ecacd4938 Mon Sep 17 00:00:00 2001 From: Rocknest <35231115+Rocknest@users.noreply.github.com> Date: Fri, 11 Oct 2019 00:39:08 +0300 Subject: [PATCH 3/8] Fix dark mode Additionally introduces css variables --- lib/std/special/docs/index.html | 681 +++++++++++++++----------------- 1 file changed, 317 insertions(+), 364 deletions(-) diff --git a/lib/std/special/docs/index.html b/lib/std/special/docs/index.html index c26468be177f2942233a6aa9f9b0e6f00147e96d..81668fd11ecfab240e1cd68d3a08bee14c8db272 100644 --- a/lib/std/special/docs/index.html +++ b/lib/std/special/docs/index.html @@ -5,158 +5,243 @@ Documentation - Zig - -
+ +
- -
-
-
- + +
+
+
+

Loading...

-- 2.54.0 From c95a9e978582ca96bf5462c6bfdd40b934e9ba92 Mon Sep 17 00:00:00 2001 From: Rocknest <35231115+Rocknest@users.noreply.github.com> Date: Thu, 17 Oct 2019 01:54:39 +0300 Subject: [PATCH 8/8] Cleanup --- lib/std/special/docs/index.html | 41 +++++++++++++++++---------------- 1 file changed, 21 insertions(+), 20 deletions(-) diff --git a/lib/std/special/docs/index.html b/lib/std/special/docs/index.html index 8bb6ad414d136c91dbea45dc7dd2645256458247..8ce1033235a4ea4362fb0bbff789988753278d5c 100644 --- a/lib/std/special/docs/index.html +++ b/lib/std/special/docs/index.html @@ -13,6 +13,13 @@ --bg-color: #ffffff; --link-color: #2A6286; --sidebar-sh-color: rgba(0, 0, 0, 0.09); + --sidebar-pkg-bg-color: #f1f1f1; + --sidebar-pkglnk-tx-color: #141414; + --sidebar-pkglnk-tx-color-hover: #fff; + --sidebar-pkglnk-tx-color-active: #000; + --sidebar-pkglnk-bg-color: transparent; + --sidebar-pkglnk-bg-color-hover: #555; + --sidebar-pkglnk-bg-color-active: #FFBB4D; --search-bg-color: #f3f3f3; --search-bg-color-focus: #ffffff; --search-sh-color: rgba(0, 0, 0, 0.18); @@ -118,24 +125,25 @@ list-style-type: none; margin: 0; padding: 0; - background-color: #f1f1f1; + background-color: var(--sidebar-pkg-bg-color); } .sidebar .packages > li > a { display: block; padding: 0.5rem 1rem; - color: var(--tx-color); + color: var(--sidebar-pkglnk-tx-color); + background-color: var(--sidebar-pkglnk-bg-color); text-decoration: none; } .sidebar .packages > li > a:hover { - color: #fff; - background-color: #555; + color: var(--sidebar-pkglnk-tx-color-hover); + background-color: var(--sidebar-pkglnk-bg-color-hover); } .sidebar .packages > li > a.active { - color: #000; - background-color: #FFBB4D; + color: var(--sidebar-pkglnk-tx-color-active); + background-color: var(--sidebar-pkglnk-bg-color-active); } .sidebar p.str { @@ -367,6 +375,13 @@ --bg-color: #111; --link-color: #88f; --sidebar-sh-color: rgba(128, 128, 128, 0.09); + --sidebar-pkg-bg-color: #333; + --sidebar-pkglnk-tx-color: #fff; + --sidebar-pkglnk-tx-color-hover: #fff; + --sidebar-pkglnk-tx-color-active: #000; + --sidebar-pkglnk-bg-color: transparent; + --sidebar-pkglnk-bg-color-hover: #555; + --sidebar-pkglnk-bg-color-active: #FFBB4D; --search-bg-color: #3c3c3c; --search-bg-color-focus: #000; --search-sh-color: rgba(255, 255, 255, 0.28); @@ -390,20 +405,6 @@ background-color: #FFBB4D; color: #000; } - #listPkgs { - background-color: #333; - } - #listPkgs li a { - color: #fff; - } - #listPkgs li a:hover { - background-color: #555; - color: #fff; - } - #listPkgs li a.active { - background-color: #FFBB4D; - color: #000; - } #listSearchResults li.selected { background-color: #000; } -- 2.54.0