forked from Chalarangelo/30-seconds-of-css
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request Chalarangelo#150 from 30-seconds/from-starter
Use 30-seconds-starter template
- Loading branch information
Showing
171 changed files
with
25,467 additions
and
16,521 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
src/docs/* linguist-documentation | ||
scripts/* linguist-documentation | ||
gatsby-browser.js linguist-documentation | ||
gatsby-config.js linguist-documentation | ||
gatsby-node.js linguist-documentation | ||
gatsby-ssr.js linguist-documentation | ||
.travis/* linguist-documentation | ||
config.js linguist-documentation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,73 @@ | ||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
|
||
# Runtime data | ||
pids | ||
*.pid | ||
*.seed | ||
*.pid.lock | ||
|
||
# Directory for instrumented libs generated by jscoverage/JSCover | ||
lib-cov | ||
|
||
# Coverage directory used by tools like istanbul | ||
coverage | ||
|
||
# nyc test coverage | ||
.nyc_output | ||
|
||
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) | ||
.grunt | ||
|
||
# Bower dependency directory (https://bower.io/) | ||
bower_components | ||
|
||
# node-waf configuration | ||
.lock-wscript | ||
|
||
# Compiled binary addons (https://nodejs.org/api/addons.html) | ||
build/Release | ||
|
||
# Dependency directories | ||
node_modules/ | ||
jspm_packages/ | ||
|
||
# TypeScript v1 declaration files | ||
typings/ | ||
|
||
# Optional npm cache directory | ||
.npm | ||
|
||
# Optional eslint cache | ||
.eslintcache | ||
|
||
# Optional REPL history | ||
.node_repl_history | ||
|
||
# Output of 'npm pack' | ||
*.tgz | ||
|
||
# Yarn | ||
yarn-error.log | ||
.pnp/ | ||
.pnp.js | ||
|
||
# Yarn Integrity file | ||
.yarn-integrity | ||
|
||
# dotenv environment variables file | ||
.env | ||
|
||
# next.js build output | ||
.next | ||
|
||
# gatsby files | ||
.cache/ | ||
.DS_Store | ||
dist/ | ||
public | ||
|
||
# Mac files | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,13 @@ | ||
language: node_js | ||
node_js: | ||
- node | ||
install: | ||
- npm install | ||
script: | ||
- npm run build | ||
after_script: | ||
- test $TRAVIS_EVENT_TYPE = cron | ||
&& echo -e "\e[95mDeploying to Repository" | ||
&& chmod +x .travis/push.sh | ||
&& ./.travis/push.sh | ||
- chmod +x .travis/forcepush.sh && ./.travis/forcepush.sh | ||
cache: | ||
directories: | ||
- node_modules | ||
- node_modules | ||
node_js: | ||
- lts/* | ||
script: | ||
- npm run linter | ||
- npm run extractor | ||
- npm run builder | ||
after_success: | ||
- chmod +x .travis/push.sh | ||
- .travis/push.sh |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,43 @@ | ||
### Snippet name | ||
|
||
Brief description | ||
|
||
#### HTML | ||
|
||
```html | ||
|
||
``` | ||
|
||
#### CSS | ||
|
||
```css | ||
``` | ||
|
||
#### Demo | ||
|
||
<!-- Leave this blank, the build script will generate the demo for you. --> | ||
|
||
#### Explanation | ||
|
||
<!-- Use a step-by-step (ordered) list if possible. Keep it concise. --> | ||
|
||
#### Browser support | ||
|
||
<!-- Use the checkmark or the warning emoji, see the existing snippets. --> | ||
|
||
<span class="snippet__support-note">⚠️ Caveat?</span> | ||
|
||
<!-- Whenever possible, link a `caniuse` feature which allows the browser support percentage to be displayed. --> | ||
|
||
- https://caniuse.com/#feat=some-feature | ||
|
||
<!-- tags: (separate each by a comma) --> | ||
# Contribution guidelines | ||
|
||
**30 seconds of CSS** is a community effort, so feel free to contribute in any way you can. Every contribution helps! | ||
|
||
Here's what you can do to help: | ||
|
||
- Submit [pull requests](https://github.com/30-seconds/30-seconds-of-css/pulls) with snippets and tests that you have created (see below for guidelines). | ||
- [Open issues](https://github.com/30-seconds/30-seconds-of-css/issues/new) for things you want to see added or modified. | ||
- Be part of the discussion by helping out with [existing issues](https://github.com/30-seconds/30-seconds-of-css/issues). | ||
- Tag uncategorized snippets by adding the appropriate in the snippet's frontmatter in `tags`. | ||
- Fix typos in existing snippets, improve snippet descriptions and explanations or provide better examples. | ||
|
||
### Snippet submission and Pull request guidelines | ||
|
||
- **DO NOT MODIFY THE README.md FILE!** Make changes to individual snippet files. **Travis CI** will automatically build the `README.md` file when your pull request is merged. | ||
- **Snippet filenames** must correspond to the title of the snippet. For example, if your snippet is titled `awesomeSnippet` the filename should be `awesomeSnippet.md`. | ||
- Use `camelCase` or `kebab-case`, not `snake_case`. | ||
- Avoid capitalization of words, except if the whole word is capitalized (e.g. `URL` should be capitalized in the filename and the snippet title). | ||
- **Snippet metadata** must be included in all snippets in the form of frontmatter. | ||
- All snippets must contain a title. | ||
- All snippets must contain tags, prefixed with `tags:` and separated by commas (optional spaces in-between). | ||
- Make sure the first tag in your snippet's tags is one of the main categories, as seen in the `README.md` file or the website. | ||
- Snippet tags must include a difficulty setting (`begginer`, `intermediate` or `advanced`), preferrably at the end of the list. | ||
- **Snippet titles** should be the same as the name of the function that is present in the snippet. | ||
- All snippet titles must be prefixed with `title:` and be at the very first line of your snippet's frontmatter. | ||
- Snippet titles must be unique (although if you cannot find a better title, just add some placeholder at the end of the filename and title and we will figure it out). | ||
- Follow snippet titles with an empty line. | ||
- **Snippet descriptions** must be short and to the point. Try to explain *what* the snippet does and *how* the snippet works and what Javascript features are used. Remember to include what functions you are using and why. | ||
- Follow snippet descriptions with an empty line. | ||
- **Snippet code** must be enclosed inside ` ```html `, ` ```css ` or ` ```js ` and ` ``` `. | ||
- Remember to start your snippet's code on a new line below the opening backticks. | ||
- Please use Javascript [Semi-Standard Style](https://github.com/Flet/semistandard). | ||
- Try to keep your snippet's code short and to the point. Use modern techniques and features. Make sure to test your code before submitting. | ||
- Try to make your snippet's name unique, so that it does not conflict with existing snippets. | ||
- **Snippet explanations** should be written as lists of points, describing the implemented functionality. | ||
- Use unordered lists if you have a few points, otherwise use an ordered list. | ||
- If you have JavaScript functionality in your snippet, it might be worthwhile separating the explanation with it, by adding a new list or a horizontal line break (`---`). | ||
- **Snippet browser support** should be specified as a list of links to https://www.caniuse.com/ features. | ||
- Use the `#` next to the feature that you want in the website to get a link to it. | ||
- Snippets should be short. If your snippet is long, you can still submit it, and we can help you shorten it or figure out ways to improve it. | ||
- Snippets *should* solve real-world problems, no matter how simple. | ||
- Snippets *should* be abstract enough to be applied to different scenarios. | ||
- You can start creating a new snippet, by using the [snippet template](snippet-template.md) to format your snippets. |
Oops, something went wrong.