mirror of
https://github.com/papercss/papercss
synced 2024-06-19 22:25:10 +02:00
initial Hugo conversion
This commit is contained in:
parent
0e600e04e9
commit
d13388ccbc
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -3,3 +3,4 @@ npm-debug.log
|
||||||
/dist
|
/dist
|
||||||
/tests/node_modules
|
/tests/node_modules
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
/public
|
||||||
|
|
5
documentation/archetypes/default.md
Normal file
5
documentation/archetypes/default.md
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
title: "{{ replace .TranslationBaseName "-" " " | title }}"
|
||||||
|
date: {{ .Date }}
|
||||||
|
draft: true
|
||||||
|
---
|
19
documentation/config.toml
Normal file
19
documentation/config.toml
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
baseURL = "https://getpapercss.com"
|
||||||
|
title = "PaperCSS"
|
||||||
|
|
||||||
|
# Directories
|
||||||
|
publishDir = "../public"
|
||||||
|
|
||||||
|
# Syntax Highlighting ( https://gohugo.io/content-management/syntax-highlighting/ )
|
||||||
|
pygmentsCodefences = true
|
||||||
|
|
||||||
|
[params.info]
|
||||||
|
description = "the less formal CSS framework"
|
||||||
|
title404 = "Nothing's here!"
|
||||||
|
|
||||||
|
[params.seo]
|
||||||
|
# Title Separator: - – — · • * ⋆ | ~ « » < >
|
||||||
|
titleSeparator = "•"
|
||||||
|
|
||||||
|
[blackfriday]
|
||||||
|
hrefTargetBlank = true
|
69
documentation/content/_index.md
Normal file
69
documentation/content/_index.md
Normal file
|
@ -0,0 +1,69 @@
|
||||||
|
---
|
||||||
|
title: Get PaperCSS
|
||||||
|
menu: main
|
||||||
|
weight: -270
|
||||||
|
---
|
||||||
|
|
||||||
|
#### Download
|
||||||
|
|
||||||
|
`Download` the latest version (1.1.0) using either of the links below. Or
|
||||||
|
download an older release via Github.
|
||||||
|
|
||||||
|
<div class="row flex-spaces text-center">
|
||||||
|
<a class="paper-btn margin" href="https://github.com/rhyneav/papercss/releases/download/v1.1.0/paper.css">CSS File</a>
|
||||||
|
<a class="paper-btn margin" href="https://github.com/rhyneav/papercss/releases/download/v1.1.0/paper.min.css">Minified CSS File</a>
|
||||||
|
<a class="paper-btn margin" href="https://github.com/rhyneav/papercss/releases">Github Releases</a>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
#### NPM
|
||||||
|
|
||||||
|
PaperCSS is now available on NPM as of version 1.1.0. Install with <code>npm
|
||||||
|
install papercss --save</code> and find the CSS in:
|
||||||
|
|
||||||
|
* node_modules/papercss/dist/paper.css
|
||||||
|
* node_modules/papercss/dist/paper.min.css
|
||||||
|
|
||||||
|
#### CDN
|
||||||
|
|
||||||
|
Don't want to download it? That's cool. You can just link to PaperCSS via
|
||||||
|
[unpkg's CDN](https://unpkg.com/#/). You can use either:
|
||||||
|
|
||||||
|
* [https://unpkg.com/papercss@1.1.0/dist/paper.css](https://unpkg.com/papercss@1.1.0/dist/paper.css)
|
||||||
|
* [https://unpkg.com/papercss@1.1.0/dist/paper.min.css](https://unpkg.com/papercss@1.1.0/dist/paper.min.css)
|
||||||
|
|
||||||
|
Here's a quck snippet to get started with PaperCSS:
|
||||||
|
|
||||||
|
```html
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
||||||
|
<link rel="stylesheet" href="https://unpkg.com/papercss@1.1.0/dist/paper.min.css">
|
||||||
|
<title>Document</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class="paper container">
|
||||||
|
<h1>Some Fresh Title</h1>
|
||||||
|
<p>This is where some content would go.</p>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
```
|
||||||
|
|
||||||
|
#### Build it Yourself
|
||||||
|
|
||||||
|
If you'd rather customize things, you can build the CSS yourself via the git
|
||||||
|
repo
|
||||||
|
|
||||||
|
```sh
|
||||||
|
git clone [repo url]
|
||||||
|
npm install
|
||||||
|
npm run build
|
||||||
|
```
|
||||||
|
|
||||||
|
Grab the CSS out of the /dist folder created
|
||||||
|
|
||||||
|
You can also go into src/colors.less before building to change around the colors
|
||||||
|
of your new CSS.
|
24
documentation/content/about.md
Normal file
24
documentation/content/about.md
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
---
|
||||||
|
title: About
|
||||||
|
slug: about
|
||||||
|
menu: main
|
||||||
|
weight: -90
|
||||||
|
---
|
||||||
|
|
||||||
|
I got tired of mODerN STylEs and clean pages on the internet. I also wanted to
|
||||||
|
learn more about Flexbox and Less. So I made PaperCSS to solve these two
|
||||||
|
challenges of mine :)
|
||||||
|
|
||||||
|
The goal of PaperCSS is to be as minimal as possible when adding classes. For
|
||||||
|
example, a button should just look like a paper button. There shouldn't be a
|
||||||
|
need to add a class such as `paper-button`. Because of this, adding PaperCSS to
|
||||||
|
a markdown generated page should instantly paper-ize it.
|
||||||
|
|
||||||
|
While I'm proud of how it's turned out so far, I think there's a lot that can
|
||||||
|
still be done to make it better. Such things as refactoring, adding more utility
|
||||||
|
classes and more border types (like dashed/dotted) could really polish off this
|
||||||
|
framework. That's why it's open sourced and available for pull requests!
|
||||||
|
|
||||||
|
If you are new to Git or Less, this would be a great project to get your feet
|
||||||
|
wet with. I'd be happy to help walk you through the pull request process. Check
|
||||||
|
out the Git repo for more info!
|
10
documentation/content/docs/_index.md
Normal file
10
documentation/content/docs/_index.md
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
---
|
||||||
|
title: Docs
|
||||||
|
menu: main
|
||||||
|
weight: -240
|
||||||
|
---
|
||||||
|
|
||||||
|
* [Components](/docs/components)
|
||||||
|
* [Content](/docs/content)
|
||||||
|
* [Layout](/docs/layout)
|
||||||
|
* [Utilities](/docs/utilities)
|
3
documentation/content/docs/components/_index.md
Normal file
3
documentation/content/docs/components/_index.md
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
---
|
||||||
|
title: Components
|
||||||
|
---
|
32
documentation/content/docs/components/alerts.md
Normal file
32
documentation/content/docs/components/alerts.md
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
---
|
||||||
|
title: Alerts
|
||||||
|
---
|
||||||
|
<div class="row flex-spaces">
|
||||||
|
<div class="alert alert-primary">
|
||||||
|
Alert-primary
|
||||||
|
</div>
|
||||||
|
<div class="alert alert-secondary">
|
||||||
|
Alert-secondary
|
||||||
|
</div>
|
||||||
|
<div class="alert alert-success">
|
||||||
|
Alert-success
|
||||||
|
</div>
|
||||||
|
<div class="alert alert-warning">
|
||||||
|
Alert-warning
|
||||||
|
</div>
|
||||||
|
<div class="alert alert-danger">
|
||||||
|
Alert-danger
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
#### Code:
|
||||||
|
|
||||||
|
```html
|
||||||
|
<div class="row flex-spaces">
|
||||||
|
<div class="alert alert-primary">Alert-primary</div>
|
||||||
|
<div class="alert alert-secondary">Alert-secondary</div>
|
||||||
|
<div class="alert alert-success">Alert-success</div>
|
||||||
|
<div class="alert alert-warning">Alert-warning</div>
|
||||||
|
<div class="alert alert-danger">Alert-danger</div>
|
||||||
|
</div>
|
||||||
|
```
|
29
documentation/content/docs/components/badges.md
Normal file
29
documentation/content/docs/components/badges.md
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
---
|
||||||
|
title: Badges
|
||||||
|
---
|
||||||
|
### Default
|
||||||
|
|
||||||
|
You can customize badges colors with secondary, success, warning, danger classes.
|
||||||
|
|
||||||
|
# Example h1 heading <span class="badge">123</span>
|
||||||
|
|
||||||
|
## Example h2 heading <span class="badge secondary">123</span>
|
||||||
|
|
||||||
|
### Example h3 heading <span class="badge success">123</span>
|
||||||
|
|
||||||
|
#### Example h4 heading <span class="badge warning">123</span>
|
||||||
|
|
||||||
|
##### Example h5 heading <span class="badge danger">123</span>
|
||||||
|
|
||||||
|
###### Example h6 heading <span class="badge">123</span>
|
||||||
|
|
||||||
|
#### Code:
|
||||||
|
|
||||||
|
```html
|
||||||
|
<h1>Example h1 heading <span class="badge">123</span></h1>
|
||||||
|
<h2>Example h2 heading <span class="badge secondary">123</span></h2>
|
||||||
|
<h3>Example h3 heading <span class="badge success">123</span></h3>
|
||||||
|
<h4>Example h4 heading <span class="badge warning">123</span></h4>
|
||||||
|
<h5>Example h5 heading <span class="badge danger">123</span></h5>
|
||||||
|
<h6>Example h6 heading <span class="badge">123</span></h6>
|
||||||
|
```
|
36
documentation/content/docs/components/buttons.md
Normal file
36
documentation/content/docs/components/buttons.md
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
---
|
||||||
|
title: Buttons
|
||||||
|
---
|
||||||
|
|
||||||
|
Insprired by [Imprefect Buttons](https://codepen.io/tmrDevelops/pen/VeRvKX)
|
||||||
|
|
||||||
|
<button class="btn-large">Large</button>
|
||||||
|
<button>Default</button>
|
||||||
|
<button class="btn-small">Small</button>
|
||||||
|
<a href="#" class="paper-btn">Link</a>
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-6 col">
|
||||||
|
<button class="btn-block">Block level</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<button class="disabled">Disabled</button>
|
||||||
|
<button disabled>Disabled</button>
|
||||||
|
|
||||||
|
#### Code:
|
||||||
|
|
||||||
|
```html
|
||||||
|
<p>Insprired by <a href="https://codepen.io/tmrDevelops/pen/VeRvKX" target="_blank">Imprefect Buttons</a></p>
|
||||||
|
<button class="btn-large">Large</button>
|
||||||
|
<button>Default</button>
|
||||||
|
<button class="btn-small">Small</button>
|
||||||
|
<a href="#" class="paper-btn">Link</a>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-6 col">
|
||||||
|
<button class="btn-block">Block level</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<button class="disabled">Disabled</button>
|
||||||
|
<button disabled>Disabled</button>
|
||||||
|
```
|
119
documentation/content/docs/components/cards.md
Normal file
119
documentation/content/docs/components/cards.md
Normal file
|
@ -0,0 +1,119 @@
|
||||||
|
---
|
||||||
|
title: Cards
|
||||||
|
---
|
||||||
|
### Full card example
|
||||||
|
|
||||||
|
It is possible to not put all the sub-classes like card-title, card-subtitle, card-text, ... But instead the framework will recognize the element properly if it's a h4, h5, p, ... And you need to put all this content on a div with card class.
|
||||||
|
|
||||||
|
<div class="row flex-center">
|
||||||
|
<div class="card" style="width: 20rem;">
|
||||||
|
<img class="image-top" src="https://picsum.photos/768" alt="Card example image">
|
||||||
|
<div class="card-body">
|
||||||
|
<h4 class="card-title">My awesome Paper card!</h4>
|
||||||
|
<h5 class="card-subtitle">Nice looking subtitle.</h5>
|
||||||
|
<p class="card-text">Notice that the card width in this example have been set to 20rem, otherwise it will try to fill the current container/row where the card is.</p>
|
||||||
|
<button>Let me go here!</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
#### Code:
|
||||||
|
|
||||||
|
```html
|
||||||
|
<div class="card" style="width: 20rem;">
|
||||||
|
<img src="https://picsum.photos/768" alt="Card example image">
|
||||||
|
|
||||||
|
<div class="card-body">
|
||||||
|
<h4 class="card-title">My awesome Paper card!</h4>
|
||||||
|
<h5 class="card-subtitle">Nice looking subtitle.</h5>
|
||||||
|
<p class="card-text">Notice that the card width in this example have been set to 20rem, otherwise it will try to fill the current container/row where the card is.</p>
|
||||||
|
<button>Let me go here!</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
```
|
||||||
|
|
||||||
|
### Card title, text, links
|
||||||
|
|
||||||
|
<div class="row flex-center">
|
||||||
|
<div class="card" style="width: 20rem;">
|
||||||
|
<div class="card-body">
|
||||||
|
<h4 class="card-title">My awesome Paper card!</h4>
|
||||||
|
<h5 class="card-subtitle">Nice looking subtitle.</h5>
|
||||||
|
<p class="card-text">This is another example of a card without image. Cards are also meant to be used without images, but with text/links/buttons.</p>
|
||||||
|
<a class="card-link" href="#">First link</a>
|
||||||
|
<a class="card-link" href="#">Second link</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
#### Code:
|
||||||
|
|
||||||
|
```html
|
||||||
|
<div class="card" style="width: 20rem;">
|
||||||
|
<div class="card-body">
|
||||||
|
<h4 class="card-title">My awesome Paper card!</h4>
|
||||||
|
<h5 class="card-subtitle">Nice looking subtitle.</h5>
|
||||||
|
<p class="card-text">This is another example of a card without image. Cards are also meant to be used without images, but with text/links/buttons.</p>
|
||||||
|
<a class="card-link" href="#">First link</a>
|
||||||
|
<a class="card-link" href="#">Second link</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
```
|
||||||
|
|
||||||
|
### Image on top or bottom
|
||||||
|
|
||||||
|
<div class="row flex-center">
|
||||||
|
<div class="card" style="width: 20rem;">
|
||||||
|
<div class="card-body">
|
||||||
|
<h4 class="card-title">My awesome Paper card!</h4>
|
||||||
|
<h5 class="card-subtitle">Nice looking subtitle.</h5>
|
||||||
|
<p class="card-text">You can also place image on the bottom of the card.</p>
|
||||||
|
<button>Let me go here!</button>
|
||||||
|
</div>
|
||||||
|
<img class="image-bottom" src="https://unsplash.it/550/250" alt="Card example image">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
#### Code:
|
||||||
|
|
||||||
|
```html
|
||||||
|
<div class="card" style="width: 20rem;">
|
||||||
|
<div class="card-body">
|
||||||
|
<h4 class="card-title">My awesome Paper card!</h4>
|
||||||
|
<h5 class="card-subtitle">Nice looking subtitle.</h5>
|
||||||
|
<p class="card-text">You can also place image on the bottom of the card.</p>
|
||||||
|
<button>Let me go here!</button>
|
||||||
|
</div>
|
||||||
|
<img class="image-bottom" src="https://unsplash.it/550/250" alt="Card example image">
|
||||||
|
</div>
|
||||||
|
```
|
||||||
|
|
||||||
|
### Header and footer
|
||||||
|
|
||||||
|
<div class="row flex-center">
|
||||||
|
<div class="card" style="width: 20rem;">
|
||||||
|
<div class="card-header">Header</div>
|
||||||
|
<div class="card-body">
|
||||||
|
<h4 class="card-title">My awesome Paper card!</h4>
|
||||||
|
<h5 class="card-subtitle">Nice looking subtitle.</h5>
|
||||||
|
<p class="card-text">You can also place image on the bottom of the card.</p>
|
||||||
|
<button>Let me go here!</button>
|
||||||
|
</div>
|
||||||
|
<div class="card-footer">Footer</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
#### Code:
|
||||||
|
|
||||||
|
```html
|
||||||
|
<div class="card" style="width: 20rem;">
|
||||||
|
<div class="card-header">Header</div>
|
||||||
|
<div class="card-body">
|
||||||
|
<h4 class="card-title">My awesome Paper card!</h4>
|
||||||
|
<h5 class="card-subtitle">Nice looking subtitle.</h5>
|
||||||
|
<p class="card-text">You can also place image on the bottom of the card.</p>
|
||||||
|
<button>Let me go here!</button>
|
||||||
|
</div>
|
||||||
|
<div class="card-footer">Footer</div>
|
||||||
|
</div>
|
||||||
|
```
|
110
documentation/content/docs/components/forms.md
Normal file
110
documentation/content/docs/components/forms.md
Normal file
|
@ -0,0 +1,110 @@
|
||||||
|
---
|
||||||
|
title: Forms
|
||||||
|
---
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="paperInputs1">Input</label>
|
||||||
|
<input type="text" placeholder="Nice input" id="paperInputs1">
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col sm-4">
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="paperInputs2">Block Level</label>
|
||||||
|
<input class="input-block" type="text" id="paperInputs2">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col sm-8">
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="paperInputs3">Block Level</label>
|
||||||
|
<input class="input-block" type="text" id="paperInputs3">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="paperInputs4">Disabled</label>
|
||||||
|
<input type="text" placeholder="Disabled" id="paperInputs4" disabled>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="paperSelects1">Select</label>
|
||||||
|
<select id="paperSelects1">
|
||||||
|
<option value="1">Option 1</option>
|
||||||
|
<option value="2">Option 2</option>
|
||||||
|
<option value="3">Option 3</option>
|
||||||
|
<select>
|
||||||
|
</div>
|
||||||
|
<fieldset class="form-group">
|
||||||
|
<legend>Some Radio Buttons</legend>
|
||||||
|
<label for="paperRadios1" class="paper-radio">
|
||||||
|
<input type="radio" name="paperRadios" id="paperRadios1" value="option 1">
|
||||||
|
<span>This is the first option
|
||||||
|
<span>
|
||||||
|
</label>
|
||||||
|
<label for="paperRadios2" class="paper-radio">
|
||||||
|
<input type="radio" name="paperRadios" id="paperRadios2" value="option 2">
|
||||||
|
<span>This is the second option
|
||||||
|
<span>
|
||||||
|
</label>
|
||||||
|
</fieldset>
|
||||||
|
<fieldset class="form-group">
|
||||||
|
<legend>Some Check Boxes</legend>
|
||||||
|
<label for="paperChecks1" class="paper-check">
|
||||||
|
<input type="checkbox" name="paperChecks" id="paperChecks1" value="option 1">
|
||||||
|
<span>This is the first check</span>
|
||||||
|
</label>
|
||||||
|
<label for="paperChecks2" class="paper-check">
|
||||||
|
<input type="checkbox" name="paperChecks" id="paperChecks2" value="option 2">
|
||||||
|
<span>This is the second check</span>
|
||||||
|
</label>
|
||||||
|
</fieldset>
|
||||||
|
|
||||||
|
#### Code:
|
||||||
|
|
||||||
|
```html
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="paperInputs1">Input</label>
|
||||||
|
<input type="text" placeholder="Nice input" id="paperInputs1">
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col sm-4">
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="paperInputs2">Block Level</label>
|
||||||
|
<input class="input-block" type="text" id="paperInputs2">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col sm-8">
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="paperInputs3">Block Level</label>
|
||||||
|
<input class="input-block" type="text" id="paperInputs3">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="paperInputs4">Disabled</label>
|
||||||
|
<input type="text" placeholder="Disabled" id="paperInputs4" disabled>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="paperSelects1">Select</label>
|
||||||
|
<select id="paperSelects1">
|
||||||
|
<option value="1">Option 1</option>
|
||||||
|
<option value="2">Option 2</option>
|
||||||
|
<option value="3">Option 3</option>
|
||||||
|
<select>
|
||||||
|
</div>
|
||||||
|
<fieldset class="form-group">
|
||||||
|
<legend>Some Radio Buttons</legend>
|
||||||
|
<label for="paperRadios1" class="paper-radio">
|
||||||
|
<input type="radio" name="paperRadios" id="paperRadios1" value="option 1"> <span>This is the first option<span>
|
||||||
|
</label>
|
||||||
|
<label for="paperRadios2" class="paper-radio">
|
||||||
|
<input type="radio" name="paperRadios" id="paperRadios2" value="option 2"> <span>This is the second option<span>
|
||||||
|
</label>
|
||||||
|
</fieldset>
|
||||||
|
<fieldset class="form-group">
|
||||||
|
<legend>Some Check Boxes</legend>
|
||||||
|
<label for="paperChecks1" class="paper-check">
|
||||||
|
<input type="checkbox" name="paperChecks" id="paperChecks1" value="option 1"> <span>This is the first check</span>
|
||||||
|
</label>
|
||||||
|
<label for="paperChecks2" class="paper-check">
|
||||||
|
<input type="checkbox" name="paperChecks" id="paperChecks2" value="option 2"> <span>This is the second check</span>
|
||||||
|
</label>
|
||||||
|
</fieldset>
|
||||||
|
```
|
46
documentation/content/docs/components/popovers.md
Normal file
46
documentation/content/docs/components/popovers.md
Normal file
|
@ -0,0 +1,46 @@
|
||||||
|
---
|
||||||
|
title: Popovers
|
||||||
|
---
|
||||||
|
### Basic usage
|
||||||
|
|
||||||
|
You can add popovers, also called tooltips, on your elements. popover attribute is the popover text content, popover-position attribute can be: top, left, right, bottom.
|
||||||
|
|
||||||
|
<div class="row flex-spaces">
|
||||||
|
<div class="sm-3 col">
|
||||||
|
<p popover="Popover on left" popover-position="left">Popover left position</p>
|
||||||
|
</div>
|
||||||
|
<div class="sm-3 col">
|
||||||
|
<p popover="Popover on top" popover-position="top">Popover top position</p>
|
||||||
|
</div>
|
||||||
|
<div class="sm-3 col">
|
||||||
|
<p popover="Popover on bottom" popover-position="bottom">Popover bottom position</p>
|
||||||
|
</div>
|
||||||
|
<div class="sm-3 col">
|
||||||
|
<p popover="Popover on right" popover-position="right">Popover right position</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
#### Code:
|
||||||
|
|
||||||
|
```html
|
||||||
|
<p popover="Popover on left" popover-position="left">Popover left position</p>
|
||||||
|
<p popover="Popover on top" popover-position="top">Popover top position</p>
|
||||||
|
<p popover="Popover on bottom" popover-position="bottom">Popover bottom position</p>
|
||||||
|
<p popover="Popover on right" popover-position="right">Popover right position</p>
|
||||||
|
```
|
||||||
|
|
||||||
|
But you can also popover on pretty much any element you want, it can be on a button, on a table cell, ...
|
||||||
|
|
||||||
|
<div class="row flex-center">
|
||||||
|
<div class="sm-6 col">
|
||||||
|
<button popover="Popover on top" popover-position="top">Popover on top and on a button!</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
#### Code:
|
||||||
|
|
||||||
|
```html
|
||||||
|
<button popover="Popover on top" popover-position="top">Popover on top and on a button!</button>
|
||||||
|
```
|
||||||
|
|
||||||
|
|
3
documentation/content/docs/content/_index.md
Normal file
3
documentation/content/docs/content/_index.md
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
---
|
||||||
|
title: Content
|
||||||
|
---
|
27
documentation/content/docs/content/code.md
Normal file
27
documentation/content/docs/content/code.md
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
---
|
||||||
|
title: Code
|
||||||
|
---
|
||||||
|
Let's make some pretty `<code>`
|
||||||
|
|
||||||
|
Print files backwards using <kbd>tac</kbd>
|
||||||
|
|
||||||
|
To stop a process, hit <kbd>ctrl + c</kbd>
|
||||||
|
|
||||||
|
<pre>
|
||||||
|
function add(x, y) {
|
||||||
|
return x + y;
|
||||||
|
}
|
||||||
|
</pre>
|
||||||
|
|
||||||
|
#### Code:
|
||||||
|
|
||||||
|
```html
|
||||||
|
<p>Let's make some pretty <code><code></code></p>
|
||||||
|
<p>Print files backwards using <kbd>tac</kbd></p>
|
||||||
|
<p>To stop a process, hit <kbd>ctrl + c</kbd></p>
|
||||||
|
<pre>
|
||||||
|
function add(x, y) {
|
||||||
|
return x + y;
|
||||||
|
}
|
||||||
|
</pre>
|
||||||
|
```
|
44
documentation/content/docs/content/images.md
Normal file
44
documentation/content/docs/content/images.md
Normal file
|
@ -0,0 +1,44 @@
|
||||||
|
---
|
||||||
|
title: Images
|
||||||
|
---
|
||||||
|
### Responsive
|
||||||
|
|
||||||
|
Images by default are responsive
|
||||||
|
|
||||||
|
<img src="https://unsplash.it/900" alt="Random Unsplash">
|
||||||
|
|
||||||
|
#### Code:
|
||||||
|
|
||||||
|
```html
|
||||||
|
<img src="https://unsplash.it/900" alt="Random Unsplash">
|
||||||
|
```
|
||||||
|
|
||||||
|
### Float
|
||||||
|
|
||||||
|
You can also float responsive images to fit neatly with your text
|
||||||
|
|
||||||
|
<img src="https://unsplash.it/200" alt="Smaller Unsplash" class="float-left"> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur non elit sed lorem vulputate consectetur sed vel orci. Nunc orci metus, hendrerit viverra diam a, viverra efficitur nisi. Suspendisse ante sapien, porta vitae augue et, pulvinar posuere nibh. Suspendisse id commodo sem, vestibulum malesuada erat. Duis luctus est sit amet nisl maximus porta. Curabitur tempor nisi tincidunt ultricies rutrum. Nam finibus turpis ut nibh dignissim, in tincidunt mauris suscipit. Curabitur sollicitudin mi quis orci semper, nec egestas nibh mollis. Aenean pellentesque lectus rutrum, ultrices felis malesuada, finibus purus. Morbi eleifend pellentesque justo, quis vestibulum mi. Donec porta ipsum tellus, ac scelerisque lectus pellentesque eget. Etiam quis rutrum dui. Nulla facilisi. Donec imperdiet mattis mi nec fringilla. Donec mollis augue sed viverra placerat. Donec varius, sem sed porttitor euismod, est nunc varius tellus, eget molestie urna arcu ac turpis. Phasellus id sem elit. Vivamus pellentesque mauris vel ex laoreet varius. Vivamus non tempor libero. Nam consectetur nisi erat, ac varius elit porttitor quis. Morbi ullamcorper, tortor in sagittis tempus, justo ipsum pretium urna, ut bibendum nisl orci et eros. Quisque ut ipsum neque. Integer sapien dolor, vestibulum id maximus ac, pharetra eu augue.
|
||||||
|
<img src="https://unsplash.it/100" alt="Smallerer Unsplash" class="float-right"> Aenean mauris tellus, facilisis sed quam non, tincidunt rutrum risus. Fusce quam urna, commodo vitae nunc condimentum, efficitur commodo libero. Sed dignissim odio enim, ac pharetra dui laoreet id. Suspendisse nec accumsan erat. Integer sit amet leo arcu. Proin sagittis blandit tempor. Vivamus at egestas lectus. Mauris eros tellus, egestas ac neque eget, lacinia sagittis ante. Phasellus faucibus suscipit erat, eget malesuada neque congue non.
|
||||||
|
|
||||||
|
#### Code:
|
||||||
|
|
||||||
|
```html
|
||||||
|
<p>
|
||||||
|
<img src="https://unsplash.it/200" class="float-left">
|
||||||
|
Lorem ipsum dolor.......
|
||||||
|
<img src="https://unsplash.it/100" class="float-right">
|
||||||
|
Aenean mauris tellus......
|
||||||
|
</p>
|
||||||
|
```
|
||||||
|
|
||||||
|
### No Responsive & No Borders
|
||||||
|
|
||||||
|
If you don't like the default, you can just add the class `no-responsive` to prevent the image from being responsive. You can also remove the default border with `no-border`.
|
||||||
|
|
||||||
|
<img src="https://unsplash.it/300" alt="Not responsive Unsplash" class="no-responsive no-border">
|
||||||
|
|
||||||
|
#### Code:
|
||||||
|
|
||||||
|
```html
|
||||||
|
<img src="https://unsplash.it/300" class="no-responsive no-border">
|
||||||
|
```
|
82
documentation/content/docs/content/lists.md
Normal file
82
documentation/content/docs/content/lists.md
Normal file
|
@ -0,0 +1,82 @@
|
||||||
|
---
|
||||||
|
title: Lists
|
||||||
|
---
|
||||||
|
|
||||||
|
### Ordered Lists
|
||||||
|
|
||||||
|
<ol>
|
||||||
|
<li>Do this</li>
|
||||||
|
<li>Then this</li>
|
||||||
|
<li>Finally this</li>
|
||||||
|
<li>Then we'll go one deeper</li>
|
||||||
|
<ol>
|
||||||
|
<li>Dillon</li>
|
||||||
|
<li>Francis</li>
|
||||||
|
<ol>
|
||||||
|
<li>What if we went...</li>
|
||||||
|
<li>One more deeper?</li>
|
||||||
|
<ol>
|
||||||
|
<li>DJ</li>
|
||||||
|
<li>Hanzel</li>
|
||||||
|
<ol>
|
||||||
|
<li>Five levels should be enough</li>
|
||||||
|
<li>Right?</li>
|
||||||
|
</ol>
|
||||||
|
</ol>
|
||||||
|
</ol>
|
||||||
|
</ol>
|
||||||
|
<li>But don't forget this</li>
|
||||||
|
</ol>
|
||||||
|
|
||||||
|
### Unordered Lists
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
<li>Let's try this</li>
|
||||||
|
<li>Let's try this again</li>
|
||||||
|
<ul>
|
||||||
|
<li>And now we are nested</li>
|
||||||
|
<li>Pretty cool?</li>
|
||||||
|
<ul>
|
||||||
|
<li>The list items are just text</li>
|
||||||
|
<li>From this font</li>
|
||||||
|
<ul>
|
||||||
|
<li>We'll keep going</li>
|
||||||
|
<li>Until we hit</li>
|
||||||
|
<ul>
|
||||||
|
<li>LEVEL 5</li>
|
||||||
|
</ul>
|
||||||
|
</ul>
|
||||||
|
</ul>
|
||||||
|
</ul>
|
||||||
|
<li>And now we're are the top!</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
#### Codes:
|
||||||
|
|
||||||
|
```html
|
||||||
|
<ol>
|
||||||
|
<li>Do this</li>
|
||||||
|
<li>Then this</li>
|
||||||
|
<li>Finally this</li>
|
||||||
|
<li>Then we'll go one deeper</li>
|
||||||
|
<ol>
|
||||||
|
<li>Dillon</li>
|
||||||
|
<li>Francis</li>
|
||||||
|
<ol>
|
||||||
|
<li>What if we went...</li>
|
||||||
|
<li>One more deeper?</li>
|
||||||
|
<ol>
|
||||||
|
<li>DJ</li>
|
||||||
|
<li>Hanzel</li>
|
||||||
|
<ol>
|
||||||
|
<li>Five levels should be enough</li>
|
||||||
|
<li>Right?</li>
|
||||||
|
</ol>
|
||||||
|
</ol>
|
||||||
|
</ol>
|
||||||
|
</ol>
|
||||||
|
<li>But don't forget this</li>
|
||||||
|
</ol>
|
||||||
|
|
||||||
|
<!-- Replace ol with ul for unordered lists. Go up to 5 levels deep! -->
|
||||||
|
```
|
139
documentation/content/docs/content/tables.md
Normal file
139
documentation/content/docs/content/tables.md
Normal file
|
@ -0,0 +1,139 @@
|
||||||
|
---
|
||||||
|
title: Tables
|
||||||
|
---
|
||||||
|
### Regular
|
||||||
|
|
||||||
|
<table>
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th>#</th>
|
||||||
|
<th>Name</th>
|
||||||
|
<th>Position</th>
|
||||||
|
<th>Location</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<td>1</td>
|
||||||
|
<td>Bob Dylan</td>
|
||||||
|
<td>Musician</td>
|
||||||
|
<td>California, USA</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>2</td>
|
||||||
|
<td>Eric Clapton</td>
|
||||||
|
<td>Musician</td>
|
||||||
|
<td>Ohio, USA</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>3</td>
|
||||||
|
<td>Daniel Kahneman</td>
|
||||||
|
<td>Psychologist</td>
|
||||||
|
<td>California, USA</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
### Hover
|
||||||
|
|
||||||
|
<table class="table-hover">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th>#</th>
|
||||||
|
<th>Name</th>
|
||||||
|
<th>Position</th>
|
||||||
|
<th>Location</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<td>1</td>
|
||||||
|
<td>Bob Dylan</td>
|
||||||
|
<td>Musician</td>
|
||||||
|
<td>California, USA</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>2</td>
|
||||||
|
<td>Eric Clapton</td>
|
||||||
|
<td>Musician</td>
|
||||||
|
<td>Ohio, USA</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>3</td>
|
||||||
|
<td>Daniel Kahneman</td>
|
||||||
|
<td>Psychologist</td>
|
||||||
|
<td>California, USA</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
### Alternating
|
||||||
|
|
||||||
|
<table class="table-alternating">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th>#</th>
|
||||||
|
<th>Name</th>
|
||||||
|
<th>Position</th>
|
||||||
|
<th>Location</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<td>1</td>
|
||||||
|
<td>Bob Dylan</td>
|
||||||
|
<td>Musician</td>
|
||||||
|
<td>California, USA</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>2</td>
|
||||||
|
<td>Eric Clapton</td>
|
||||||
|
<td>Musician</td>
|
||||||
|
<td>Ohio, USA</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>3</td>
|
||||||
|
<td>Daniel Kahneman</td>
|
||||||
|
<td>Psychologist</td>
|
||||||
|
<td>California, USA</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
#### Code:
|
||||||
|
```html
|
||||||
|
<table>
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th>#</th>
|
||||||
|
<th>Name</th>
|
||||||
|
<th>Position</th>
|
||||||
|
<th>Location</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<td>1</td>
|
||||||
|
<td>Bob Dylan</td>
|
||||||
|
<td>Musician</td>
|
||||||
|
<td>California, USA</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>2</td>
|
||||||
|
<td>Eric Clapton</td>
|
||||||
|
<td>Musician</td>
|
||||||
|
<td>Ohio, USA</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>3</td>
|
||||||
|
<td>Daniel Kahneman</td>
|
||||||
|
<td>Psychologist</td>
|
||||||
|
<td>California, USA</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<!-- Add table-hover or table-alternating to change the style of the table -->
|
||||||
|
<table class="table-hover">
|
||||||
|
<table class="table-alternating">
|
||||||
|
```
|
36
documentation/content/docs/content/typography.md
Normal file
36
documentation/content/docs/content/typography.md
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
---
|
||||||
|
title: Typography
|
||||||
|
slug: typography
|
||||||
|
---
|
||||||
|
|
||||||
|
How pretty is the text?
|
||||||
|
|
||||||
|
# Heading 1
|
||||||
|
|
||||||
|
## Heading 2
|
||||||
|
|
||||||
|
### Heading 3
|
||||||
|
|
||||||
|
#### Heading 4
|
||||||
|
|
||||||
|
##### Heading 5
|
||||||
|
|
||||||
|
###### Heading 6
|
||||||
|
|
||||||
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean ultrices, eros
|
||||||
|
non elementum accumsan, massa nulla aliquam libero, ut posuere justo nibh ac
|
||||||
|
ipsum. Aliquam blandit commodo justo at laoreet. Suspendisse potenti. Duis magna
|
||||||
|
neque, venenatis non libero a, tincidunt convallis diam. Donec vel fermentum
|
||||||
|
ante. Quisque diam nisl, vestibulum imperdiet sapien nec, interdum fringilla
|
||||||
|
lorem. Morbi sed arcu facilisis, maximus justo vel, porttitor nisl. Nam suscipit
|
||||||
|
metus facilisis iaculis vestibulum.
|
||||||
|
|
||||||
|
```html
|
||||||
|
<h1>Heading 1</h1>
|
||||||
|
<h2>Heading 2</h2>
|
||||||
|
<h3>Heading 3</h3>
|
||||||
|
<h4>Heading 4</h4>
|
||||||
|
<h5>Heading 5</h5>
|
||||||
|
<h6>Heading 6</h6>
|
||||||
|
<p>Lorem ipsum dolor....</p>
|
||||||
|
```
|
3
documentation/content/docs/layout/_index.md
Normal file
3
documentation/content/docs/layout/_index.md
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
---
|
||||||
|
title: Layout
|
||||||
|
---
|
149
documentation/content/docs/layout/flexbox.md
Normal file
149
documentation/content/docs/layout/flexbox.md
Normal file
|
@ -0,0 +1,149 @@
|
||||||
|
---
|
||||||
|
title: Flexbox
|
||||||
|
slug: flexbox
|
||||||
|
---
|
||||||
|
|
||||||
|
### Flexgrid
|
||||||
|
|
||||||
|
The flexgrid is a grid system that supports up to 12 columns per row. Because it
|
||||||
|
uses flexbox (rather than just %widths), we also get the benefit of the fun
|
||||||
|
parts of flexbox like alignment in more complex ways than normal.
|
||||||
|
|
||||||
|
<div class="demo">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-4 col">col-4 col</div>
|
||||||
|
<div class="col-4 col">col-4 col</div>
|
||||||
|
<div class="col-4 col">col-4 col</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-3 col">col-3 col</div>
|
||||||
|
<div class="col-9 col">col-9 col</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="sm-6 md-8 lg-10 col">sm-6 md-8 lg-10 col</div>
|
||||||
|
<div class="sm-6 md-4 lg-2 col">sm-6 md-4 lg-2 col</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="sm-5 col">sm-5 col</div>
|
||||||
|
<div class="col-fill col">col-fill col</div>
|
||||||
|
<div class="col-fill col">col-fill col</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="sm-4 col">Aligned</div>
|
||||||
|
<div class="sm-4 col">Left (default)</div>
|
||||||
|
</div>
|
||||||
|
<div class="row flex-right">
|
||||||
|
<div class="sm-4 col">Aligned</div>
|
||||||
|
<div class="sm-4 col">Right (flex-right)</div>
|
||||||
|
</div>
|
||||||
|
<div class="row flex-center">
|
||||||
|
<div class="sm-4 col">Aligned</div>
|
||||||
|
<div class="sm-4 col">Center (flex-center)</div>
|
||||||
|
</div>
|
||||||
|
<div class="row flex-edges">
|
||||||
|
<div class="sm-4 col">Aligned</div>
|
||||||
|
<div class="sm-4 col">to edges (flex-edges)</div>
|
||||||
|
</div>
|
||||||
|
<div class="row flex-spaces">
|
||||||
|
<div class="sm-4 col">Aligned</div>
|
||||||
|
<div class="sm-4 col">to be evenly spaced (flex-spaces)</div>
|
||||||
|
</div>
|
||||||
|
<div class="row flex-top">
|
||||||
|
<div class="sm-4 col">Aligned top</div>
|
||||||
|
<div class="sm-4 col">Aligned top</div>
|
||||||
|
<div class="sm-4 col">
|
||||||
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras lorem lectus, lobortis a nibh non, luctus luctus erat posuere. Curabitur ac turpis aliquam, malesuada elit suscipit, blandit dolor.
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row flex-middle">
|
||||||
|
<div class="sm-4 col">Aligned middle</div>
|
||||||
|
<div class="sm-4 col">Aligned middle</div>
|
||||||
|
<div class="sm-4 col">
|
||||||
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras lorem lectus, lobortis a nibh non, luctus luctus erat posuere. Curabitur ac turpis aliquam, malesuada elit suscipit, blandit dolor.
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row flex-bottom">
|
||||||
|
<div class="sm-4 col">Aligned bottom</div>
|
||||||
|
<div class="sm-4 col">Aligned bottom</div>
|
||||||
|
<div class="sm-4 col">
|
||||||
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras lorem lectus, lobortis a nibh non, luctus luctus erat posuere. Curabitur ac turpis aliquam, malesuada elit suscipit, blandit dolor.
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="sm-3 col align-bottom">Align bottom</div>
|
||||||
|
<div class="sm-3 col align-middle">Align middle</div>
|
||||||
|
<div class="sm-3 col align-top">Align top</div>
|
||||||
|
<div class="sm-3 col">
|
||||||
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras lorem lectus, lobortis a nibh non, luctus luctus erat posuere. Curabitur ac turpis aliquam, malesuada elit suscipit, blandit dolor.
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
#### Code:
|
||||||
|
|
||||||
|
```html
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-4 col">col-4 col</div>
|
||||||
|
<div class="col-4 col">col-4 col</div>
|
||||||
|
<div class="col-4 col">col-4 col</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-3 col">col-3 col</div>
|
||||||
|
<div class="col-9 col">col-9 col</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="sm-6 md-8 lg-10 col">sm-6 md-8 lg-10 col</div>
|
||||||
|
<div class="sm-6 md-4 lg-2 col">sm-6 md-4 lg-2 col</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="sm-5 col">sm-5 col</div>
|
||||||
|
<div class="col-fill col">col-fill col</div>
|
||||||
|
<div class="col-fill col">col-fill col</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="sm-4 col">Aligned</div>
|
||||||
|
<div class="sm-4 col">Left (default)</div>
|
||||||
|
</div>
|
||||||
|
<div class="row flex-right">
|
||||||
|
<div class="sm-4 col">Aligned</div>
|
||||||
|
<div class="sm-4 col">Right (flex-right)</div>
|
||||||
|
</div>
|
||||||
|
<div class="row flex-center">
|
||||||
|
<div class="sm-4 col">Aligned</div>
|
||||||
|
<div class="sm-4 col">Center (flex-center)</div>
|
||||||
|
</div>
|
||||||
|
<div class="row flex-edges">
|
||||||
|
<div class="sm-4 col">Aligned</div>
|
||||||
|
<div class="sm-4 col">to edges (flex-edges)</div>
|
||||||
|
</div>
|
||||||
|
<div class="row flex-spaces">
|
||||||
|
<div class="sm-4 col">Aligned</div>
|
||||||
|
<div class="sm-4 col">to be evenly spaced (flex-spaces)</div>
|
||||||
|
</div>
|
||||||
|
<div class="row flex-top">
|
||||||
|
<div class="sm-6 col">Aligned top</div>
|
||||||
|
<div class="sm-6 col">
|
||||||
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras lorem lectus, lobortis a nibh non, luctus luctus erat posuere. Curabitur ac turpis aliquam, malesuada elit suscipit, blandit dolor.
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row flex-middle">
|
||||||
|
<div class="sm-6 col">Aligned middle</div>
|
||||||
|
<div class="sm-6 col">
|
||||||
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras lorem lectus, lobortis a nibh non, luctus luctus erat posuere. Curabitur ac turpis aliquam, malesuada elit suscipit, blandit dolor.
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row flex-bottom">
|
||||||
|
<div class="sm-6 col">Aligned bottom</div>
|
||||||
|
<div class="sm-6 col">
|
||||||
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras lorem lectus, lobortis a nibh non, luctus luctus erat posuere. Curabitur ac turpis aliquam, malesuada elit suscipit, blandit dolor.
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="sm-3 col align-bottom">Align bottom</div>
|
||||||
|
<div class="sm-3 col align-middle">Align middle</div>
|
||||||
|
<div class="sm-3 col align-top">Align top</div>
|
||||||
|
<div class="sm-3 col">
|
||||||
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras lorem lectus, lobortis a nibh non, luctus luctus erat posuere. Curabitur ac turpis aliquam, malesuada elit suscipit, blandit dolor.
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
```
|
3
documentation/content/docs/utilities/_index.md
Normal file
3
documentation/content/docs/utilities/_index.md
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
---
|
||||||
|
title: Utilities
|
||||||
|
---
|
169
documentation/content/docs/utilities/borders.md
Normal file
169
documentation/content/docs/utilities/borders.md
Normal file
|
@ -0,0 +1,169 @@
|
||||||
|
---
|
||||||
|
title: Borders & Shadows
|
||||||
|
slug: borders
|
||||||
|
---
|
||||||
|
### Borders
|
||||||
|
|
||||||
|
<div class="row flex-spaces">
|
||||||
|
<div class="sm-3 col border border-primary">Default Border</div>
|
||||||
|
<div class="sm-3 col border border-2 border-primary">Border-2</div>
|
||||||
|
<div class="sm-3 col border border-3 border-primary">Border-3</div>
|
||||||
|
</div>
|
||||||
|
<div class="row flex-spaces">
|
||||||
|
<div class="sm-3 col border border-4 border-primary">Border-4</div>
|
||||||
|
<div class="sm-3 col border border-5 border-primary">Border-5</div>
|
||||||
|
<div class="sm-3 col border border-6 border-primary">Border-6</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
#### Code:
|
||||||
|
|
||||||
|
```html
|
||||||
|
<div class="row flex-spaces">
|
||||||
|
<div class="sm-3 col border border-primary">Default Border</div>
|
||||||
|
<div class="sm-3 col border border-2 border-primary">Border-2</div>
|
||||||
|
<div class="sm-3 col border border-3 border-primary">Border-3</div>
|
||||||
|
</div>
|
||||||
|
<div class="row flex-spaces">
|
||||||
|
<div class="sm-3 col border border-4 border-primary">Border-4</div>
|
||||||
|
<div class="sm-3 col border border-5 border-primary">Border-5</div>
|
||||||
|
<div class="sm-3 col border border-6 border-primary">Border-6</div>
|
||||||
|
</div>
|
||||||
|
```
|
||||||
|
|
||||||
|
### Border Colors
|
||||||
|
|
||||||
|
<div class="row child-borders">
|
||||||
|
<div class="sm-2 col border border-primary">Border primary</div>
|
||||||
|
<div class="sm-2 col border border-secondary">Border secondary</div>
|
||||||
|
<div class="sm-2 col border border-success">Border success</div>
|
||||||
|
<div class="sm-2 col border border-warning">Border warning</div>
|
||||||
|
<div class="sm-2 col border border-danger">Border danger</div>
|
||||||
|
<div class="sm-2 col border background-primary border-white">Border white</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
#### Code:
|
||||||
|
|
||||||
|
```html
|
||||||
|
<div class="row child-borders">
|
||||||
|
<div class="sm-2 col border border-primary">Border primary</div>
|
||||||
|
<div class="sm-2 col border border-secondary">Border secondary</div>
|
||||||
|
<div class="sm-2 col border border-success">Border success</div>
|
||||||
|
<div class="sm-2 col border border-warning">Border warning</div>
|
||||||
|
<div class="sm-2 col border border-danger">Border danger</div>
|
||||||
|
<div class="sm-2 col border background-primary border-white">Border white</div>
|
||||||
|
</div>
|
||||||
|
<div class="row child-borders">
|
||||||
|
<div class="sm-2 col border border-primary">Border primary</div>
|
||||||
|
<div class="sm-2 col border border-secondary">Border secondary</div>
|
||||||
|
<div class="sm-2 col border border-success">Border success</div>
|
||||||
|
<div class="sm-2 col border border-warning">Border warning</div>
|
||||||
|
<div class="sm-2 col border border-danger">Border danger</div>
|
||||||
|
<div class="sm-2 col border background-primary border-white">Border white</div>
|
||||||
|
</div>
|
||||||
|
```
|
||||||
|
|
||||||
|
### Child Borders
|
||||||
|
|
||||||
|
Use this if you want all children to have a border. This will alternate through the different border styles defined above instead of having to add the border class for each element.
|
||||||
|
|
||||||
|
<div class="row flex-center child-borders">
|
||||||
|
<div class="sm-2 col">1</div>
|
||||||
|
<div class="sm-2 col">2</div>
|
||||||
|
<div class="sm-2 col">3</div>
|
||||||
|
<div class="sm-2 col">4</div>
|
||||||
|
<div class="sm-2 col">5</div>
|
||||||
|
<div class="sm-2 col">6</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
#### Code:
|
||||||
|
|
||||||
|
```html
|
||||||
|
<div class="row flex-center child-borders">
|
||||||
|
<div class="sm-2 col">1</div>
|
||||||
|
<div class="sm-2 col">2</div>
|
||||||
|
<div class="sm-2 col">3</div>
|
||||||
|
<div class="sm-2 col">4</div>
|
||||||
|
<div class="sm-2 col">5</div>
|
||||||
|
<div class="sm-2 col">6</div>
|
||||||
|
</div>
|
||||||
|
```
|
||||||
|
|
||||||
|
### Border Styles
|
||||||
|
|
||||||
|
<div class="row flex-spaces child-borders">
|
||||||
|
<div class="sm-3 col border-dashed">Dashed</div>
|
||||||
|
<div class="sm-3 col border-dotted">Dotted</div>
|
||||||
|
<div class="sm-3 col border-dashed border-thick">Dashed Thick</div>
|
||||||
|
<div class="sm-3 col border-dotted border-thick">Dotted Thick</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
#### Code:
|
||||||
|
|
||||||
|
```html
|
||||||
|
<div class="row flex-spaces child-borders">
|
||||||
|
<div class="sm-3 col border-dashed">Dashed</div>
|
||||||
|
<div class="sm-3 col border-dotted">Dotted</div>
|
||||||
|
<div class="sm-3 col border-dashed border-thick">Dashed Thick</div>
|
||||||
|
<div class="sm-3 col border-dotted border-thick">Dotted Thick</div>
|
||||||
|
</div>
|
||||||
|
```
|
||||||
|
|
||||||
|
### Shadows
|
||||||
|
|
||||||
|
<div class="row flex-spaces child-borders">
|
||||||
|
<div class="sm-3 col shadow shadow-large">Large</div>
|
||||||
|
<div class="sm-3 col shadow">Default</div>
|
||||||
|
<div class="sm-3 col shadow shadow-small">Small</div>
|
||||||
|
<div class="sm-3 col shadow shadow-hover">Hover</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
#### Code:
|
||||||
|
|
||||||
|
```html
|
||||||
|
<div class="row flex-spaces child-borders">
|
||||||
|
<div class="sm-3 col shadow shadow-large">Large</div>
|
||||||
|
<div class="sm-3 col shadow">Default</div>
|
||||||
|
<div class="sm-3 col shadow shadow-small">Small</div>
|
||||||
|
<div class="sm-3 col shadow shadow-hover">Hover</div>
|
||||||
|
</div>
|
||||||
|
```
|
||||||
|
|
||||||
|
### Child Shadows
|
||||||
|
|
||||||
|
Use this if you want all children to have a shadow.
|
||||||
|
|
||||||
|
<div class="row flex-spaces child-borders child-shadows">
|
||||||
|
<div class="sm-3 col">Shadow</div>
|
||||||
|
<div class="sm-3 col">Shadow</div>
|
||||||
|
<div class="sm-3 col">Shadow</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
#### Code:
|
||||||
|
|
||||||
|
```html
|
||||||
|
<div class="row flex-spaces child-borders child-shadows">
|
||||||
|
<div class="sm-3 col">Shadow</div>
|
||||||
|
<div class="sm-3 col">Shadow</div>
|
||||||
|
<div class="sm-3 col">Shadow</div>
|
||||||
|
</div>
|
||||||
|
```
|
||||||
|
|
||||||
|
### Child Shadows Hover
|
||||||
|
|
||||||
|
Use this if you want all children to have a shadow... that changes on hover
|
||||||
|
|
||||||
|
<div class="row flex-spaces child-borders child-shadows-hover">
|
||||||
|
<div class="sm-3 col">Shadow</div>
|
||||||
|
<div class="sm-3 col">Shadow</div>
|
||||||
|
<div class="sm-3 col">Shadow</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
#### Code:
|
||||||
|
|
||||||
|
```html
|
||||||
|
<div class="row flex-spaces child-borders child-shadows-hover">
|
||||||
|
<div class="sm-3 col">Shadow</div>
|
||||||
|
<div class="sm-3 col">Shadow</div>
|
||||||
|
<div class="sm-3 col">Shadow</div>
|
||||||
|
</div>
|
||||||
|
```
|
44
documentation/content/docs/utilities/colors.md
Normal file
44
documentation/content/docs/utilities/colors.md
Normal file
|
@ -0,0 +1,44 @@
|
||||||
|
---
|
||||||
|
title: Colors
|
||||||
|
---
|
||||||
|
### Text
|
||||||
|
|
||||||
|
<p class="text-primary">Text primary</p>
|
||||||
|
<p class="text-secondary">Text secondary</p>
|
||||||
|
<p class="text-success">Text success</p>
|
||||||
|
<p class="text-warning">Text warning</p>
|
||||||
|
<p class="text-danger">Text danger</p>
|
||||||
|
<p class="text-muted">Text muted</p>
|
||||||
|
|
||||||
|
#### Code:
|
||||||
|
|
||||||
|
```html
|
||||||
|
<p class="text-primary">Text primary</p>
|
||||||
|
<p class="text-secondary">Text secondary</p>
|
||||||
|
<p class="text-success">Text success</p>
|
||||||
|
<p class="text-warning">Text warning</p>
|
||||||
|
<p class="text-danger">Text danger</p>
|
||||||
|
<p class="text-muted">Text muted</p>
|
||||||
|
```
|
||||||
|
|
||||||
|
### Backgrounds
|
||||||
|
|
||||||
|
<div class="row flex-center">
|
||||||
|
<div class="sm-2 col background-primary">Background primary</div>
|
||||||
|
<div class="sm-2 col background-secondary">Background secondary</div>
|
||||||
|
<div class="sm-2 col background-success">Background success</div>
|
||||||
|
<div class="sm-2 col background-warning">Background warning</div>
|
||||||
|
<div class="sm-2 col background-danger">Background danger</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
#### Code:
|
||||||
|
|
||||||
|
```html
|
||||||
|
<div class="row flex-center">
|
||||||
|
<div class="sm-2 col background-primary">Background primary</div>
|
||||||
|
<div class="sm-2 col background-secondary">Background secondary</div>
|
||||||
|
<div class="sm-2 col background-success">Background success</div>
|
||||||
|
<div class="sm-2 col background-warning">Background warning</div>
|
||||||
|
<div class="sm-2 col background-danger">Background danger</div>
|
||||||
|
</div>
|
||||||
|
```
|
37
documentation/content/docs/utilities/spacing.md
Normal file
37
documentation/content/docs/utilities/spacing.md
Normal file
|
@ -0,0 +1,37 @@
|
||||||
|
---
|
||||||
|
title: Spacing
|
||||||
|
---
|
||||||
|
### Margin
|
||||||
|
<div class="row flex-spaces child-borders">
|
||||||
|
<div class="sm-3 col margin">Margin</div>
|
||||||
|
<div class="sm-3 col margin-large">Margin-large</div>
|
||||||
|
<div class="sm-3 col margin-top-small">Margin-top-small</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
#### Code:
|
||||||
|
|
||||||
|
```html
|
||||||
|
<div class="row flex-spaces child-borders">
|
||||||
|
<div class="sm-3 col margin">Margin</div>
|
||||||
|
<div class="sm-3 col margin-large">Margin-large</div>
|
||||||
|
<div class="sm-3 col margin-top-small">Margin-top-small</div>
|
||||||
|
</div>
|
||||||
|
```
|
||||||
|
|
||||||
|
### Padding
|
||||||
|
|
||||||
|
<div class="row flex-spaces child-borders">
|
||||||
|
<div class="sm-3 col padding-small">Padding-small</div>
|
||||||
|
<div class="sm-3 col padding-none">Padding-none</div>
|
||||||
|
<div class="sm-3 col padding-left-large">Padding-left-large</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
#### Code:
|
||||||
|
|
||||||
|
```html
|
||||||
|
<div class="row flex-spaces child-borders">
|
||||||
|
<div class="sm-3 col padding-small">Padding-small</div>
|
||||||
|
<div class="sm-3 col padding-none">Padding-none</div>
|
||||||
|
<div class="sm-3 col padding-left-large">Padding-left-large</div>
|
||||||
|
</div>
|
||||||
|
```
|
5
documentation/layouts/_default/li.html
Normal file
5
documentation/layouts/_default/li.html
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
<li>
|
||||||
|
<a href='{{ .Permalink | relURL }}'>
|
||||||
|
{{- .Title -}}
|
||||||
|
</a>
|
||||||
|
</li>
|
15
documentation/layouts/_default/list.html
Normal file
15
documentation/layouts/_default/list.html
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
{{ partial "header" . }}
|
||||||
|
|
||||||
|
<div class='section'>
|
||||||
|
<h2>{{ .Title }}</h2>
|
||||||
|
|
||||||
|
{{ .Content }}
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
{{ range .Pages }}
|
||||||
|
{{ .Render "li" }}
|
||||||
|
{{ end }}
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{{ partial "footer" . }}
|
8
documentation/layouts/_default/single.html
Normal file
8
documentation/layouts/_default/single.html
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
{{ partial "header" . }}
|
||||||
|
|
||||||
|
<div class='section'>
|
||||||
|
<h2>{{ .Title }}</h2>
|
||||||
|
{{ .Content }}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{{ partial "footer" . }}
|
8
documentation/layouts/index.html
Normal file
8
documentation/layouts/index.html
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
{{ partial "header" . }}
|
||||||
|
|
||||||
|
<div class='section'>
|
||||||
|
<h2>{{ .Title }}</h2>
|
||||||
|
{{ .Content }}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{{ partial "footer" . }}
|
12
documentation/layouts/partials/data/title
Normal file
12
documentation/layouts/partials/data/title
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
{{- $title := ( .Title ) -}}
|
||||||
|
{{- $siteTitle := ( .Site.Title ) -}}
|
||||||
|
{{- $title404 := ( .Site.Params.info.title404 | default $title ) -}}
|
||||||
|
{{- $sep := ( .Site.Params.seo.titleSeparator | default "•" ) -}}
|
||||||
|
|
||||||
|
{{- if .IsHome -}}
|
||||||
|
{{ print $siteTitle " " $sep " " $.Site.Params.info.description }}
|
||||||
|
{{- else if eq .Kind "404" -}}
|
||||||
|
{{ $title404 }} {{ $sep }} {{ $siteTitle }}
|
||||||
|
{{- else -}}
|
||||||
|
{{ $title }} {{ $sep }} {{ $siteTitle }}
|
||||||
|
{{- end -}}
|
7
documentation/layouts/partials/footer.html
Normal file
7
documentation/layouts/partials/footer.html
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
<div class="row flex-right">
|
||||||
|
<p>Made with 💛 by <a href="https://vlaservi.ch" target="_blank">Rhyne</a> and some <a href="https://github.com/rhyneav/papercss/graphs/contributors">fantastic contributors</a>!</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
|
||||||
|
</html>
|
8
documentation/layouts/partials/head/head.html
Normal file
8
documentation/layouts/partials/head/head.html
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
<head>
|
||||||
|
{{ partial "head/meta" . }}
|
||||||
|
|
||||||
|
<title>{{ partial "data/title" . }}</title>
|
||||||
|
<link rel='canonical' href='{{ .Permalink }}'>
|
||||||
|
|
||||||
|
{{ partial "head/includes" . }}
|
||||||
|
</head>
|
3
documentation/layouts/partials/head/includes.html
Normal file
3
documentation/layouts/partials/head/includes.html
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
<!-- Styles -->
|
||||||
|
<link rel='stylesheet' href='/paper.css'>
|
||||||
|
<link rel='stylesheet' href='/demo.css'>
|
8
documentation/layouts/partials/head/meta.html
Normal file
8
documentation/layouts/partials/head/meta.html
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
<meta charset='utf-8'>
|
||||||
|
<meta name='viewport' content='width=device-width, initial-scale=1'>
|
||||||
|
<meta name='description' content='The less formal CSS framework.'>
|
||||||
|
<meta name='author' content='Rhyneav and PaperCSS contributors.'>
|
||||||
|
|
||||||
|
{{ partial "head/opengraph" . }}
|
||||||
|
|
||||||
|
{{ .Hugo.Generator }}
|
8
documentation/layouts/partials/head/opengraph.html
Normal file
8
documentation/layouts/partials/head/opengraph.html
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
<!-- Twitter -->
|
||||||
|
<meta name="twitter:description" content="The less formal CSS framework">
|
||||||
|
<meta name="twitter:title" content="PaperCSS">
|
||||||
|
|
||||||
|
<!-- OpenGraph -->
|
||||||
|
<meta property="og:url" content="https://www.getpapercss.com/">
|
||||||
|
<meta property="og:title" content="PaperCSS">
|
||||||
|
<meta property="og:description" content="The less formal CSS framework">
|
17
documentation/layouts/partials/header.html
Normal file
17
documentation/layouts/partials/header.html
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
|
||||||
|
{{ partial "head/head" . }}
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<div class="container paper">
|
||||||
|
|
||||||
|
<div class="demo-title">
|
||||||
|
<div class="row flex-center">
|
||||||
|
<div class="text-center">
|
||||||
|
<h1>{{ .Site.Title }}</h1>
|
||||||
|
<h3>{{ .Site.Params.info.description }}</h3>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{{ partial "nav/main" . }}
|
9
documentation/layouts/partials/nav/main.html
Normal file
9
documentation/layouts/partials/nav/main.html
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
<div class="row flex-center child-borders">
|
||||||
|
{{ range .Site.Menus.main }}
|
||||||
|
{{- $isCurrent := ( or ( $.IsMenuCurrent "main" . ) ( $.HasMenuCurrent "main" . ) ) -}}
|
||||||
|
<a class='paper-btn margin{{- if $isCurrent }} current{{- end -}}' href='{{ .URL }}'>
|
||||||
|
{{- .Name -}}
|
||||||
|
</a>
|
||||||
|
{{ end }}
|
||||||
|
<a href="https://github.com/rhyneav/papercss" target="_blank" class="paper-btn margin">Github</a>
|
||||||
|
</div>
|
3
documentation/layouts/shortcodes/button.html
Normal file
3
documentation/layouts/shortcodes/button.html
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
<button {{- with .Get 0 }} class='btn-{{- . -}}' {{- end -}}>
|
||||||
|
{{ .Inner }}
|
||||||
|
</button>
|
1633
documentation/static/paper.css
Normal file
1633
documentation/static/paper.css
Normal file
File diff suppressed because it is too large
Load diff
1
documentation/static/paper.min.css
vendored
Normal file
1
documentation/static/paper.min.css
vendored
Normal file
File diff suppressed because one or more lines are too long
44
gulpfile.js
44
gulpfile.js
|
@ -1,16 +1,11 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
const gulp = require('gulp'),
|
const gulp = require('gulp'),
|
||||||
connect = require('gulp-connect'),
|
|
||||||
sass = require('gulp-sass'),
|
sass = require('gulp-sass'),
|
||||||
cleanCSS = require('gulp-clean-css'),
|
cleanCSS = require('gulp-clean-css'),
|
||||||
rename = require('gulp-rename');
|
rename = require('gulp-rename'),
|
||||||
|
exec = require('child_process').execFile,
|
||||||
gulp.task('webserver', function() {
|
hugo = require('hugo-bin')
|
||||||
connect.server({
|
|
||||||
livereload: true
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
gulp.task('sass', function() {
|
gulp.task('sass', function() {
|
||||||
gulp.src('src/**/*.scss')
|
gulp.src('src/**/*.scss')
|
||||||
|
@ -18,19 +13,44 @@ gulp.task('sass', function() {
|
||||||
.pipe(cleanCSS({format: 'beautify'}))
|
.pipe(cleanCSS({format: 'beautify'}))
|
||||||
.pipe(rename('paper.css'))
|
.pipe(rename('paper.css'))
|
||||||
.pipe(gulp.dest('dist'))
|
.pipe(gulp.dest('dist'))
|
||||||
.pipe(connect.reload());
|
.pipe(gulp.dest('documentation/static'));
|
||||||
});
|
});
|
||||||
|
|
||||||
gulp.task('watch', function () {
|
gulp.task('watch', function () {
|
||||||
gulp.watch('src/**/*.scss', ['sass']);
|
gulp.watch('src/**/*.scss', ['sass']);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
gulp.task('hugo-server', function (cb) {
|
||||||
|
let hugo_process = exec(
|
||||||
|
hugo, ['server', '--source=documentation', '--disableFastRender'],
|
||||||
|
function (err, stdout, stderr) {
|
||||||
|
console.log(stderr);
|
||||||
|
return err ? cb(err) : cb();
|
||||||
|
}
|
||||||
|
);
|
||||||
|
hugo_process.stdout.pipe(process.stdout);
|
||||||
|
return hugo_process;
|
||||||
|
})
|
||||||
|
|
||||||
|
gulp.task('hugo-build', function (cb) {
|
||||||
|
let hugo_process = exec(
|
||||||
|
hugo, ['--source=documentation'],
|
||||||
|
function (err, stdout, stderr) {
|
||||||
|
console.log(stderr);
|
||||||
|
return err ? cb(err) : cb();
|
||||||
|
}
|
||||||
|
);
|
||||||
|
hugo_process.stdout.pipe(process.stdout);
|
||||||
|
return hugo_process;
|
||||||
|
})
|
||||||
|
|
||||||
gulp.task('minify-css', () => {
|
gulp.task('minify-css', () => {
|
||||||
return gulp.src('src/**/*.scss')
|
return gulp.src('src/**/*.scss')
|
||||||
.pipe(sass({outputStyle: 'compressed'}).on('error', sass.logError))
|
.pipe(sass({outputStyle: 'compressed'}).on('error', sass.logError))
|
||||||
.pipe(rename('paper.min.css'))
|
.pipe(rename('paper.min.css'))
|
||||||
.pipe(gulp.dest('dist'));
|
.pipe(gulp.dest('dist'))
|
||||||
|
.pipe(gulp.dest('documentation/static'));
|
||||||
});
|
});
|
||||||
|
|
||||||
gulp.task('default', ['sass', 'webserver', 'watch']);
|
gulp.task('default', ['sass','watch','hugo-server']);
|
||||||
gulp.task('build', ['sass', 'minify-css']);
|
gulp.task('build', ['sass','minify-css','hugo-build']);
|
||||||
|
|
|
@ -31,6 +31,11 @@
|
||||||
"chai": "^4.1.2",
|
"chai": "^4.1.2",
|
||||||
"gulp-sass": "^3.1.0",
|
"gulp-sass": "^3.1.0",
|
||||||
"http-server": "^0.9.0",
|
"http-server": "^0.9.0",
|
||||||
|
"gulp-less": "3.3.2",
|
||||||
|
"gulp-plumber": "1.1.0",
|
||||||
|
"gulp-rename": "1.2.2",
|
||||||
|
"gulp-watch-less": "1.0.1",
|
||||||
|
"hugo-bin": "^0.17.0",
|
||||||
"install": "0.10.1",
|
"install": "0.10.1",
|
||||||
"jake": "^8.0.15",
|
"jake": "^8.0.15",
|
||||||
"jshint": "^2.9.4",
|
"jshint": "^2.9.4",
|
||||||
|
|
Loading…
Reference in a new issue