Skip to content

Commit a66d697

Browse files
authored
Merge pull request #609 from HIMU-2001/tabbed-content-visibility
Tabbed content visibility #599 #466
2 parents 87c229f + 1c3bad9 commit a66d697

1 file changed

Lines changed: 55 additions & 0 deletions

File tree

assets/scss/_styles_project.scss

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -722,3 +722,58 @@ a:not([href]):not([class]):hover {
722722
.csvtable {
723723
width: 100%;
724724
}
725+
// Only target the tabbed panels using ID naming convention
726+
727+
[id^="tabs-"] {
728+
border: 1px solid rgba($light, 0.1);
729+
border-radius: 0.5rem;
730+
padding: .5rem;
731+
margin-bottom: 1rem;
732+
background-color: rgba($light, 0.02);
733+
box-shadow: 0 0 8px rgba($dark, 0.2);
734+
735+
.nav-link {
736+
color: $light;
737+
background-color: rgba($light, 0.3); // 🆕 consistent visible bg for inactive tabs
738+
border: 2px solid rgba($light, 0.15);
739+
border-radius: 0.5rem 0.5rem 0 0;
740+
margin: 2px;
741+
padding: 0.5rem 1rem;
742+
font-weight: 500;
743+
line-height: 1.5rem;
744+
display: inline-block;
745+
transition: background-color 0.2s ease, color 0.2s ease;
746+
white-space: nowrap;
747+
box-shadow: 0 0 4px rgba($dark, 0.05); // 🆕 soft shadow for depth
748+
749+
&:hover {
750+
background-color: rgba($light, 0.5);
751+
color: $white;
752+
}
753+
754+
&.active {
755+
background-color: $primary;
756+
color: #fff;
757+
border-color: $primary $primary transparent;
758+
font-weight: 600;
759+
position: relative;
760+
z-index: 2;
761+
box-shadow: none; // remove shadow from active to flatten it into content
762+
}
763+
}
764+
765+
.nav-link.disabled {
766+
background: transparent;
767+
border: none;
768+
color: rgba($light, 0.5);
769+
font-weight: 400;
770+
cursor: default;
771+
box-shadow: none;
772+
pointer-events: none;
773+
padding-left: 0;
774+
padding-right: 0;
775+
margin-right: 0.5rem;
776+
margin-left: 0.25rem;
777+
letter-spacing: 0.03em;
778+
}
779+
}

0 commit comments

Comments
 (0)