discourse-custom-header-links/common/common.scss

64 lines
1.0 KiB
SCSS
Raw Normal View History

.before-header-panel-outlet {
display: flex;
}
@if $links_position == "right" {
.before-header-panel-outlet {
margin-left: auto;
+ .panel {
margin-left: 0;
2018-12-08 00:17:52 -05:00
}
}
}
.custom-header-links {
display: inline-flex;
align-items: center;
margin-left: auto;
@if $links_position == "left" {
margin-left: 1em;
&--hide-links {
display: none;
}
}
.headerLink {
list-style: none;
a {
padding: 0.35em 0.6em;
color: var(--header_primary);
font-size: var(--font-up-1);
}
2018-06-24 02:55:11 -04:00
}
&--hide-links {
.headerLink:not(.headerLink--keep) {
display: none;
}
}
}
.desktop-view .headerLink--vmo,
.mobile-view .headerLink--vdo {
display: none;
}
// for compatibility with the discourse-header-search component
.floating-search-input-wrapper {
flex: 1 1 auto;
margin: 0 1em;
@if $links_position == "left" {
order: 2;
}
.floating-search-input {
width: 100%;
margin: 0;
}
.search-menu {
width: 100% !important; // overrides very specific selector
}
}