diff options
| author | Muhammad Hamza <[email protected]> | 2020-09-22 17:29:04 -0700 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2020-12-18 21:18:58 -0500 |
| commit | df1c9160bc2798049d917c8c48996901133b2dcc (patch) | |
| tree | 4508535a97853b3530cf11e0227c9da7cd055d9b | |
| parent | Make admonition-title un-selectable. (diff) | |
| download | discord.py-df1c9160bc2798049d917c8c48996901133b2dcc.tar.xz discord.py-df1c9160bc2798049d917c8c48996901133b2dcc.zip | |
[matrix] Style "View Documentation For" dropdown
| -rw-r--r-- | docs/_static/style.css | 18 | ||||
| -rw-r--r-- | docs/images/drop_down_icon.svg | 4 |
2 files changed, 22 insertions, 0 deletions
diff --git a/docs/_static/style.css b/docs/_static/style.css index 71e2cbe8..23df91cd 100644 --- a/docs/_static/style.css +++ b/docs/_static/style.css @@ -300,6 +300,24 @@ header > nav > a:hover { .sub-header > select { display: none; + background-color: transparent; + padding: 0.4em 0; + font-size: 1em; + width: 13.5%; + color: white; + border: none; + border-bottom: 1px solid var(--search-border); + + appearance: none; + background-image: url('/_images/drop_down_icon.svg'); + background-repeat: no-repeat; + background-position-x: 100%; + background-position-y: 50%; + + cursor: pointer; +} +.sub-header > select:focus { + outline: none; } .sub-header > .settings { diff --git a/docs/images/drop_down_icon.svg b/docs/images/drop_down_icon.svg new file mode 100644 index 00000000..e7edbba3 --- /dev/null +++ b/docs/images/drop_down_icon.svg @@ -0,0 +1,4 @@ +<svg fill='white' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'> + <path d='M7 10l5 5 5-5z'/> + <path d='M0 0h24v24H0z' fill='none'/> +</svg> |