![JAR search and dependency download from the Maven repository](/logo.png)
sass.n2o.components.ScrollSpy.scss Maven / Gradle / Ivy
@mixin defaultItem {
position: relative;
font-style: normal;
font-weight: 500;
font-size: 14px;
line-height: 20px;
color: $menu-item-color;
}
@mixin defaultItemHover {
cursor: pointer;
color: $n2o-ui-primary-hover;
}
.n2o-scroll-spy-region {
position: relative;
overflow-y: auto;
.n2o-scroll-spy-region__group-items {
.n2o-scroll-spy-region__group-items-divider {
height: 1px;
}
.n2o-scroll-spy-region__group-items-divider::before {
border-bottom: 1px solid #e4e4e4;
}
.n2o-scroll-spy-region__group-items-title {
padding: 8px 16px;
font-style: normal;
font-weight: 400;
font-size: 12px;
line-height: 16px;
text-transform: uppercase;
color: #bababa;
}
}
.n2o-scroll-spy-region__menu-group {
position: sticky;
top: 0;
height: inherit;
align-self: start;
border-right: 1px solid #ebebeb;
.n2o-scroll-spy-region__menu-item {
padding: 8px 16px;
@include defaultItem;
}
.n2o-scroll-spy-region__menu-item:hover {
@include defaultItemHover;
}
.n2o-scroll-spy-region__menu-item.active {
color: $n2o-ui-primary;
}
.n2o-scroll-spy-region__menu-item.active::after {
height: 100%;
content: "";
position: absolute;
right: 0;
top: 0;
border-right: 2px solid $n2o-ui-primary;
}
.n2o-scroll-spy-region__menu-item.active:hover {
color: $n2o-ui-primary;
}
.n2o-scroll-spy-region__menu-wrapper.visible {
height: auto;
opacity: 1;
transition: max-height 0.25s ease-in;
}
.n2o-scroll-spy-region__menu-wrapper {
width: max-content;
height: 0;
opacity: 0;
transition: 0.1s ease;
.n2o-scroll-spy-region__dropdown-menu-items-wrapper {
width: 100%;
.n2o-scroll-spy-region__menu-wrapper {
height: 0;
padding: 0;
box-shadow: none;
transition: 0.2s ease;
.n2o-scroll-spy-region__menu-item {
display: none;
}
}
.n2o-scroll-spy-region__menu-wrapper.visible {
height: auto;
transition: 0.2s ease;
.n2o-scroll-spy-region__menu-item {
display: block;
}
}
}
.n2o-scroll-spy-region__dropdown-toggle {
padding: 8px 16px;
display: flex;
align-items: center;
.n2o-scroll-spy-region__dropdown-menu-title {
@include defaultItem;
}
.n2o-scroll-spy-region__dropdown-icon {
padding-left: 10.5px;
font-size: 12px;
color: $menu-item-color;
}
}
.n2o-scroll-spy-region__dropdown-toggle.open,
.n2o-scroll-spy-region__dropdown-toggle.hasActive {
.n2o-scroll-spy-region__dropdown-menu-title,
.n2o-scroll-spy-region__dropdown-icon {
color: $n2o-ui-primary;
}
}
.n2o-scroll-spy-region__dropdown-toggle:hover {
.n2o-scroll-spy-region__dropdown-menu-title,
.n2o-scroll-spy-region__dropdown-icon {
@include defaultItemHover;
}
}
}
}
.n2o-scroll-spy-region__menu-group.nested {
border-right: none;
.n2o-scroll-spy-region__menu-wrapper.nested {
width: 100%;
padding-left: 16px;
}
}
.n2o-scroll-spy-region__content-group {
width: 100%;
display: flex;
flex-flow: row wrap;
align-items: flex-start;
justify-content: center;
.n2o-scroll-spy-region__content-wrapper {
width: 90%;
margin: 15px 0;
.n2o-scroll-spy-region__content-wrapper {
width: 100%;
}
.n2o-scroll-spy-region__content-title {
font-weight: bold;
}
}
}
.n2o-scroll-spy-region__content-group::-webkit-scrollbar-track {
-webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
background-color: #f5f5f5;
}
.n2o-scroll-spy-region__content-group::-webkit-scrollbar {
width: 5px;
background-color: #f5f5f5;
}
.n2o-scroll-spy-region__content-group::-webkit-scrollbar-thumb {
background-color: #163851;
}
}
.n2o-scroll-spy-region.position-right {
.n2o-scroll-spy-region__content-group {
direction: rtl;
.n2o-scroll-spy-region__content-wrapper {
direction: ltr;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy