/* ========================= */ /* == Obsidian: Rich Foot == */ /* ========================= */ /* ------------------------------ */ /* -- General Rich Foot Styles -- */ /* ------------------------------ */ .rich-foot { /* Layout optimization */ contain: layout style; min-height: 0; /* Spacing */ margin-top: 30px !important; margin-bottom: 20px !important; padding-top: 10px !important; /* Animation setup */ opacity: 1; transform: translateY(0); will-change: opacity, transform; transition: opacity 600ms ease-in-out, transform 600ms ease-in-out; } .rich-foot--hidden { opacity: 0; transform: translateY(-2px); } /* ---------------------- */ /* -- Backlinks Styles -- */ /* ---------------------- */ .rich-foot--backlinks, .rich-foot--outlinks, .rich-foot--links { opacity: var(--rich-foot-links-opacity, 1); } .rich-foot--backlinks::before { content: 'Backlinks';} .rich-foot--outlinks::before { content: 'Outlinks';} .rich-foot--links::before { content: 'Links';} .rich-foot--backlinks::before, .rich-foot--outlinks::before, .rich-foot--links::before { text-transform: uppercase; filter: brightness(150%); position: relative; bottom: 0; font-size: 0.7em; color: var(--rich-foot-link-color, var(--text-accent)); } .rich-foot--backlinks ul, .rich-foot--outlinks ul, .rich-foot--links ul { list-style: none; display: flex; flex-direction: row; flex-wrap: wrap; margin: 0 !important; padding-left: 20px !important; } .rich-foot--backlinks ul li, .rich-foot--outlinks ul li, .rich-foot--links ul li { margin-inline-start: 0 !important; } .rich-foot--backlinks ul li a, .rich-foot--outlinks ul li a, .rich-foot--links ul li a, .rich-foot--backlinks ul li .rich-foot--show-more, .rich-foot--outlinks ul li .rich-foot--show-more, .rich-foot--links ul li .rich-foot--show-more { /* Appearance */ filter: brightness(120%); text-decoration: none !important; font-size: 12px; padding: 0 8px; text-transform: lowercase; text-align: center; display: inline-block; margin: 0 4px; cursor: pointer; /* Styling */ border-radius: var(--rich-foot-border-radius, 15px); border: 1px solid var(--rich-foot-link-border-color, rgba(255, 255, 255, 0.204)); color: var(--rich-foot-link-color, var(--link-color)); background-color: var(--rich-foot-link-background, var(--tag-background)); /* Performance optimization */ will-change: filter, border-color; transition: 150ms ease-in-out all; } .rich-foot--backlinks ul li a::before, .rich-foot--links ul li a[data-is-backlink="true"]::before { content: "⇠ "; opacity: .5; } .rich-foot--outlinks ul li a::after, .rich-foot--links ul li a[data-is-outlink="true"]::after { content: " ⇢"; opacity: .5; } .rich-foot--backlinks ul li a:hover, .rich-foot--outlinks ul li a:hover, .rich-foot--links ul li a:hover, .rich-foot--backlinks ul li .rich-foot--show-more:hover, .rich-foot--outlinks ul li .rich-foot--show-more:hover, .rich-foot--links ul li .rich-foot--show-more:hover { filter: brightness(170%); border: 1px solid transparent !important; text-decoration: none; } /* ----------------------------- */ /* -- Show More / Limit Links -- */ /* ----------------------------- */ .rich-foot--backlinks ul li.rich-foot--link-hidden, .rich-foot--outlinks ul li.rich-foot--link-hidden, .rich-foot--links ul li.rich-foot--link-hidden { display: none !important; } .rich-foot--backlinks ul li .rich-foot--show-more, .rich-foot--outlinks ul li .rich-foot--show-more, .rich-foot--links ul li .rich-foot--show-more { /* The shared pill rule above provides all rich-foot user-setting styling (link color, background, border color, radius, padding, font-size) via the --rich-foot-* variables, so this control automatically tracks the user's visual settings. These declarations only neutralize the native