diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 3a436d7..49124e0 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,4 +1,4 @@ -# Contribuing Guide +# Contributing Guide Contributions to this project are welcome. If you have an idea for a bigger change, [open an issue first](https://github.com/brettchalupa/graphql-docs/issues/new/choose) and we can discuss it. diff --git a/lib/graphql-docs/layouts/assets/_sass/_sidebar.scss b/lib/graphql-docs/layouts/assets/_sass/_sidebar.scss index 5afe1b4..60bc87f 100644 --- a/lib/graphql-docs/layouts/assets/_sass/_sidebar.scss +++ b/lib/graphql-docs/layouts/assets/_sass/_sidebar.scss @@ -69,6 +69,38 @@ } } } + #search { + display: flex; + position: relative; + align-items: center; + border: 1px solid #ddd; + border-radius: 5px; + padding: 0.01em 16px; + margin-bottom: 20px; + + img { + position: absolute; + left: 10px; + height: 16px; + width: 16px; + } + + input { + height: 24px; + line-height: 1.5; + width: 100%; + padding-left: 15px; + background-color: transparent; + color: #444; + border: none; + font-size: 14px; + font-family: 'ProximaNova-Semibold'; + } + + input:focus { + outline: none; + } + } } #sidebar-mobile { diff --git a/lib/graphql-docs/layouts/assets/images/search.svg b/lib/graphql-docs/layouts/assets/images/search.svg new file mode 100644 index 0000000..eee8ff5 --- /dev/null +++ b/lib/graphql-docs/layouts/assets/images/search.svg @@ -0,0 +1,3 @@ + diff --git a/lib/graphql-docs/layouts/default.html b/lib/graphql-docs/layouts/default.html index 00ee54f..6785bc0 100644 --- a/lib/graphql-docs/layouts/default.html +++ b/lib/graphql-docs/layouts/default.html @@ -9,16 +9,71 @@
diff --git a/lib/graphql-docs/layouts/includes/sidebar.html b/lib/graphql-docs/layouts/includes/sidebar.html index 23d6780..6f7c2be 100644 --- a/lib/graphql-docs/layouts/includes/sidebar.html +++ b/lib/graphql-docs/layouts/includes/sidebar.html @@ -1,3 +1,7 @@ +