mirror of
https://github.com/discourse/discourse.git
synced 2024-12-01 13:09:33 -06:00
326a7a47e7
Global section icon is using absolute position. To make it move on scroll, the parent element has to be relative. https://meta.discourse.org/t/globe-icon-at-sidebar-behaves-badly/259382
41 lines
824 B
SCSS
41 lines
824 B
SCSS
.sidebar-custom-sections {
|
|
.sidebar-section-wrapper {
|
|
padding-bottom: 0;
|
|
}
|
|
.sidebar-section-header {
|
|
position: relative;
|
|
}
|
|
.d-icon-globe {
|
|
position: absolute;
|
|
left: -0.75em;
|
|
height: 0.75em;
|
|
width: 0.75em;
|
|
margin-top: 0.15em;
|
|
align-items: center;
|
|
}
|
|
|
|
.sidebar-section-link-prefix.icon {
|
|
cursor: move;
|
|
}
|
|
|
|
.sidebar-section-wrapper.disabled {
|
|
a {
|
|
pointer-events: none;
|
|
}
|
|
.sidebar-section-link-wrapper {
|
|
.sidebar-section-link-prefix.icon,
|
|
.sidebar-section-link {
|
|
background: none;
|
|
color: var(--primary-low-mid);
|
|
}
|
|
.sidebar-section-link.drag {
|
|
font-weight: bold;
|
|
color: var(--primary-high);
|
|
.sidebar-section-link-prefix.icon {
|
|
color: var(--primary-high);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|