jekyll_patternbot 0.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.editorconfig +12 -0
- data/.gitattributes +13 -0
- data/.gitignore +73 -0
- data/CHANGELOG.md +68 -0
- data/Gemfile +16 -0
- data/LICENSE.txt +21 -0
- data/README.md +39 -0
- data/Rakefile +1 -0
- data/_config.yml +54 -0
- data/_data/locales/en-ca.yml +5 -0
- data/_includes/patternbot_icons.html +38 -0
- data/_includes/patternbot_pattern_brand_color_swatches.html +48 -0
- data/_includes/patternbot_pattern_brand_typeface.html +32 -0
- data/_includes/patternbot_pattern_brand_typeface_weight.html +15 -0
- data/_includes/patternbot_pattern_copy_script.html +22 -0
- data/_includes/patternbot_patternlib_pattern.html +241 -0
- data/_layouts/patternbot_pattern_internal.html +94 -0
- data/_layouts/patternbot_pattern_lib.html +214 -0
- data/_layouts/patternbot_pattern_user.html +27 -0
- data/_patterns/brand/colors.html +23 -0
- data/_patterns/brand/config.yml +22 -0
- data/_patterns/brand/logos.html +43 -0
- data/_patterns/brand/typefaces.html +18 -0
- data/_patterns/grid/config.yml +14 -0
- data/_patterns/grid/grid-sizes.html +47 -0
- data/_patterns/icons/config.yml +13 -0
- data/_patterns/icons/icons.html +91 -0
- data/_patterns/modules/config.yml +32 -0
- data/_patterns/modules/embed.html +23 -0
- data/_patterns/modules/list-groups.html +21 -0
- data/_patterns/modules/media-objects.html +16 -0
- data/_patterns/typography/config.yml +55 -0
- data/_patterns/typography/emphasis-and-edits.html +80 -0
- data/_patterns/typography/font-sizes.html +90 -0
- data/_patterns/typography/headings.html +31 -0
- data/_patterns/typography/horizontal-spacing.html +46 -0
- data/_patterns/typography/links.html +11 -0
- data/_patterns/typography/lists.html +43 -0
- data/_patterns/typography/quotations.html +17 -0
- data/_patterns/typography/size-adjustments.html +20 -0
- data/_patterns/typography/typesetting.html +32 -0
- data/_patterns/typography/vertical-spacing.html +55 -0
- data/_patterns/utilities/config.yml +11 -0
- data/_patterns/utilities/utilities.html +18 -0
- data/_plugins/jekyll_patternbot/config.rb +19 -0
- data/_plugins/jekyll_patternbot/filters/color.rb +87 -0
- data/_plugins/jekyll_patternbot/filters/number.rb +11 -0
- data/_plugins/jekyll_patternbot/filters/pattern.rb +15 -0
- data/_plugins/jekyll_patternbot/filters/text.rb +33 -0
- data/_plugins/jekyll_patternbot/finders/finder.rb +34 -0
- data/_plugins/jekyll_patternbot/finders/icons.rb +25 -0
- data/_plugins/jekyll_patternbot/finders/logos.rb +26 -0
- data/_plugins/jekyll_patternbot/finders/patterns.rb +69 -0
- data/_plugins/jekyll_patternbot/finders/sample_pages.rb +18 -0
- data/_plugins/jekyll_patternbot/generators/internal_patterns.rb +56 -0
- data/_plugins/jekyll_patternbot/generators/pattern_lib.rb +27 -0
- data/_plugins/jekyll_patternbot/generators/user_patterns.rb +57 -0
- data/_plugins/jekyll_patternbot/helpers/color.rb +26 -0
- data/_plugins/jekyll_patternbot/helpers/file.rb +17 -0
- data/_plugins/jekyll_patternbot/helpers/jekyll.rb +60 -0
- data/_plugins/jekyll_patternbot/helpers/pattern.rb +36 -0
- data/_plugins/jekyll_patternbot/hooks/pattern_lib.rb +57 -0
- data/_plugins/jekyll_patternbot/loggers/patternbot.rb +24 -0
- data/_plugins/jekyll_patternbot/parsers/css_color.rb +54 -0
- data/_plugins/jekyll_patternbot/parsers/css_font.rb +109 -0
- data/_plugins/jekyll_patternbot/parsers/css_utility.rb +27 -0
- data/_plugins/jekyll_patternbot/parsers/gridifier.rb +22 -0
- data/_plugins/jekyll_patternbot/parsers/icons.rb +27 -0
- data/_plugins/jekyll_patternbot/parsers/modulifier.rb +10 -0
- data/_plugins/jekyll_patternbot/parsers/theme.rb +39 -0
- data/_plugins/jekyll_patternbot/parsers/typografier.rb +21 -0
- data/_plugins/jekyll_patternbot/parsers/web_dev_tool.rb +41 -0
- data/_plugins/jekyll_patternbot/processors/brand.rb +22 -0
- data/_plugins/jekyll_patternbot/processors/modules.rb +35 -0
- data/_plugins/jekyll_patternbot/tags/pattern.rb +19 -0
- data/_plugins/jekyll_patternbot/tags/pattern_css.rb +27 -0
- data/_plugins/jekyll_patternbot/tags/pattern_js.rb +27 -0
- data/_plugins/jekyll_patternbot.rb +55 -0
- data/_sass/.gitignore +0 -0
- data/assets/.gitignore +0 -0
- data/assets/_patternbot/common/common.css +223 -0
- data/assets/_patternbot/common/common.min.css +1 -0
- data/assets/_patternbot/common/gridifier.css +1175 -0
- data/assets/_patternbot/common/gridifier.min.css +1 -0
- data/assets/_patternbot/common/modulifier.css +539 -0
- data/assets/_patternbot/common/modulifier.min.css +1 -0
- data/assets/_patternbot/common/typografier.css +1787 -0
- data/assets/_patternbot/common/typografier.min.css +1 -0
- data/assets/_patternbot/images/placeholder-16by9.svg +1 -0
- data/assets/_patternbot/images/placeholder-1by1.svg +1 -0
- data/assets/_patternbot/patterns/brand/brand.css +79 -0
- data/assets/_patternbot/patterns/brand/brand.min.css +1 -0
- data/assets/_patternbot/patterns/grid/grid.css +27 -0
- data/assets/_patternbot/patterns/grid/grid.min.css +1 -0
- data/assets/_patternbot/patterns/icons/icons.css +41 -0
- data/assets/_patternbot/patterns/icons/icons.min.css +1 -0
- data/assets/_patternbot/patterns/modules/modules.css +4 -0
- data/assets/_patternbot/patterns/modules/modules.min.css +1 -0
- data/assets/_patternbot/patterns/typography/typography.css +11 -0
- data/assets/_patternbot/patterns/typography/typography.min.css +1 -0
- data/assets/_patternbot/patterns/utilities/utilities.css +4 -0
- data/assets/_patternbot/patterns/utilities/utilities.min.css +1 -0
- data/assets/_patternbot/ui/gridifier.css +1175 -0
- data/assets/_patternbot/ui/main.css +513 -0
- data/assets/_patternbot/ui/main.js +301 -0
- data/assets/_patternbot/ui/modulifier.css +725 -0
- data/assets/_patternbot/ui/pattern-lib.css +4 -0
- data/assets/_patternbot/ui/pattern-lib.min.css +1 -0
- data/assets/_patternbot/ui/pattern-lib.min.js +1 -0
- data/assets/_patternbot/ui/typografier.css +1787 -0
- data/jekyll_patternbot.gemspec +34 -0
- data/package.json +35 -0
- data/version.rb +3 -0
- data/yarn.lock +2783 -0
- metadata +312 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 3c0b45c452eda84483e76152b084ee030ac2513e02e078d7f376f23713c5ac73
|
|
4
|
+
data.tar.gz: 1b5d3479640aa7c587194b5f11377297ac936569c5ee3cce4f1c1273fac82baf
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: ed3ff96b9e21290d66dbab46ae98a384641faea1512db09490f04040d1247523cb0233f6133b4e4a4c9df77d40f6cb834c1e21cc7adde34fa7eff7a5ba497a36
|
|
7
|
+
data.tar.gz: 2005b9a8ff0f89286501f1b0bfe180fbf8a457747b83f38c5b9fd2e4c0295e6fbd8294e18062b39a9fec89aeb29a1683108d3945028a4cbad38bc2e6949bb3d4
|
data/.editorconfig
ADDED
data/.gitattributes
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Force Unix LF to make code consistent across platforms
|
|
2
|
+
# Helps Markbot cheat detection to work properly
|
|
3
|
+
|
|
4
|
+
*.html text eol=lf
|
|
5
|
+
*.css text eol=lf
|
|
6
|
+
*.js text eol=lf
|
|
7
|
+
*.md text eol=lf
|
|
8
|
+
*.yml text eol=lf
|
|
9
|
+
*.txt text eol=lf
|
|
10
|
+
*.svg text eol=lf
|
|
11
|
+
*.lock text eol=lf
|
|
12
|
+
|
|
13
|
+
.editorconfig text eol=lf
|
data/.gitignore
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
# Ruby GEM-related files
|
|
2
|
+
/.bundle/
|
|
3
|
+
/.yardoc
|
|
4
|
+
/_yardoc/
|
|
5
|
+
/coverage/
|
|
6
|
+
/doc/
|
|
7
|
+
/pkg/
|
|
8
|
+
/spec/reports/
|
|
9
|
+
/tmp/
|
|
10
|
+
|
|
11
|
+
# rspec failure tracking
|
|
12
|
+
.rspec_status
|
|
13
|
+
|
|
14
|
+
# Vendor files
|
|
15
|
+
node_modules
|
|
16
|
+
npm-debug.log
|
|
17
|
+
vendor
|
|
18
|
+
|
|
19
|
+
# Jekyll
|
|
20
|
+
_site
|
|
21
|
+
.jekyll-metadata
|
|
22
|
+
|
|
23
|
+
# Temporary files
|
|
24
|
+
tmp
|
|
25
|
+
|
|
26
|
+
# Adobe files
|
|
27
|
+
*.pdf
|
|
28
|
+
*.ai
|
|
29
|
+
*.psd
|
|
30
|
+
*.indd
|
|
31
|
+
*.indb
|
|
32
|
+
|
|
33
|
+
# Compressed files
|
|
34
|
+
*.zip
|
|
35
|
+
*.gz
|
|
36
|
+
*.tar
|
|
37
|
+
*.7z
|
|
38
|
+
|
|
39
|
+
# Type faces
|
|
40
|
+
*.otf
|
|
41
|
+
*.ttf
|
|
42
|
+
*.woff
|
|
43
|
+
*.eot
|
|
44
|
+
*.ttc
|
|
45
|
+
|
|
46
|
+
# Video & audio
|
|
47
|
+
*.mov
|
|
48
|
+
*.mp4
|
|
49
|
+
*.m4v
|
|
50
|
+
*.f4v
|
|
51
|
+
*.f4p
|
|
52
|
+
*.ogv
|
|
53
|
+
*.webm
|
|
54
|
+
*.flv
|
|
55
|
+
*.mp3
|
|
56
|
+
*.m4a
|
|
57
|
+
*.f4a
|
|
58
|
+
*.f4b
|
|
59
|
+
*.oga
|
|
60
|
+
*.ogg
|
|
61
|
+
*.opus
|
|
62
|
+
|
|
63
|
+
# Folder view configuration files
|
|
64
|
+
.DS_Store
|
|
65
|
+
Desktop.ini
|
|
66
|
+
|
|
67
|
+
# Thumbnail cache files
|
|
68
|
+
._*
|
|
69
|
+
Thumbs.db
|
|
70
|
+
|
|
71
|
+
# Files that might appear on external disks
|
|
72
|
+
.Spotlight-V100
|
|
73
|
+
.Trashes
|
data/CHANGELOG.md
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
This file documents all the notable changes for each version of Jekyll Patternbot.
|
|
4
|
+
Jekyll Patternbot adheres to [Semantic Versioning](http://semver.org/).
|
|
5
|
+
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
## [0.12.0] — 2019-01-15
|
|
9
|
+
|
|
10
|
+
### Changed
|
|
11
|
+
|
|
12
|
+
- Transitioned from nested Gems to a single Gem that includes the theme & plugins.
|
|
13
|
+
|
|
14
|
+
### Fixed
|
|
15
|
+
|
|
16
|
+
- Fixed a bunch of bugs when different pattern library elements were missing.
|
|
17
|
+
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
## [0.11.0] — 2019-01-15
|
|
21
|
+
|
|
22
|
+
### Added
|
|
23
|
+
|
|
24
|
+
- Added support for pretty permalinks.
|
|
25
|
+
- Added internal pattern post processors to remove patterns when they aren’t included in the user’s code.
|
|
26
|
+
- Messages are displayed in console related to remote font URLs: whether a cached or remotely downloaded version was used.
|
|
27
|
+
|
|
28
|
+
### Changed
|
|
29
|
+
|
|
30
|
+
- Changed the default folder location for sample pages to have a hyphen instead of underscore.
|
|
31
|
+
- Patterns aren’t required to be listed in `config.patterns` any more, having just the `.html` file is enough.
|
|
32
|
+
- Renamed `FileHelpers` & `JekyllHelpers` to be not plural for consistency.
|
|
33
|
+
- Changed all my very un-Ruby `if not` statements into `unless` statements.
|
|
34
|
+
|
|
35
|
+
### Fixed
|
|
36
|
+
|
|
37
|
+
- Errors are now thrown, coloured, when Patternbot can’t find specific files.
|
|
38
|
+
- Fixed some errors when running `jekyll serve`
|
|
39
|
+
|
|
40
|
+
---
|
|
41
|
+
|
|
42
|
+
## [0.10.0] — 2019-01-12
|
|
43
|
+
|
|
44
|
+
### Added
|
|
45
|
+
|
|
46
|
+
- Added a whole bunch of error checking.
|
|
47
|
+
- Added cache busting to all the assets.
|
|
48
|
+
- Allow pattern field descriptions to show a list of classes.
|
|
49
|
+
- Allow pattern field descriptions to present a datasource for loading a Jekyll object.
|
|
50
|
+
- Added the ability to document utility classes inside `theme.css`
|
|
51
|
+
- Added back the type samples and cleaned up the typography pattern.
|
|
52
|
+
- Added the ability to configure icon colour variables within the SVG spritesheet.
|
|
53
|
+
|
|
54
|
+
### Changed
|
|
55
|
+
|
|
56
|
+
- Change all file & folder spelling to American for consistency.
|
|
57
|
+
- Allow the `main.css` `config.yml` filenames to be configurable.
|
|
58
|
+
- Changed “Page” to “Sample Page” for a little more clarity.
|
|
59
|
+
- Rewrote all the colour adjustment code to be much simpler.
|
|
60
|
+
- Now allows the placeholder graphics to be configured.
|
|
61
|
+
|
|
62
|
+
---
|
|
63
|
+
|
|
64
|
+
## [0.9.0] — 2019-01-10
|
|
65
|
+
|
|
66
|
+
### Added
|
|
67
|
+
|
|
68
|
+
- Initial public release: feature parity with Patternbot.app
|
data/Gemfile
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
source 'https://rubygems.org'
|
|
2
|
+
|
|
3
|
+
git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
|
|
4
|
+
|
|
5
|
+
ruby '2.5.3'
|
|
6
|
+
|
|
7
|
+
gem 'jekyll', '~> 3.8'
|
|
8
|
+
gem 'colorator'
|
|
9
|
+
gem 'babosa'
|
|
10
|
+
gem 'deep_merge'
|
|
11
|
+
gem 'unicode_titlecase'
|
|
12
|
+
gem 'css_parser'
|
|
13
|
+
gem 'color_contrast_calc'
|
|
14
|
+
gem 'indifference'
|
|
15
|
+
|
|
16
|
+
gemspec
|
data/LICENSE.txt
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2018 Thomas J Bradley
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
|
13
|
+
all copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# Jekyll::Patternbot
|
|
2
|
+
|
|
3
|
+
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/jekyll/patternbot`. To experiment with that code, run `bin/console` for an interactive prompt.
|
|
4
|
+
|
|
5
|
+
TODO: Delete this and the text above, and describe your gem
|
|
6
|
+
|
|
7
|
+
## Installation
|
|
8
|
+
|
|
9
|
+
Add this line to your application's Gemfile:
|
|
10
|
+
|
|
11
|
+
```ruby
|
|
12
|
+
gem 'jekyll_patternbot'
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
And then execute:
|
|
16
|
+
|
|
17
|
+
$ bundle
|
|
18
|
+
|
|
19
|
+
Or install it yourself as:
|
|
20
|
+
|
|
21
|
+
$ gem install jekyll_patternbot
|
|
22
|
+
|
|
23
|
+
## Usage
|
|
24
|
+
|
|
25
|
+
TODO: Write usage instructions here
|
|
26
|
+
|
|
27
|
+
## Development
|
|
28
|
+
|
|
29
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
|
30
|
+
|
|
31
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
|
32
|
+
|
|
33
|
+
## Contributing
|
|
34
|
+
|
|
35
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/jekyll_patternbot.
|
|
36
|
+
|
|
37
|
+
## License
|
|
38
|
+
|
|
39
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
data/Rakefile
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require "bundler/gem_tasks"
|
data/_config.yml
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
patternbot:
|
|
2
|
+
locale: "en-ca"
|
|
3
|
+
source: "_patterns"
|
|
4
|
+
config: "config.yml"
|
|
5
|
+
destination: "pattern-library"
|
|
6
|
+
font_url: false
|
|
7
|
+
css:
|
|
8
|
+
source: "css"
|
|
9
|
+
modulifier: "modules.css"
|
|
10
|
+
gridifier: "grid.css"
|
|
11
|
+
typografier: "type.css"
|
|
12
|
+
theme: "theme.css"
|
|
13
|
+
main: "main.css"
|
|
14
|
+
utility_tag: "@utility"
|
|
15
|
+
icons:
|
|
16
|
+
source: "images"
|
|
17
|
+
filenames:
|
|
18
|
+
- "icons"
|
|
19
|
+
extensions:
|
|
20
|
+
- ".svg"
|
|
21
|
+
logos:
|
|
22
|
+
source: "images"
|
|
23
|
+
filenames:
|
|
24
|
+
- "logo"
|
|
25
|
+
- "logo-256"
|
|
26
|
+
- "logo-64"
|
|
27
|
+
- "logo-32"
|
|
28
|
+
- "logo-16"
|
|
29
|
+
extensions:
|
|
30
|
+
- ".svg"
|
|
31
|
+
- ".png"
|
|
32
|
+
sample_pages:
|
|
33
|
+
source: "sample-pages"
|
|
34
|
+
js:
|
|
35
|
+
source: "js"
|
|
36
|
+
|
|
37
|
+
title: false
|
|
38
|
+
description: false
|
|
39
|
+
|
|
40
|
+
colors:
|
|
41
|
+
background: '#fff'
|
|
42
|
+
accent: false
|
|
43
|
+
patterns:
|
|
44
|
+
# brand.logos: hotpink
|
|
45
|
+
# icons.icons.brachiosaurus: orange
|
|
46
|
+
# icons.icons.velociraptor.--color-stroke:
|
|
47
|
+
|
|
48
|
+
rationales:
|
|
49
|
+
# typefaces.primary: "Blah, blah…"
|
|
50
|
+
# colors.secondary: "Blerg, blerg…"
|
|
51
|
+
|
|
52
|
+
placeholders:
|
|
53
|
+
square: '/assets/_patternbot/images/placeholder-1by1.svg'
|
|
54
|
+
wide: '/assets/_patternbot/images/placeholder-16by9.svg'
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
<svg hidden>
|
|
2
|
+
<symbol id="nav-icon" viewBox="0 0 256 256">
|
|
3
|
+
<path d="M8.5 26.9h239v35.8H8.5zm0 83.7h239v35.8H8.5zm0 83.6h239V230H8.5z"/>
|
|
4
|
+
</symbol>
|
|
5
|
+
<symbol id="nav-icon-close" viewBox="0 0 256 256">
|
|
6
|
+
<path d="M199.776 226.088L30.779 57.091l25.385-25.385 168.997 168.997zm25.426-168.767L56.205 226.318 30.82 200.933 199.817 31.936z"/>
|
|
7
|
+
</symbol>
|
|
8
|
+
<symbol id="icon-pop-out" viewBox="0 0 256 256">
|
|
9
|
+
<polyline fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="30" points="87 21 234 21 234 168"/>
|
|
10
|
+
<line x1="173" x2="173" y1="81" y2="81" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="30"/>
|
|
11
|
+
<line x1="145.1" x2="47.5" y1="108.9" y2="206.6" fill="none" stroke-dasharray="0 39.46" stroke-linecap="round" stroke-linejoin="round" stroke-width="30"/>
|
|
12
|
+
<line x1="33.5" x2="33.5" y1="220.5" y2="220.5" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="30"/>
|
|
13
|
+
</symbol>
|
|
14
|
+
<symbol id="icon-resize-handle" viewBox="0 0 256 256">
|
|
15
|
+
<line x1="128" x2="128" y1="18.8" y2="237.2" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="30"/>
|
|
16
|
+
<line x1="66.7" x2="66.7" y1="18.8" y2="237.2" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="30"/>
|
|
17
|
+
<line x1="189.3" x2="189.3" y1="18.8" y2="237.2" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="30"/>
|
|
18
|
+
</symbol>
|
|
19
|
+
<symbol id="icon-code" viewBox="0 0 256 256">
|
|
20
|
+
<path stroke-width="6" d="M80.6 74.6c-2-1-4.4-1-6.2.4l-63.7 44.5c-1.6 1-2.7 3-2.7 4.8v5.6c0 1.8 1 3.6 2.6 4.7L74 179.2c1 .7 2.3 1 3.5 1 1 0 2 0 3-.6 2-1 3.4-3 3.4-5.2V168c0-1.8-1.3-3.6-2.8-4.7L29.5 127l51.7-36c1.6-1.2 2.7-3 2.7-5V80c0-2.2-1.5-4.2-3.4-5.2zM159.2 52h-6c-2.4 0-4.6 1.3-5.5 3.6L90.5 208c-.7 1.8-.4 4 .7 5.4 1 1.6 3 2.6 4.8 2.6h6c2.5 0 4.6-1.6 5.5-4l57.2-152.5c.7-1.8.4-3.6-.7-5.2-1-1.6-3-2.3-4.8-2.3zM247.4 119.5L183.8 75c-1.8-1.3-4.4-1.4-6.4-.4-2 1-3.4 3-3.4 5.2V86c0 2 1.2 3.8 2.7 5l51.7 36-51.7 36.3c-1.6 1-2.7 3-2.7 4.8v6.4c0 2.2 1.5 4.2 3.4 5.2 1 .4 2 .7 2.8.7 1.2 0 2.4-.4 3.4-1l63.7-44.6c1.6-1 2.7-3 2.7-4.8v-5.7c0-2-1-3.7-2.6-4.8z"/>
|
|
21
|
+
</symbol>
|
|
22
|
+
<symbol id="icon-copy" viewBox="0 0 256 256">
|
|
23
|
+
<rect width="125.7" height="27.83" x="65.2" y="175"/>
|
|
24
|
+
<rect width="125.7" height="27.83" x="65.2" y="117.8"/>
|
|
25
|
+
<polygon points="82.9 10 82.9 66.8 107.1 66.8 148.9 66.8 173.1 66.8 173.1 10 82.9 10"/>
|
|
26
|
+
<rect width="219.8" height="207.33" x="18.1" y="38.7" fill="none" stroke-miterlimit="10" stroke-width="20" rx="18.8" ry="18.8"/>
|
|
27
|
+
</symbol>
|
|
28
|
+
<symbol id="icon-active" viewBox="0 0 256 256">
|
|
29
|
+
<polyline fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="30" points="126 24.1 230 128 126 231.9"/>
|
|
30
|
+
</symbol>
|
|
31
|
+
<symbol id="patternbot-iframe-loading-gears-double" viewBox="0 0 256 256">
|
|
32
|
+
<path class="patternbot-iframe-loading-gears-top" d="M151.3 86.9a51.3 51.3 0 0 0 .2-6.1 51.3 51.3 0 0 0-.2-6.1l-12-.9a57.9 57.9 0 0 0-4.3-15.9l9.9-6.8a59.2 59.2 0 0 0-6.1-10.6l-10.9 5a59.6 59.6 0 0 0-11.6-11.6l5.3-10.9a59.2 59.2 0 0 0-10.6-6.2l-7.1 9.7a60.2 60.2 0 0 0-15.8-4.2l-.9-12a57.5 57.5 0 0 0-6.4-.2 51.3 51.3 0 0 0-6.1.2l-.9 12A57.9 57.9 0 0 0 58 26.5l-7-9.7A59.2 59.2 0 0 0 40.4 23l5 10.9a68.4 68.4 0 0 0-11.8 11.5l-10.6-5A59.2 59.2 0 0 0 16.8 51l9.7 6.8a59.5 59.5 0 0 0-4.2 16l-11.8.9a23 23 0 0 0-.5 5.9 51.3 51.3 0 0 0 .2 6.1l11.8.9a59.5 59.5 0 0 0 4.2 16l-9.7 6.8a59.2 59.2 0 0 0 6.1 10.6l10.6-5A54.8 54.8 0 0 0 45 127.6l-5 10.9a59.2 59.2 0 0 0 10.6 6.1l6.8-9.7a60.2 60.2 0 0 0 15.8 4.2l.9 12h6.4a51.3 51.3 0 0 0 6.1-.2l.9-12a60.2 60.2 0 0 0 15.8-4.2l6.8 9.9a59.2 59.2 0 0 0 10.6-6.1l-5-11.1a53.7 53.7 0 0 0 11.6-11.6l10.9 5.2a59.2 59.2 0 0 0 6.1-10.6l-9.7-6.8a60.2 60.2 0 0 0 4.2-15.8zm-70.5 29.3a35.4 35.4 0 1 1 35.4-35.4 35.3 35.3 0 0 1-35.4 35.4z"/>
|
|
33
|
+
<path class="patternbot-iframe-loading-gears-bottom" d="M242.8 200.6a51.3 51.3 0 0 0 1.8-5.9 51.3 51.3 0 0 0 1.4-6l-11.4-4a57.9 57.9 0 0 0 0-16.4l11.3-4a59.2 59.2 0 0 0-3.2-11.8l-11.8 2a59.6 59.6 0 0 0-8.1-14.2l7.8-9.1a59.2 59.2 0 0 0-8.7-8.7l-9.4 7.5a60.2 60.2 0 0 0-14.2-8.2l2.2-11.9a57.5 57.5 0 0 0-6.1-1.9 51.3 51.3 0 0 0-6-1.4l-4 11.4a57.9 57.9 0 0 0-16.4 0l-4.1-11.1a59.2 59.2 0 0 0-11.8 3.2l2 11.8a68.4 68.4 0 0 0-14.4 8.1l-9-7.5a59.2 59.2 0 0 0-8.7 8.7l7.6 9.1a59.5 59.5 0 0 0-8.3 14.4l-11.3-2.4a23 23 0 0 0-2 5.6 51.3 51.3 0 0 0-1.4 6l11.1 4a59.5 59.5 0 0 0-.1 16.6l-11.1 4.1a59.2 59.2 0 0 0 3.2 11.8l11.5-2a54.8 54.8 0 0 0 8.4 14.2l-7.6 9.2a59.2 59.2 0 0 0 8.7 8.7l9.1-7.6a60.2 60.2 0 0 0 14.2 8.2l-2.3 11.9 6.1 1.7a51.3 51.3 0 0 0 6 1.4l4-11.4a60.2 60.2 0 0 0 16.4 0l4 11.3a59.2 59.2 0 0 0 11.8-3.2l-1.9-12a53.7 53.7 0 0 0 14.2-8.1l9.1 7.8a59.2 59.2 0 0 0 8.7-8.7l-7.6-9.1a60.2 60.2 0 0 0 8.2-14.2zm-75.7 9.9a35.4 35.4 0 1 1 43.4-24.9 35.3 35.3 0 0 1-43.4 24.9z"/>
|
|
34
|
+
</symbol>
|
|
35
|
+
<symbol id="patternbot-iframe-loading-gears" viewBox="0 0 256 256">
|
|
36
|
+
<path class="patternbot-iframe-loading-gears-single" d="M107.2 11.3a8.6 8.6 0 0 0-7.6 6.4l-4.2 23.2a95.8 95.8 0 0 0-24.8 13.9l-21.9-8.5a8.1 8.1 0 0 0-9.5 3.3L17.6 85a7.9 7.9 0 0 0 1.5 9.8l17.4 15.5a87.9 87.9 0 0 0 0 35.4l-17.4 15.4a8.1 8.1 0 0 0-1.5 9.9l21.6 35.4a8.1 8.1 0 0 0 9.5 3.2l21.9-8.4A95.5 95.5 0 0 0 95.4 215l4.2 23.3a8.2 8.2 0 0 0 7.6 6.4h41.5a8.1 8.1 0 0 0 7.7-6.4l4.2-23.3a93.9 93.9 0 0 0 24.8-13.8l22 8.4a8 8 0 0 0 9.4-3.2l21.6-35.4a8.1 8.1 0 0 0-1.5-9.9l-17.4-15.5a93.8 93.8 0 0 0 1.8-17.6 94.9 94.9 0 0 0-1.8-17.7l17.4-15.5a7.9 7.9 0 0 0 1.5-9.8l-21.6-35.4a8.2 8.2 0 0 0-9.4-3.3l-22 8.5a92.7 92.7 0 0 0-24.8-13.9l-4.2-23.2a8.1 8.1 0 0 0-7.7-6.4zM128 83a45 45 0 1 1-45 45 44.9 44.9 0 0 1 45-45z"/>
|
|
37
|
+
</symbol>
|
|
38
|
+
</svg>
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
<section>
|
|
2
|
+
{% if include.show_hr %}<hr class="patternbot-hr">{% endif %}
|
|
3
|
+
|
|
4
|
+
<h2 class="patternbot-color-body giga {% if page._PatternbotConfig.patternbot.colors.primary %}push-1-4{% endif %}">{{include.title}} colours</h2>
|
|
5
|
+
{% assign pattern_has_rationale = include.key | has_pattern_rationale:'colors' %}
|
|
6
|
+
{% if pattern_has_rationale %}
|
|
7
|
+
<div class="patternbot-max-length italic max-length">
|
|
8
|
+
{{include.key | get_pattern_rationale:'colors' | markdownify}}
|
|
9
|
+
</div>
|
|
10
|
+
{% endif %}
|
|
11
|
+
|
|
12
|
+
{% if include.style == "large" %}
|
|
13
|
+
<div class="patternbot-color-swatches {{include.extra_class}} grid grid-stretch">
|
|
14
|
+
<div class="unit xs-1-2" style="background-color:var({{include.colors[0].name}})"> </div>
|
|
15
|
+
<div class="patternbot-color-swatches-fill unit xs-1-2" style="background-color:var({{include.colors[0].name}})">
|
|
16
|
+
{% for color in include.colors %}
|
|
17
|
+
<div style="background-color:var({{color.name}});"> </div>
|
|
18
|
+
{% endfor %}
|
|
19
|
+
</div>
|
|
20
|
+
</div>
|
|
21
|
+
{% endif %}
|
|
22
|
+
|
|
23
|
+
<ul class="patternbot-color-swatch-labels patternbot-color-body patternbot-list-group list-group-inline milli push-0 {% if include.style == 'large' %}pad-t-1-2{% endif %}">
|
|
24
|
+
{% for color in include.colors %}
|
|
25
|
+
<li class="push">
|
|
26
|
+
{% if include.style == "small" %}
|
|
27
|
+
<div class="patternbot-color-swatches patternbot-color-swatches-accent push-1-2" style="background-color:var({{color.name}});"> </div>
|
|
28
|
+
{% endif %}
|
|
29
|
+
<div class="push-1-2">
|
|
30
|
+
<i class="patternbot-color-swatches icon i-24" style="background-color:var({{color.name}});"> </i>
|
|
31
|
+
<span class="icon-label">{{color.name_pretty}}</span>
|
|
32
|
+
</div>
|
|
33
|
+
<ul class="patternbot-code-details patternbot-code-details-under patternbot-list-group list-group micro push-0">
|
|
34
|
+
<li class="push-1-8 relative">
|
|
35
|
+
<code>var({{color.name}})</code>
|
|
36
|
+
<button class="center-contents-vertical patternbot-tool-btn pattern-copy-btn" title="Copy color: {{color.name_pretty}}" aria-label="Copy color: {{color.name_pretty}}" data-clipboard-text="var({{color.name}})" hidden>
|
|
37
|
+
<i class="icon i-18">
|
|
38
|
+
<svg><use xlink:href="#icon-copy"></use></svg>
|
|
39
|
+
</i>
|
|
40
|
+
</button>
|
|
41
|
+
</li>
|
|
42
|
+
<li class="patternbot-color-swatch-labels-hex push-1-8"><code>{{color.hex}}</code></li>
|
|
43
|
+
<li class="patternbot-color-swatch-labels-rgba"><code>{{color.rgba}}</code></li>
|
|
44
|
+
</ul>
|
|
45
|
+
</li>
|
|
46
|
+
{% endfor %}
|
|
47
|
+
</ul>
|
|
48
|
+
</section>
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
<section style="font-family:var({{include.font.var}});">
|
|
2
|
+
{% if include.show_hr %}<hr class="patternbot-hr">{% endif %}
|
|
3
|
+
|
|
4
|
+
<ul class="patternbot-code-details patternbot-list-group list-group-inline micro push-1-2 pad-t">
|
|
5
|
+
<li class="relative">
|
|
6
|
+
<code>var({{include.font.var}})</code>
|
|
7
|
+
<button class="center-contents-vertical patternbot-tool-btn pattern-copy-btn" title="Copy font: {{include.title}}: {{include.font.name_pretty}}" aria-label="Copy font: {{include.title}}: {{include.font.name_pretty}}" data-clipboard-text="var({{include.font.var}})" hidden>
|
|
8
|
+
<i class="icon i-18">
|
|
9
|
+
<svg><use xlink:href="#icon-copy"></use></svg>
|
|
10
|
+
</i>
|
|
11
|
+
</button>
|
|
12
|
+
</li>
|
|
13
|
+
</ul>
|
|
14
|
+
|
|
15
|
+
<h2 class="patternbot-color-body yotta"><span class="patternbot-type-sample-large">{{include.font.name_pretty}}</span> is {{include.preposition}} {{include.title | downcase}} typeface</h2>
|
|
16
|
+
{% assign pattern_has_rationale = include.key | has_pattern_rationale:'typefaces' %}
|
|
17
|
+
{% if pattern_has_rationale %}
|
|
18
|
+
<div class="patternbot-max-length tera max-length">
|
|
19
|
+
{{include.key | get_pattern_rationale:'typefaces' | markdownify}}
|
|
20
|
+
</div>
|
|
21
|
+
{% endif %}
|
|
22
|
+
|
|
23
|
+
{% for weight in include.font.weights %}
|
|
24
|
+
{% assign weight_data = weight[1] %}
|
|
25
|
+
{% if weight_data.has_normal %}
|
|
26
|
+
{% include patternbot_pattern_brand_typeface_weight.html weight=weight_data style="normal" font_var=include.font.var %}
|
|
27
|
+
{% endif %}
|
|
28
|
+
{% if weight_data.has_italic %}
|
|
29
|
+
{% include patternbot_pattern_brand_typeface_weight.html weight=weight_data style="italic" font_var=include.font.var %}
|
|
30
|
+
{% endif %}
|
|
31
|
+
{% endfor %}
|
|
32
|
+
</section>
|