on master help sign in
Add SASS file for syntax tests
commit7f5d6d9791e7ca49bfb7fa102ce0a81cb64e1b5d authorsharkdp <davidpeter@web.de> dateMon 7 Sep 2020, 22:23 (6 years ago) parent96d4cdb
4 files changed+66
tests/syntax-tests/create_highlighted_versions.py+3 tests/syntax-tests/highlighted/SASS/example.sass+19 tests/syntax-tests/source/SASS/LICENSE.md+25 tests/syntax-tests/source/SASS/example.sass+19
tests/syntax-tests/create_highlighted_versions.py+3
@@ -38,6 +38,9 @@ def create_highlighted_versions(output_basepath):
3838 source_dirname = path.basename(path.dirname(source))
3939 source_filename = path.basename(source)
4040
41+ if source_filename == "LICENSE.md":
42+ continue
43+
4144 output_dir = path.join(output_basepath, source_dirname)
4245 output_path = path.join(output_dir, source_filename)
4346
tests/syntax-tests/highlighted/SASS/example.sassnew file+19
@@ -0,0 +1,19 @@
1+@mixin button-base() {
2+ @include typography(button);
3+ @include ripple-surface;
4+ @include ripple-radius-bounded;
5+
6+ display: inline-flex;
7+ position: relative;
8+ height: $button-height;
9+ border: none;
10+ vertical-align: middle;
11+
12+ &:hover { cursor: pointer; }
13+
14+ &:disabled {
15+ color: $mdc-button-disabled-ink-color;
16+ cursor: default;
17+ pointer-events: none;
18+ }
19+}
tests/syntax-tests/source/SASS/LICENSE.mdnew file+25
@@ -0,0 +1,25 @@
1+This file has been copied from https://sass-lang.com/documentation/syntax
2+
3+
4+LICENSE:
5+
6+
7+Copyright (c) 2006-2018 Hampton Catlin, Natalie Weizenbaum, Chris Eppstein, and
8+Jina Anne
9+
10+Permission is hereby granted, free of charge, to any person obtaining a copy of
11+this software and associated documentation files (the "Software"), to deal in
12+the Software without restriction, including without limitation the rights to
13+use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
14+the Software, and to permit persons to whom the Software is furnished to do so,
15+subject to the following conditions:
16+
17+The above copyright notice and this permission notice shall be included in all
18+copies or substantial portions of the Software.
19+
20+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
22+FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
23+COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
24+IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
25+CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
tests/syntax-tests/source/SASS/example.sassnew file+19
@@ -0,0 +1,19 @@
1+@mixin button-base() {
2+ @include typography(button);
3+ @include ripple-surface;
4+ @include ripple-radius-bounded;
5+
6+ display: inline-flex;
7+ position: relative;
8+ height: $button-height;
9+ border: none;
10+ vertical-align: middle;
11+
12+ &:hover { cursor: pointer; }
13+
14+ &:disabled {
15+ color: $mdc-button-disabled-ink-color;
16+ cursor: default;
17+ pointer-events: none;
18+ }
19+}