2014-07-28 03:58:17 +02:00
|
|
|
!!!5
|
2018-12-28 01:31:28 +01:00
|
|
|
%html.no-js(lang='en'){class: data.page.head_classes}
|
2012-09-10 01:37:46 +02:00
|
|
|
%head
|
2018-12-28 01:31:28 +01:00
|
|
|
%meta(charset='utf-8')
|
|
|
|
%meta(http-equiv='X-UA-Compatible' content='IE=edge')
|
2013-10-09 12:30:53 +02:00
|
|
|
%title= page_title
|
2020-06-29 18:10:57 +02:00
|
|
|
%meta(name='description' content='Syntactically Awesome Style Sheets')
|
2018-12-28 01:31:28 +01:00
|
|
|
%meta(name='viewport' content='width=device-width, initial-scale=1')
|
2019-11-13 03:21:51 +01:00
|
|
|
%link(rel="alternate" type="application/atom+xml" href="/feed.xml")
|
2018-12-28 01:31:28 +01:00
|
|
|
|
|
|
|
= stylesheet_link_tag 'https://fonts.googleapis.com/css?family=Source+Code+Pro|Source+Sans+Pro:300,400,600|Source+Serif+Pro'
|
2019-03-04 22:05:59 +01:00
|
|
|
= stylesheet_link_tag 'https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css'
|
2018-12-28 01:31:28 +01:00
|
|
|
= stylesheet_link_tag 'sass'
|
|
|
|
= yield_content :css
|
2019-04-12 09:01:56 +02:00
|
|
|
%noscript= stylesheet_link_tag 'noscript'
|
2018-12-28 01:31:28 +01:00
|
|
|
|
|
|
|
-# Old version of analytics (https://developers.google.com/analytics/devguides/collection/gajs/).
|
|
|
|
:javascript
|
|
|
|
var _gaq = _gaq || [];
|
|
|
|
_gaq.push(['_setAccount', 'UA-535380-8']);
|
|
|
|
_gaq.push(['_trackPageview']);
|
|
|
|
|
|
|
|
(function() {
|
|
|
|
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
|
|
|
|
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
|
|
|
|
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
|
|
|
|
})();
|
|
|
|
|
|
|
|
-# New version of analytics (https://developers.google.com/analytics/devguides/collection/analyticsjs/).
|
|
|
|
:javascript
|
|
|
|
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
|
|
|
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
|
|
|
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
|
|
|
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
|
|
|
|
|
|
|
|
ga('create', 'UA-535380-14', 'sass-lang.com');
|
|
|
|
ga('send', 'pageview');
|
|
|
|
|
|
|
|
= yield_content :js_head
|
2012-10-30 05:19:53 +01:00
|
|
|
|
2013-10-09 12:30:53 +02:00
|
|
|
%body{class: page_classes}
|
2018-10-27 08:37:10 +02:00
|
|
|
/[if lt IE 9]
|
|
|
|
%p.browserupgrade
|
|
|
|
You are using an
|
|
|
|
%strong outdated
|
|
|
|
browser. Please
|
|
|
|
= link_to 'upgrade your browser', 'https://browsehappy.com/'
|
|
|
|
to improve your experience and security.
|
2012-11-29 18:33:08 +01:00
|
|
|
|
2018-12-29 02:59:53 +01:00
|
|
|
%header.sl-r-banner(itemtype='http://schema.org/WPHeader' itemscope='itemscope' role='banner')
|
2020-06-02 02:12:27 +02:00
|
|
|
.sl-c-alert.sl-c-alert--info(style='background: #000; padding: 3rem 0; text-align: left;')
|
2019-12-12 22:46:34 +01:00
|
|
|
.sl-l-container
|
2020-06-02 02:12:27 +02:00
|
|
|
%h2(style='margin-top: 0;') Black Lives Matter
|
|
|
|
|
2019-12-12 22:46:34 +01:00
|
|
|
%p
|
2020-06-02 20:30:46 +02:00
|
|
|
Sass stands with the protesters against police violence. We encourage our users to
|
2020-06-02 02:12:27 +02:00
|
|
|
= succeed '.' do
|
|
|
|
%strong get in the streets and join them if you can
|
2019-12-12 22:46:34 +01:00
|
|
|
|
|
|
|
.sl-c-pop-stripe
|
2018-12-28 01:31:28 +01:00
|
|
|
.sl-l-container
|
|
|
|
.sl-l-grid.sl-l-grid--full.sl-l-large-grid--fit.sl-l-large-grid--center.sl-l-large-grid--gutters
|
2018-12-29 02:59:53 +01:00
|
|
|
%p.sl-l-grid__column.sl-r-banner__brand
|
2018-12-28 01:31:28 +01:00
|
|
|
= link_to '/' do
|
|
|
|
= image_tag 'logos/logo.svg', alt: 'Sass', height: '48'
|
|
|
|
|
2019-12-12 07:01:12 +01:00
|
|
|
%nav.sl-r-banner__navigation.sl-l-grid__column.sl-l-large-grid.sl-l-large-grid__column--auto-size.sl-c-list-horizontal-wrapper(itemtype='http://schema.org/SiteNavigationElement' itemscope='itemscope' role='navigation' aria-label='Site navigation')
|
2018-12-28 01:31:28 +01:00
|
|
|
:markdown
|
|
|
|
- [Install](/install)
|
|
|
|
- [Learn Sass](/guide)
|
2019-11-13 03:21:51 +01:00
|
|
|
- [Blog](/blog)
|
2019-01-09 23:14:29 +01:00
|
|
|
- [Documentation](/documentation)
|
2018-12-28 01:31:28 +01:00
|
|
|
- [Get Involved](/community)
|
2019-12-18 04:56:50 +01:00
|
|
|
- <label class="visuallyhidden" for="s">Search</label><input placeholder='Search' class='search' type='text' id="s" name="s">
|
2018-12-28 01:31:28 +01:00
|
|
|
|
2019-12-13 05:46:17 +01:00
|
|
|
%main{:class => "content", :id => "main-content"}(itemprop='mainContentOfPage' role='main')
|
2018-12-28 01:31:28 +01:00
|
|
|
%h1.sl-l-container
|
|
|
|
- if current_page.data.h1?
|
|
|
|
= Typogruby.improve(current_page.data.h1)
|
2018-10-27 08:37:10 +02:00
|
|
|
|
2018-12-28 01:50:00 +01:00
|
|
|
- elsif current_page.data.title
|
2018-12-28 01:31:28 +01:00
|
|
|
= Typogruby.improve(current_page.data.title)
|
2013-10-12 23:39:55 +02:00
|
|
|
|
2018-10-27 08:37:10 +02:00
|
|
|
|
2019-03-05 01:50:23 +01:00
|
|
|
- section_class = ''
|
|
|
|
|
|
|
|
- unless current_page.data.h1 == 'CSS with superpowers'
|
|
|
|
- section_class = 'sl-l-section'
|
|
|
|
|
|
|
|
.sl-l-container.sl-background--white{class: section_class}= yield
|
2014-07-23 00:27:15 +02:00
|
|
|
|
2019-12-12 22:46:34 +01:00
|
|
|
.sl-c-alert
|
2019-12-13 03:15:39 +01:00
|
|
|
.sl-l-container.sl-c-list-horizontal-wrapper(aria-labelledby='release-nav')
|
2019-12-12 22:46:34 +01:00
|
|
|
%ul.sl-l-grid--justify-center
|
2019-12-13 03:15:39 +01:00
|
|
|
%li#release-nav
|
2019-12-12 22:46:34 +01:00
|
|
|
Current Releases:
|
|
|
|
|
|
|
|
%li
|
|
|
|
%span.release-name<
|
|
|
|
= link_to 'Dart Sass', '/dart-sass'
|
|
|
|
-# Force space between the two links.
|
|
|
|
 
