diff options
author | 2022-01-30 20:01:27 +0100 | |
---|---|---|
committer | 2022-01-30 20:01:27 +0100 | |
commit | efc24acb63e4faf10644fb22b3c72aa13d792b79 (patch) | |
tree | 8935d427d80a066893ac17c67e4a59ffa99a3ae6 | |
parent | Refactor: collapsibles as a stand-alone component (diff) |
Hide the filter tags initially.
Helps prevent a flash of tags.
-rw-r--r-- | pydis_site/static/css/resources/resources.css | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/pydis_site/static/css/resources/resources.css b/pydis_site/static/css/resources/resources.css index aa47be8f..ebd946d9 100644 --- a/pydis_site/static/css/resources/resources.css +++ b/pydis_site/static/css/resources/resources.css @@ -94,12 +94,17 @@ i.is-primary { /* Set default display to inline-flex, for centering. */ span.filter-box-tag { - display: inline-flex; + display: none; align-items: center; cursor: pointer; user-select: none; } +/* Make sure jQuery will use inline-flex when setting `show()` again. */ +span.filter-box-tag[style*='display: block'] { + display: inline-flex !important; +} + /* Make resource tags clickable */ .resource-tag { cursor: pointer; |