Ditch the ridiculous floating tabs
This commit is contained in:
parent
0f9e98be8a
commit
e756bf8a35
3 changed files with 2 additions and 30 deletions
|
@ -17,10 +17,7 @@
|
|||
#logo .logo-color {
|
||||
fill: currentColor;
|
||||
}
|
||||
& + div[data-drupal-messages-fallback] + section,
|
||||
& + div[data-drupal-messages-fallback] + .floating-tabs + #main-content + section,
|
||||
& + div[data-drupal-messages-fallback] + .floating-tabs + #main-content + article > section:first-child,
|
||||
& + div[data-drupal-messages-fallback] + .floating-tabs + #main-content + .node > section:first-child {
|
||||
& + div[data-drupal-messages-fallback] + section {
|
||||
padding-top: 3.3125em;
|
||||
@include desktop {
|
||||
padding-top: 5.875em;
|
||||
|
|
|
@ -19,26 +19,3 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Ridiculously bad hack just to keep the full-saturation title sections
|
||||
// pristine.
|
||||
|
||||
.floating-tabs {
|
||||
position: absolute;
|
||||
left: 0.75rem;
|
||||
z-index: 505;
|
||||
background: rgba($white, 0.75);
|
||||
// Top matches .is-fixed next sibling padding from _component.navbar.scss.
|
||||
top: 3.3125em;
|
||||
@include desktop {
|
||||
top: 5.875em;
|
||||
}
|
||||
}
|
||||
|
||||
.toolbar-tray-open.toolbar-horizontal {
|
||||
.floating-tabs {
|
||||
@include desktop {
|
||||
top: 9.875em;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -80,9 +80,7 @@
|
|||
{% block tabs %}
|
||||
{# Drupal tabs #}
|
||||
{% if page.header_tabs %}
|
||||
<div class="floating-tabs">
|
||||
{{ page.header_tabs }}
|
||||
</div>
|
||||
{{ page.header_tabs }}
|
||||
{% endif %}
|
||||
{% endblock tabs %}
|
||||
{% endblock header %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue