From 47b1ead9b2cdb50d49100bb2a707fd9027852997 Mon Sep 17 00:00:00 2001 From: Brandon Clayton <bclayton@usgs.gov> Date: Thu, 10 Mar 2022 13:36:01 -0700 Subject: [PATCH] Add expansion panels styling --- src/lib/src/main/resources/swagger/index.css | 23 ++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/src/lib/src/main/resources/swagger/index.css b/src/lib/src/main/resources/swagger/index.css index f0cc2b6..65654e1 100644 --- a/src/lib/src/main/resources/swagger/index.css +++ b/src/lib/src/main/resources/swagger/index.css @@ -94,3 +94,26 @@ body { position: absolute; top: -.2em; } + +details { + cursor: pointer; + box-shadow: 0 3px 1px -2px #0003, 0 2px 2px #00000024, 0 1px 5px #0000001f; +} + +details:hover { + background-color: #f3f3f3; +} + +details[open] { + background-color: initial; + padding: 0 1.5em 1.5em 1.5em; +} + +summary { + font-weight: bold; + padding: 1.5em; +} + +details[open] > summary { + margin-left: -1.5em; +} -- GitLab