This commit is contained in:
Jina Anne 2018-12-27 17:02:45 -08:00
parent 67020d2037
commit 4a5ee52092
4 changed files with 17 additions and 6 deletions

View File

@ -48,6 +48,12 @@
&__complementary {
@include sl-breakpoint--medium { flex: 0 0 sl-px-to-rem(480px); }
@include sl-breakpoint--medium {
flex: 0 0 sl-px-to-rem(480px);
&--contents {
flex: 0 0 sl-px-to-rem(320px);
}
}
}
}

View File

@ -14,5 +14,7 @@
=yield
%aside.sl-l-holy-grail__complementary(role='complementary')
- has_contents = current_page.data.table_of_contents ? 'sl-l-holy-grail__complementary--contents' : ''
%aside.sl-l-holy-grail__complementary(role='complementary'){class: has_contents}
= yield_content :complementary
}

View File

@ -95,21 +95,21 @@
%li
%span.release-name<
= link_to 'LibSass', 'libsass'
= link_to 'LibSass', '/libsass'
-# Force space between the two links.
&#32;
= link_to impl_version(:libsass) || '???', release_url(:libsass)
%li
%span.release-name<
= link_to 'Ruby Sass', 'ruby-sass'
= link_to 'Ruby Sass', '/ruby-sass'
-# Force space between the two links.
&#32;
= link_to impl_version(:ruby) || '???', |
'/documentation/file.SASS_CHANGELOG.html' |
%li.sl-l-grid__column.sl-l-large-grid__column--auto-size
= link_to 'Implementation Guide', 'implementation'
= link_to 'Implementation Guide', '/implementation'
- if content_for?(:section_bottom)
%section.sl-background--white.sl-l-container= Typogruby.improve(yield_content :section_bottom)

View File

@ -1,5 +1,8 @@
= wrap_layout :has_navigation do
= wrap_layout :has_both_sidebars do
=yield
- content_for :navigation do
= partial "layouts/components/reference_table_of_contents"
- content_for :complementary do
Put table of contents here