|
|
|
|
= link_to impl_version(:dart) || '???', release_url(:dart)
|
|
|
|
|
|
|
|
%li
|
|
|
|
%span.release-name<
|
|
|
|
= 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'
|
|
|
|
-# Force space between the link and the coffin.
|
|
|
|
%span(role='presentation' aria-label='coffin')
|
|
|
|
  ⚰
|
|
|
|
|
|
|
|
%li.sl-l-grid__column.sl-l-large-grid__column--auto-size
|
|
|
|
= link_to 'Implementation Guide', '/implementation'
|
|
|
|
|
|
|
|
- if content_for?(:section_bottom)
|
|
|
|
%section.sl-background--white.sl-l-container= Typogruby.improve(yield_content :section_bottom)
|
2018-12-28 01:31:28 +01:00
|
|
|
|
|
|
|
%footer.site-footer.contentinfo(itemtype='http://schema.org/WPFooter' itemscope='itemscope' role='contentinfo')
|
|
|
|
.sl-l-container.sl-l-section
|
|
|
|
.sl-l-grid.sl-l-grid--full.sl-l-large-grid--fit.sl-l-large-grid--center.sl-l-large-grid--gutters
|
|
|
|
.sl-l-grid__column
|
|
|
|
:markdown
|
2020-07-06 21:57:36 +02:00
|
|
|
Sass © 2006–#{Date.today.year} the Sass team, and numerous contributors.
|
|
|
|
It is available for use and modification under the [MIT License][license].
|
2018-12-28 01:31:28 +01:00
|
|
|
|
2018-12-29 00:41:14 +01:00
|
|
|
[hampton]: https://github.com/hcatlin
|
2018-12-28 04:47:31 +01:00
|
|
|
[natalie]: https://twitter.com/nex3
|
2018-12-28 01:31:28 +01:00
|
|
|
[chris]: http://chriseppstein.github.io/
|
|
|
|
[jina]: https://www.sushiandrobots.com
|
2019-05-31 13:05:02 +02:00
|
|
|
[license]: https://github.com/sass/dart-sass/blob/master/LICENSE
|
2018-12-28 01:31:28 +01:00
|
|
|
|
|
|
|
%nav.sl-c-list-horizontal-wrapper
|
|
|
|
:markdown
|
|
|
|
- [Sass on GitHub](https://github.com/sass)
|
|
|
|
- [Website Source Code](https://github.com/sass/sass-site)
|
|
|
|
- [Style Guide](/styleguide)
|
|
|
|
- [Community Guidelines](/community-guidelines)
|
|
|
|
|
|
|
|
.sl-l-grid__column.sl-l-large-grid__column--auto-size.sl-l-large-grid--justify-right
|
|
|
|
%a.twitter-follow-button(href='https://twitter.com/SassCSS' data-show-count='false' data-size='large')
|
|
|
|
Follow @SassCSS
|
|
|
|
|
|
|
|
:javascript
|
|
|
|
!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');
|
2013-10-12 23:39:55 +02:00
|
|
|
|
2019-03-04 22:05:59 +01:00
|
|
|
= javascript_include_tag 'https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js'
|
|
|
|
:javascript
|
|
|
|
docsearch({
|
|
|
|
apiKey: 'a409ff5d6a2476083c1a8dd1f8c04ec5',
|
|
|
|
indexName: 'sass-lang',
|
|
|
|
inputSelector: 'input.search',
|
2019-04-18 02:29:12 +02:00
|
|
|
transformData: function(hits) {
|
|
|
|
var domain = window.location.origin + "/";
|
|
|
|
hits.forEach(function(hit) {
|
|
|
|
if (!hit.url.startsWith(domain)) {
|
|
|
|
hit.url = hit.url.replace(/^https?:\/\/[^\/]+\//, domain);
|
|
|
|
}
|
|
|
|
});
|
|
|
|
return hits;
|
|
|
|
},
|
2019-03-04 22:05:59 +01:00
|
|
|
debug: false
|
|
|
|
});
|
2018-12-28 01:31:28 +01:00
|
|
|
= javascript_include_tag 'sass'
|
|
|
|
= yield_content :js_foot
|