summaryrefslogtreecommitdiff
path: root/assets/css/components
diff options
context:
space:
mode:
Diffstat (limited to 'assets/css/components')
-rw-r--r--assets/css/components/_libra.scss42
-rw-r--r--assets/css/components/_toc.scss53
2 files changed, 0 insertions, 95 deletions
diff --git a/assets/css/components/_libra.scss b/assets/css/components/_libra.scss
deleted file mode 100644
index 2912012b..00000000
--- a/assets/css/components/_libra.scss
+++ /dev/null
@@ -1,42 +0,0 @@
-.libra-overlay {
- position: fixed;
- top: 0;
- left: 0;
- width: 100%;
- height: 100%;
- padding: 1rem;
- transition: opacity ease-in-out;
-
- backdrop-filter: blur(2rem);
- background-color: rgba(255, 255, 255, 0.75);
-
- display: flex;
- justify-content: center;
- align-items: center;
-}
-
-.libra-overlay.libra-visible {
- opacity: 1;
- z-index: 900;
-}
-
-.libra-overlay.libra-hidden {
- opacity: 0;
- z-index: -100;
-}
-
-@media (prefers-color-scheme: dark) {
- .libra-overlay {
- background-color: rgba(0, 0, 0, 0.75);
- }
-}
-
-.libra-shadow {
- position: absolute;
- transition-property: transform;
- z-index: 1000;
-}
-
-.libra-shadow.open {
- box-shadow: 0 0 1rem rgba(0, 0, 0, 0.5);
-}
diff --git a/assets/css/components/_toc.scss b/assets/css/components/_toc.scss
deleted file mode 100644
index e8486557..00000000
--- a/assets/css/components/_toc.scss
+++ /dev/null
@@ -1,53 +0,0 @@
-#toc {
- ul {
- margin-block-start: 0;
- margin-block-end: 0;
- padding-inline-start: 1rem;
-
- overflow: hidden;
- position: relative;
- li {
- list-style: none;
-
- & > a {
- color: var(--secondary-text-color);
- text-decoration: none;
- transition: color .3s;
- display: inline-flex;
- align-items: center;
- gap: .5rem;
- text-overflow: ellipsis;
- white-space: nowrap;
- &::before {
- content: '';
- display: inline-block;
- width: 1rem;
- height: .3rem;
- background-color: var(--block-background-color);
- border-radius: .2rem;
- transition: background .3s;
- flex-shrink: 0;
- }
- }
-
- /* nested list */
- ul {
- max-height: 25rem;
- overflow-y: auto
- }
-
- /* active styles */
- &:not(.active) ul {
- max-height: 0
- }
- a:hover,
- &.active > a {
- color: var(--text-color);
- }
-
- &.active > a::before {
- background-color: var(--secondary-text-color);
- }
- }
- }
-}