Commit Graph

1300 Commits

Author SHA1 Message Date
Stacy Kvernmo
f1ec40469a add support for ::selection (chrome) 2023-06-14 11:06:06 -05:00
Stacy Kvernmo
5058056891 lint colors 2023-06-14 11:05:48 -05:00
Stacy Kvernmo
b892867a1a use semibold values for bolder items 2023-06-14 11:02:30 -05:00
Natalie Weizenbaum
58f1bfadfe
Document the default export deprecation (#736)
See sass/dart-sass#2008
2023-06-13 15:28:59 -07:00
James Stuckey Weber
3a34ba177e Move playground styles from js to scss 2023-06-13 12:42:28 -04:00
Jonny Gerig Meyer
c0ddae7b89
lint 2023-06-13 12:12:07 -04:00
James Stuckey Weber
910d556ef5 Run lint 2023-06-13 10:44:48 -04:00
Stacy Kvernmo
d9f326658d namespacing, style overrides, working with playgound layout and header 2023-06-12 17:19:24 -05:00
Stacy Kvernmo
262b7a0e48 use Sass variable for typeface 2023-06-12 13:38:42 -05:00
Stacy Kvernmo
f4f5cc0441 Merge branch 'browser-code-editor' of https://github.com/oddbird/sass-site into browser-code-editor
# Conflicts:
#	source/assets/sass/components/_playground.scss
#	source/playground.liquid
2023-06-12 13:38:27 -05:00
Stacy Kvernmo
4c6a19bc49 use namespacing on classes, edit playground layout 2023-06-12 11:59:27 -05:00
James Stuckey Weber
3bec8368c0 Disable search 2023-06-12 11:55:14 -04:00
Stacy Kvernmo
351f932b41 allow playground to use existing patterns, add classes for playgournd specific styles 2023-06-12 09:28:38 -05:00
Stacy Kvernmo
d7970fa2e8 adjust heading size for playground 2023-06-12 09:23:41 -05:00
Jonny Gerig Meyer
c3b315b158
review 2023-06-10 12:31:43 -04:00
Jonny Gerig Meyer
c851d78a2f
Redirect to playground instead of sassmeister 2023-06-10 11:03:16 -04:00
Jonny Gerig Meyer
0e97c56b46
Merge branch 'main' into browser-code-editor
* main:
  add a few docs
  Auto-generate non-@debug CSS
  upgrade yarn
  revert dockerfile change (for now)
  Update some JS API URLs
  Fix permissions in devcontainer
  Use nested records for redirects
  remove config.rb
  Implement remainder of redirects
  Confirm hash redirects
  Remove non-redirect-related cruft
2023-06-10 11:02:11 -04:00
Jonny Gerig Meyer
50d509fc90
add a few docs 2023-06-10 11:02:00 -04:00
Jonny Gerig Meyer
1a3a17d212
Merge branch 'main' into highlight-styles 2023-06-10 10:34:21 -04:00
Jonny Gerig Meyer
59354fe930
Auto-generate non-@debug CSS 2023-06-10 10:28:55 -04:00
Jonny Gerig Meyer
5f13fba2c1
Merge branch 'main' into remove-cruft 2023-06-10 09:53:00 -04:00
Ed Rivas
8a70201c13 Update some JS API URLs 2023-06-09 22:16:55 +00:00
Ed Rivas
19e58534d2 Use nested records for redirects 2023-06-09 21:45:15 +00:00
James Stuckey Weber
3a6ed07c84 Fix emoji display, use innerText to sanitize message 2023-06-09 15:35:27 -04:00
James Stuckey Weber
db21395639 Split out pure functions and types into utils 2023-06-09 13:00:13 -04:00
James Stuckey Weber
f24b37d02d Merge branch 'browser-code-editor-debug' into browser-code-editor 2023-06-09 12:36:07 -04:00
James Stuckey Weber
863f6176e2 Add url persistence and sharing 2023-06-09 12:24:33 -04:00
Jonny Gerig Meyer
75283bc8d7
switch to dart sass release 2023-06-09 12:22:57 -04:00
Jonny Gerig Meyer
be2482759a
Merge branch 'main' into browser-code-editor
* main: (22 commits)
  spacing
  Review operators docs
  Warn if `{% codeExample %}` is used without a name.
  Review values docs
  Removing unused code-snippets dir
  Updating doc and code snippet paths
  merge in change from upstream
  Operators - Boolean
  Operators - String
  Operators - Numeric
  Operators - Relational
  Operators - Equality
  Operators - Index
  Values - Functions
  Values - Calculations
  Values - Null
  Porting Documentation - Values - Booleans
  Porting Documentation - Values - Maps
  Porting Documentation - Values - Lists
  Porting Documentation - Values - Colors
  ...
2023-06-09 11:27:53 -04:00
Jonny Gerig Meyer
2bea6c1327
Merge branch 'redirects' into remove-cruft
* redirects:
  Implement remainder of redirects
  Confirm hash redirects
2023-06-08 23:14:05 -04:00
Jonny Gerig Meyer
ae6b72a058
Implement remainder of redirects 2023-06-08 23:10:35 -04:00
Jonny Gerig Meyer
76fd79e6da
Confirm hash redirects 2023-06-08 22:26:33 -04:00
Jonny Gerig Meyer
8eb6b06450
Remove non-redirect-related cruft 2023-06-08 22:18:33 -04:00
Jonny Gerig Meyer
68ed9dda91
spacing 2023-06-08 21:45:34 -04:00
Jonny Gerig Meyer
c74dd3bc63
Review operators docs 2023-06-08 21:44:39 -04:00
Jonny Gerig Meyer
d0478dc67f
Warn if {% codeExample %} is used without a name. 2023-06-08 17:15:55 -04:00
Jonny Gerig Meyer
cd4b803f52
Review values docs 2023-06-08 17:10:09 -04:00
James Stuckey Weber
6ae29d6da9 Refactor debug output 2023-06-08 15:06:03 -04:00
James Stuckey Weber
c5fc59891d Merge branch 'browser-code-editor' into browser-code-editor-debug 2023-06-08 14:41:27 -04:00
James Stuckey Weber
ca007f50a9 Switch to lodash debounce 2023-06-08 18:40:42 +00:00
James Stuckey Weber
a9810ff27f Merge branch 'main' of github.com:oddbird/sass-site into browser-code-editor 2023-06-08 14:32:52 -04:00
James Stuckey Weber
5ac84217aa Escape console messages to prevent XSS 2023-06-08 18:30:30 +00:00
Sana Javed
29686849ae Removing unused code-snippets dir 2023-06-08 10:10:22 +02:00
Sana Javed
1b3a03eac1 Updating doc and code snippet paths 2023-06-08 10:05:58 +02:00
Sana Javed
b47fe39d62
Merge branch 'main' into port-docs-values 2023-06-08 09:39:34 +02:00
Jonny Gerig Meyer
ffa46e5f5b
Use LiquidJS template instead of constructing HTML in JS. 2023-06-07 16:36:06 -04:00
James Stuckey Weber
278e2fc8ef Merge branch 'browser-code-editor' into browser-code-editor-debug 2023-06-07 19:47:17 +00:00
James Stuckey Weber
7acf6a2c5f Style feedback tweaks 2023-06-07 15:45:42 -04:00
James Stuckey Weber
5e928d4020 Merge branch 'main' of github.com:oddbird/sass-site into browser-code-editor 2023-06-07 15:45:05 -04:00
Jonny Gerig Meyer
11cda5d580
Use {% capture %} blocks for args with newlines. 2023-06-07 15:44:07 -04:00
James Stuckey Weber
91e3ad75f9 Add debug output 2023-06-07 15:13:23 -04:00
Jonny Gerig Meyer
c0d7a113cb
Merge branch 'main' into builtin-modules
* main:
  Better handle the JS API docs on smaller screens (#735)
  Mention that / is interpreted as division in calculations (#734)
2023-06-07 10:32:03 -04:00
Jonny Gerig Meyer
405b421651
merge in change from upstream 2023-06-07 10:01:09 -04:00
Jonny Gerig Meyer
ac68e56e02
Merge branch 'main' into port-docs-values
* main:
  Better handle the JS API docs on smaller screens (#735)
  Mention that / is interpreted as division in calculations (#734)
2023-06-07 09:59:11 -04:00
Jonny Gerig Meyer
05a7f4d896
Merge branch 'main' of github.com:sass/sass-site
* 'main' of github.com:sass/sass-site:
  Better handle the JS API docs on smaller screens (#735)
  Mention that / is interpreted as division in calculations (#734)
2023-06-07 09:57:57 -04:00
James Stuckey Weber
80f3addecf Add code folding, remove unused imports 2023-06-07 09:55:41 -04:00
James Stuckey Weber
b85b9c1f3d Switch to proxy reactivity 2023-06-07 09:46:39 -04:00
James Stuckey Weber
70cc37aba7 Type cleanup, more robust error fallbacks 2023-06-07 09:17:37 -04:00
Natalie Weizenbaum
4ca36af82b
Better handle the JS API docs on smaller screens (#735)
In desktop mode, the sidebar always gets 1/3 of the space and the
content gets 2/3. In mobile mode, the sidebar instead goes above the
content as a table of contents.

Closes #732
2023-06-06 14:22:17 -07:00
James Stuckey Weber
a57bbef204 Make error tooltip mono font 2023-06-06 16:32:13 -04:00
James Stuckey Weber
41b12fb480 Add cursor styles for playground 2023-06-06 16:25:37 -04:00
James Stuckey Weber
04f8e8bf37 Use base layout for playground, remove docsearch from playground 2023-06-06 16:25:18 -04:00
James Stuckey Weber
88278e063d Move state from DOM to Pojo 2023-06-06 16:02:26 -04:00
Sana Javed
5c9e4896c1 Operators - Boolean 2023-06-06 21:03:28 +02:00
Sana Javed
14c83a63ed Operators - String 2023-06-06 20:57:55 +02:00
Sana Javed
098e683e63 Operators - Numeric 2023-06-06 20:47:01 +02:00
Sana Javed
b3f6df29ca Operators - Relational 2023-06-06 20:28:10 +02:00
Jonny Gerig Meyer
61731d2209
Add type defs for dart-sass build 2023-06-06 14:23:37 -04:00
James Stuckey Weber
23eeea5164 Apply debounce 2023-06-06 13:47:43 -04:00
James Stuckey Weber
bcc110b82f Handle tab for indent 2023-06-06 11:49:43 -04:00
James Stuckey Weber
eb2fe87bc5 Debounce update CSS 2023-06-06 11:33:41 -04:00
Natalie Weizenbaum
762448e723
Mention that / is interpreted as division in calculations (#734)
Also fix a broken link.
2023-06-05 17:51:26 -07:00
Sana Javed
3464e17fb4 Operators - Equality 2023-06-05 22:18:08 +02:00
Sana Javed
316bfa3dd1 Operators - Index 2023-06-05 22:11:28 +02:00
Sana Javed
d561dd2f7e Values - Functions 2023-06-05 21:41:47 +02:00
Sana Javed
7299832392 Values - Calculations 2023-06-05 21:31:32 +02:00
James Stuckey Weber
287bf560fc Add mobile flow 2023-06-05 15:06:49 -04:00
Sana Javed
95750cb9a9 Values - Null 2023-06-05 21:00:37 +02:00
Sana Javed
f3cecc0884 Porting Documentation - Values - Booleans 2023-06-05 20:40:39 +02:00
James Stuckey Weber
501adc6d3c Show error message and persist stale css 2023-06-05 18:40:15 +00:00
Sana Javed
21a2457a02 Porting Documentation - Values - Maps 2023-06-05 20:30:58 +02:00
James Stuckey Weber
9d77a79e26 Add diagnostic errors to playground 2023-06-05 17:55:56 +00:00
James Stuckey Weber
85d5abcd03 Initial pass at getting code styling close to existing 2023-06-05 16:02:44 +00:00
James Stuckey Weber
45ee2c4b03 Ensure DOM is loaded before setting up playground 2023-06-05 13:25:55 +00:00
Jonny Gerig Meyer
61b57aeb92
Do not include snippets in built site. 2023-06-02 18:18:43 -04:00
Jonny Gerig Meyer
5e239cc3c9
update comments 2023-06-02 18:06:43 -04:00
Jonny Gerig Meyer
31676bb42d
fix a few markdown issues 2023-06-02 18:02:34 -04:00
Jonny Gerig Meyer
c8b131f83e
fix build 2023-06-02 17:44:40 -04:00
Jonny Gerig Meyer
1532553ef2
Merge branch 'main' into builtin-modules
* main:
  review
  Use JSON args for compatibility tag
  typo
  typo
  Use kwargs for {% compatibility %} tag.
  clearer example line breaks
  add missing @use
  silence sass warnings
  Do not autoformat md files
  combine more markdown blocks
  indentation for remainder of docs
  indentation for syntax docs
  indentation for style-rules docs
  indentation for cli docs
  indentation for breaking-changes
  Strip indentation from more paired shortcodes.
  Try out standard indentation
2023-06-02 17:36:10 -04:00
James Stuckey Weber
34859481cb Add compilation options and tab buttons 2023-06-02 12:52:24 -04:00
Sana Javed
0022e83e3c Porting Documentation - Values - Lists 2023-06-02 18:41:47 +02:00
Sana Javed
e77957850e Porting Documentation - Values - Colors 2023-06-02 18:08:51 +02:00
Sana Javed
6984ef6bfa Updating compat tags syntax 2023-06-02 18:07:56 +02:00
Sana Javed
fde396f2d6 Merge branch 'main' into port-docs-values 2023-06-02 17:37:18 +02:00
James Stuckey Weber
486f7355a9 Start theming and layout of playground 2023-06-02 10:53:32 -04:00
James Stuckey Weber
425cafdc65 Minimal working version with CodeMirror 2023-06-02 09:24:32 -04:00
James Stuckey Weber
69f883fa71 Merge branch 'main' of github.com:oddbird/sass-site into browser-code-editor 2023-06-02 09:12:42 -04:00
Jonny Gerig Meyer
9b7f0bdbeb
Merge branch 'main' into highlight-styles 2023-06-01 18:02:22 -04:00
Jonny Gerig Meyer
679d1b1434
review 2023-06-01 17:59:54 -04:00
Jonny Gerig Meyer
4a66bbac2b
Use JSON args for compatibility tag 2023-06-01 16:56:54 -04:00
Sana Javed
bf305d0c0a Porting Documentation - Values - Index, Numbers, and Strings 2023-06-01 22:25:02 +02:00
Jonny Gerig Meyer
fd0c8a0d87
typo 2023-06-01 13:14:36 -04:00
Jonny Gerig Meyer
0b6004673f
typo 2023-06-01 11:51:49 -04:00
Jonny Gerig Meyer
6dfb87189a
Use kwargs for {% compatibility %} tag. 2023-06-01 11:43:54 -04:00
Jonny Gerig Meyer
b1dcf05688
clearer example line breaks 2023-05-31 14:11:29 -04:00
Jonny Gerig Meyer
a331c7299a
add missing @use 2023-05-31 14:03:30 -04:00
Jonny Gerig Meyer
d546a85605
silence sass warnings 2023-05-31 13:45:19 -04:00
Jonny Gerig Meyer
3b97839415
combine more markdown blocks 2023-05-31 12:44:36 -04:00
Jonny Gerig Meyer
2646cc0c22
indentation for remainder of docs 2023-05-31 12:31:53 -04:00
Jonny Gerig Meyer
5bead6bbe4
indentation for syntax docs 2023-05-31 12:22:35 -04:00
Jonny Gerig Meyer
c146c76ffc
indentation for style-rules docs 2023-05-31 12:16:59 -04:00
James Stuckey Weber
7ca60993d7 Update render import 2023-05-31 12:15:58 -04:00
James Stuckey Weber
d5f9583020 Template logic cleanup, review changes 2023-05-31 16:10:09 +00:00
Jonny Gerig Meyer
fdcb4e47d6
indentation for cli docs 2023-05-31 12:07:48 -04:00
Jonny Gerig Meyer
a46eb6b460
indentation for breaking-changes 2023-05-31 12:02:42 -04:00
James Stuckey Weber
afc5caf8ce Pass playground title to template 2023-05-31 10:25:14 -04:00
James Stuckey Weber
baf5bb4689 Merge branch 'main' of github.com:oddbird/sass-site into browser-code-editor 2023-05-31 10:18:28 -04:00
Jonny Gerig Meyer
d8eec31339
Strip indentation from more paired shortcodes. 2023-05-31 10:06:00 -04:00
James Stuckey Weber
bd585e706b Add placeholder page for playground 2023-05-31 14:04:29 +00:00
Ed Rivas
549f3d0450 Add explicit markdown docs to the rest of modules/* 2023-05-30 23:39:56 +00:00
Jonny Gerig Meyer
57ef8c18d6
Try out standard indentation 2023-05-30 17:23:34 -04:00
Ed Rivas
de2250c46f Add explicit markdown blocks to modules/colors 2023-05-30 21:14:11 +00:00
Jonny Gerig Meyer
d0c08e39f5
start review 2023-05-30 16:49:15 -04:00
Stacy Kvernmo
c7ba638b93 Merge branch 'main' into highlight-styles 2023-05-30 15:43:19 -05:00
Stacy Kvernmo
8ade38ce69 add colors to variables, add one highlight color 2023-05-30 15:42:18 -05:00
Jonny Gerig Meyer
d80252de63
Merge branch 'main' into builtin-modules
* main:
  review
  Porting Documentation - At-Rules - From CSS
  Porting Documentation - At-Rules - Flow Control - while
  Porting Documentation - At-Rules - Flow Control - for
  Porting Documentation - At-Rules - Flow Control - each
  Porting Documentation - At-Rules - Flow Control - if and else
  Porting Documentation - At-Rules - Flow Control - index
  Porting Documentation - At-Rules - at-root
  Porting Documentation - At-Rules - debug
  Porting Documentation - At-Rules - warn
  Porting Documentation - At-Rules - error
2023-05-30 16:29:11 -04:00
Jonny Gerig Meyer
5be80afa11
review 2023-05-30 16:27:01 -04:00
Stacy Kvernmo
d4a6771912 fix faux font weight issue, add scss base color 2023-05-30 15:11:36 -05:00
Ed Rivas
c2c090a82c Add missing class 2023-05-30 15:49:58 +00:00
Jonny Gerig Meyer
444c87aaf3
Merge branch 'main' into port-docs-atrules-error-warn-debug-atroot
* main: (22 commits)
  review
  chore(deps): Automated dependency upgrades
  Add netlify redirects for function-units
  review
  make pre consistent with vendor highlighting
  move data/ to old_data/
  Lint
  Convert to md
  Add missing Breaking Change to nav
  Parse TOC text as markdown
  Fix codeExample to work in markdown
  Trigger CI
  Port breaking-changes/duplicate-var-flags
  Port breaking-changes/css-vars
  Port breaking-changes/extend-compound
  Port breaking-changes/moz-document
  Port breaking-changes/slash-div
  Port breaking-changes/media-logic
  Port breaking-changes/bogus-combinators
  Port breaking-changes/function-units
  ...
2023-05-30 11:21:54 -04:00
Jonny Gerig Meyer
49c217e039
Merge branch 'main' into builtin-modules
* main:
  review
  Porting Documentation - At-Rules - extend
  Porting Documentation - At-Rules - function
  Lint
  Porting Documentation - At-Rules - mixin
2023-05-30 11:21:13 -04:00
Jonny Gerig Meyer
837346efd0
review 2023-05-30 11:15:42 -04:00
Sana Javed
3a58b33602 Porting Documentation - At-Rules - From CSS 2023-05-30 16:59:16 +02:00
Sana Javed
40b3639b33 Porting Documentation - At-Rules - Flow Control - while 2023-05-30 12:16:14 +02:00
Sana Javed
3d7f7a0bb8 Porting Documentation - At-Rules - Flow Control - for 2023-05-30 12:12:01 +02:00
Sana Javed
3d45ca2ce7 Porting Documentation - At-Rules - Flow Control - each 2023-05-30 12:10:07 +02:00
Sana Javed
8829f3fe40 Porting Documentation - At-Rules - Flow Control - if and else 2023-05-30 11:56:49 +02:00
Sana Javed
34a5c6738e Porting Documentation - At-Rules - Flow Control - index 2023-05-30 11:56:10 +02:00
Sana Javed
432d0ed117 Porting Documentation - At-Rules - at-root 2023-05-30 11:37:23 +02:00
Sana Javed
857bc1495d Porting Documentation - At-Rules - debug 2023-05-30 11:32:47 +02:00
Sana Javed
060eeb21db Porting Documentation - At-Rules - warn 2023-05-30 11:29:45 +02:00
Sana Javed
08df8bc72c Porting Documentation - At-Rules - error 2023-05-30 11:25:49 +02:00
Sana Javed
f309db1008
Merge branch 'main' into port-docs-mixin-function-extend 2023-05-30 11:18:47 +02:00
Ed Rivas
4b16a69c8a Merge branch 'main' into builtin-modules 2023-05-29 20:47:01 +00:00
Ed Rivas
e53f3de038 Port modules/string 2023-05-29 20:46:09 +00:00
Ed Rivas
1b0c0464a4 Port modules/selector 2023-05-29 20:37:50 +00:00
Ed Rivas
63b19a2fef Fix links 2023-05-29 20:26:14 +00:00
Ed Rivas
6b4770bfed Port modules/meta 2023-05-29 20:19:19 +00:00
Ed Rivas
756dc5adf1 Port modules/math 2023-05-29 18:10:30 +00:00
Ed Rivas
ae8bba7037 Port modules/map 2023-05-29 17:39:35 +00:00