Commit Graph

41 Commits

Author SHA1 Message Date
Adekunle Oduye
06c5a72833 [hotfix-387] Fix broken toggle (#389)
Closes #387
2019-10-18 06:37:23 +01:00
Adekunle Oduye
26a515c3a9 [docs] Sticky Navigation (#373)
* [docNav] Moved h3 title into nav wrapper

* [docNav] Init styles for doc navigation component

* [docNav] Import doc navigation component into sass.css.scss

* [docNav] Functional to make doc navigation sticky on scroll

* [docNav] Rename js class name and changed from single to double quotes

* [docNav] Change class name to sl-js-nav--is-sticky

* [docNav] renamed doc-navigation to navigation and removed nesting

* [docNav] renamed doc-navigation to navigation

* [docNav] Added carriage return after h3
2019-10-12 09:55:30 -07:00
Natalie Weizenbaum
a99bb65fd6 The keywords() function is actually in sass:meta, not sass:map 2019-09-10 16:31:02 -07:00
Natalie Weizenbaum
b1b07540f2 Module-ify built-in function documentation
Closes #363
2019-09-04 17:56:16 -07:00
Natalie Weizenbaum
029520349a Rename /documentation/functions to /documentation/modules
This hierarchy is now going to document built-in modules, which mostly
contain functions but can also contain mixins and may potentially
contain variables in the future.
2019-09-04 15:24:22 -07:00
Natalie Weizenbaum
7a2aa57b96
Make "/" and "s" focus the search bar (#347)
Closes #345
2019-05-30 04:30:10 -07:00
Natalie Weizenbaum
084e181580 Make all client-side redirect URLs absolute
These used to redirect from /documentation/, but we tweaked the way
URLs work and now they redirect from /documentation. Making them
absolute avoids even the potential for that breakage.
2019-05-08 13:19:25 -07:00
Natalie Weizenbaum
79097d0fe1 Bundle all JS into a single file
Because we weren't doing this yet, we weren't actually loading the
redirect.js JS code at all.

This also gets rid of some unused JS.
2019-05-08 13:01:20 -07:00
Natalie Weizenbaum
b771e2297e Avoid an unstyled rendering moment with code examples
This renders the tabs and all the jQuery classes server-side, so that
the code examples are rendered correctly on the page's first load
rather than waiting for the JavaScript to activate. This also has a
side effect of making them look correct with JavaScript disabled.

This also adds a little additional styling in the noscript stylesheet
to make code examples look better on a narrow viewport with JavaScript
disabled.
2019-04-12 02:12:00 -07:00
Natalie Weizenbaum
e7ffef4fc9 Avoid an unstyled rendering moment with the tables of contents
Tables of contents are now statically rendered in their appropriately
open/closed states, rather than updated via JavaScript, so they render
correctly on the first page load. In order to make the "page sections"
table still usable without JS, this adds a stylesheet in a <noscript>
tag that forces the sections into an open state.
2019-04-12 00:09:10 -07:00
Natalie Weizenbaum
de561b2370
Make the reference tables of contents collapsible (#320) 2019-04-11 15:30:10 -07:00
Natalie Weizenbaum
f56c48cafc Render syntax examples using adjacent tabs if they're narrow enough
Closes #311
2019-03-28 19:13:22 -07:00
Natalie Weizenbaum
4e6eb090a4
Merge pull request #306 from sass/impl-status
Tweak impl status styling
2019-03-18 17:48:47 -07:00
Natalie Weizenbaum
36a1610c62 Always select SCSS by default 2019-03-11 02:02:38 -07:00
Natalie Weizenbaum
7fd5bd1c7a Tweak impl status styling
* Make the font smaller to make them less prominent and help visually
  associate the callout with the list.
* Decrease the top margin to more clearly associate them with their
  preceding header.
* Lighten the callout background when in another callout to make it
  more visible.
* Animate the expand button.
2019-03-08 16:45:43 -08:00
Natalie Weizenbaum
681d63c698 Follow the style guide for implementation notes 2019-03-08 15:26:48 -08:00
Natalie Weizenbaum
93b739b04f Show SCSS syntax by default 2019-03-04 19:32:49 -08:00
Jina Anne
24fd1d9dd3 type tweak 2019-03-04 17:51:45 -08:00
Jina Anne
c21200ba14 header linking 2018-12-28 17:59:53 -08:00
Jina Anne
c0478b1f89 remove broken sticky plugin 2018-12-28 16:50:04 -08:00
Jina Anne
6db6cad349 nav progress 2018-12-28 16:42:05 -08:00
Jina Anne
1a9e640fb3 Merge branch 'wip.reference' of github.com:sass/sass-site into wip.reference 2018-12-28 16:29:26 -08:00
Jina Anne
39263a13e3 update layout 2018-12-28 16:29:22 -08:00
Natalie Weizenbaum
c5a569055e Disable directory_indexes
Instead of compiling everything to directories containing index files,
we now compile to plain HTML files and rely on Rack::TryStatic to load
them.
2018-12-28 16:26:21 -08:00
Jina Anne
67020d2037 merge conflicts 2018-12-27 16:50:00 -08:00
Jina Anne
66f3526bd5 major clean up 2018-12-27 16:31:28 -08:00
Natalie Weizenbaum
1de307796d Add redirects from old documentation locations to new ones 2018-12-03 16:41:00 -08:00
Jina Anne
c81d53b5ec refactor breapoints 2018-10-26 23:06:47 -07:00
Jina Anne
3f1c2d338d lots of clean up 2018-10-23 15:06:39 -07:00
Natalie Weizenbaum
f70512c286 Support a "syntax switcher" with a single syntax
This will make it possible to do nice-looking single-syntax code
examples in the reference.
2018-08-30 14:43:38 -07:00
Natalie Weizenbaum
a833c56bf8 Show SCSS syntax by default 2018-08-29 17:59:51 -07:00
Natalie Weizenbaum
cc0f453e88 Fix most lints 2018-08-29 17:50:00 -07:00
Natalie Weizenbaum
221d4cc0ec Add the ability to add CSS output to the syntax switcher 2018-08-29 17:29:32 -07:00
Natalie Weizenbaum
3d0f5c6ffc Add a helper for writing inline multi-syntax examples
This will be useful for #205.
2018-08-29 17:29:31 -07:00
Thomas Tortorini
598150cca3 Adding and removing '.ui-state-hover' is apparently no longer needed 2015-08-14 08:53:24 +02:00
Thomas Tortorini
7fbdb0923f Improve selection for initializing the ui-tabs 2015-08-14 08:40:12 +02:00
Thomas Tortorini
2afc346f0f Switch all the Sass/SCSS tabs together 2015-08-14 08:20:00 +02:00
Steven Degutis
dfc061c580 Speed up scrolling
Please? Pretty please?
2014-12-11 10:01:39 -06:00
Jina Bolton
1a2bf6a2a0 update js 2014-07-27 15:44:34 -07:00
Jina Bolton
206880a768 Fixes #39 — Adds SCSS/Sass syntax switcher to Guide. 2014-03-13 22:04:34 -07:00
₍˄ุ.͡˳̫.˄ุ₎
92f17202ec Lots of clean up. 2013-10-14 15:52:40 -04:00