From 74e7316c1ebbe0c598a77d502ed4e772d9e8b5ab Mon Sep 17 00:00:00 2001 From: Nick Date: Sun, 14 Jul 2019 23:21:39 -0400 Subject: [PATCH] feat: details + summary tag styles --- client/themes/default/scss/app.scss | 44 +++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/client/themes/default/scss/app.scss b/client/themes/default/scss/app.scss index 05e03ab4..fc1eecd9 100644 --- a/client/themes/default/scss/app.scss +++ b/client/themes/default/scss/app.scss @@ -574,4 +574,48 @@ } } + // --------------------------------- + // DETAILS + // --------------------------------- + + details { + background-color: mc('grey', '50'); + margin: 1rem 2rem; + border: 1px solid mc('grey', '300'); + border-radius: 7px; + + > p { + padding-left: 0; + } + + summary { + border-radius: 7px; + background-color: mc('grey', '50'); + cursor: pointer; + height: 40px; + display: flex; + align-items: center; + padding: 0 1rem; + transition: background-color .4s ease; + + &:focus { + outline: none; + background-color: mc('grey', '100'); + } + } + + &[open] { + padding: 1rem; + + summary { + background-color: mc('grey', '100'); + border-bottom: 1px solid mc('grey', '300'); + border-bottom-left-radius: 0; + border-bottom-right-radius: 0; + margin: -1rem -1rem 1rem -1rem; + } + } + + } + }