mirror of
https://github.com/danog/sass-site.git
synced 2024-11-27 04:24:50 +01:00
fixes #262
This commit is contained in:
parent
67020d2037
commit
4a5ee52092
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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
|
||||
}
|
||||
|
@ -95,21 +95,21 @@
|
||||
|
||||
%li
|
||||
%span.release-name<
|
||||
= link_to 'LibSass', 'libsass'
|
||||
= link_to 'LibSass', '/libsass'
|
||||
-# Force space between the two links.
|
||||
 
|
||||
= 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.
|
||||
 
|
||||
= 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)
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user