]> git.localhorst.tv Git - alttp.git/blobdiff - resources/sass/common.scss
generic spoiler component
[alttp.git] / resources / sass / common.scss
index 80b8b2a62e83293435f9d35a3b48437c210364e3..6a4be9fcbc2df9f5aab09e5f0a8761435916fb34 100644 (file)
@@ -11,6 +11,21 @@ h1 {
        margin-bottom: 2rem;
 }
 
+.spoiler {
+       border-radius: 0.5ex;
+       padding: 0 0.5ex;
+       background: $dark;
+       color: $light;
+
+       &.hidden {
+               cursor: pointer;
+
+               > .content {
+                       visibility: hidden;
+               }
+       }
+}
+
 .text-discord {
        color: $discord;
 }