From 59f2d49f256ccc85b9ec41888fcac97fbc14100f Mon Sep 17 00:00:00 2001 From: Wolfie <32025746+Wolfkid200444@users.noreply.github.com> Date: Thu, 14 Mar 2024 00:19:42 -0400 Subject: [PATCH] Refactor styles --- src/plugins/holynotes/style.css | 53 ++++++++++++++++++++------------- 1 file changed, 33 insertions(+), 20 deletions(-) diff --git a/src/plugins/holynotes/style.css b/src/plugins/holynotes/style.css index bfbc467c4..6f5fbd8fd 100644 --- a/src/plugins/holynotes/style.css +++ b/src/plugins/holynotes/style.css @@ -74,23 +74,19 @@ $modifier: var(--background-modifier-accent); } .vc-notebook-tabbar { + border-bottom: 1px solid var(--background-tertiary); + background-color: var(--background-tertiary); + white-space: nowrap; overflow: hidden; + height: 36px; + flex-shrink: 0; +} + + +/* .vc-notebook-tabbar-bar { margin: 0; padding: 10px 20px 0; - background-color: var(--background-tertiary); -} - -.vc-notebook-tabbar-item { - font-size: 14px; -} - - -.vc-notebook-tabbar-bar { - overflow: hidden; - align-items: stretch; - display: flex; - gap: 40px; -} +} */ .vc-notebook-overflow-chevron { display: inline-block; @@ -115,14 +111,31 @@ $modifier: var(--background-modifier-accent); padding: 0; } -.vc-notebook-tabbar-bar-item { - display: inline; - border-bottom: 2px solid transparent; - height: 39px; - font-size: 14px; +.vc-notebook-tabbar-item { + display: inline-block; + padding: 6px 12px; + white-space: nowrap; + text-overflow: ellipsis; + overflow: hidden; + line-height: 22px; + font-size: 16px; + font-weight: 500; + cursor: pointer; + color: var(--interactive-normal); + border-bottom-width: 2px; + border-bottom-style: solid; + border-bottom-color: transparent; +} + +.vc-notebook-selected { + border-bottom-color: var(--control-brand-foreground); +} + +.vc-notebook-tabbar-item:hover { + border-bottom-color: var(--brand-experiment); } .vc-notebook-top-section { - margin-bottom: calc(-8px + .5*(var(--custom-user-profile-modal-header-avatar-size) + var(--custom-user-profile-modal-header-total-avatar-border-size))); + margin-bottom: calc(-8px + .15*(var(--custom-user-profile-modal-header-avatar-size) + var(--custom-user-profile-modal-header-total-avatar-border-size))); z-index: 1; }