From 109b0431539e792a7ff51dee31bee36f305927fd Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Sat, 6 Jun 2020 19:29:22 -0500 Subject: [PATCH] Timeline tab animations --- app/styles/components/columns.scss | 38 +++++++++++++++++++++++++++++- 1 file changed, 37 insertions(+), 1 deletion(-) diff --git a/app/styles/components/columns.scss b/app/styles/components/columns.scss index df27b3921..5201df929 100644 --- a/app/styles/components/columns.scss +++ b/app/styles/components/columns.scss @@ -369,6 +369,11 @@ text-align: left; text-decoration: none; white-space: nowrap; + position: relative; + display: flex; + align-items: center; + justify-content: center; + transition: 0.2s; &--sub { font-size: 14px; @@ -382,8 +387,23 @@ &.active { color: var(--primary-text-color); - border-radius: 10px; + + &::before { + height: 100%; + opacity: 1; + } + } + + &::before { + content: ''; + display: block; + position: absolute; + width: 100%; background-color: var(--brand-color-faint); + filter: var(--accent-filter); + border-radius: 10px; + transition: 0.2s; + opacity: 0; } @media screen and (max-width: $nav-breakpoint-2) { @@ -400,6 +420,22 @@ } } + &:hover .btn.grouped { + &::before { + height: 70% !important; + opacity: 0 !important; + } + + &:hover::before { + height: 100% !important; + opacity: 1 !important; + } + + &:hover { + color: var(--primary-text-color); + } + } + & > .column-header__back-button { color: var(--highlight-text-color); }