Commit Graph

292 Commits

Author SHA1 Message Date
Stacy Kvernmo
59c87f1e89 font-size revert until future PR 2023-01-31 14:53:00 -06:00
Stacy Kvernmo
e693987b35 Merge branch 'homepage' of https://github.com/oddbird/sass-site into homepage 2023-01-31 14:39:32 -06:00
Stacy Kvernmo
fdd5e03fca apply style to class instead of alert heading 2023-01-31 14:39:28 -06:00
Jonny Gerig Meyer
a3cd423e2d
Add another example theme 2023-01-31 14:24:16 -05:00
Jonny Gerig Meyer
11f3f7976d
Add syntax highlighter (needs styles) 2023-01-31 14:18:33 -05:00
Jonny Gerig Meyer
4b46a9d064
lint 2023-01-31 11:13:51 -05:00
Stacy Kvernmo
83a3d1e635 lint 2023-01-31 09:53:34 -06:00
Stacy Kvernmo
8925009158 larger special alert padding to match site 2023-01-31 09:50:05 -06:00
Stacy Kvernmo
35c8f81245 first round of scale 2023-01-31 00:13:57 -06:00
Stacy Kvernmo
fb57f07f34 single quotes 2023-01-19 15:16:48 -06:00
Jonny Gerig Meyer
2024442f31
lint 2023-01-12 14:54:24 -05:00
Stacy Kvernmo
a9e42420bb run sass migrator and manual clean up 2023-01-12 12:19:42 -06:00
Jonny Gerig Meyer
b205803bf7
revert color change 2023-01-09 17:53:57 -05:00
Jonny Gerig Meyer
31b09b9323
Add Stylelint 2023-01-09 17:19:15 -05:00
Jonny Gerig Meyer
77c4c3892d
Add eslint 2023-01-09 15:15:35 -05:00
Jonny Gerig Meyer
413aba633f
Add TypeScript 2023-01-09 14:48:04 -05:00
Jonny Gerig Meyer
29d77ce08a
Add prettier 2023-01-09 14:10:02 -05:00
Jonny Gerig Meyer
5a599442fb
Add JS 2023-01-06 17:38:23 -05:00
Jonny Gerig Meyer
d0e1afaf0b
add sass 2023-01-06 17:38:23 -05:00
Jonny Gerig Meyer
5071228ace
Add basic 11ty config 2023-01-06 17:37:45 -05:00
Natalie Weizenbaum
e266114650
Add a "Powered by Mac Stadium" icon to the footer (#652) 2022-08-03 17:41:36 -07:00
Kauê Rodrigues
211f5c3667
Revert "Disable word wrapping for p code (#281)" to fix #576 (#637) 2022-06-10 18:31:25 -07:00
Natalie Weizenbaum
9e2dc02e25
Update to the latest version of DocSearch (#593) 2021-11-13 01:48:19 +00:00
Christophe Coevoet
4a1b2fb212
Fix the rendering of compatibility lists (#590)
The compatibility div contains a span in its text, so making it a flex container produces a weird rendering
2021-10-12 12:55:06 -07:00
Natalie Weizenbaum
67ec2dbdbb
Surface category labels in the JS API doc sidebar (#587)
This is kind of a hacky workaround until TypeStrong/typedoc#1532 is
implemented for real.
2021-10-11 19:52:03 +00:00
Natalie Weizenbaum
86ae1c4d18 Set up redirects from the old API doc anchors to the new ones 2021-10-04 20:23:21 -07:00
Natalie Weizenbaum
85a2eaa33d Build JS API docs from the TypeScript declarations 2021-10-04 19:53:08 -07:00
Natalie Weizenbaum
d0e401e3f9
Document first-class calc() (#575)
See sass/sass#818

Co-authored-by: Awjin Ahn <awjin@google.com>
2021-09-13 23:16:42 +00:00
xmo-odoo
f768dd8577
Revert word-break to normal for impl-status titles (#529)
If the "compatibility" label and browser width are just the wrong one, "break-word" can lead to browsers deciding to line-wrap every "ss" but *just the "ss" from "Dart Sass", "LibSass" and "Ruby Sass", which looks very strange and is quite hard to read.
2021-03-22 13:38:19 -07:00
Daniel Haim
87415b956e
Spacing improvement (#496)
- Added a spacer to the follow button on footer (mobile only)
- Added missing spacer from page titles (mobile + desktop)
2020-10-29 13:44:56 -07:00
Christophe Coevoet
00560e76d8
Remove unnecessary scrollbar for the sticky navigation
The scrollbar will now appear only for columns needing it.
2020-08-18 15:24:54 +02:00
Natalie Weizenbaum
e440cee626
Suggest mixins rather than @use ... with for advanced cases (#448) 2020-05-13 14:19:27 -07:00
Awjin Ahn
8c5d417206
Increase the indent size for function definition docs. (#428) 2020-02-24 12:33:25 -08:00
tatianamac
8ecf646576 ♻️ Redo undone changes that git undid 2019-12-27 12:16:30 -08:00
tatianamac
569efcc4a7 🦐 Address undone git edits sob 2019-12-19 17:25:38 -08:00
tatianamac
31d1bf5ae8 Revert "🦐 Fixed smol edits from Jina"
This reverts commit be52b5d79b6721ccd68ea9f800a5863aae12a13e.
2019-12-18 16:13:27 -08:00
tatianamac
be4d0d17ee 🦐 Fixed smol edits from Jina 2019-12-18 16:09:00 -08:00
tatianamac
b1e62bc77b 🎨 Made colour palette happy and accessible 2019-12-18 16:09:00 -08:00
tatianamac
65f6f2e58d 🎨 Integrate Rouge stylesheet 2019-12-18 16:09:00 -08:00
tatianamac
293d310dfa Fixes post feedback 2019-12-18 16:09:00 -08:00
tatianamac
dcc6a4789e 🎨 Background color 2019-12-18 16:09:00 -08:00
tatianamac
bb1ca93ddc 🔗 Added skip link 2019-12-18 16:09:00 -08:00
tatianamac
2d166d3b10 Fix keyboard focus and aside issues 2019-12-18 16:08:14 -08:00
tatianamac
41ca35e9e2 ⚒ Structural changes to make page more semantic 2019-12-18 16:08:14 -08:00
tatianamac
fa3216b4d4 🎨 Improve a11y of text 2019-12-18 16:00:40 -08:00
tatianamac
fa05e1d3f7 🔡 Added pre-wrap so code wraps and prevents scrollbar in pre 2019-12-18 16:00:40 -08:00
tatianamac
ffc7918998 Hierarchy changes for a11y 2019-12-18 16:00:40 -08:00
Natalie Weizenbaum
193a124050 Move the blog onto sass-lang.com
Logdown seems to be basically unmaintained, its servers are
unreliable, and it's been causing some mixed-content errors lately.
This moves all blog posts to sass-lang.com itself; I'll set up
redirects from the blog as best I can once this lands.

Closes #401
Closes #402
Closes #403
2019-12-18 16:00:40 -08:00
Natalie Weizenbaum
c0e78caac3
Revert "Update jQuery to 3.4.1 (#398)" (#407)
This reverts commit 33b5fe0a1d.
2019-11-07 18:03:46 -08:00
Adekunle Oduye
a3ee04c5d5 [hotfix-400] Adjusted to anonymous function (#404) 2019-11-07 11:13:49 -08:00
Martijn Cuppens
33b5fe0a1d Update jQuery to 3.4.1 (#398) 2019-10-29 18:25:36 +00:00
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
b75fca5a61 Make text in collapsible navs unselectable
This ensures that quickly opening and closing a nav doesn't
accidentally select its text.
2019-04-17 12:59:38 -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
ce9244b504
Tweak typography to improve legibility (#318)
* Add more margin above headers to visually associate them with the
  prose below, rather than above.

* Reduce the margin around normal block elements to more clearly
  associate them with one another.

* Increase the size of prose and medium/large headers to make them
  easier to see.

* Reduce the font weight of intro paragraphs to make them more
  visually distinct from the rest of the documentation.

Based on @slimekat's suggestions.

Closes #313
2019-04-11 15:30:17 -07:00
Natalie Weizenbaum
de561b2370
Make the reference tables of contents collapsible (#320) 2019-04-11 15:30:10 -07:00
Natalie Weizenbaum
bf21b7f160
Merge pull request #317 from sass/adjacent-tabs
Render syntax examples using adjacent tabs if they're narrow enough

Closes #311
2019-04-04 23:56:06 -07:00
Natalie Weizenbaum
4b6b15b1ab
Add special styling for intro pages (#316)
This just bumps up the font size a bit, to help emphasize that these
pages are special and make them look less bare.

Closes #276
2019-04-04 23:55:07 -07:00
Natalie Weizenbaum
be95e0c7df Allow examples to split even if they can't split in the middle 2019-03-28 19:13:31 -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
31ade4eebd Don't make syntax switcher arrows invisible in callouts (#312)
I'm not sure why this was done initially, but it seems wrong?
2019-03-20 03:47:13 +02:00
Natalie Weizenbaum
e22698388e
Merge branch 'wip.reference' into function-return 2019-03-19 13:40:00 -07:00
Natalie Weizenbaum
78429ae1b4
Add permalink icons to function API docs (#309)
Closes #308
2019-03-18 17:49:03 -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
1d718a3fb3
Merge branch 'wip.reference' into function-return 2019-03-10 23:23:00 -07:00
Natalie Weizenbaum
d0c1079b78
Merge branch 'wip.reference' into impl-status 2019-03-10 23:22:02 -07:00
Natalie Weizenbaum
3b1a93afe9 Add a light border to callouts (#300)
This helps them stand out a tiny bit more, especially in functions
where their backgrounds are very similar to the function background.
2019-03-10 09:11:48 -05:00
Natalie Weizenbaum
f24f5927cd Fix the whitespace above code examples once and for all (#304)
Closes #302
2019-03-10 09:10:50 -05:00
Natalie Weizenbaum
482542ac08 Add a header for impl status bars
This gives us a place to disambiguate between implementation statuses
that refer to the entire feature under discussion, and those that just
refer to sub-features.
2019-03-08 16:48:27 -08: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
f6f238b3ea callout update 2019-03-04 19:11:26 -08:00
Jina Anne
e541d4a6ef impl 2019-03-04 18:36:34 -08:00
Jina Anne
ac992b3233 implementation 2019-03-04 18:29:20 -08:00
Natalie Weizenbaum
40e116a9ed Include return types in function signatures
Closes #298
2019-03-04 18:28:38 -08:00
Jina Anne
aa8ba21b75 fix code 2019-03-04 18:07:39 -08:00
Jina Anne
ff521bdbd0 fix code 2019-03-04 18:06:06 -08:00
Jina Anne
0408f08bd7 improve search box alignment 2019-03-04 18:03:07 -08:00
Jina Anne
24fd1d9dd3 type tweak 2019-03-04 17:51:45 -08:00
Jina Anne
1172c29570 impl-status styling 2019-03-04 17:27:20 -08:00
Jina Anne
03372dc401 style functions 2019-03-04 17:19:06 -08:00
Jina Anne
6a67728ab5 fix nav item spacing 2019-03-04 16:59:06 -08:00
Jina Anne
97042a5a28 make nav code not wrap 2019-03-04 16:55:24 -08:00
Jina Anne
096c6512f3 condense home 2019-03-04 16:50:23 -08:00
Jina Anne
94c9c002ec make call outs less… called out 2019-03-04 16:24:31 -08:00
Jina Anne
8aa45d75a3 make syntax switcher heading unique 2019-03-04 14:41:21 -08:00
Natalie Weizenbaum
7cc3b1b375 Automatically add nice header linking behavior (#280)
* Make link headers look and work more like GitHub's

* Automatically generate links for all headers

* Flash headers when they're selected

* update readme
2019-03-04 15:16:52 -06:00
Natalie Weizenbaum
77311c93f9 Disable word wrapping for p code (#281) 2019-03-04 15:07:29 -06:00
Jina Anne
7ee1b68df5 link header 2018-12-28 18:03:50 -08:00
Jina Anne
4785328dff hover link 2018-12-28 18:01:32 -08:00