@ -1,973 +0,0 @@ | |||||
<!doctype html> | |||||
<html class="no-js" lang="en_EN"> | |||||
<head> | |||||
<meta charset="utf-8"> | |||||
<meta http-equiv="x-ua-compatible" content="ie=edge"> | |||||
<title>Get Started | Crispy CSS</title> | |||||
<meta name="description" content="Documentation for Crispy CSS, a lightweight CSS Framework for building Apps and Websites"> | |||||
<meta name="viewport" content="width=device-width, initial-scale=1"> | |||||
<link rel="stylesheet" href="styles.css"> | |||||
</head> | |||||
<body> | |||||
<header id="header" class="header header--fixed background-color-info"> | |||||
<div class="container"> | |||||
<div class="grid"> | |||||
<div class="col-12"> | |||||
<nav class="group"> | |||||
<ul class="group group--horizontal text-left"> | |||||
<li class="group__item"> | |||||
<a href="/" class="text-color-white text-bold"> | |||||
<svg class="icon text-size-mega" alt="Crispy CSS"> | |||||
<use xlink:href="symbol-defs.svg#icon-logo" /> | |||||
</svg> | |||||
Crispy CSS | |||||
</a> | |||||
</li> | |||||
<li class="group__item"> | |||||
<a href="#installation" class="text-color-white margin-left-3"> | |||||
Installation | |||||
</a> | |||||
</li> | |||||
<li class="group__item"> | |||||
<a href="#typography" class="text-color-white"> | |||||
Typography | |||||
</a> | |||||
</li> | |||||
<li class="group__item"> | |||||
<a href="#components" class="text-color-white"> | |||||
Components | |||||
</a> | |||||
</li> | |||||
<li class="group__item"> | |||||
<a href="#modifiers" class="text-color-white"> | |||||
Modifiers | |||||
</a> | |||||
</li> | |||||
<li class="group__item"> | |||||
<a href="#mixins" class="text-color-white"> | |||||
Mixins | |||||
</a> | |||||
</li> | |||||
<li class="group__item"> | |||||
<a href="#functions" class="text-color-white"> | |||||
Functions | |||||
</a> | |||||
</li> | |||||
</ul> | |||||
</nav> | |||||
</div> | |||||
</div> | |||||
</div> | |||||
</header> | |||||
<div class="container"> | |||||
<div class="grid"> | |||||
<div class="col-12"> | |||||
<h1 class="h2 margin-top-6 margin-bottom-2 text-center"> | |||||
Get started! | |||||
</h1> | |||||
<h2 id="installation" class="marginless padding-top-6"> | |||||
Installation | |||||
</h2> | |||||
<hr class="margin-bottom-2"> | |||||
<pre class="code"><code>npm install crispy-css</code></pre> | |||||
<h3 class="h4">SCSS</h3> | |||||
<pre class="code"><code>@import | |||||
"crispy";</code></pre> | |||||
<p>Now include Mixins you need. Components and Modifiziers only works if you include them,</p> | |||||
<pre class="code"><code>@include crispy__core(); | |||||
@include crispy__modifiers(); | |||||
// components | |||||
@include crispy__button(); | |||||
@include crispy__code(); | |||||
@include crispy__field(); | |||||
@include crispy__group(); | |||||
@include crispy__hero(); | |||||
@include crispy__icon(); | |||||
@include crispy__media(); | |||||
@include crispy__modal(); | |||||
@include crispy__overlay(); | |||||
@include crispy__panel(); | |||||
@include crispy__progress(); | |||||
@include crispy__table();</code></pre> | |||||
<p>For Custom Variables add a File before importing Crispy,</p> | |||||
<pre class="code"><code>@import | |||||
"config", | |||||
"crispy";</code></pre> | |||||
<p>If you need all, mixins will be included,</p> | |||||
<pre class="code"><code>@import | |||||
"crispy-all";</code></pre> | |||||
<p>Only need Core and Modifiziers?</p> | |||||
<pre class="code"><code>@import | |||||
"crispy-minimal";</code></pre> | |||||
<h3 class="h4">CSS</h3> | |||||
<p>For using CSS you can use <span class="text-bold">crispy-all.css</span> for all Styles or <span class="text-bold">crispy-mininmal.css</span> without Components.</p> | |||||
<h3 class="h3">Example</h3> | |||||
<p> | |||||
You find an example in "/src/example", this is this Documentation. In the given example there are additional directories. These ones are part of a structure which might be helpful for you. | |||||
</p> | |||||
<h3>Site</h3> | |||||
<p> | |||||
Contains header, footer, partials that are used on a site or webapp. Header and Footer are not classical components, there often more complex and have a special brand. | |||||
</p> | |||||
<h3>Templates</h3> | |||||
<p> | |||||
Templates are for a single site or a group of sites, they are complex and there is no benefit so reuse them as components. | |||||
</p> | |||||
<!-- typography --> | |||||
<h2 id="typography" class="marginless padding-top-6"> | |||||
Typography | |||||
</h2> | |||||
<hr class="margin-bottom-2"> | |||||
<!-- abbr --> | |||||
<h3 class="h4 margin-top-2">a</h3> | |||||
<h4 class="h6">Html:</h4> | |||||
<pre class="code"><code><a href=""></a></code></pre> | |||||
<p> | |||||
Color of Text is set by <strong>$crispy__color-primary</strong>. <strong>Hover</strong> is set by | |||||
<strong>$crispy__color-text</strong> | |||||
</p> | |||||
<!-- abbr --> | |||||
<h3 class="h4 margin-top-2">abbr</h3> | |||||
<h4 class="h6">Html:</h4> | |||||
<pre class="code"><code><abbr title=""></abbr></code></pre> | |||||
<p> | |||||
Glossier viral occupy mixtape pok pok cornhole, <abbr title="vape affogato hella">vape affogato hella</abbr> knausgaard thundercats | |||||
</p> | |||||
<!-- blockquote --> | |||||
<h3 class="h4 margin-top-2">blockquote</h3> | |||||
<h4 class="h6">Html:</h4> | |||||
<pre class="code"><code><blockquote></blockquote></code></pre> | |||||
<blockquote> | |||||
Hoodie kickstarter four loko, pinterest hashtag chambray glossier. Pug before they sold out etsy listicle. Deep v bespoke tacos polaroid, squid flexitarian crucifix messenger bag. | |||||
</blockquote> | |||||
<!-- hr --> | |||||
<h3 class="h4 margin-top-2">hr</h3> | |||||
<h4 class="h6">Html:</h4> | |||||
<pre class="code"><code><hr></code></pre> | |||||
<p> | |||||
<hr> | |||||
</p> | |||||
<!-- paragraph --> | |||||
<h3 class="h4 margin-top-2">paragraph</h3> | |||||
<h4 class="h6">Html:</h4> | |||||
<pre class="code"><code><p></p></code></pre> | |||||
<p> | |||||
Glossier viral occupy mixtape pok pok. | |||||
</p> | |||||
<!-- mark --> | |||||
<h3 class="h4 margin-top-2">mark</h3> | |||||
<h4 class="h6">Html:</h4> | |||||
<pre class="code"><code><mark></mark></code></pre> | |||||
<p> | |||||
Pug before they <mark>four loko</mark> Deep v bespoke | |||||
</p> | |||||
<!-- list --> | |||||
<h3 class="h4 margin-top-2">list</h3> | |||||
<h4 class="h6">Html:</h4> | |||||
<pre class="code"><code><ul> | |||||
<li>item 1</li> | |||||
<li>item 2 | |||||
<ul> | |||||
<li>child item 1</li> | |||||
<li>child item 2</li> | |||||
</ul> | |||||
</li> | |||||
</ul> | |||||
<ol> | |||||
<li>item 1</li> | |||||
<li>item 2</li> | |||||
</ol> | |||||
<dl> | |||||
<dt>defined title 1</dt> | |||||
<dd>defined item 1</dd> | |||||
</dl></code></pre> | |||||
<ul> | |||||
<li>item 1</li> | |||||
<li> | |||||
item 2 | |||||
<ul> | |||||
<li>child item 1</li> | |||||
<li>child item 2</li> | |||||
</ul> | |||||
</li> | |||||
</ul> | |||||
<ol> | |||||
<li>item 1</li> | |||||
<li>item 2</li> | |||||
</ol> | |||||
<dl> | |||||
<dt>defined title 1</dt> | |||||
<dd>defined item 1</dd> | |||||
</dl> | |||||
<!-- typography / heading --> | |||||
<h3 class="h4 margin-top-2"> | |||||
Heading | |||||
</h3> | |||||
<h4 class="h6">Html:</h4> | |||||
<pre class="code"><code><h2></h2> | |||||
<h2 class="h3"></h2></code></pre> | |||||
<h4 class="h6">Sass:</h4> | |||||
<pre class="code"><code>$crispy__heading__font-sizes: ( | |||||
'h1': 40px, | |||||
'h2': 36px, | |||||
'h3': 32px, | |||||
'h4': 28px, | |||||
'h5': 24px, | |||||
'h6': 20px | |||||
) !default;</code></pre> | |||||
<h1>Heading h1</h1> | |||||
<h2>Heading h2</h2> | |||||
<h3>Heading h3</h3> | |||||
<h4>Heading h4</h4> | |||||
<h5>Heading h5</h5> | |||||
<h6>Heading h6</h6> | |||||
<!-- components --> | |||||
<h2 id="components" class="marginless padding-top-6"> | |||||
Components | |||||
</h2> | |||||
<hr class="margin-bottom-1"> | |||||
<!-- components / button --> | |||||
<h3 class="h4 margin-top-2"> | |||||
Button | |||||
</h3> | |||||
<h4 class="h6">Html:</h4> | |||||
<pre class="code margin-top-1"><code><button class="button"></button> | |||||
<button class="button text-size-large"></button> | |||||
<button class="button width-100"></button></code></pre> | |||||
<button class="button">Default</button> | |||||
<p> | |||||
With <a href="#modifiers">Modifiers</a> you can also change Size and width. | |||||
</p> | |||||
<button class="button text-size-large">Default</button> | |||||
<button class="button width-100">Info</button> | |||||
<p> | |||||
Also with the Component Icon you can use SVG. | |||||
</p> | |||||
<button class="button"> | |||||
<svg class="icon icon-color-danger" aria-hidden="true"> | |||||
<use xlink:href="symbol-defs.svg#icon-flask"></use> | |||||
</svg> | |||||
</button> | |||||
<button class="button"> | |||||
<svg class="icon icon-color-danger" aria-hidden="true"> | |||||
<use xlink:href="symbol-defs.svg#icon-flask"></use> | |||||
</svg> | |||||
Button | |||||
</button> | |||||
<!-- components / code --> | |||||
<h3 class="h4 margin-top-2"> | |||||
Code | |||||
</h3> | |||||
<h4 class="h6">Html:</h4> | |||||
<pre class="code margin-top-1"><code><pre class="code"><code></code></pre></code></pre> | |||||
<!-- components / group --> | |||||
<h3 class="h4 margin-top-2"> | |||||
Group | |||||
</h3> | |||||
<h4 class="h6">Html:</h4> | |||||
<pre class="code"><code><nav> | |||||
<ul class="group"> | |||||
<li class="group__item">first item</li> | |||||
<li class="group__item">second item</li> | |||||
<li class="group__item">third item</li> | |||||
</ul> | |||||
</nav></code></pre> | |||||
<div class="panel panel__inner margin-bottom-1"> | |||||
<nav> | |||||
<ul class="group"> | |||||
<li class="group__item">first item</li> | |||||
<li class="group__item">second item</li> | |||||
<li class="group__item">third item</li> | |||||
</ul> | |||||
</nav> | |||||
</div> | |||||
<h4 class="h6">Html:</h4> | |||||
<pre class="code"><code><nav> | |||||
<ul class="group group--horizontal group--separate"> | |||||
<li class="group__item">first item</li> | |||||
<li class="group__item">second item</li> | |||||
<li class="group__item">third item</li> | |||||
</ul> | |||||
</nav></code></pre> | |||||
<div class="panel panel__inner"> | |||||
<nav> | |||||
<ul class="group group--horizontal group--separate"> | |||||
<li class="group__item">first item</li><li class="group__item">second item</li><li class="group__item">third item</li> | |||||
</ul> | |||||
</nav> | |||||
</div> | |||||
<!-- components / hero --> | |||||
<h3 class="h4 margin-top-2"> | |||||
Hero | |||||
</h3> | |||||
<h4 class="h6">Html:</h4> | |||||
<pre class="code"><code><div class="hero" style="height: 300px; background-image: url('https://picsum.photos/1024')"></div></code></pre> | |||||
<div class="hero" style="height: 300px; background-image: url('https://picsum.photos/1024')"></div> | |||||
<pre class="code margin-top-3"><code><div class="hero hero--top" style="height: 300px; background-image: url('https://picsum.photos/1024')"></div></code></pre> | |||||
<div class="hero hero--top" style="height: 300px; background-image: url('https://picsum.photos/1024')"></div> | |||||
<pre class="code margin-top-3"><code><div class="hero hero--bottom" style="height: 300px; background-image: url('https://picsum.photos/1024')"></div></code></pre> | |||||
<div class="hero hero--bottom" style="height: 300px; background-image: url('https://picsum.photos/1024')"></div> | |||||
<!-- icons --> | |||||
<h3 class="h4 margin-top-2"> | |||||
Icon | |||||
</h3> | |||||
<p> | |||||
Change Size of Icons with "text-size-*", you find them in the <a href="#modifiers">modifiers</a>. | |||||
</p> | |||||
<h4 class="h6">Html:</h4> | |||||
<pre class="code"><code><svg class="icon text-size-small"> | |||||
<use xlink:href="symbol-defs.svg#icon-minus"></use> | |||||
</svg></code></pre> | |||||
<div class="panel"> | |||||
<div class="panel__inner"> | |||||
<svg class="icon text-size-small" aria-hidden="true"> | |||||
<use xlink:href="symbol-defs.svg#icon-flask"></use> | |||||
</svg> | |||||
<svg class="icon" aria-hidden="true"> | |||||
<use xlink:href="symbol-defs.svg#icon-flask"></use> | |||||
</svg> | |||||
<svg class="icon text-size-large" aria-hidden="true"> | |||||
<use xlink:href="symbol-defs.svg#icon-flask"></use> | |||||
</svg> | |||||
<svg class="icon text-size-big" aria-hidden="true"> | |||||
<use xlink:href="symbol-defs.svg#icon-flask"></use> | |||||
</svg> | |||||
<svg class="icon text-size-mega" aria-hidden="true"> | |||||
<use xlink:href="symbol-defs.svg#icon-flask"></use> | |||||
</svg> | |||||
</div> | |||||
</div> | |||||
<p class="margin-top-2"> | |||||
To change Color you can use "icon-color-*". | |||||
</p> | |||||
<h4 class="h6">Html:</h4> | |||||
<pre class="code"><code><svg class="icon icon-color-danger"> | |||||
<use xlink:href="symbol-defs.svg#icon-flask"></use> | |||||
</svg></code></pre> | |||||
<div class="panel"> | |||||
<div class="panel__inner"> | |||||
<svg class="icon icon-color-danger" aria-hidden="true"> | |||||
<use xlink:href="symbol-defs.svg#icon-flask"></use> | |||||
</svg> | |||||
</div> | |||||
</div> | |||||
<!-- components / panel --> | |||||
<h3 class="h4 margin-top-2"> | |||||
Panel | |||||
</h3> | |||||
<h4 class="h6">Html:</h4> | |||||
<pre class="code"><code><div class="panel"> | |||||
<div class="panel__inner"> | |||||
Lorem Ipsum | |||||
</div> | |||||
</div></code></pre> | |||||
<div class="panel"> | |||||
<div class="panel__inner"> | |||||
Lorem Ipsum | |||||
</div> | |||||
</div> | |||||
<!-- components / progress --> | |||||
<h3 class="h4 margin-top-2"> | |||||
Progress | |||||
</h3> | |||||
<h4 class="h6">Html:</h4> | |||||
<pre class="code"><code><div class="progress"> | |||||
<div class="progress__inner" style="width: 80%"> | |||||
</div> | |||||
</div></code></pre> | |||||
<div class="progress"> | |||||
<div class="progress__inner" style="width: 80%"> | |||||
</div> | |||||
</div> | |||||
<!-- components / modal --> | |||||
<h3 class="h4 margin-top-3"> | |||||
Modal | |||||
</h3> | |||||
<h4 class="h6">Html:</h4> | |||||
<pre class="code"><code><div class="modal modal--bottom width-100"> | |||||
<div class="panel"> | |||||
<div class="panel__inner"> | |||||
Lorem Ipsum | |||||
</div> | |||||
</div> | |||||
</div></code></pre> | |||||
<div style="position: relative; width: 100%; height: 200px; border: 1px dotted black;"> | |||||
<div class="modal modal--top-left"> | |||||
<div class="panel"> | |||||
<div class="panel__inner"> | |||||
.modal--top-left | |||||
</div> | |||||
</div> | |||||
</div> | |||||
<div class="modal modal--top-right"> | |||||
<div class="panel"> | |||||
<div class="panel__inner"> | |||||
.modal--top-right | |||||
</div> | |||||
</div> | |||||
</div> | |||||
<div class="modal"> | |||||
<div class="panel"> | |||||
<div class="panel__inner"> | |||||
.modal | |||||
</div> | |||||
</div> | |||||
</div> | |||||
<div class="modal modal--bottom-left"> | |||||
<div class="panel"> | |||||
<div class="panel__inner"> | |||||
.modal--bottom-left | |||||
</div> | |||||
</div> | |||||
</div> | |||||
<div class="modal modal--bottom-right"> | |||||
<div class="panel"> | |||||
<div class="panel__inner"> | |||||
.modal--bottom-right | |||||
</div> | |||||
</div> | |||||
</div> | |||||
</div> | |||||
<!-- components / table --> | |||||
<h3 class="h4 margin-top-2"> | |||||
Table | |||||
</h3> | |||||
<h4 class="h6">Html:</h4> | |||||
<pre class="code"><code><table class="table table--striped"> | |||||
<thead> | |||||
<tr> | |||||
<th></th> | |||||
</tr> | |||||
</thead> | |||||
<tbody> | |||||
<tr> | |||||
<td></td> | |||||
</tr> | |||||
</tbody> | |||||
</table></code></pre> | |||||
<table class="table table--striped margin-bottom-2"> | |||||
<thead> | |||||
<tr> | |||||
<th>name</th> | |||||
<th>age</th> | |||||
</tr> | |||||
</thead> | |||||
<tbody> | |||||
<tr> | |||||
<td>Mr. Brown</td> | |||||
<td>43</td> | |||||
</tr> | |||||
<tr> | |||||
<td>Mr. Magenta</td> | |||||
<td>32</td> | |||||
</tr> | |||||
<tr> | |||||
<td>Mr. White</td> | |||||
<td>45</td> | |||||
</tr> | |||||
</tbody> | |||||
</table> | |||||
<!-- components / media --> | |||||
<h3 class="h4 margin-top-1"> | |||||
Media | |||||
</h3> | |||||
<pre class="code"><code><img class="img-responsive" src="https://picsum.photos/400" /> | |||||
<figure> | |||||
<img class="img-responsive" src="https://picsum.photos/400" /> | |||||
<figcaption class="text-center">Lorem Ipsum</figcaption> | |||||
</figure> | |||||
<div class="video-responsive" style="height: 280px;"> | |||||
<iframe src="https://giphy.com/embed/13XW2MJE0XCoM0" width="480" height="361"></iframe> | |||||
</div></code></pre> | |||||
<div class="grid"> | |||||
<div class="col-6"> | |||||
<img class="img-responsive width-100" src="https://picsum.photos/400" /> | |||||
</div> | |||||
<div class="col-6"> | |||||
<figure> | |||||
<img class="img-responsive width-100" src="https://picsum.photos/400" /> | |||||
<figcaption class="text-center">Lorem Ipsum</figcaption> | |||||
</figure> | |||||
</div> | |||||
</div> | |||||
<h3 class="h4 margin-top-0"> | |||||
Fields | |||||
</h3> | |||||
<p> | |||||
Fields are Form-Elements. | |||||
</p> | |||||
<!-- components / field / checkbox --> | |||||
<h4 class="h5"> | |||||
Checkbox | |||||
</h4> | |||||
<p> | |||||
Checkboxes | |||||
</p> | |||||
<div class="field"> | |||||
<input id="field__checkbox__1" class="field__choice" type="checkbox" name="field__checkbox__1" value="true" /> | |||||
<label for="field__checkbox__1" class="field__label"> | |||||
<svg class="icon field__choice__unchecked" aria-hidden="true"> | |||||
<use xlink:href="symbol-defs.svg#icon-toggle-left"></use> | |||||
</svg> | |||||
<svg class="icon field__choice__checked" aria-hidden="true"> | |||||
<use xlink:href="symbol-defs.svg#icon-toggle-right"></use> | |||||
</svg> | |||||
checkbox 1 | |||||
</label> | |||||
<input id="field__checkbox__2" class="field__choice" type="checkbox" name="field__checkbox__2" value="true" /> | |||||
<label for="field__checkbox__2" class="field__label"> | |||||
<svg class="icon field__choice__unchecked" aria-hidden="true"> | |||||
<use xlink:href="symbol-defs.svg#icon-toggle-left"></use> | |||||
</svg> | |||||
<svg class="icon field__choice__checked" aria-hidden="true"> | |||||
<use xlink:href="symbol-defs.svg#icon-toggle-right"></use> | |||||
</svg> | |||||
checkbox 2 | |||||
</label> | |||||
</div> | |||||
<div class="field field--error"> | |||||
<input id="field__checkbox__3" class="field__choice" type="checkbox" name="field__checkbox__3" value="true" /> | |||||
<label for="field__checkbox__3" class="field__label"> | |||||
<svg class="icon field__choice__unchecked" aria-hidden="true"> | |||||
<use xlink:href="symbol-defs.svg#icon-toggle-left"></use> | |||||
</svg> | |||||
<svg class="icon field__choice__checked" aria-hidden="true"> | |||||
<use xlink:href="symbol-defs.svg#icon-toggle-right"></use> | |||||
</svg> | |||||
checkbox 1 | |||||
</label> | |||||
<div class="field__panel"> | |||||
error item 1 | |||||
</div> | |||||
</div> | |||||
<!-- components / field / radio --> | |||||
<h3 class="h4 margin-top-0"> | |||||
Radio | |||||
</h3> | |||||
<div class="field"> | |||||
<input id="field__radio__1" class="field__choice" type="radio" name="field__radio__1[]" value="true" /> | |||||
<label for="field__radio__1" class="field__label"> | |||||
<svg class="icon field__choice__unchecked" aria-hidden="true"> | |||||
<use xlink:href="symbol-defs.svg#icon-toggle-left"></use> | |||||
</svg> | |||||
<svg class="icon field__choice__checked" aria-hidden="true"> | |||||
<use xlink:href="symbol-defs.svg#icon-toggle-right" /> | |||||
</svg> | |||||
radio item 1 | |||||
</label><br /> | |||||
<input id="field__radio__2" class="field__choice" type="radio" name="field__radio__1[]" value="true" /> | |||||
<label for="field__radio__2" class="field__label"> | |||||
<svg class="icon field__choice__unchecked" aria-hidden="true"> | |||||
<use xlink:href="symbol-defs.svg#icon-toggle-left"></use> | |||||
</svg> | |||||
<svg class="icon field__choice__checked" aria-hidden="true"> | |||||
<use xlink:href="symbol-defs.svg#icon-toggle-right" /> | |||||
</svg> | |||||
radio item 2 | |||||
</label> | |||||
</div> | |||||
<!-- radio / error --> | |||||
<div class="field field--error"> | |||||
<input id="field__radio__3" class="field__choice" type="radio" name="field__radio__2[]" value="true" /> | |||||
<label for="field__radio__3" class="field__label"> | |||||
<svg class="icon field__choice__unchecked" aria-hidden="true"> | |||||
<use xlink:href="symbol-defs.svg#icon-toggle-left"></use> | |||||
</svg> | |||||
<svg class="icon field__choice__checked" aria-hidden="true"> | |||||
<use xlink:href="symbol-defs.svg#icon-toggle-right" /> | |||||
</svg> | |||||
radio item 1 | |||||
</label><br /> | |||||
<input id="field__radio__4" class="field__choice" type="radio" name="field__radio__2[]" value="true" /> | |||||
<label for="field__radio__4" class="field__label"> | |||||
<svg class="icon field__choice__unchecked" aria-hidden="true"> | |||||
<use xlink:href="symbol-defs.svg#icon-toggle-left"></use> | |||||
</svg> | |||||
<svg class="icon field__choice__checked" aria-hidden="true"> | |||||
<use xlink:href="symbol-defs.svg#icon-toggle-right" /> | |||||
</svg> | |||||
radio item 2 | |||||
</label> | |||||
<div class="field__panel"> | |||||
error item 1 | |||||
</div> | |||||
</div> | |||||
<!-- components / field / select --> | |||||
<h3 class="h4 margin-top-0xx"> | |||||
Select | |||||
</h3> | |||||
<div class="field"> | |||||
<label class="field__label"> | |||||
Select Item | |||||
<select class="field__select"> | |||||
<option>select item 1</option> | |||||
<option>select item 2</option> | |||||
<option>select item 3</option> | |||||
</select> | |||||
</label> | |||||
</div> | |||||
<div class="field field--error"> | |||||
<label class="field__label"> | |||||
Select Item | |||||
<select class="field__select"> | |||||
<option>select item 1</option> | |||||
<option>select item 2</option> | |||||
<option>select item 3</option> | |||||
</select> | |||||
<div class="field__panel"> | |||||
error item 1 | |||||
</div> | |||||
</label> | |||||
</div> | |||||
<!-- components / field / input textarea --> | |||||
<h3 class="h4 margin-top-0xx"> | |||||
Input / Textarea | |||||
</h3> | |||||
<div class="field"> | |||||
<input class="field__text" type="text" /> | |||||
</div> | |||||
<div class="field field--valid"> | |||||
<label class="field__label"> | |||||
Text | |||||
<input type="text" class="field__text" /> | |||||
</label> | |||||
<div class="field__panel"> | |||||
error item 1 | |||||
</div> | |||||
</div> | |||||
<div class="field field--error"> | |||||
<label class="field__label"> | |||||
Text | |||||
<input type="text" class="field__text" /> | |||||
</label> | |||||
<div class="field__panel"> | |||||
error item 1 | |||||
</div> | |||||
</div> | |||||
<div class="field"> | |||||
<label class="field__label"> | |||||
Textarea | |||||
<textarea class="field__text"></textarea> | |||||
</label> | |||||
</div> | |||||
<div class="field field--error"> | |||||
<label class="field__label"> | |||||
Textarea | |||||
<textarea class="field__text"></textarea> | |||||
</label> | |||||
<div class="field__panel"> | |||||
error item 1 | |||||
</div> | |||||
</div> | |||||
<!-- modifiers --> | |||||
<h2 id="modifiers" class="padding-top-6"> | |||||
Modifiers | |||||
</h2> | |||||
<hr class="margin-bottom-1"> | |||||
<!-- modifiers / margin & padding --> | |||||
<h3 class="h4 margin-top-1"> | |||||
Margin & Padding | |||||
</h3> | |||||
<p> | |||||
Adding margin and padding-top, -left, -bottom and -right. For left and right steps and values | |||||
are halved. | |||||
</p> | |||||
<h4 class="h6 margin-top-1">Sass:</h4> | |||||
<pre class="code"> | |||||
$crispy__modifiers__spacing__value: 0.75em; | |||||
$crispy__modifiers__spacing__steps: 6; | |||||
</pre></code> | |||||
<h4 class="h6 margin-top-1">Html:</h4> | |||||
<pre class="code"><div class="margin-bottom-1">margin-bottom-1</div></code></pre> | |||||
<div class="panel panel__inner margin-bottom-0">margin-bottom-0</div> | |||||
<div class="panel panel__inner margin-bottom-1">margin-bottom-1</div> | |||||
<div class="panel panel__inner margin-bottom-2">margin-bottom-2</div> | |||||
<div class="panel panel__inner margin-bottom-3">margin-bottom-3</div> | |||||
<div class="panel panel__inner margin-bottom-4">margin-bottom-4</div> | |||||
<div class="panel panel__inner margin-bottom-5">margin-bottom-5</div> | |||||
<div class="panel panel__inner margin-bottom-6">margin-bottom-6</div> | |||||
<div class="panel panel__inner margin-left-0 margin-bottom-1">margin-left-0</div> | |||||
<div class="panel panel__inner margin-left-1 margin-bottom-1">margin-left-1</div> | |||||
<div class="panel panel__inner margin-left-2 margin-bottom-1">margin-left-2</div> | |||||
<div class="panel panel__inner margin-left-3 margin-bottom-1">margin-left-3</div> | |||||
<p> | |||||
Also set padding and margin to 0, | |||||
</p> | |||||
<pre class="code"><div class="marginless"</div> | |||||
<div class="paddingless"</div></code></pre> | |||||
<!-- modifiers / Typography --> | |||||
<h3 class="h4 margin-top-1"> | |||||
Typography | |||||
</h3> | |||||
<pre class="code"><div class="text-left"></div> | |||||
<div class="text-center"></div> | |||||
<div class="text-right"></div> | |||||
<div class="text-justify"></div> | |||||
<div class="text-italic"></div> | |||||
<div class="text-light"></div> | |||||
<div class="text-normal"></div> | |||||
<div class="text-medium"></div> | |||||
<div class="text-bold"></div> | |||||
<div class="text-capitalize"></div> | |||||
<div class="text-uppercase"></div> | |||||
<div class="text-lowercase"></div> | |||||
<div class="text-smaller"></div> | |||||
<div class="text-crossed"></div> | |||||
<div class="text-underline"></div></code></pre> | |||||
<p> | |||||
Also there are classes for, | |||||
</p> | |||||
<ul> | |||||
<li>text-size-* with $crispy__font-sizes for "font-size"</li> | |||||
<li>text-color-* with $crispy__colors for "color"</li> | |||||
<li>background-color-* with $crispy__font-sizes for "background-color"</li> | |||||
</ul> | |||||
<!-- modifiers / float --> | |||||
<h3 class="h4 margin-top-1"> | |||||
Float | |||||
</h3> | |||||
<pre class="code"><div class="float-left"></div> | |||||
<div class="float-right"></div> | |||||
<div class="float-none"></div> | |||||
<div class="centered"></div> | |||||
<div class="clearfix"></div></code></pre> | |||||
<!-- modifiers / typography --> | |||||
<h3 class="h4 margin-top-1"> | |||||
Position | |||||
</h3> | |||||
<pre class="code"><div class="relative"></div> | |||||
<div class="absolute"></div> | |||||
<div class="fixed"></div></code></pre> | |||||
<!-- modifiers / border --> | |||||
<h3 class="h4 margin-top-1"> | |||||
Border | |||||
</h3> | |||||
<pre class="code"><div class="bordered"></div> | |||||
<div class="rounded"></div> | |||||
<div class="borderless"></div> | |||||
<div class="radiusless"></div></code></pre> | |||||
<!-- modifiers / visibility --> | |||||
<h3 class="h4 margin-top-1"> | |||||
Visibility | |||||
</h3> | |||||
<pre class="code"><div class="hidden"></div> | |||||
<div class="visible"></div> | |||||
<div class="visible visible--inline"></div> | |||||
<div class="visible visible--inline-block"></div></code></pre> | |||||
<!-- modifiers / width --> | |||||
<h3 class="h4 margin-top-1"> | |||||
Width | |||||
</h3> | |||||
<h4 class="h6 margin-top-1">Sass:</h4> | |||||
<pre class="code"><code>$crispy__width: ( | |||||
'25' : 25%, | |||||
'50' : 50%, | |||||
'75' : 75%, | |||||
'100': 100% | |||||
)</code></pre> | |||||
<h4 class="h6 margin-top-1">Html:</h4> | |||||
<pre class="code"><code><div class="panel width-25">width-25</div> | |||||
<div class="width-50">width-50</div> | |||||
<div class="width-75">width-75</div> | |||||
<div class="width-100">width-100</div></code></pre> | |||||
<div class="panel panel__inner width-25 margin-bottom-1">width-25</div> | |||||
<div class="panel panel__inner width-50 margin-bottom-1">width-50</div> | |||||
<div class="panel panel__inner width-75 margin-bottom-1">width-75</div> | |||||
<div class="panel panel__inner width-100 margin-bottom-1">width-100</div> | |||||
<!-- mixins --> | |||||
<hr class="margin-top-3"> | |||||
<h2 id="mixins" class="margin-top-1"> | |||||
Mixins | |||||
</h2> | |||||
<!-- mixins / triangle --> | |||||
<h3 class="h4 margin-top-1"> | |||||
Triangle | |||||
</h3> | |||||
<h4 class="h6 margin-top-1">Sass:</h4> | |||||
<pre class="code"><code>.triangle-left, .triangle-right, .triangle-top, .triangle-bottom { | |||||
display: block; | |||||
} | |||||
.triangle-left { | |||||
@include triangle('left', $crispy__color-primary); | |||||
} | |||||
.triangle-right { | |||||
@include triangle('right', $crispy__color-primary); | |||||
} | |||||
.triangle-top { | |||||
@include triangle('top', $crispy__color-primary); | |||||
} | |||||
.triangle-bottom { | |||||
@include triangle('bottom', $crispy__color-primary); | |||||
} | |||||
</code></pre> | |||||
<p> | |||||
<span class="triangle-right"></span> | |||||
<span class="triangle-left"></span> | |||||
<span class="triangle-top"></span> | |||||
<span class="triangle-bottom"></span> | |||||
</p> | |||||
<!-- mixins / media-queries --> | |||||
<h3 class="h4 margin-top-1"> | |||||
Media Queries | |||||
</h3> | |||||
<p> | |||||
These <strong>@mixins</strong> were used with the Breakpoints from <a target="_blank" href="http://reflexgrid.com/docs/">http://reflexgrid.com/docs/</a>. | |||||
Reflex-Grid is also used as grid for this Site. | |||||
</p> | |||||
<ul> | |||||
<li><strong>xs</strong> 576px</li> | |||||
<li><strong>sm</strong> 768px</li> | |||||
<li><strong>md</strong> 992px</li> | |||||
<li><strong>lg</strong> 1200px</li> | |||||
<li><strong>xlg</strong> 1600px</li> | |||||
</ul> | |||||
<h4 class="h6 margin-top-1">Html:</h4> | |||||
<pre class="code"><code><div class="sm">sm</div> | |||||
<div class="md">md</div> | |||||
<div class="md-only">md-only</div> | |||||
<div class="lg-only">lg-only</div></pre></code> | |||||
<h4 class="h6 margin-top-1">Sass:</h4> | |||||
<pre class="code"><code>.sm, .md, .md-only, .lg-only { | |||||
display: none; | |||||
} | |||||
.sm { | |||||
@include crispy__media-sm() { | |||||
display: block; | |||||
} | |||||
} | |||||
.md { | |||||
@include crispy__media-md() { | |||||
display: block; | |||||
} | |||||
} | |||||
.md-only { | |||||
@include crispy__media-md-only() { | |||||
display: block; | |||||
} | |||||
} | |||||
.lg-only { | |||||
@include crispy__media-lg-only() { | |||||
display: block; | |||||
} | |||||
}</code></pre> | |||||
<div class="grid"> | |||||
<div class="col-3"> | |||||
<div class="panel panel__inner sm margin-bottom-1">sm</div> | |||||
</div> | |||||
<div class="col-3"> | |||||
<div class="panel panel__inner md margin-bottom-1">md</div> | |||||
</div> | |||||
<div class="col-3"> | |||||
<div class="panel panel__inner md-only margin-bottom-1">md-only</div> | |||||
</div> | |||||
<div class="col-3"> | |||||
<div class="panel panel__inner lg-only margin-bottom-1">lg-only</div> | |||||
</div> | |||||
</div> | |||||
<!-- functions --> | |||||
<h2 id="functions" class="margin-top-6"> | |||||
Functions | |||||
</h2> | |||||
<hr class="margin-bottom-1"> | |||||
<!-- functions / stripUnit --> | |||||
<h3 class="h4 margin-top-0"> | |||||
stripUnit() | |||||
</h3> | |||||
<h4 class="h6 margin-top-1">Sass:</h4> | |||||
<pre class="code"><code>stripUnit(10px);</code></pre> | |||||
<p> | |||||
Returns value without unit. | |||||
</p> | |||||
<!-- functions / zIndex --> | |||||
<h3 class="h4 margin-top-0"> | |||||
zIndex(name) | |||||
</h3> | |||||
<h4 class="h6 margin-top-1">Sass:</h4> | |||||
<pre class="code"><code>zIndex('modal');</code></pre> | |||||
<p> | |||||
Returns value from $crispy__z-index. | |||||
</p> | |||||
<h4 class="h6 margin-top-1">Sass:</h4> | |||||
<pre class="code"><code>$crispy__z-index: ( | |||||
'overlay': 90, | |||||
'modal' : 100 | |||||
);</code></pre> | |||||
</div> | |||||
</div> | |||||
</div> | |||||
</body |
@ -1,66 +0,0 @@ | |||||
<!doctype html> | |||||
<html class="no-js" lang="en_EN"> | |||||
<head> | |||||
<meta charset="utf-8"> | |||||
<meta http-equiv="x-ua-compatible" content="ie=edge"> | |||||
<title>Crispy CSS | Lightweight CSS Framework for Building Apps and Websites</title> | |||||
<meta name="description" content="Lightweight Framework for building fast and clean Websites and Apps for Mobile, Tablet and Desktop. Minimal UI-Elements, Functions and Helpers."> | |||||
<meta name="viewport" content="width=device-width, initial-scale=1"> | |||||
<link rel="stylesheet" href="styles.css"> | |||||
</head> | |||||
<body> | |||||
<header id="header" class="header"> | |||||
<div class="container"> | |||||
<div class="grid"> | |||||
<div class="col-12"> | |||||
<div class="text-center"> | |||||
<hgroup> | |||||
<a href="/"> | |||||
<h1 class="h2 margin-top-4 margin-bottom-0"> | |||||
<svg class="icon icon--big margin-bottom-1" alt="Crispy CSS"> | |||||
<use xlink:href="symbol-defs.svg#icon-logo" /> | |||||
</svg><br /> | |||||
Crispy CSS | |||||
</h1> | |||||
</a> | |||||
<small class="text-color-primary">v3.0.0</small> | |||||
<h2 class="h5 margin-top-1"> | |||||
Lightweight CSS Framework for Building Apps and Websites | |||||
</h2> | |||||
</hgroup> | |||||
</div> | |||||
</div> | |||||
</div> | |||||
</div> | |||||
</header> | |||||
<div class="container"> | |||||
</div> | |||||
<footer class="footer background-color-info margin-top-4 padding-top-5 padding-bottom-2"> | |||||
<div class="container"> | |||||
<div class="grid"> | |||||
<div class="col-12"> | |||||
<div class="text-center"> | |||||
<ul class="group group--horizontal group--separate"> | |||||
<li class="group__item"> | |||||
<a class="text-color-white" href="/imprint.html">Imprint</a> | |||||
</li> | |||||
<li class="group__item"> | |||||
<a class="text-color-white" href="/privacy-policy.html">Privacy Policy</a> | |||||
</li> | |||||
</ul> | |||||
<p class="margin-top-1"> | |||||
Made with Euphorie by Björn Hase, <a class="text-color-white" href="https://tententakelfabrik.de" target="_blank">Tentakelfabrik</a> | |||||
</p> | |||||
</div> | |||||
</div> | |||||
</div> | |||||
</div> | |||||
</footer> | |||||
</body> | |||||
</html> |
@ -1,66 +0,0 @@ | |||||
<!doctype html> | |||||
<html class="no-js" lang="en_EN"> | |||||
<head> | |||||
<meta charset="utf-8"> | |||||
<meta http-equiv="x-ua-compatible" content="ie=edge"> | |||||
<title>Crispy CSS | Lightweight CSS Framework for Building Apps and Websites</title> | |||||
<meta name="description" content="Lightweight Framework for building fast and clean Websites and Apps for Mobile, Tablet and Desktop. Minimal UI-Elements, Functions and Helpers."> | |||||
<meta name="viewport" content="width=device-width, initial-scale=1"> | |||||
<link rel="stylesheet" href="styles.css"> | |||||
</head> | |||||
<body> | |||||
<header id="header" class="header"> | |||||
<div class="container"> | |||||
<div class="grid"> | |||||
<div class="col-12"> | |||||
<div class="text-center"> | |||||
<hgroup> | |||||
<a href="/"> | |||||
<h1 class="h2 margin-top-4 margin-bottom-0"> | |||||
<svg class="icon icon--big margin-bottom-1" alt="Crispy CSS"> | |||||
<use xlink:href="symbol-defs.svg#icon-logo" /> | |||||
</svg><br /> | |||||
Crispy CSS | |||||
</h1> | |||||
</a> | |||||
<small class="text-color-primary">v3.0.0</small> | |||||
<h2 class="h5 margin-top-1"> | |||||
Lightweight CSS Framework for Building Apps and Websites | |||||
</h2> | |||||
</hgroup> | |||||
</div> | |||||
</div> | |||||
</div> | |||||
</div> | |||||
</header> | |||||
<div class="container"> | |||||
</div> | |||||
<footer class="footer background-color-info margin-top-4 padding-top-5 padding-bottom-2"> | |||||
<div class="container"> | |||||
<div class="grid"> | |||||
<div class="col-12"> | |||||
<div class="text-center"> | |||||
<ul class="group group--horizontal group--separate"> | |||||
<li class="group__item"> | |||||
<a class="text-color-white" href="/imprint.html">Imprint</a> | |||||
</li> | |||||
<li class="group__item"> | |||||
<a class="text-color-white" href="/privacy-policy.html">Privacy Policy</a> | |||||
</li> | |||||
</ul> | |||||
<p class="margin-top-1"> | |||||
Made with Euphorie by Björn Hase, <a class="text-color-white" href="https://tententakelfabrik.de" target="_blank">Tentakelfabrik</a> | |||||
</p> | |||||
</div> | |||||
</div> | |||||
</div> | |||||
</div> | |||||
</footer> | |||||
</body> | |||||
</html> |
@ -0,0 +1,240 @@ | |||||
<!doctype html><html lang="en_EN"><head><meta charset="utf-8"><meta http-equiv="x-ua-compatible" content="ie=edge"><title>Components | Crispy CSS</title><meta name="description" content=""><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="stylesheet" href="styles.css"></head><body><header id="header" class="header header--fixed background-color-info"><div class="container"><div class="grid"><div class="col-12 col-md-4"><a href="/" class="text-color-white text-bold"><svg class="icon text-size-mega" alt="Crispy CSS"><use xlink:href="symbol-defs.svg#icon-logo"/></svg> Crispy CSS</a></div><div class="col-12 col-md-8"><nav class="group text-right show"><ul class="group"><li class="group__item"><a href="getting-started.html" class="text-color-white">Getting started!</a></li><li class="group__item"><a href="core.html" class="text-color-white">Core</a></li><li class="group__item"><a href="components.html" class="text-color-white">Components</a></li><li class="group__item"><a href="helpers.html" class="text-color-white">Helpers</a></li><li class="group__item"><a href="mixins.html" class="text-color-white">Mixins</a></li><li class="group__item"><a href="functions.html" class="text-color-white">Functions</a></li></ul></nav></div></div></div></header><main class="container"><div class="grid"><div class="col-12"><header class="header"><h1 class="padding-top-4 padding-bottom-2 text-center">Components</h1></header><h2 class="margin-bottom-1">Button</h2><hr class="marginless margin-bottom-2"/><h3 class="h4">Scss:</h3><pre class="code margin-top-1"><code>$crispy__button__font-family: $crispy__font-family; | |||||
$crispy__button__font-weight: $crispy__font-weight; | |||||
$crispy__button__font-size: $crispy__font-size; | |||||
$crispy__button__font-size-breakpoints: $crispy__font-size__breakpoints; | |||||
$crispy__button__padding: 0.3em 0.8em; | |||||
$crispy__button__padding-breakpoints: ( | |||||
$crispy__md: 0.4em 1.2em | |||||
); | |||||
</code></pre><h3 class="h4">Html:</h3><pre class="code margin-top-1"><code><button class="button"></button> | |||||
<button class="button text-size-medium"></button> | |||||
<button class="button text-size-large"></button> | |||||
<button class="button width-100"></button></code></pre><button class="button">Default</button> <button class="button text-size-medium">Default</button> <button class="button text-size-large">Default</button> <button class="button width-100">Info</button> <button class="button"><svg class="icon icon-color-danger" aria-hidden="true"><use xlink:href="symbol-defs.svg#icon-flask"></use></svg></button> <button class="button"><svg class="icon icon-color-danger" aria-hidden="true"><use xlink:href="symbol-defs.svg#icon-flask"></use></svg> Button</button><h2 class="margin-top-3 margin-bottom-1">Code</h2><hr class="marginless margin-bottom-2"/><h3 class="h4">Scss:</h3><pre class="code margin-top-1"><code>$crispy__code__padding: $crispy__padding; | |||||
$crispy__code__padding-breakpoints: $crispy__padding-breakpoints; | |||||
$crispy__code__margin: $crispy__margin; | |||||
$crispy__code__border: $crispy__border; | |||||
$crispy__code__background-color: $crispy__color-grey-light; | |||||
</code></pre><h3 class="h4">Html:</h3><pre class="code margin-top-1"><code><pre class="code"><code></code></pre></code></pre><h2 class="margin-top-3">Fields</h2><h3 class="h4 magin-top-2">Scss:</h3><pre class="code margin-top-1"><code>$crispy__field__margin: $crispy__margin; | |||||
$crispy__field__border: $crispy__border; | |||||
$crispy__field__color--valid: $crispy__color-success; | |||||
$crispy__field__color--error: $crispy__color-danger; | |||||
$crispy__field__border-color--focus: $crispy__color-primary; | |||||
$crispy__field__border-color--valid: $crispy__color-success; | |||||
$crispy__field__border-color--error: $crispy__color-danger; | |||||
$crispy__field__choice__checked__color: $crispy__color-success; | |||||
$crispy__field__choice__unchecked__color: $crispy__color-danger; | |||||
$crispy__field__input__padding: 0.4em 0.6em; | |||||
$crispy__field__input__color: $crispy__color-text; | |||||
$crispy__field__select__padding: 0.3em 0.5em; | |||||
$crispy__field__panel__padding: 0.3em 0.6em; | |||||
$crispy__field__select__background-color: white; | |||||
$crispy__field__select__border: $crispy__border;</code></pre><h3 class="h4 margin-top-2">Input / Textarea</h3><pre class="code margin-top-1"><code><div class="field"> | |||||
<input class="field__text" type="text" /> | |||||
</div> | |||||
<div class="field field--valid"> | |||||
<label class="field__label"> | |||||
Text | |||||
<input type="text" class="field__text" /> | |||||
</label> | |||||
<div class="field__panel"> | |||||
error item 1 | |||||
</div> | |||||
</div> | |||||
<div class="field field--error"> | |||||
<label class="field__label"> | |||||
Text | |||||
<input type="text" class="field__text" /> | |||||
</label> | |||||
<div class="field__panel"> | |||||
error item 1 | |||||
</div> | |||||
</div> | |||||
<div class="field"> | |||||
<label class="field__label"> | |||||
Textarea | |||||
<textarea class="field__text"></textarea> | |||||
</label> | |||||
</div></code></pre><div class="field"><input class="field__text"/></div><div class="field field--valid"><label class="field__label">Text <input class="field__text"/></label><div class="field__panel">error item 1</div></div><div class="field field--error"><label class="field__label">Text <input class="field__text"/></label><div class="field__panel">error item 1</div></div><div class="field"><label class="field__label">Textarea <textarea class="field__text"></textarea></label></div><h3 class="h4 margin-top-2">Checkbox</h3><pre class="code margin-top-1"><code><div class="field"> | |||||
<input id="field__checkbox__1" class="field__choice" type="checkbox" name="field__checkbox__1" value="true" /> | |||||
<label for="field__checkbox__1" class="field__label"> | |||||
<svg class="icon text-size-medium field__choice__unchecked" aria-hidden="true"> | |||||
<use xlink:href="symbol-defs.svg#icon-toggle-left"></use> | |||||
</svg> | |||||
<svg class="icon text-size-medium field__choice__checked" aria-hidden="true"> | |||||
<use xlink:href="symbol-defs.svg#icon-toggle-right"></use> | |||||
</svg> | |||||
checkbox 1 | |||||
</label> | |||||
<input id="field__checkbox__2" class="field__choice" type="checkbox" name="field__checkbox__2" value="true" /> | |||||
<label for="field__checkbox__2" class="field__label"> | |||||
<svg class="icon text-size-medium field__choice__unchecked" aria-hidden="true"> | |||||
<use xlink:href="symbol-defs.svg#icon-toggle-left"></use> | |||||
</svg> | |||||
<svg class="icon text-size-medium field__choice__checked" aria-hidden="true"> | |||||
<use xlink:href="symbol-defs.svg#icon-toggle-right"></use> | |||||
</svg> | |||||
checkbox 2 | |||||
</label> | |||||
</div></code></pre><div class="field"><input id="field__checkbox__1" class="field__choice" type="checkbox" name="field__checkbox__1" value="true"/> <label for="field__checkbox__1" class="field__label"><svg class="icon text-size-medium field__choice__unchecked" aria-hidden="true"><use xlink:href="symbol-defs.svg#icon-toggle-left"></use></svg> <svg class="icon text-size-medium field__choice__checked" aria-hidden="true"><use xlink:href="symbol-defs.svg#icon-toggle-right"></use></svg> checkbox 1</label> <input id="field__checkbox__2" class="field__choice" type="checkbox" name="field__checkbox__2" value="true"/> <label for="field__checkbox__2" class="field__label"><svg class="icon text-size-medium field__choice__unchecked" aria-hidden="true"><use xlink:href="symbol-defs.svg#icon-toggle-left"></use></svg> <svg class="icon text-size-medium field__choice__checked" aria-hidden="true"><use xlink:href="symbol-defs.svg#icon-toggle-right"></use></svg> checkbox 2</label></div><div class="field field--error"><input id="field__checkbox__3" class="field__choice" type="checkbox" name="field__checkbox__3" value="true"/> <label for="field__checkbox__3" class="field__label"><svg class="icon text-size-medium field__choice__unchecked" aria-hidden="true"><use xlink:href="symbol-defs.svg#icon-toggle-left"></use></svg> <svg class="icon text-size-medium field__choice__checked" aria-hidden="true"><use xlink:href="symbol-defs.svg#icon-toggle-right"></use></svg> checkbox 1</label><div class="field__panel">error item 1</div></div><h3 class="h4 margin-top-2">Radio</h3><pre class="code margin-top-1"><code><div class="field"> | |||||
<input id="field__radio__1" class="field__choice" type="radio" name="field__radio__1[]" value="true" /> | |||||
<label for="field__radio__1" class="field__label"> | |||||
<svg class="icon text-size-medium field__choice__unchecked" aria-hidden="true"> | |||||
<use xlink:href="symbol-defs.svg#icon-toggle-left"></use> | |||||
</svg> | |||||
<svg class="icon text-size-medium field__choice__checked" aria-hidden="true"> | |||||
<use xlink:href="symbol-defs.svg#icon-toggle-right" /> | |||||
</svg> | |||||
radio item 1 | |||||
</label><br /> | |||||
<input id="field__radio__2" class="field__choice" type="radio" name="field__radio__1[]" value="true" /> | |||||
<label for="field__radio__2" class="field__label"> | |||||
<svg class="icon text-size-medium field__choice__unchecked" aria-hidden="true"> | |||||
<use xlink:href="symbol-defs.svg#icon-toggle-left"></use> | |||||
</svg> | |||||
<svg class="icon text-size-medium field__choice__checked" aria-hidden="true"> | |||||
<use xlink:href="symbol-defs.svg#icon-toggle-right" /> | |||||
</svg> | |||||
radio item 2 | |||||
</label> | |||||
</div> | |||||
<div class="field field--error"> | |||||
<input id="field__radio__3" class="field__choice" type="radio" name="field__radio__2[]" value="true" /> | |||||
<label for="field__radio__3" class="field__label"> | |||||
<svg class="icon text-size-medium field__choice__unchecked" aria-hidden="true"> | |||||
<use xlink:href="symbol-defs.svg#icon-toggle-left"></use> | |||||
</svg> | |||||
<svg class="icon text-size-medium field__choice__checked" aria-hidden="true"> | |||||
<use xlink:href="symbol-defs.svg#icon-toggle-right" /> | |||||
</svg> | |||||
radio item 1 | |||||
</label><br /> | |||||
<input id="field__radio__4" class="field__choice" type="radio" name="field__radio__2[]" value="true" /> | |||||
<label for="field__radio__4" class="field__label"> | |||||
<svg class="icon text-size-medium field__choice__unchecked" aria-hidden="true"> | |||||
<use xlink:href="symbol-defs.svg#icon-toggle-left"></use> | |||||
</svg> | |||||
<svg class="icon text-size-medium field__choice__checked" aria-hidden="true"> | |||||
<use xlink:href="symbol-defs.svg#icon-toggle-right" /> | |||||
</svg> | |||||
radio item 2 | |||||
</label> | |||||
<div class="field__panel"> | |||||
error item 1 | |||||
</div> | |||||
</div></code></pre><div class="field"><input id="field__radio__1" class="field__choice" type="radio" name="field__radio__1[]" value="true"/> <label for="field__radio__1" class="field__label"><svg class="icon text-size-medium field__choice__unchecked" aria-hidden="true"><use xlink:href="symbol-defs.svg#icon-toggle-left"></use></svg> <svg class="icon text-size-medium field__choice__checked" aria-hidden="true"><use xlink:href="symbol-defs.svg#icon-toggle-right"/></svg> radio item 1</label><br/><input id="field__radio__2" class="field__choice" type="radio" name="field__radio__1[]" value="true"/> <label for="field__radio__2" class="field__label"><svg class="icon text-size-medium field__choice__unchecked" aria-hidden="true"><use xlink:href="symbol-defs.svg#icon-toggle-left"></use></svg> <svg class="icon text-size-medium field__choice__checked" aria-hidden="true"><use xlink:href="symbol-defs.svg#icon-toggle-right"/></svg> radio item 2</label></div><div class="field field--error"><input id="field__radio__3" class="field__choice" type="radio" name="field__radio__2[]" value="true"/> <label for="field__radio__3" class="field__label"><svg class="icon text-size-medium field__choice__unchecked" aria-hidden="true"><use xlink:href="symbol-defs.svg#icon-toggle-left"></use></svg> <svg class="icon text-size-medium field__choice__checked" aria-hidden="true"><use xlink:href="symbol-defs.svg#icon-toggle-right"/></svg> radio item 1</label><br/><input id="field__radio__4" class="field__choice" type="radio" name="field__radio__2[]" value="true"/> <label for="field__radio__4" class="field__label"><svg class="icon text-size-medium field__choice__unchecked" aria-hidden="true"><use xlink:href="symbol-defs.svg#icon-toggle-left"></use></svg> <svg class="icon text-size-medium field__choice__checked" aria-hidden="true"><use xlink:href="symbol-defs.svg#icon-toggle-right"/></svg> radio item 2</label><div class="field__panel">error item 1</div></div><h3 class="h4 margin-top-2">Select</h3><pre class="code margin-top-1"><code><div class="field"> | |||||
<label class="field__label"> | |||||
Select Item | |||||
<select class="field__select"> | |||||
<option>select item 1</option> | |||||
<option>select item 2</option> | |||||
<option>select item 3</option> | |||||
</select> | |||||
</label> | |||||
</div> | |||||
<div class="field field--error"> | |||||
<label class="field__label"> | |||||
Select Item | |||||
<select class="field__select"> | |||||
<option>select item 1</option> | |||||
<option>select item 2</option> | |||||
<option>select item 3</option> | |||||
</select> | |||||
<div class="field__panel"> | |||||
error item 1 | |||||
</div> | |||||
</label> | |||||
</div></code></pre><div class="field"><label class="field__label">Select Item <select class="field__select"><option>select item 1</option><option>select item 2</option><option>select item 3</option></select></label></div><div class="field field--error"><label class="field__label">Select Item <select class="field__select"><option>select item 1</option><option>select item 2</option><option>select item 3</option></select><div class="field__panel">error item 1</div></label></div><h2 class="margin-top-3">Group</h2><h3 class="h4">Scss:</h3><pre class="code"><code>$crispy__group__margin: 0.3em !default; | |||||
$crispy__group__character: '/' !default; | |||||
$crispy__group__character-margin: 0 $crispy__group__margin 0 !default;</code></pre><h3 class="h4">Html:</h3><pre class="code"><code><nav> | |||||
<ul class="group group--hr"> | |||||
<li class="group__item">first item</li> | |||||
<li class="group__item">second item</li> | |||||
<li class="group__item">third item</li> | |||||
</ul> | |||||
</nav></code></pre><div class="panel panel__inner margin-bottom-2"><nav><ul class="group group--hr"><li class="group__item">first item</li><li class="group__item">second item</li><li class="group__item">third item</li></ul></nav></div><div class="panel panel__inner"><nav><ul class="group"><li class="group__item"><button class="button marginless">Button</button></li><li class="group__item"><button class="button marginless">Button</button></li><li class="group__item"><button class="button marginless">Button</button></li></ul></nav></div><h2 class="margin-top-3">Hero</h2><h3 class="h4">Html:</h3><pre class="code"><code><div class="hero" style="height: 300px; background-image: url('https://picsum.photos/1024')"></div></code></pre><div class="hero" style="height: 300px; background-image: url('https://picsum.photos/1024')"></div><pre class="code margin-top-3"><code><div class="hero hero--top" style="height: 300px; background-image: url('https://picsum.photos/1024')"></div></code></pre><div class="hero hero--top" style="height: 300px; background-image: url('https://picsum.photos/1024')"></div><pre class="code margin-top-3"><code><div class="hero hero--bottom" style="height: 300px; background-image: url('https://picsum.photos/1024')"></div></code></pre><div class="hero hero--bottom" style="height: 300px; background-image: url('https://picsum.photos/1024')"></div><h2 class="margin-top-3">Icon</h2><h3 class="h4">Scss:</h3><pre class="code"><code>$crispy__icon__size: 1.15em; | |||||
</code></pre><h3 class="h4">Html:</h3><pre class="code"><code><svg class="icon text-size-small" aria-hidden="true"> | |||||
<use xlink:href="symbol-defs.svg#icon-flask"></use> | |||||
</svg> | |||||
<svg class="icon" aria-hidden="true"> | |||||
<use xlink:href="symbol-defs.svg#icon-flask"></use> | |||||
</svg> | |||||
<svg class="icon text-size-large" aria-hidden="true"> | |||||
<use xlink:href="symbol-defs.svg#icon-flask"></use> | |||||
</svg> | |||||
<svg class="icon text-size-big" aria-hidden="true"> | |||||
<use xlink:href="symbol-defs.svg#icon-flask"></use> | |||||
</svg> | |||||
<svg class="icon text-size-mega" aria-hidden="true"> | |||||
<use xlink:href="symbol-defs.svg#icon-flask"></use> | |||||
</svg> | |||||
<svg class="icon icon-color-danger" aria-hidden="true"> | |||||
<use xlink:href="symbol-defs.svg#icon-flask"></use> | |||||
</svg>;</code></pre><div class="panel"><div class="panel__inner"><svg class="icon text-size-small" aria-hidden="true"><use xlink:href="symbol-defs.svg#icon-flask"></use></svg> <svg class="icon" aria-hidden="true"><use xlink:href="symbol-defs.svg#icon-flask"></use></svg> <svg class="icon text-size-large" aria-hidden="true"><use xlink:href="symbol-defs.svg#icon-flask"></use></svg> <svg class="icon text-size-big" aria-hidden="true"><use xlink:href="symbol-defs.svg#icon-flask"></use></svg> <svg class="icon text-size-mega" aria-hidden="true"><use xlink:href="symbol-defs.svg#icon-flask"></use></svg> <svg class="icon icon-color-danger" aria-hidden="true"><use xlink:href="symbol-defs.svg#icon-flask"></use></svg></div></div><h2 class="margin-top-3">Media</h2><h3 class="h4">Html:</h3><pre class="code"><code><img class="img-responsive" src="https://picsum.photos/400" /> | |||||
<figure> | |||||
<img class="img-responsive" src="https://picsum.photos/400" /> | |||||
<figcaption class="text-center">Lorem Ipsum</figcaption> | |||||
</figure> | |||||
</code></pre><div class="grid"><div class="col-12 col-md-6"><img class="img-responsive width-100" src="https://picsum.photos/400"/></div><div class="col-12 col-md-6"><figure><img class="img-responsive width-100" src="https://picsum.photos/400"/><figcaption class="text-center">Lorem Ipsum</figcaption></figure></div></div><h2 class="margin-top-3">Panel</h2><h3 class="h4">Scss:</h3><pre class="code"><code>$crispy__panel__inner-padding: $crispy__padding; | |||||
$crispy__panel__inner-padding-breakpoints: $crispy__padding-breakpoints; | |||||
$crispy__panel__background-color: $crispy__color-grey-light; | |||||
</code></pre><h3 class="h4">Html:</h3><pre class="code"><code><div class="panel"> | |||||
<div class="panel__inner"> | |||||
Lorem Ipsum | |||||
</div> | |||||
</div></code></pre><div class="panel"><div class="panel__inner">Lorem Ipsum</div></div><h2 class="margin-top-3">Progress</h2><h3 class="h4">Scss:</h3><pre class="code"><code>$crispy__progress__height: 30px; | |||||
$crispy__progress__background-color: $crispy__color-primary; | |||||
$crispy__progress__border-width: 1px; | |||||
$crispy__progress__border-color: $crispy__color-border; | |||||
</code></pre><h3 class="h4">Html:</h3><pre class="code"><code><div class="progress"> | |||||
<div class="progress__inner" style="width: 80%"></div> | |||||
</div> | |||||
</code></pre><div class="progress"><div class="progress__inner" style="width: 80%"></div></div><h2 class="margin-top-3">Modal</h2><h3 class="h4">Scss:</h3><pre class="code"><code>$crispy__modal__max-width-breakpoints: ( | |||||
$crispy__md: 50% | |||||
); | |||||
$crispy__modal__margin-breakpoints: ( | |||||
$crispy__md: 0.75em | |||||
); | |||||
$crispy__modal__z-index: zIndex('modal');</code></pre><h3 class="h4">Html:</h3><pre class="code"><code><div class="modal modal--bottom width-100"> | |||||
<div class="panel"> | |||||
<div class="panel__inner"> | |||||
Lorem Ipsum | |||||
</div> | |||||
</div> | |||||
</div></code></pre><div style="position: relative; width: 100%; height: 200px; border: 1px dotted black;"><div class="modal modal--top-left"><div class="panel"><div class="panel__inner">.modal--top-left</div></div></div><div class="modal modal--top-right"><div class="panel"><div class="panel__inner">.modal--top-right</div></div></div><div class="modal"><div class="panel"><div class="panel__inner">.modal</div></div></div><div class="modal modal--bottom-left"><div class="panel"><div class="panel__inner">.modal--bottom-left</div></div></div><div class="modal modal--bottom-right"><div class="panel"><div class="panel__inner">.modal--bottom-right</div></div></div></div><h2 class="margin-top-3">Table</h2><h3 class="h4">Scss:</h3><pre class="code"><code>$crispy__table__padding: $crispy__padding !default; | |||||
$crispy__table__padding-breakpoints: $crispy__padding-breakpoints !default; | |||||
$crispy__table__td__border: 1px solid $crispy__color-border !default; | |||||
$crispy__table__th__border-width: 2px !default; | |||||
$crispy__table__color: $crispy__color-text !default; | |||||
$crispy__table__striped__background-color: $crispy__color-grey-light !default;</code></pre><h3 class="h4">Html:</h3><pre class="code"><code><table class="table table--striped margin-bottom-2"> | |||||
<thead> | |||||
<tr> | |||||
<th>name</th> | |||||
<th>age</th> | |||||
</tr> | |||||
</thead> | |||||
<tbody> | |||||
<tr> | |||||
<td>Mr. Brown</td> | |||||
<td>43</td> | |||||
</tr> | |||||
<tr> | |||||
<td>Mr. Magenta</td> | |||||
<td>32</td> | |||||
</tr> | |||||
<tr> | |||||
<td>Mr. White</td> | |||||
<td>45</td> | |||||
</tr> | |||||
</tbody> | |||||
</table></code></pre><table class="table table--striped margin-bottom-2"><thead><tr><th>name</th><th>age</th></tr></thead><tbody><tr><td>Mr. Brown</td><td>43</td></tr><tr><td>Mr. Magenta</td><td>32</td></tr><tr><td>Mr. White</td><td>45</td></tr></tbody></table></div></div></main><footer class="footer background-color-info margin-top-4 padding-top-3 padding-bottom-3"><div class="container"><div class="grid"><div class="col-12"><div class="text-center"><ul class="group group--hr"><li class="group__item"><a class="text-color-white" href="/imprint.html">Imprint</a></li><li class="group__item"><a class="text-color-white" href="/privacy-policy.html">Privacy Policy</a></li></ul><p class="margin-top-1 margin-bottom-0">Made with Euphorie by Björn Hase, <a class="text-color-white" href="https://tententakelfabrik.de" target="_blank">Tentakelfabrik</a></p></div></div></div></div></footer></body></html> |
@ -0,0 +1 @@ | |||||
<!doctype html><html lang="en_EN"><head><meta charset="utf-8"><meta http-equiv="x-ua-compatible" content="ie=edge"><title>Core | Crispy CSS</title><meta name="description" content=""><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="stylesheet" href="styles.css"></head><body><header id="header" class="header header--fixed background-color-info"><div class="container"><div class="grid"><div class="col-12 col-md-4"><a href="/" class="text-color-white text-bold"><svg class="icon text-size-mega" alt="Crispy CSS"><use xlink:href="symbol-defs.svg#icon-logo"/></svg> Crispy CSS</a></div><div class="col-12 col-md-8"><nav class="group text-right show"><ul class="group"><li class="group__item"><a href="getting-started.html" class="text-color-white">Getting started!</a></li><li class="group__item"><a href="core.html" class="text-color-white">Core</a></li><li class="group__item"><a href="components.html" class="text-color-white">Components</a></li><li class="group__item"><a href="helpers.html" class="text-color-white">Helpers</a></li><li class="group__item"><a href="mixins.html" class="text-color-white">Mixins</a></li><li class="group__item"><a href="functions.html" class="text-color-white">Functions</a></li></ul></nav></div></div></div></header><main class="container"><div class="grid"><div class="col-12"><header class="header"><h1 class="padding-top-4 padding-bottom-2 text-center">Core</h1></header><h2 class="marginless margin-bottom-1">Normalize</h2><hr class="marginless margin-bottom-2"/><h3 class="h4 margin-top-2">a</h3><a href="#">Link</a><div class="grid"><div class="col-12"><h2 class="marginless margin-top-2 margin-bottom-1">Typography</h2><hr class="marginless margin-bottom-2"/><h3 class="h4 margin-top-2">Heading</h3><div class="h1">Heading h1</div><div class="h2">Heading h2</div><div class="h3">Heading h3</div><div class="h4">Heading h4</div><div class="h5">Heading h5</div><div class="h6">Heading h6</div><h3 class="h4 margin-top-2">abbr</h3><p>Glossier viral occupy mixtape pok pok cornhole, <abbr title="vape affogato hella">vape affogato hella</abbr> knausgaard thundercats</p><h3 class="h4 margin-top-2">blockquote</h3><blockquote>Hoodie kickstarter four loko, pinterest hashtag chambray glossier. Pug before they sold out etsy listicle. Deep v bespoke tacos polaroid, squid flexitarian crucifix messenger bag.</blockquote><h3 class="h4 margin-top-2">hr</h3><hr><h3 class="h4 margin-top-2">paragraph</h3><p>Glossier viral occupy mixtape pok pok.</p><h3 class="h4 margin-top-2">mark</h3><p>Pug before they <mark>four loko</mark> Deep v bespoke</p><h3 class="h4 margin-top-2">list</h3><ul><li>item 1</li><li>item 2<ul><li>child item 1</li><li>child item 2</li></ul></li></ul><ol><li>item 1</li><li>item 2</li></ol><dl><dt>defined title 1</dt><dd>defined item 1</dd></dl></div></div></div></div></main><footer class="footer background-color-info margin-top-4 padding-top-3 padding-bottom-3"><div class="container"><div class="grid"><div class="col-12"><div class="text-center"><ul class="group group--hr"><li class="group__item"><a class="text-color-white" href="/imprint.html">Imprint</a></li><li class="group__item"><a class="text-color-white" href="/privacy-policy.html">Privacy Policy</a></li></ul><p class="margin-top-1 margin-bottom-0">Made with Euphorie by Björn Hase, <a class="text-color-white" href="https://tententakelfabrik.de" target="_blank">Tentakelfabrik</a></p></div></div></div></div></footer></body></html> |
@ -0,0 +1,4 @@ | |||||
<!doctype html><html lang="en_EN"><head><meta charset="utf-8"><meta http-equiv="x-ua-compatible" content="ie=edge"><title>Functions | Crispy CSS</title><meta name="description" content=""><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="stylesheet" href="styles.css"></head><body><header id="header" class="header header--fixed background-color-info"><div class="container"><div class="grid"><div class="col-12 col-md-4"><a href="/" class="text-color-white text-bold"><svg class="icon text-size-mega" alt="Crispy CSS"><use xlink:href="symbol-defs.svg#icon-logo"/></svg> Crispy CSS</a></div><div class="col-12 col-md-8"><nav class="group text-right show"><ul class="group"><li class="group__item"><a href="getting-started.html" class="text-color-white">Getting started!</a></li><li class="group__item"><a href="core.html" class="text-color-white">Core</a></li><li class="group__item"><a href="components.html" class="text-color-white">Components</a></li><li class="group__item"><a href="helpers.html" class="text-color-white">Helpers</a></li><li class="group__item"><a href="mixins.html" class="text-color-white">Mixins</a></li><li class="group__item"><a href="functions.html" class="text-color-white">Functions</a></li></ul></nav></div></div></div></header><main class="container"><div class="grid"><div class="col-12"><header class="header"><h1 class="padding-top-4 padding-bottom-2 text-center">Functions</h1></header><h3 class="h4 margin-top-0">stripUnit()</h3><h4 class="h6 margin-top-1">Sass:</h4><pre class="code"><code>stripUnit(10px);</code></pre><p>Returns value without unit.</p><h3 class="h4 margin-top-0">zIndex(name)</h3><h4 class="h6 margin-top-1">Sass:</h4><pre class="code"><code>zIndex('modal');</code></pre><p>Returns value from $crispy__z-index.</p><h4 class="h6 margin-top-1">Sass:</h4><pre class="code"><code>$crispy__z-index: ( | |||||
'overlay': 90, | |||||
'modal' : 100 | |||||
);</code></pre></div></div></main><footer class="footer background-color-info margin-top-4 padding-top-3 padding-bottom-3"><div class="container"><div class="grid"><div class="col-12"><div class="text-center"><ul class="group group--hr"><li class="group__item"><a class="text-color-white" href="/imprint.html">Imprint</a></li><li class="group__item"><a class="text-color-white" href="/privacy-policy.html">Privacy Policy</a></li></ul><p class="margin-top-1 margin-bottom-0">Made with Euphorie by Björn Hase, <a class="text-color-white" href="https://tententakelfabrik.de" target="_blank">Tentakelfabrik</a></p></div></div></div></div></footer></body></html> |
@ -0,0 +1,16 @@ | |||||
<!doctype html><html lang="en_EN"><head><meta charset="utf-8"><meta http-equiv="x-ua-compatible" content="ie=edge"><title>Get Started | Crispy CSS</title><meta name="description" content=""><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="stylesheet" href="styles.css"></head><body><header id="header" class="header header--fixed background-color-info"><div class="container"><div class="grid"><div class="col-12 col-md-4"><a href="/" class="text-color-white text-bold"><svg class="icon text-size-mega" alt="Crispy CSS"><use xlink:href="symbol-defs.svg#icon-logo"/></svg> Crispy CSS</a></div><div class="col-12 col-md-8"><nav class="group text-right show"><ul class="group"><li class="group__item"><a href="getstarted.html" class="text-color-white">Get Started!</a></li><li class="group__item"><a href="core.html" class="text-color-white">Core</a></li><li class="group__item"><a href="components.html" class="text-color-white">Components</a></li><li class="group__item"><a href="helpers.html" class="text-color-white">Helpers</a></li><li class="group__item"><a href="mixins.html" class="text-color-white">Mixins</a></li><li class="group__item"><a href="functions.html" class="text-color-white">Functions</a></li></ul></nav></div></div></div></header><main class="container"><div class="grid"><div class="col-12"><header class="header"><h1 class="padding-top-4 padding-bottom-2 text-center">Get Started</h1></header><h2>Installation</h2><pre class="code"><code>npm install crispy-css</code></pre><h3 class="h4">SCSS</h3><pre class="code"><code>@import "crispy";</code></pre><p>Now include Mixins you need. Components and Modifiziers only works if you include them,</p><pre class="code"><code>@include crispy__button(); | |||||
@include crispy__code(); | |||||
@include crispy__field(); | |||||
@include crispy__group(); | |||||
@include crispy__hero(); | |||||
@include crispy__icon(); | |||||
@include crispy__media(); | |||||
@include crispy__modal(); | |||||
@include crispy__overlay(); | |||||
@include crispy__panel(); | |||||
@include crispy__progress(); | |||||
@include crispy__table();</code></pre><p>For Custom Variables add a File before importing Crispy,</p><pre class="code"><code>@import | |||||
"config", | |||||
"crispy";</code></pre><p>If you need all, mixins will be included,</p><pre class="code"><code>@import | |||||
"crispy-all";</code></pre><p>Only need Core and Modifiziers?</p><pre class="code"><code>@import | |||||
"crispy-minimal";</code></pre><h3 class="h4">CSS</h3><p>For using CSS you can use <span class="text-bold">crispy-all.css</span> for all Styles or <span class="text-bold">crispy-mininmal.css</span> without Components.</p><h2>Example</h2><p>You find an example in "/src/example", this is this Documentation. In the given example there are additional directories. These ones are part of a structure which might be helpful for you.</p><h3 class="h4">Site</h3><p>Contains header, footer, partials that are used on a site or webapp. Header and Footer are not classical components, there often more complex and have a special brand.</p><h3 class="h4">Templates</h3><p>Templates are for a single site or a group of sites, they are complex and there is no benefit so reuse them as components.</p></div></div></main><footer class="footer background-color-info margin-top-4 padding-top-3 padding-bottom-3"><div class="container"><div class="grid"><div class="col-12"><div class="text-center"><ul class="group group--hr"><li class="group__item"><a class="text-color-white" href="/imprint.html">Imprint</a></li><li class="group__item"><a class="text-color-white" href="/privacy-policy.html">Privacy Policy</a></li></ul><p class="margin-top-1 margin-bottom-0">Made with Euphorie by Björn Hase, <a class="text-color-white" href="https://tententakelfabrik.de" target="_blank">Tentakelfabrik</a></p></div></div></div></div></footer></body></html> |
@ -0,0 +1,16 @@ | |||||
<!doctype html><html lang="en_EN"><head><meta charset="utf-8"><meta http-equiv="x-ua-compatible" content="ie=edge"><title>Getting started! | Crispy CSS</title><meta name="description" content=""><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="stylesheet" href="styles.css"></head><body><header id="header" class="header header--fixed background-color-info"><div class="container"><div class="grid"><div class="col-12 col-md-4"><a href="/" class="text-color-white text-bold"><svg class="icon text-size-mega" alt="Crispy CSS"><use xlink:href="symbol-defs.svg#icon-logo"/></svg> Crispy CSS</a></div><div class="col-12 col-md-8"><nav class="group text-right show"><ul class="group"><li class="group__item"><a href="getting-started.html" class="text-color-white">Getting started!</a></li><li class="group__item"><a href="core.html" class="text-color-white">Core</a></li><li class="group__item"><a href="components.html" class="text-color-white">Components</a></li><li class="group__item"><a href="helpers.html" class="text-color-white">Helpers</a></li><li class="group__item"><a href="mixins.html" class="text-color-white">Mixins</a></li><li class="group__item"><a href="functions.html" class="text-color-white">Functions</a></li></ul></nav></div></div></div></header><main class="container"><div class="grid"><div class="col-12"><header class="header"><h1 class="padding-top-4 padding-bottom-2 text-center">Getting started!</h1></header><h2 class="margin-bottom-1">Installation</h2><hr class="marginless margin-bottom-2"/><pre class="code"><code>npm install crispy-css</code></pre><h3 class="h4">Scss</h3><pre class="code"><code>@import "crispy";</code></pre><p>Now include Mixins you need. Components and Modifiziers only works if you include them,</p><pre class="code"><code>@include crispy__button(); | |||||
@include crispy__code(); | |||||
@include crispy__field(); | |||||
@include crispy__group(); | |||||
@include crispy__hero(); | |||||
@include crispy__icon(); | |||||
@include crispy__media(); | |||||
@include crispy__modal(); | |||||
@include crispy__overlay(); | |||||
@include crispy__panel(); | |||||
@include crispy__progress(); | |||||
@include crispy__table();</code></pre><p>For Custom Variables add a File before importing Crispy,</p><pre class="code"><code>@import | |||||
"config", | |||||
"crispy";</code></pre><p>If you need all, mixins will be included,</p><pre class="code"><code>@import | |||||
"crispy-all";</code></pre><p>Only need Core and Modifiziers?</p><pre class="code"><code>@import | |||||
"crispy-minimal";</code></pre><h3 class="h4">CSS</h3><p>For using CSS you can use <span class="text-bold">crispy-all.css</span> for all Styles or <span class="text-bold">crispy-mininmal.css</span> without Components.</p><h2>Example</h2><p>You find an example in "/src/example", this is this Documentation. In the given example there are additional directories. These ones are part of a structure which might be helpful for you.</p><h3 class="h4">Site</h3><p>Contains header, footer, partials that are used on a site or webapp. Header and Footer are not classical components, there often more complex and have a special brand.</p><h3 class="h4">Templates</h3><p>Templates are for a single site or a group of sites, they are complex and there is no benefit so reuse them as components.</p></div></div></main><footer class="footer background-color-info margin-top-4 padding-top-3 padding-bottom-3"><div class="container"><div class="grid"><div class="col-12"><div class="text-center"><ul class="group group--hr"><li class="group__item"><a class="text-color-white" href="/imprint.html">Imprint</a></li><li class="group__item"><a class="text-color-white" href="/privacy-policy.html">Privacy Policy</a></li></ul><p class="margin-top-1 margin-bottom-0">Made with Euphorie by Björn Hase, <a class="text-color-white" href="https://tententakelfabrik.de" target="_blank">Tentakelfabrik</a></p></div></div></div></div></footer></body></html> |
@ -0,0 +1 @@ | |||||
<!doctype html><html lang="en_EN"><head><meta charset="utf-8"><meta http-equiv="x-ua-compatible" content="ie=edge"><title>Imprint | Crispy CSS</title><meta name="description" content=""><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="stylesheet" href="styles.css"></head><body><header id="header" class="header header--fixed background-color-info"><div class="container"><div class="grid"><div class="col-12 col-md-4"><a href="/" class="text-color-white text-bold"><svg class="icon text-size-mega" alt="Crispy CSS"><use xlink:href="symbol-defs.svg#icon-logo"/></svg> Crispy CSS</a></div><div class="col-12 col-md-8"><nav class="group text-right show"><ul class="group"><li class="group__item"><a href="getting-started.html" class="text-color-white">Getting started!</a></li><li class="group__item"><a href="core.html" class="text-color-white">Core</a></li><li class="group__item"><a href="components.html" class="text-color-white">Components</a></li><li class="group__item"><a href="helpers.html" class="text-color-white">Helpers</a></li><li class="group__item"><a href="mixins.html" class="text-color-white">Mixins</a></li><li class="group__item"><a href="functions.html" class="text-color-white">Functions</a></li></ul></nav></div></div></div></header><main class="container"><div class="grid"><div class="col-12"><header class="header"><h1 class="padding-top-4 padding-bottom-2 text-center">Imprint</h1></header></div></div></main><footer class="footer background-color-info margin-top-4 padding-top-3 padding-bottom-3"><div class="container"><div class="grid"><div class="col-12"><div class="text-center"><ul class="group group--hr"><li class="group__item"><a class="text-color-white" href="/imprint.html">Imprint</a></li><li class="group__item"><a class="text-color-white" href="/privacy-policy.html">Privacy Policy</a></li></ul><p class="margin-top-1 margin-bottom-0">Made with Euphorie by Björn Hase, <a class="text-color-white" href="https://tententakelfabrik.de" target="_blank">Tentakelfabrik</a></p></div></div></div></div></footer></body></html> |
@ -0,0 +1 @@ | |||||
<!doctype html><html lang="en_EN"><head><meta charset="utf-8"><meta http-equiv="x-ua-compatible" content="ie=edge"><title>Crispy CSS | Lightweight CSS Framework for Building Apps and Websites</title><meta name="description" content="Lightweight Framework for building fast and clean Websites and Apps for Mobile, Tablet and Desktop. Minimal UI-Elements, Functions and Helpers"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="stylesheet" href="styles.css"></head><body><header id="header" class="header"><div class="container"><div class="grid"><div class="col-12"><div class="text-center"><hgroup><a href="/"><h1 class="h2 margin-top-4 margin-bottom-0"><svg class="icon icon--big margin-bottom-1" alt="Crispy CSS"><use xlink:href="symbol-defs.svg#icon-logo"/></svg><br/>Crispy CSS</h1></a><small class="text-color-primary">v3.0.0</small><h2 class="h5 margin-top-1">Lightweight CSS Framework for Building Apps and Websites</h2></hgroup></div></div></div></div></header><div class="container"><div class="grid margin-top-2 margin-bottom-2"><div class="col-12 col-sm-6 col-lg-4 col-align-center"><h3 class="h4 text-center"><span class="h3__icon"><svg class="icon icon-color-primary text-size-medium" alt="Mixins and Functions"><use xlink:href="symbol-defs.svg#icon-emoticon-zip"/></svg></span><div>Ugly</div></h3><p class="text-center">Yes, this Framework has no fancy Layout or shiny Elements, because what created with Crispy CSS could be fancy. This Framework adds basic styles and support your Work.</p></div><div class="col-12 col-sm-6 col-lg-4"><h3 class="h4 text-center"><span class="h3__icon"><svg class="icon icon-color-primary text-size-medium" alt="Customizeable"><use xlink:href="symbol-defs.svg#icon-spray"/></svg></span><div>Helpers</div></h3><p class="text-center">Mixins, Functions and Modifiers make your Workflow simpler. Only import Components you really need and make your Work lightweight.</p></div><div class="col-12 col-sm-6 col-lg-4"><h3 class="h4 text-center"><span class="h3__icon"><svg class="icon icon-color-primary text-size-large" alt="Coding Style"><use xlink:href="symbol-defs.svg#icon-design"/></svg></span><div>Coding Style</div></h3><p class="text-center">Crispy CSS uses <a href="http://getbem.com/" target="_blank">BEM</a>, but an simpler approach of it. BEM is good to show dependencies in Components and add structure to your Styles.</p></div></div><div class="margin-bottom-2 text-center text-size-medium"><a class="button background-color-success text-color-white" href="/getstarted.html">Get started! <svg class="icon margin-left-1" alt="proceed"><use xlink:href="symbol-defs.svg#icon-circle-right"/></svg> </a><a class="button background-color-grey text-color-white" target="_blank" href="https://github.com/tentakelfabrik/crispy-css">Visit on Github <svg class="icon margin-left-1" alt="github"><use xlink:href="symbol-defs.svg#icon-github"/></svg></a></div><div class="margin-bottom-5 margin-top-4"><div class="grid"><div class="col-12"><h2 class="h3 text-center">Apps and Websites that have been crafted</h2></div></div><div class="grid"><div class="col-12 col-sm-6 col-md-4"><h3 class="h5 text-center">Tentakelfabrik</h3><a class="text-center show" href="https://tentakelfabrik.de" target="_blank"><img class="bordered img-responsive width-100" src="img/tentakelfabrik.jpg"/></a></div><div class="col-12 col-sm-6 col-md-4"><h3 class="h5 text-center">Gaming Circus</h3><a class="text-center show" href="https://gaming-circus.de" target="_blank"><img class="bordered img-responsive width-100" src="img/gaming-circus.jpg"/></a></div><div class="col-12 col-sm-6 col-md-4"><h3 class="h5 text-center">Trinkkofi</h3><a class="text-center show" href="https://trinkkofi.de" target="_blank"><img class="bordered img-responsive width-100" src="img/trinkkofi.jpg"/></a></div></div></div></div><footer class="footer background-color-info margin-top-4 padding-top-3 padding-bottom-3"><div class="container"><div class="grid"><div class="col-12"><div class="text-center"><ul class="group group--hr"><li class="group__item"><a class="text-color-white" href="/imprint.html">Imprint</a></li><li class="group__item"><a class="text-color-white" href="/privacy-policy.html">Privacy Policy</a></li></ul><p class="margin-top-1 margin-bottom-0">Made with Euphorie by Björn Hase, <a class="text-color-white" href="https://tententakelfabrik.de" target="_blank">Tentakelfabrik</a></p></div></div></div></div></footer></body></html> |
@ -0,0 +1,49 @@ | |||||
<!doctype html><html lang="en_EN"><head><meta charset="utf-8"><meta http-equiv="x-ua-compatible" content="ie=edge"><title>Mixins | Crispy CSS</title><meta name="description" content=""><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="stylesheet" href="styles.css"></head><body><header id="header" class="header header--fixed background-color-info"><div class="container"><div class="grid"><div class="col-12 col-md-4"><a href="/" class="text-color-white text-bold"><svg class="icon text-size-mega" alt="Crispy CSS"><use xlink:href="symbol-defs.svg#icon-logo"/></svg> Crispy CSS</a></div><div class="col-12 col-md-8"><nav class="group text-right show"><ul class="group"><li class="group__item"><a href="getting-started.html" class="text-color-white">Getting started!</a></li><li class="group__item"><a href="core.html" class="text-color-white">Core</a></li><li class="group__item"><a href="components.html" class="text-color-white">Components</a></li><li class="group__item"><a href="helpers.html" class="text-color-white">Helpers</a></li><li class="group__item"><a href="mixins.html" class="text-color-white">Mixins</a></li><li class="group__item"><a href="functions.html" class="text-color-white">Functions</a></li></ul></nav></div></div></div></header><main class="container"><div class="grid"><div class="col-12"><header class="header"><h1 class="padding-top-4 padding-bottom-2 text-center">Mixins</h1></header><h3 class="h4 margin-top-1">Triangle</h3><h4 class="h6 margin-top-1">Sass:</h4><pre class="code"><code>.triangle-left, .triangle-right, .triangle-top, .triangle-bottom { | |||||
display: block; | |||||
} | |||||
.triangle-left { | |||||
@include triangle('left', $crispy__color-primary); | |||||
} | |||||
.triangle-right { | |||||
@include triangle('right', $crispy__color-primary); | |||||
} | |||||
.triangle-top { | |||||
@include triangle('top', $crispy__color-primary); | |||||
} | |||||
.triangle-bottom { | |||||
@include triangle('bottom', $crispy__color-primary); | |||||
} | |||||
</code></pre><p><span class="triangle-right"></span> <span class="triangle-left"></span> <span class="triangle-top"></span> <span class="triangle-bottom"></span></p><h3 class="h4 margin-top-1">Media Queries</h3><p>These <strong>@mixins</strong> were used with the Breakpoints from <a target="_blank" href="http://reflexgrid.com/docs/">http://reflexgrid.com/docs/</a>. Reflex-Grid is also used as grid for this Site.</p><ul><li><strong>xs</strong> 576px</li><li><strong>sm</strong> 768px</li><li><strong>md</strong> 992px</li><li><strong>lg</strong> 1200px</li><li><strong>xlg</strong> 1600px</li></ul><h4 class="h6 margin-top-1">Html:</h4><pre class="code"><code><div class="sm">sm</div> | |||||
<div class="md">md</div> | |||||
<div class="md-only">md-only</div> | |||||
<div class="lg-only">lg-only</div></code></pre><h4 class="h6 margin-top-1">Sass:</h4><pre class="code"><code>.sm, .md, .md-only, .lg-only { | |||||
display: none; | |||||
} | |||||
.sm { | |||||
@include crispy__media-sm() { | |||||
display: block; | |||||
} | |||||
} | |||||
.md { | |||||
@include crispy__media-md() { | |||||
display: block; | |||||
} | |||||
} | |||||
.md-only { | |||||
@include crispy__media-md-only() { | |||||
display: block; | |||||
} | |||||
} | |||||
.lg-only { | |||||
@include crispy__media-lg-only() { | |||||
display: block; | |||||
} | |||||
}</code></pre><div class="grid"><div class="col-3"><div class="panel panel__inner sm margin-bottom-1">sm</div></div><div class="col-3"><div class="panel panel__inner md margin-bottom-1">md</div></div><div class="col-3"><div class="panel panel__inner md-only margin-bottom-1">md-only</div></div><div class="col-3"><div class="panel panel__inner lg-only margin-bottom-1">lg-only</div></div></div></div></div></main><footer class="footer background-color-info margin-top-4 padding-top-3 padding-bottom-3"><div class="container"><div class="grid"><div class="col-12"><div class="text-center"><ul class="group group--hr"><li class="group__item"><a class="text-color-white" href="/imprint.html">Imprint</a></li><li class="group__item"><a class="text-color-white" href="/privacy-policy.html">Privacy Policy</a></li></ul><p class="margin-top-1 margin-bottom-0">Made with Euphorie by Björn Hase, <a class="text-color-white" href="https://tententakelfabrik.de" target="_blank">Tentakelfabrik</a></p></div></div></div></div></footer></body></html> |
@ -0,0 +1 @@ | |||||
<!doctype html><html lang="en_EN"><head><meta charset="utf-8"><meta http-equiv="x-ua-compatible" content="ie=edge"><title>Privacy Policy | Crispy CSS</title><meta name="description" content=""><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="stylesheet" href="styles.css"></head><body><header id="header" class="header header--fixed background-color-info"><div class="container"><div class="grid"><div class="col-12 col-md-4"><a href="/" class="text-color-white text-bold"><svg class="icon text-size-mega" alt="Crispy CSS"><use xlink:href="symbol-defs.svg#icon-logo"/></svg> Crispy CSS</a></div><div class="col-12 col-md-8"><nav class="group text-right show"><ul class="group"><li class="group__item"><a href="getting-started.html" class="text-color-white">Getting started!</a></li><li class="group__item"><a href="core.html" class="text-color-white">Core</a></li><li class="group__item"><a href="components.html" class="text-color-white">Components</a></li><li class="group__item"><a href="helpers.html" class="text-color-white">Helpers</a></li><li class="group__item"><a href="mixins.html" class="text-color-white">Mixins</a></li><li class="group__item"><a href="functions.html" class="text-color-white">Functions</a></li></ul></nav></div></div></div></header><main class="container"><div class="grid"><div class="col-12"><header class="header"><h1 class="padding-top-4 padding-bottom-2 text-center">Privacy Policy</h1></header></div></div></main><footer class="footer background-color-info margin-top-4 padding-top-3 padding-bottom-3"><div class="container"><div class="grid"><div class="col-12"><div class="text-center"><ul class="group group--hr"><li class="group__item"><a class="text-color-white" href="/imprint.html">Imprint</a></li><li class="group__item"><a class="text-color-white" href="/privacy-policy.html">Privacy Policy</a></li></ul><p class="margin-top-1 margin-bottom-0">Made with Euphorie by Björn Hase, <a class="text-color-white" href="https://tententakelfabrik.de" target="_blank">Tentakelfabrik</a></p></div></div></div></div></footer></body></html> |
@ -1,7 +1,7 @@ | |||||
{ | { | ||||
"/dist/crispy-all.css": "/dist/crispy-all.css", | "/dist/crispy-all.css": "/dist/crispy-all.css", | ||||
"/dist/crispy-minimal.css": "/dist/crispy-minimal.css", | "/dist/crispy-minimal.css": "/dist/crispy-minimal.css", | ||||
"/dist/example/styles.css": "/dist/example/styles.css", | |||||
"/dist/examples/styles.css": "/dist/examples/styles.css", | |||||
"/spritemap.js": "/spritemap.js", | "/spritemap.js": "/spritemap.js", | ||||
"/dist/example/symbol-defs.svg": "/dist/example/symbol-defs.svg" | |||||
"/dist/examples/symbol-defs.svg": "/dist/examples/symbol-defs.svg" | |||||
} | } |
@ -1,341 +0,0 @@ | |||||
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */ | |||||
/* Modifized | |||||
/* Document | |||||
========================================================================== */ | |||||
/** | |||||
* 1. Correct the line height in all browsers. | |||||
* 2. Prevent adjustments of font size after orientation changes in iOS. | |||||
*/ | |||||
html { | |||||
line-height: 1.15; /* 1 */ | |||||
-webkit-text-size-adjust: 100%; /* 2 */ | |||||
} | |||||
/* Sections | |||||
========================================================================== */ | |||||
/** | |||||
* Remove the margin in all browsers. | |||||
*/ | |||||
body { | |||||
margin: 0; | |||||
} | |||||
/** | |||||
* Render the `main` element consistently in IE. | |||||
*/ | |||||
main { | |||||
display: block; | |||||
} | |||||
/* Grouping content | |||||
========================================================================== */ | |||||
/** | |||||
* 1. Add the correct box sizing in Firefox. | |||||
* 2. Show the overflow in Edge and IE. | |||||
*/ | |||||
hr { | |||||
box-sizing: content-box; /* 1 */ | |||||
height: 0; /* 1 */ | |||||
overflow: visible; /* 2 */ | |||||
} | |||||
/** | |||||
* 1. Correct the inheritance and scaling of font size in all browsers. | |||||
* 2. Correct the odd `em` font sizing in all browsers. | |||||
*/ | |||||
pre { | |||||
font-family: monospace, monospace; /* 1 */ | |||||
font-size: 1em; /* 2 */ | |||||
} | |||||
/* Text-level semantics | |||||
========================================================================== */ | |||||
/** | |||||
* Remove the gray background on active links in IE 10. | |||||
*/ | |||||
a { | |||||
background-color: transparent; | |||||
} | |||||
/** | |||||
* 1. Remove the bottom border in Chrome 57- | |||||
* 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari. | |||||
*/ | |||||
abbr[title] { | |||||
border-bottom: none; /* 1 */ | |||||
text-decoration: underline; /* 2 */ | |||||
text-decoration: underline dotted; /* 2 */ | |||||
} | |||||
/** | |||||
* Add the correct font weight in Chrome, Edge, and Safari. | |||||
*/ | |||||
b, | |||||
strong { | |||||
font-weight: bolder; | |||||
} | |||||
/** | |||||
* 1. Correct the inheritance and scaling of font size in all browsers. | |||||
* 2. Correct the odd `em` font sizing in all browsers. | |||||
*/ | |||||
code, | |||||
kbd, | |||||
samp { | |||||
font-family: monospace, monospace; /* 1 */ | |||||
font-size: 1em; /* 2 */ | |||||
} | |||||
/** | |||||
* Add the correct font size in all browsers. | |||||
*/ | |||||
small { | |||||
font-size: 80%; | |||||
} | |||||
/** | |||||
* Prevent `sub` and `sup` elements from affecting the line height in | |||||
* all browsers. | |||||
*/ | |||||
sub, | |||||
sup { | |||||
font-size: 75%; | |||||
line-height: 0; | |||||
position: relative; | |||||
vertical-align: baseline; | |||||
} | |||||
sub { | |||||
bottom: -0.25em; | |||||
} | |||||
sup { | |||||
top: -0.5em; | |||||
} | |||||
/* Embedded content | |||||
========================================================================== */ | |||||
/** | |||||
* Remove the border on images inside links in IE 10. | |||||
*/ | |||||
img { | |||||
border-style: none; | |||||
} | |||||
/* Forms | |||||
========================================================================== */ | |||||
/** | |||||
* 1. Change the font styles in all browsers. | |||||
* 2. Remove the margin in Firefox and Safari. | |||||
*/ | |||||
button, | |||||
input, | |||||
optgroup, | |||||
select, | |||||
textarea { | |||||
font-family: inherit; /* 1 */ | |||||
font-size: 100%; /* 1 */ | |||||
line-height: 1.15; /* 1 */ | |||||
margin: 0; /* 2 */ | |||||
} | |||||
/** | |||||
* Show the overflow in IE. | |||||
* 1. Show the overflow in Edge. | |||||
*/ | |||||
button, | |||||
input { /* 1 */ | |||||
overflow: visible; | |||||
} | |||||
/** | |||||
* Remove the inheritance of text transform in Edge, Firefox, and IE. | |||||
* 1. Remove the inheritance of text transform in Firefox. | |||||
*/ | |||||
button, | |||||
select { /* 1 */ | |||||
text-transform: none; | |||||
} | |||||
/** | |||||
* Correct the inability to style clickable types in iOS and Safari. | |||||
*/ | |||||
button, | |||||
[type="button"], | |||||
[type="reset"], | |||||
[type="submit"] { | |||||
-webkit-appearance: button; | |||||
} | |||||
/** | |||||
* Remove the inner border and padding in Firefox. | |||||
*/ | |||||
button::-moz-focus-inner, | |||||
[type="button"]::-moz-focus-inner, | |||||
[type="reset"]::-moz-focus-inner, | |||||
[type="submit"]::-moz-focus-inner { | |||||
border-style: none; | |||||
padding: 0; | |||||
} | |||||
/** | |||||
* Restore the focus styles unset by the previous rule. | |||||
*/ | |||||
button:-moz-focusring, | |||||
[type="button"]:-moz-focusring, | |||||
[type="reset"]:-moz-focusring, | |||||
[type="submit"]:-moz-focusring { | |||||
outline: 1px dotted ButtonText; | |||||
} | |||||
/** | |||||
* Correct the padding in Firefox. | |||||
*/ | |||||
fieldset { | |||||
padding: 0.35em 0.75em 0.625em; | |||||
} | |||||
/** | |||||
* 1. Correct the text wrapping in Edge and IE. | |||||
* 2. Correct the color inheritance from `fieldset` elements in IE. | |||||
* 3. Remove the padding so developers are not caught out when they zero out | |||||
* `fieldset` elements in all browsers. | |||||
*/ | |||||
legend { | |||||
box-sizing: border-box; /* 1 */ | |||||
color: inherit; /* 2 */ | |||||
display: table; /* 1 */ | |||||
max-width: 100%; /* 1 */ | |||||
padding: 0; /* 3 */ | |||||
white-space: normal; /* 1 */ | |||||
} | |||||
/** | |||||
* Add the correct vertical alignment in Chrome, Firefox, and Opera. | |||||
*/ | |||||
progress { | |||||
vertical-align: baseline; | |||||
} | |||||
/** | |||||
* Remove the default vertical scrollbar in IE 10+. | |||||
*/ | |||||
textarea { | |||||
overflow: auto; | |||||
} | |||||
/** | |||||
* 1. Add the correct box sizing in IE 10. | |||||
* 2. Remove the padding in IE 10. | |||||
*/ | |||||
[type="checkbox"], | |||||
[type="radio"] { | |||||
box-sizing: border-box; /* 1 */ | |||||
padding: 0; /* 2 */ | |||||
} | |||||
/** | |||||
* Correct the cursor style of increment and decrement buttons in Chrome. | |||||
*/ | |||||
[type="number"]::-webkit-inner-spin-button, | |||||
[type="number"]::-webkit-outer-spin-button { | |||||
height: auto; | |||||
} | |||||
/** | |||||
* 1. Correct the odd appearance in Chrome and Safari. | |||||
* 2. Correct the outline style in Safari. | |||||
*/ | |||||
[type="search"] { | |||||
-webkit-appearance: textfield; /* 1 */ | |||||
outline-offset: -2px; /* 2 */ | |||||
} | |||||
/** | |||||
* Remove the inner padding in Chrome and Safari on macOS. | |||||
*/ | |||||
[type="search"]::-webkit-search-decoration { | |||||
-webkit-appearance: none; | |||||
} | |||||
/** | |||||
* 1. Correct the inability to style clickable types in iOS and Safari. | |||||
* 2. Change font properties to `inherit` in Safari. | |||||
*/ | |||||
::-webkit-file-upload-button { | |||||
-webkit-appearance: button; /* 1 */ | |||||
font: inherit; /* 2 */ | |||||
} | |||||
/* Interactive | |||||
========================================================================== */ | |||||
/* | |||||
* Add the correct display in Edge, IE 10+, and Firefox. | |||||
*/ | |||||
details { | |||||
display: block; | |||||
} | |||||
/* | |||||
* Add the correct display in all browsers. | |||||
*/ | |||||
summary { | |||||
display: list-item; | |||||
} | |||||
/* Misc | |||||
========================================================================== */ | |||||
/** | |||||
* Add the correct display in IE 10+. | |||||
*/ | |||||
template { | |||||
display: none; | |||||
} | |||||
/** | |||||
* Add the correct display in IE 10. | |||||
*/ | |||||
[hidden] { | |||||
display: none; | |||||
} |
@ -0,0 +1,35 @@ | |||||
/** | |||||
* Heading | |||||
* | |||||
* | |||||
*/ | |||||
@mixin crispy__core__heading() | |||||
{ | |||||
h1, .h1, | |||||
h2, .h2, | |||||
h3, .h3, | |||||
h4, .h4, | |||||
h5, .h5, | |||||
h6, .h6 { | |||||
font-family: $crispy__heading__font-family; | |||||
font-weight: $crispy__heading__font-weight; | |||||
line-height: 1.2; | |||||
margin: $crispy__heading__margin; | |||||
} | |||||
h5 { | |||||
line-height: 1.4; | |||||
} | |||||
h6 { | |||||
line-height: $crispy__line-height; | |||||
} | |||||
@each $h, $font-size in $crispy__heading__font-sizes { | |||||
#{$h}, .#{$h} { | |||||
font-size: $font-size; | |||||
@include crispy__media__breakpoints__diff($crispy__heading__font-sizes__breakpoints, $font-size, $crispy__font-size); | |||||
} | |||||
} | |||||
} |
@ -0,0 +1,190 @@ | |||||
/** | |||||
* normalize | |||||
* | |||||
* Thanks to https://necolas.github.io/normalize.css/, use a lot from them | |||||
* | |||||
* @author Björn Hase, Tentakelfabrik | |||||
* @license http://opensource.org/licenses/MIT The MIT License | |||||
* @link https://github.com/tentakelfabrik/crispy-css | |||||
* | |||||
*/ | |||||
@mixin crispy__core__normalize() | |||||
{ | |||||
html { | |||||
font-size: 100%; | |||||
line-height: 1.15; // Correct the line height in all browsers. | |||||
-webkit-text-size-adjust: 100%; // Prevent adjustments of font size after orientation changes in iOS. | |||||
} | |||||
body, | |||||
html { | |||||
margin: 0; | |||||
height: 100%; | |||||
} | |||||
html, | |||||
legend { | |||||
box-sizing: border-box; | |||||
} | |||||
main { | |||||
display: block; // Render the `main` element consistently in IE. | |||||
} | |||||
*, | |||||
*::after, | |||||
*::before { | |||||
box-sizing: inherit; | |||||
} | |||||
table { | |||||
border-collapse: collapse; | |||||
border-spacing: 0; | |||||
} | |||||
figure { | |||||
margin: $crispy__margin; | |||||
} | |||||
figcaption { | |||||
margin: 0.3em 0 0; | |||||
} | |||||
/** | |||||
* form elements | |||||
* | |||||
* | |||||
*/ | |||||
// Remove the margin in Firefox and Safari. | |||||
button, | |||||
input, | |||||
optgroup, | |||||
select, | |||||
textarea { | |||||
margin: 0; | |||||
} | |||||
button, | |||||
label, | |||||
input, | |||||
optgroup, | |||||
select, | |||||
textarea { | |||||
font-family: $crispy__font-family; | |||||
font-weight: $crispy__font-weight; | |||||
font-size: $crispy__font-size; | |||||
@include crispy__media__breakpoints('font-size', $crispy__font-size__breakpoints); | |||||
line-height: $crispy__line-height; | |||||
@include crispy__media__breakpoints('line-height', $crispy__line-height__breakpoints); | |||||
} | |||||
fieldset { | |||||
padding: $crispy__padding; | |||||
} | |||||
// Remove the inheritance of text transform in Firefox | |||||
button, | |||||
select { | |||||
text-transform: none; | |||||
} | |||||
// Correct the inability to style clickable types in iOS and Safari. | |||||
button, | |||||
[type="button"], | |||||
[type="reset"], | |||||
[type="submit"] { | |||||
-webkit-appearance: button; | |||||
} | |||||
// Remove the inner border and padding in Firefox. | |||||
button::-moz-focus-inner, | |||||
[type="button"]::-moz-focus-inner, | |||||
[type="reset"]::-moz-focus-inner, | |||||
[type="submit"]::-moz-focus-inner { | |||||
border-style: none; | |||||
padding: 0; | |||||
} | |||||
// Restore the focus styles unset by the previous rule. | |||||
button:-moz-focusring, | |||||
[type="button"]:-moz-focusring, | |||||
[type="reset"]:-moz-focusring, | |||||
[type="submit"]:-moz-focusring { | |||||
outline: 1px dotted ButtonText; | |||||
} | |||||
legend { | |||||
box-sizing: border-box; //Correct the text wrapping in Edge and IE. | |||||
display: table; // Correct the text wrapping in Edge and IE. | |||||
max-width: 100%; // Correct the text wrapping in Edge and IE. | |||||
padding: 0; // Remove the padding so developers are not caught out when they zero out `fieldset` elements in all browsers. | |||||
white-space: normal; // Correct the text wrapping in Edge and IE. | |||||
} | |||||
// Correct the cursor style of increment and decrement buttons in Chrome. | |||||
[type="number"]::-webkit-inner-spin-button, | |||||
[type="number"]::-webkit-outer-spin-button { | |||||
height: auto; | |||||
} | |||||
[type="search"] { | |||||
-webkit-appearance: textfield; // Correct the odd appearance in Chrome and Safari. | |||||
outline-offset: -2px; // Correct the outline style in Safari. | |||||
} | |||||
// Remove the inner padding in Chrome and Safari on macOS. | |||||
[type="search"]::-webkit-search-decoration { | |||||
-webkit-appearance: none; | |||||
} | |||||
::-webkit-file-upload-button { | |||||
-webkit-appearance: button; // Correct the inability to style clickable types in iOS and Safari. | |||||
font: inherit; // Change font properties to `inherit` in Safari. | |||||
} | |||||
/** | |||||
* hr | |||||
* | |||||
*/ | |||||
hr { | |||||
box-sizing: content-box; // Add the correct box sizing in Firefox. | |||||
height: 0; // Add the correct box sizing in Firefox. | |||||
overflow: visible; // Show the overflow in Edge and IE. | |||||
border: 0; | |||||
border-top: 1px solid $crispy__color-secondary; | |||||
margin: 0.3em 0; | |||||
} | |||||
// Add the correct vertical alignment in Chrome, Firefox, and Opera. | |||||
progress { | |||||
vertical-align: baseline; | |||||
} | |||||
// Add the correct display in Firefox. | |||||
details { | |||||
display: block; | |||||
} | |||||
// Add the correct display in all browsers. | |||||
summary { | |||||
display: list-item; | |||||
} | |||||
code, | |||||
pre, | |||||
kbd, | |||||
samp { | |||||
font-family: $crispy__font-family-monospace; | |||||
font-size: $crispy__font-size-monospace; | |||||
@include crispy__media__breakpoints('font-size', $crispy__font-size-monospace__breakpoints); | |||||
} | |||||
} |
@ -0,0 +1,127 @@ | |||||
/** | |||||
* typograhy | |||||
* | |||||
* @author Björn Hase, Tentakelfabrik | |||||
* @license http://opensource.org/licenses/MIT The MIT License | |||||
* @link https://github.com/tentakelfabrik/crispy-css | |||||
* | |||||
*/ | |||||
@mixin crispy__core__typography() | |||||
{ | |||||
// paragraphs | |||||
p { | |||||
margin: $crispy__margin; | |||||
} | |||||
// Semantic text elements | |||||
a, | |||||
ins, | |||||
u { | |||||
text-decoration-skip: ink edges; | |||||
} | |||||
// Add the correct font weight in Chrome, Edge, and Safari. | |||||
b, | |||||
strong { | |||||
font-weight: bolder; | |||||
} | |||||
// Add the correct font size in all browsers. | |||||
small { | |||||
font-size: 80%; | |||||
} | |||||
/** | |||||
* Prevent `sub` and `sup` elements from affecting the line height in | |||||
* all browsers. | |||||
*/ | |||||
sub, | |||||
sup { | |||||
font-size: 70%; | |||||
line-height: 0; | |||||
position: relative; | |||||
vertical-align: baseline; | |||||
} | |||||
sub { | |||||
bottom: -0.25em; | |||||
} | |||||
sup { | |||||
top: -0.5em; | |||||
} | |||||
abbr[title] { | |||||
border-bottom: 1px dotted; | |||||
cursor: help; | |||||
text-decoration: none; | |||||
} | |||||
mark { | |||||
padding: 0.25em; | |||||
} | |||||
/** | |||||
* blockquote | |||||
* | |||||
* | |||||
*/ | |||||
blockquote { | |||||
border-left: $crispy__border; | |||||
margin-left: 0; | |||||
padding: $crispy__padding; | |||||
p:last-child { | |||||
margin-bottom: 0; | |||||
} | |||||
} | |||||
/** | |||||
* lists | |||||
* | |||||
*/ | |||||
dl, | |||||
ol, | |||||
ul { | |||||
padding: 0; | |||||
margin: $crispy__margin; | |||||
} | |||||
ol, | |||||
ul { | |||||
margin-left: 1.5em; | |||||
} | |||||
ol ol, | |||||
ul ul { | |||||
margin-top: 0; | |||||
margin-left: 1em; | |||||
} | |||||
ol { | |||||
list-style: decimal outside; | |||||
} | |||||
ul { | |||||
list-style: disc outside; | |||||
} | |||||
dl { | |||||
margin-left: 0.5em; | |||||
} | |||||
dd, | |||||
dt { | |||||
margin: 0; | |||||
} | |||||
dt { | |||||
font-weight: bold; | |||||
} | |||||
} |
@ -1,4 +1,4 @@ | |||||
@import | @import | ||||
'crispy'; | 'crispy'; | ||||
@include crispy__modifiers(); | |||||
@include crispy__helpers(); |
@ -0,0 +1,81 @@ | |||||
<!doctype html> | |||||
<html lang="en_EN"> | |||||
<head> | |||||
<meta charset="utf-8"> | |||||
<meta http-equiv="x-ua-compatible" content="ie=edge"> | |||||
<title><%= htmlWebpackPlugin.options.title %> | Crispy CSS</title> | |||||
<meta name="description" content=""> | |||||
<meta name="viewport" content="width=device-width, initial-scale=1"> | |||||
<link rel="stylesheet" href="styles.css"> | |||||
</head> | |||||
<body> | |||||
<header id="header" class="header header--fixed background-color-info"> | |||||
<div class="container"> | |||||
<div class="grid"> | |||||
<div class="col-12 col-md-4"> | |||||
<a href="/" class="text-color-white text-bold"> | |||||
<svg class="icon text-size-mega" alt="Crispy CSS"> | |||||
<use xlink:href="symbol-defs.svg#icon-logo" /> | |||||
</svg> | |||||
Crispy CSS | |||||
</a> | |||||
</div> | |||||
<div class="col-12 col-md-8"> | |||||
<nav class="group text-right show"> | |||||
<ul class="group"> | |||||
<li class="group__item"> | |||||
<a href="getting-started.html" class="text-color-white"> | |||||
Getting started! | |||||
</a> | |||||
</li> | |||||
<li class="group__item"> | |||||
<a href="core.html" class="text-color-white"> | |||||
Core | |||||
</a> | |||||
</li> | |||||
<li class="group__item"> | |||||
<a href="components.html" class="text-color-white"> | |||||
Components | |||||
</a> | |||||
</li> | |||||
<li class="group__item"> | |||||
<a href="helpers.html" class="text-color-white"> | |||||
Helpers | |||||
</a> | |||||
</li> | |||||
<li class="group__item"> | |||||
<a href="mixins.html" class="text-color-white"> | |||||
Mixins | |||||
</a> | |||||
</li> | |||||
<li class="group__item"> | |||||
<a href="functions.html" class="text-color-white"> | |||||
Functions | |||||
</a> | |||||
</li> | |||||
</ul> | |||||
</nav> | |||||
</div> | |||||
</div> | |||||
</div> | |||||
</header> | |||||
<main class="container"> | |||||
<div class="grid"> | |||||
<div class="col-12"> | |||||
<header class="header"> | |||||
<h1 class="padding-top-4 padding-bottom-2 text-center"> | |||||
<%= htmlWebpackPlugin.options.title %> | |||||
</h1> | |||||
</header> | |||||
<%= htmlWebpackPlugin.options.body %> | |||||
</div> | |||||
</div> | |||||
</main> | |||||
<%= htmlWebpackPlugin.options.footer %> | |||||
</body> | |||||
</html> |
@ -0,0 +1,666 @@ | |||||
<!-- components / button --> | |||||
<h2 class="margin-bottom-1"> | |||||
Button | |||||
</h2> | |||||
<hr class="marginless margin-bottom-2" /> | |||||
<h3 class="h4">Scss:</h3> | |||||
<pre class="code margin-top-1"><code>$crispy__button__font-family: $crispy__font-family; | |||||
$crispy__button__font-weight: $crispy__font-weight; | |||||
$crispy__button__font-size: $crispy__font-size; | |||||
$crispy__button__font-size-breakpoints: $crispy__font-size__breakpoints; | |||||
$crispy__button__padding: 0.3em 0.8em; | |||||
$crispy__button__padding-breakpoints: ( | |||||
$crispy__md: 0.4em 1.2em | |||||
); | |||||
</code></pre> | |||||
<h3 class="h4">Html:</h3> | |||||
<pre class="code margin-top-1"><code><button class="button"></button> | |||||
<button class="button text-size-medium"></button> | |||||
<button class="button text-size-large"></button> | |||||
<button class="button width-100"></button></code></pre> | |||||
<button class="button">Default</button> | |||||
<button class="button text-size-medium">Default</button> | |||||
<button class="button text-size-large">Default</button> | |||||
<button class="button width-100">Info</button> | |||||
<button class="button"> | |||||
<svg class="icon icon-color-danger" aria-hidden="true"> | |||||
<use xlink:href="symbol-defs.svg#icon-flask"></use> | |||||
</svg> | |||||
</button> | |||||
<button class="button"> | |||||
<svg class="icon icon-color-danger" aria-hidden="true"> | |||||
<use xlink:href="symbol-defs.svg#icon-flask"></use> | |||||
</svg> | |||||
Button | |||||
</button> | |||||
<!-- components / code --> | |||||
<h2 class="margin-top-3 margin-bottom-1"> | |||||
Code | |||||
</h2> | |||||
<hr class="marginless margin-bottom-2" /> | |||||
<h3 class="h4">Scss:</h3> | |||||
<pre class="code margin-top-1"><code>$crispy__code__padding: $crispy__padding; | |||||
$crispy__code__padding-breakpoints: $crispy__padding-breakpoints; | |||||
$crispy__code__margin: $crispy__margin; | |||||
$crispy__code__border: $crispy__border; | |||||
$crispy__code__background-color: $crispy__color-grey-light; | |||||
</code></pre> | |||||
<h3 class="h4">Html:</h3> | |||||
<pre class="code margin-top-1"><code><pre class="code"><code></code></pre></code></pre> | |||||
<!-- components / fields --> | |||||
<h2 class="margin-top-3"> | |||||
Fields | |||||
</h2> | |||||
<h3 class="h4 magin-top-2">Scss:</h3> | |||||
<pre class="code margin-top-1"><code>$crispy__field__margin: $crispy__margin; | |||||
$crispy__field__border: $crispy__border; | |||||
$crispy__field__color--valid: $crispy__color-success; | |||||
$crispy__field__color--error: $crispy__color-danger; | |||||
$crispy__field__border-color--focus: $crispy__color-primary; | |||||
$crispy__field__border-color--valid: $crispy__color-success; | |||||
$crispy__field__border-color--error: $crispy__color-danger; | |||||
$crispy__field__choice__checked__color: $crispy__color-success; | |||||
$crispy__field__choice__unchecked__color: $crispy__color-danger; | |||||
$crispy__field__input__padding: 0.4em 0.6em; | |||||
$crispy__field__input__color: $crispy__color-text; | |||||
$crispy__field__select__padding: 0.3em 0.5em; | |||||
$crispy__field__panel__padding: 0.3em 0.6em; | |||||
$crispy__field__select__background-color: white; | |||||
$crispy__field__select__border: $crispy__border;</code></pre> | |||||
<!-- components / field / input textarea --> | |||||
<h3 class="h4 margin-top-2"> | |||||
Input / Textarea | |||||
</h3> | |||||
<pre class="code margin-top-1"><code><div class="field"> | |||||
<input class="field__text" type="text" /> | |||||
</div> | |||||
<div class="field field--valid"> | |||||
<label class="field__label"> | |||||
Text | |||||
<input type="text" class="field__text" /> | |||||
</label> | |||||
<div class="field__panel"> | |||||
error item 1 | |||||
</div> | |||||
</div> | |||||
<div class="field field--error"> | |||||
<label class="field__label"> | |||||
Text | |||||
<input type="text" class="field__text" /> | |||||
</label> | |||||
<div class="field__panel"> | |||||
error item 1 | |||||
</div> | |||||
</div> | |||||
<div class="field"> | |||||
<label class="field__label"> | |||||
Textarea | |||||
<textarea class="field__text"></textarea> | |||||
</label> | |||||
</div></code></pre> | |||||
<div class="field"> | |||||
<input class="field__text" type="text" /> | |||||
</div> | |||||
<div class="field field--valid"> | |||||
<label class="field__label"> | |||||
Text | |||||
<input type="text" class="field__text" /> | |||||
</label> | |||||
<div class="field__panel"> | |||||
error item 1 | |||||
</div> | |||||
</div> | |||||
<div class="field field--error"> | |||||
<label class="field__label"> | |||||
Text | |||||
<input type="text" class="field__text" /> | |||||
</label> | |||||
<div class="field__panel"> | |||||
error item 1 | |||||
</div> | |||||
</div> | |||||
<div class="field"> | |||||
<label class="field__label"> | |||||
Textarea | |||||
<textarea class="field__text"></textarea> | |||||
</label> | |||||
</div> | |||||
<!-- components / field / Choice --> | |||||
<h3 class="h4 margin-top-2"> | |||||
Checkbox | |||||
</h3> | |||||
<pre class="code margin-top-1"><code><div class="field"> | |||||
<input id="field__checkbox__1" class="field__choice" type="checkbox" name="field__checkbox__1" value="true" /> | |||||
<label for="field__checkbox__1" class="field__label"> | |||||
<svg class="icon text-size-medium field__choice__unchecked" aria-hidden="true"> | |||||
<use xlink:href="symbol-defs.svg#icon-toggle-left"></use> | |||||
</svg> | |||||
<svg class="icon text-size-medium field__choice__checked" aria-hidden="true"> | |||||
<use xlink:href="symbol-defs.svg#icon-toggle-right"></use> | |||||
</svg> | |||||
checkbox 1 | |||||
</label> | |||||
<input id="field__checkbox__2" class="field__choice" type="checkbox" name="field__checkbox__2" value="true" /> | |||||
<label for="field__checkbox__2" class="field__label"> | |||||
<svg class="icon text-size-medium field__choice__unchecked" aria-hidden="true"> | |||||
<use xlink:href="symbol-defs.svg#icon-toggle-left"></use> | |||||
</svg> | |||||
<svg class="icon text-size-medium field__choice__checked" aria-hidden="true"> | |||||
<use xlink:href="symbol-defs.svg#icon-toggle-right"></use> | |||||
</svg> | |||||
checkbox 2 | |||||
</label> | |||||
</div></code></pre> | |||||
<div class="field"> | |||||
<input id="field__checkbox__1" class="field__choice" type="checkbox" name="field__checkbox__1" value="true" /> | |||||
<label for="field__checkbox__1" class="field__label"> | |||||
<svg class="icon text-size-medium field__choice__unchecked" aria-hidden="true"> | |||||
<use xlink:href="symbol-defs.svg#icon-toggle-left"></use> | |||||
</svg> | |||||
<svg class="icon text-size-medium field__choice__checked" aria-hidden="true"> | |||||
<use xlink:href="symbol-defs.svg#icon-toggle-right"></use> | |||||
</svg> | |||||
checkbox 1 | |||||
</label> | |||||
<input id="field__checkbox__2" class="field__choice" type="checkbox" name="field__checkbox__2" value="true" /> | |||||
<label for="field__checkbox__2" class="field__label"> | |||||
<svg class="icon text-size-medium field__choice__unchecked" aria-hidden="true"> | |||||
<use xlink:href="symbol-defs.svg#icon-toggle-left"></use> | |||||
</svg> | |||||
<svg class="icon text-size-medium field__choice__checked" aria-hidden="true"> | |||||
<use xlink:href="symbol-defs.svg#icon-toggle-right"></use> | |||||
</svg> | |||||
checkbox 2 | |||||
</label> | |||||
</div> | |||||
<div class="field field--error"> | |||||
<input id="field__checkbox__3" class="field__choice" type="checkbox" name="field__checkbox__3" value="true" /> | |||||
<label for="field__checkbox__3" class="field__label"> | |||||
<svg class="icon text-size-medium field__choice__unchecked" aria-hidden="true"> | |||||
<use xlink:href="symbol-defs.svg#icon-toggle-left"></use> | |||||
</svg> | |||||
<svg class="icon text-size-medium field__choice__checked" aria-hidden="true"> | |||||
<use xlink:href="symbol-defs.svg#icon-toggle-right"></use> | |||||
</svg> | |||||
checkbox 1 | |||||
</label> | |||||
<div class="field__panel"> | |||||
error item 1 | |||||
</div> | |||||
</div> | |||||
<!-- components / field / radio --> | |||||
<h3 class="h4 margin-top-2"> | |||||
Radio | |||||
</h3> | |||||
<pre class="code margin-top-1"><code><div class="field"> | |||||
<input id="field__radio__1" class="field__choice" type="radio" name="field__radio__1[]" value="true" /> | |||||
<label for="field__radio__1" class="field__label"> | |||||
<svg class="icon text-size-medium field__choice__unchecked" aria-hidden="true"> | |||||
<use xlink:href="symbol-defs.svg#icon-toggle-left"></use> | |||||
</svg> | |||||
<svg class="icon text-size-medium field__choice__checked" aria-hidden="true"> | |||||
<use xlink:href="symbol-defs.svg#icon-toggle-right" /> | |||||
</svg> | |||||
radio item 1 | |||||
</label><br /> | |||||
<input id="field__radio__2" class="field__choice" type="radio" name="field__radio__1[]" value="true" /> | |||||
<label for="field__radio__2" class="field__label"> | |||||
<svg class="icon text-size-medium field__choice__unchecked" aria-hidden="true"> | |||||
<use xlink:href="symbol-defs.svg#icon-toggle-left"></use> | |||||
</svg> | |||||
<svg class="icon text-size-medium field__choice__checked" aria-hidden="true"> | |||||
<use xlink:href="symbol-defs.svg#icon-toggle-right" /> | |||||
</svg> | |||||
radio item 2 | |||||
</label> | |||||
</div> | |||||
<div class="field field--error"> | |||||
<input id="field__radio__3" class="field__choice" type="radio" name="field__radio__2[]" value="true" /> | |||||
<label for="field__radio__3" class="field__label"> | |||||
<svg class="icon text-size-medium field__choice__unchecked" aria-hidden="true"> | |||||
<use xlink:href="symbol-defs.svg#icon-toggle-left"></use> | |||||
</svg> | |||||
<svg class="icon text-size-medium field__choice__checked" aria-hidden="true"> | |||||
<use xlink:href="symbol-defs.svg#icon-toggle-right" /> | |||||
</svg> | |||||
radio item 1 | |||||
</label><br /> | |||||
<input id="field__radio__4" class="field__choice" type="radio" name="field__radio__2[]" value="true" /> | |||||
<label for="field__radio__4" class="field__label"> | |||||
<svg class="icon text-size-medium field__choice__unchecked" aria-hidden="true"> | |||||
<use xlink:href="symbol-defs.svg#icon-toggle-left"></use> | |||||
</svg> | |||||
<svg class="icon text-size-medium field__choice__checked" aria-hidden="true"> | |||||
<use xlink:href="symbol-defs.svg#icon-toggle-right" /> | |||||
</svg> | |||||
radio item 2 | |||||
</label> | |||||
<div class="field__panel"> | |||||
error item 1 | |||||
</div> | |||||
</div></code></pre> | |||||
<div class="field"> | |||||
<input id="field__radio__1" class="field__choice" type="radio" name="field__radio__1[]" value="true" /> | |||||
<label for="field__radio__1" class="field__label"> | |||||
<svg class="icon text-size-medium field__choice__unchecked" aria-hidden="true"> | |||||
<use xlink:href="symbol-defs.svg#icon-toggle-left"></use> | |||||
</svg> | |||||
<svg class="icon text-size-medium field__choice__checked" aria-hidden="true"> | |||||
<use xlink:href="symbol-defs.svg#icon-toggle-right" /> | |||||
</svg> | |||||
radio item 1 | |||||
</label><br /> | |||||
<input id="field__radio__2" class="field__choice" type="radio" name="field__radio__1[]" value="true" /> | |||||
<label for="field__radio__2" class="field__label"> | |||||
<svg class="icon text-size-medium field__choice__unchecked" aria-hidden="true"> | |||||
<use xlink:href="symbol-defs.svg#icon-toggle-left"></use> | |||||
</svg> | |||||
<svg class="icon text-size-medium field__choice__checked" aria-hidden="true"> | |||||
<use xlink:href="symbol-defs.svg#icon-toggle-right" /> | |||||
</svg> | |||||
radio item 2 | |||||
</label> | |||||
</div> | |||||
<div class="field field--error"> | |||||
<input id="field__radio__3" class="field__choice" type="radio" name="field__radio__2[]" value="true" /> | |||||
<label for="field__radio__3" class="field__label"> | |||||
<svg class="icon text-size-medium field__choice__unchecked" aria-hidden="true"> | |||||
<use xlink:href="symbol-defs.svg#icon-toggle-left"></use> | |||||
</svg> | |||||
<svg class="icon text-size-medium field__choice__checked" aria-hidden="true"> | |||||
<use xlink:href="symbol-defs.svg#icon-toggle-right" /> | |||||
</svg> | |||||
radio item 1 | |||||
</label><br /> | |||||
<input id="field__radio__4" class="field__choice" type="radio" name="field__radio__2[]" value="true" /> | |||||
<label for="field__radio__4" class="field__label"> | |||||
<svg class="icon text-size-medium field__choice__unchecked" aria-hidden="true"> | |||||
<use xlink:href="symbol-defs.svg#icon-toggle-left"></use> | |||||
</svg> | |||||
<svg class="icon text-size-medium field__choice__checked" aria-hidden="true"> | |||||
<use xlink:href="symbol-defs.svg#icon-toggle-right" /> | |||||
</svg> | |||||
radio item 2 | |||||
</label> | |||||
<div class="field__panel"> | |||||
error item 1 | |||||
</div> | |||||
</div> | |||||
<!-- components / field / select --> | |||||
<h3 class="h4 margin-top-2"> | |||||
Select | |||||
</h3> | |||||
<pre class="code margin-top-1"><code><div class="field"> | |||||
<label class="field__label"> | |||||
Select Item | |||||
<select class="field__select"> | |||||
<option>select item 1</option> | |||||
<option>select item 2</option> | |||||
<option>select item 3</option> | |||||
</select> | |||||
</label> | |||||
</div> | |||||
<div class="field field--error"> | |||||
<label class="field__label"> | |||||
Select Item | |||||
<select class="field__select"> | |||||
<option>select item 1</option> | |||||
<option>select item 2</option> | |||||
<option>select item 3</option> | |||||
</select> | |||||
<div class="field__panel"> | |||||
error item 1 | |||||
</div> | |||||
</label> | |||||
</div></code></pre> | |||||
<div class="field"> | |||||
<label class="field__label"> | |||||
Select Item | |||||
<select class="field__select"> | |||||
<option>select item 1</option> | |||||
<option>select item 2</option> | |||||
<option>select item 3</option> | |||||
</select> | |||||
</label> | |||||
</div> | |||||
<div class="field field--error"> | |||||
<label class="field__label"> | |||||
Select Item | |||||
<select class="field__select"> | |||||
<option>select item 1</option> | |||||
<option>select item 2</option> | |||||
<option>select item 3</option> | |||||
</select> | |||||
<div class="field__panel"> | |||||
error item 1 | |||||
</div> | |||||
</label> | |||||
</div> | |||||
<!-- components / group --> | |||||
<h2 class="margin-top-3"> | |||||
Group | |||||
</h2> | |||||
<h3 class="h4">Scss:</h3> | |||||
<pre class="code"><code>$crispy__group__margin: 0.3em !default; | |||||
$crispy__group__character: '/' !default; | |||||
$crispy__group__character-margin: 0 $crispy__group__margin 0 !default;</code></pre> | |||||
<h3 class="h4">Html:</h3> | |||||
<pre class="code"><code><nav> | |||||
<ul class="group group--hr"> | |||||
<li class="group__item">first item</li> | |||||
<li class="group__item">second item</li> | |||||
<li class="group__item">third item</li> | |||||
</ul> | |||||
</nav></code></pre> | |||||
<div class="panel panel__inner margin-bottom-2"> | |||||
<nav> | |||||
<ul class="group group--hr"> | |||||
<li class="group__item">first item</li> | |||||
<li class="group__item">second item</li> | |||||
<li class="group__item">third item</li> | |||||
</ul> | |||||
</nav> | |||||
</div> | |||||
<div class="panel panel__inner"> | |||||
<nav> | |||||
<ul class="group"> | |||||
<li class="group__item"> | |||||
<button class="button marginless">Button</button> | |||||
</li> | |||||
<li class="group__item"> | |||||
<button class="button marginless">Button</button> | |||||
</li> | |||||
<li class="group__item"> | |||||
<button class="button marginless">Button</button> | |||||
</li> | |||||
</ul> | |||||
</nav> | |||||
</div> | |||||
<!-- components / hero --> | |||||
<h2 class="margin-top-3"> | |||||
Hero | |||||
</h2> | |||||
<h3 class="h4">Html:</h3> | |||||
<pre class="code"><code><div class="hero" style="height: 300px; background-image: url('https://picsum.photos/1024')"></div></code></pre> | |||||
<div class="hero" style="height: 300px; background-image: url('https://picsum.photos/1024')"></div> | |||||
<pre class="code margin-top-3"><code><div class="hero hero--top" style="height: 300px; background-image: url('https://picsum.photos/1024')"></div></code></pre> | |||||
<div class="hero hero--top" style="height: 300px; background-image: url('https://picsum.photos/1024')"></div> | |||||
<pre class="code margin-top-3"><code><div class="hero hero--bottom" style="height: 300px; background-image: url('https://picsum.photos/1024')"></div></code></pre> | |||||
<div class="hero hero--bottom" style="height: 300px; background-image: url('https://picsum.photos/1024')"></div> | |||||
<!-- icons --> | |||||
<h2 class="margin-top-3"> | |||||
Icon | |||||
</h2> | |||||
<h3 class="h4">Scss:</h3> | |||||
<pre class="code"><code>$crispy__icon__size: 1.15em; | |||||
</code></pre> | |||||
<h3 class="h4">Html:</h3> | |||||
<pre class="code"><code><svg class="icon text-size-small" aria-hidden="true"> | |||||
<use xlink:href="symbol-defs.svg#icon-flask"></use> | |||||
</svg> | |||||
<svg class="icon" aria-hidden="true"> | |||||
<use xlink:href="symbol-defs.svg#icon-flask"></use> | |||||
</svg> | |||||
<svg class="icon text-size-large" aria-hidden="true"> | |||||
<use xlink:href="symbol-defs.svg#icon-flask"></use> | |||||
</svg> | |||||
<svg class="icon text-size-big" aria-hidden="true"> | |||||
<use xlink:href="symbol-defs.svg#icon-flask"></use> | |||||
</svg> | |||||
<svg class="icon text-size-mega" aria-hidden="true"> | |||||
<use xlink:href="symbol-defs.svg#icon-flask"></use> | |||||
</svg> | |||||
<svg class="icon icon-color-danger" aria-hidden="true"> | |||||
<use xlink:href="symbol-defs.svg#icon-flask"></use> | |||||
</svg>;</code></pre> | |||||
<div class="panel"> | |||||
<div class="panel__inner"> | |||||
<svg class="icon text-size-small" aria-hidden="true"> | |||||
<use xlink:href="symbol-defs.svg#icon-flask"></use> | |||||
</svg> | |||||
<svg class="icon" aria-hidden="true"> | |||||
<use xlink:href="symbol-defs.svg#icon-flask"></use> | |||||
</svg> | |||||
<svg class="icon text-size-large" aria-hidden="true"> | |||||
<use xlink:href="symbol-defs.svg#icon-flask"></use> | |||||
</svg> | |||||
<svg class="icon text-size-big" aria-hidden="true"> | |||||
<use xlink:href="symbol-defs.svg#icon-flask"></use> | |||||
</svg> | |||||
<svg class="icon text-size-mega" aria-hidden="true"> | |||||
<use xlink:href="symbol-defs.svg#icon-flask"></use> | |||||
</svg> | |||||
<svg class="icon icon-color-danger" aria-hidden="true"> | |||||
<use xlink:href="symbol-defs.svg#icon-flask"></use> | |||||
</svg> | |||||
</div> | |||||
</div> | |||||
<!-- components / media --> | |||||
<h2 class="margin-top-3"> | |||||
Media | |||||
</h2> | |||||
<h3 class="h4">Html:</h3> | |||||
<pre class="code"><code><img class="img-responsive" src="https://picsum.photos/400" /> | |||||
<figure> | |||||
<img class="img-responsive" src="https://picsum.photos/400" /> | |||||
<figcaption class="text-center">Lorem Ipsum</figcaption> | |||||
</figure> | |||||
</code></pre> | |||||
<div class="grid"> | |||||
<div class="col-12 col-md-6"> | |||||
<img class="img-responsive width-100" src="https://picsum.photos/400" /> | |||||
</div> | |||||
<div class="col-12 col-md-6"> | |||||
<figure> | |||||
<img class="img-responsive width-100" src="https://picsum.photos/400" /> | |||||
<figcaption class="text-center">Lorem Ipsum</figcaption> | |||||
</figure> | |||||
</div> | |||||
</div> | |||||
<!-- components / panel --> | |||||
<h2 class="margin-top-3"> | |||||
Panel | |||||
</h2> | |||||
<h3 class="h4">Scss:</h3> | |||||
<pre class="code"><code>$crispy__panel__inner-padding: $crispy__padding; | |||||
$crispy__panel__inner-padding-breakpoints: $crispy__padding-breakpoints; | |||||
$crispy__panel__background-color: $crispy__color-grey-light; | |||||
</code></pre> | |||||
<h3 class="h4">Html:</h3> | |||||
<pre class="code"><code><div class="panel"> | |||||
<div class="panel__inner"> | |||||
Lorem Ipsum | |||||
</div> | |||||
</div></code></pre> | |||||
<div class="panel"> | |||||
<div class="panel__inner"> | |||||
Lorem Ipsum | |||||
</div> | |||||
</div> | |||||
<!-- components / progress --> | |||||
<h2 class="margin-top-3"> | |||||
Progress | |||||
</h2> | |||||
<h3 class="h4">Scss:</h3> | |||||
<pre class="code"><code>$crispy__progress__height: 30px; | |||||
$crispy__progress__background-color: $crispy__color-primary; | |||||
$crispy__progress__border-width: 1px; | |||||
$crispy__progress__border-color: $crispy__color-border; | |||||
</code></pre> | |||||
<h3 class="h4">Html:</h3> | |||||
<pre class="code"><code><div class="progress"> | |||||
<div class="progress__inner" style="width: 80%"></div> | |||||
</div> | |||||
</code></pre> | |||||
<div class="progress"> | |||||
<div class="progress__inner" style="width: 80%"> | |||||
</div> | |||||
</div> | |||||
<!-- components / modal --> | |||||
<h2 class="margin-top-3"> | |||||
Modal | |||||
</h2> | |||||
<h3 class="h4">Scss:</h3> | |||||
<pre class="code"><code>$crispy__modal__max-width-breakpoints: ( | |||||
$crispy__md: 50% | |||||
); | |||||
$crispy__modal__margin-breakpoints: ( | |||||
$crispy__md: 0.75em | |||||
); | |||||
$crispy__modal__z-index: zIndex('modal');</code></pre> | |||||
<h3 class="h4">Html:</h3> | |||||
<pre class="code"><code><div class="modal modal--bottom width-100"> | |||||
<div class="panel"> | |||||
<div class="panel__inner"> | |||||
Lorem Ipsum | |||||
</div> | |||||
</div> | |||||
</div></code></pre> | |||||
<div style="position: relative; width: 100%; height: 200px; border: 1px dotted black;"> | |||||
<div class="modal modal--top-left"> | |||||
<div class="panel"> | |||||
<div class="panel__inner"> | |||||
.modal--top-left | |||||
</div> | |||||
</div> | |||||
</div> | |||||
<div class="modal modal--top-right"> | |||||
<div class="panel"> | |||||
<div class="panel__inner"> | |||||
.modal--top-right | |||||
</div> | |||||
</div> | |||||
</div> | |||||
<div class="modal"> | |||||
<div class="panel"> | |||||
<div class="panel__inner"> | |||||
.modal | |||||
</div> | |||||
</div> | |||||
</div> | |||||
<div class="modal modal--bottom-left"> | |||||
<div class="panel"> | |||||
<div class="panel__inner"> | |||||
.modal--bottom-left | |||||
</div> | |||||
</div> | |||||
</div> | |||||
<div class="modal modal--bottom-right"> | |||||
<div class="panel"> | |||||
<div class="panel__inner"> | |||||
.modal--bottom-right | |||||
</div> | |||||
</div> | |||||
</div> | |||||
</div> | |||||
<!-- components / table --> | |||||
<h2 class="margin-top-3"> | |||||
Table | |||||
</h2> | |||||
<h3 class="h4">Scss:</h3> | |||||
<pre class="code"><code>$crispy__table__padding: $crispy__padding !default; | |||||
$crispy__table__padding-breakpoints: $crispy__padding-breakpoints !default; | |||||
$crispy__table__td__border: 1px solid $crispy__color-border !default; | |||||
$crispy__table__th__border-width: 2px !default; | |||||
$crispy__table__color: $crispy__color-text !default; | |||||
$crispy__table__striped__background-color: $crispy__color-grey-light !default;</code></pre> | |||||
<h3 class="h4">Html:</h3> | |||||
<pre class="code"><code><table class="table table--striped margin-bottom-2"> | |||||
<thead> | |||||
<tr> | |||||
<th>name</th> | |||||
<th>age</th> | |||||
</tr> | |||||
</thead> | |||||
<tbody> | |||||
<tr> | |||||
<td>Mr. Brown</td> | |||||
<td>43</td> | |||||
</tr> | |||||
<tr> | |||||
<td>Mr. Magenta</td> | |||||
<td>32</td> | |||||
</tr> | |||||
<tr> | |||||
<td>Mr. White</td> | |||||
<td>45</td> | |||||
</tr> | |||||
</tbody> | |||||
</table></code></pre> | |||||
<table class="table table--striped margin-bottom-2"> | |||||
<thead> | |||||
<tr> | |||||
<th>name</th> | |||||
<th>age</th> | |||||
</tr> | |||||
</thead> | |||||
<tbody> | |||||
<tr> | |||||
<td>Mr. Brown</td> | |||||
<td>43</td> | |||||
</tr> | |||||
<tr> | |||||
<td>Mr. Magenta</td> | |||||
<td>32</td> | |||||
</tr> | |||||
<tr> | |||||
<td>Mr. White</td> | |||||
<td>45</td> | |||||
</tr> | |||||
</tbody> | |||||
</table> |
@ -0,0 +1,69 @@ | |||||
<h2 class="marginless margin-bottom-1">Normalize</h2> | |||||
<hr class="marginless margin-bottom-2" /> | |||||
<h3 class="h4 margin-top-2">a</h3> | |||||
<a href="#">Link</a> | |||||
<div class="grid"> | |||||
<div class="col-12"> | |||||
<h2 class="marginless margin-top-2 margin-bottom-1">Typography</h2> | |||||
<hr class="marginless margin-bottom-2" /> | |||||
<h3 class="h4 margin-top-2">Heading</h3> | |||||
<div class="h1">Heading h1</div> | |||||
<div class="h2">Heading h2</div> | |||||
<div class="h3">Heading h3</div> | |||||
<div class="h4">Heading h4</div> | |||||
<div class="h5">Heading h5</div> | |||||
<div class="h6">Heading h6</div> | |||||
<!-- abbr --> | |||||
<h3 class="h4 margin-top-2">abbr</h3> | |||||
<p> | |||||
Glossier viral occupy mixtape pok pok cornhole, <abbr title="vape affogato hella">vape affogato hella</abbr> knausgaard thundercats | |||||
</p> | |||||
<!-- blockquote --> | |||||
<h3 class="h4 margin-top-2">blockquote</h3> | |||||
<blockquote> | |||||
Hoodie kickstarter four loko, pinterest hashtag chambray glossier. Pug before they sold out etsy listicle. Deep v bespoke tacos polaroid, squid flexitarian crucifix messenger bag. | |||||
</blockquote> | |||||
<!-- hr --> | |||||
<h3 class="h4 margin-top-2">hr</h3> | |||||
<hr> | |||||
<!-- paragraph --> | |||||
<h3 class="h4 margin-top-2">paragraph</h3> | |||||
<p> | |||||
Glossier viral occupy mixtape pok pok. | |||||
</p> | |||||
<!-- mark --> | |||||
<h3 class="h4 margin-top-2">mark</h3> | |||||
<p> | |||||
Pug before they <mark>four loko</mark> Deep v bespoke | |||||
</p> | |||||
<!-- list --> | |||||
<h3 class="h4 margin-top-2">list</h3> | |||||
<ul> | |||||
<li>item 1</li> | |||||
<li> | |||||
item 2 | |||||
<ul> | |||||
<li>child item 1</li> | |||||
<li>child item 2</li> | |||||
</ul> | |||||
</li> | |||||
</ul> | |||||
<ol> | |||||
<li>item 1</li> | |||||
<li>item 2</li> | |||||
</ol> | |||||
<dl> | |||||
<dt>defined title 1</dt> | |||||
<dd>defined item 1</dd> | |||||
</dl> | |||||
</div> | |||||
</div> |
@ -0,0 +1,21 @@ | |||||
<footer class="footer background-color-info margin-top-4 padding-top-3 padding-bottom-3"> | |||||
<div class="container"> | |||||
<div class="grid"> | |||||
<div class="col-12"> | |||||
<div class="text-center"> | |||||
<ul class="group group--hr"> | |||||
<li class="group__item"> | |||||
<a class="text-color-white" href="/imprint.html">Imprint</a> | |||||
</li> | |||||
<li class="group__item"> | |||||
<a class="text-color-white" href="/privacy-policy.html">Privacy Policy</a> | |||||
</li> | |||||
</ul> | |||||
<p class="margin-top-1 margin-bottom-0"> | |||||
Made with Euphorie by Björn Hase, <a class="text-color-white" href="https://tententakelfabrik.de" target="_blank">Tentakelfabrik</a> | |||||
</p> | |||||
</div> | |||||
</div> | |||||
</div> | |||||
</div> | |||||
</footer> |
@ -0,0 +1,24 @@ | |||||
<!-- functions / stripUnit --> | |||||
<h3 class="h4 margin-top-0"> | |||||
stripUnit() | |||||
</h3> | |||||
<h4 class="h6 margin-top-1">Sass:</h4> | |||||
<pre class="code"><code>stripUnit(10px);</code></pre> | |||||
<p> | |||||
Returns value without unit. | |||||
</p> | |||||
<!-- functions / zIndex --> | |||||
<h3 class="h4 margin-top-0"> | |||||
zIndex(name) | |||||
</h3> | |||||
<h4 class="h6 margin-top-1">Sass:</h4> | |||||
<pre class="code"><code>zIndex('modal');</code></pre> | |||||
<p> | |||||
Returns value from $crispy__z-index. | |||||
</p> | |||||
<h4 class="h6 margin-top-1">Sass:</h4> | |||||
<pre class="code"><code>$crispy__z-index: ( | |||||
'overlay': 90, | |||||
'modal' : 100 | |||||
);</code></pre> |
@ -0,0 +1,53 @@ | |||||
<h2 class="margin-bottom-1"> | |||||
Installation | |||||
</h2> | |||||
<hr class="marginless margin-bottom-2" /> | |||||
<pre class="code"><code>npm install crispy-css</code></pre> | |||||
<h3 class="h4">Scss</h3> | |||||
<pre class="code"><code>@import "crispy";</code></pre> | |||||
<p>Now include Mixins you need. Components and Modifiziers only works if you include them,</p> | |||||
<pre class="code"><code>@include crispy__button(); | |||||
@include crispy__code(); | |||||
@include crispy__field(); | |||||
@include crispy__group(); | |||||
@include crispy__hero(); | |||||
@include crispy__icon(); | |||||
@include crispy__media(); | |||||
@include crispy__modal(); | |||||
@include crispy__overlay(); | |||||
@include crispy__panel(); | |||||
@include crispy__progress(); | |||||
@include crispy__table();</code></pre> | |||||
<p>For Custom Variables add a File before importing Crispy,</p> | |||||
<pre class="code"><code>@import | |||||
"config", | |||||
"crispy";</code></pre> | |||||
<p>If you need all, mixins will be included,</p> | |||||
<pre class="code"><code>@import | |||||
"crispy-all";</code></pre> | |||||
<p>Only need Core and Modifiziers?</p> | |||||
<pre class="code"><code>@import | |||||
"crispy-minimal";</code></pre> | |||||
<h3 class="h4">CSS</h3> | |||||
<p>For using CSS you can use <span class="text-bold">crispy-all.css</span> for all Styles or <span class="text-bold">crispy-mininmal.css</span> without Components.</p> | |||||
<h2>Example</h2> | |||||
<p> | |||||
You find an example in "/src/example", this is this Documentation. In the given example there are additional directories. These ones are part of a structure which might be helpful for you. | |||||
</p> | |||||
<h3 class="h4">Site</h3> | |||||
<p> | |||||
Contains header, footer, partials that are used on a site or webapp. Header and Footer are not classical components, there often more complex and have a special brand. | |||||
</p> | |||||
<h3 class="h4">Templates</h3> | |||||
<p> | |||||
Templates are for a single site or a group of sites, they are complex and there is no benefit so reuse them as components. | |||||
</p> |
@ -0,0 +1,52 @@ | |||||
<!-- border --> | |||||
<h3 class="h4 margin-top-2">Border</h3> | |||||
<div class="panel panel__inner margin-bottom-1 bordered"> | |||||
<div style="width: 50px; height: 50px;" class="background-color-info round"></div> | |||||
.round | |||||
</div> | |||||
<div class="panel panel__inner margin-bottom-1 bordered"> | |||||
<div style="width: 50px; height: 50px;" class="background-color-info round radiusless"></div> | |||||
.radiusless | |||||
</div> | |||||
<div class="panel panel__inner margin-bottom-1 bordered">.bordered</div> | |||||
<div class="panel panel__inner margin-bottom-1 bordered rounded">.rounded</div> | |||||
<div class="panel panel__inner margin-bottom-1 bordered borderless">.borderless</div> | |||||
<!-- margin and padding --> | |||||
<h3 class="h4 margin-top-3">Margin / Padding</h3> | |||||
<div class="panel bordered padding-bottom-0">padding-bottom-0</div> | |||||
<div class="panel bordered padding-bottom-1">padding-bottom-1</div> | |||||
<div class="panel bordered padding-bottom-2">padding-bottom-2</div> | |||||
<div class="panel bordered padding-bottom-3">padding-bottom-3</div> | |||||
<div class="panel bordered padding-bottom-4">padding-bottom-4</div> | |||||
<div class="panel bordered padding-bottom-5">padding-bottom-5</div> | |||||
<div class="panel bordered padding-bottom-6">padding-bottom-6</div> | |||||
<!-- typography --> | |||||
<h3 class="h4 margin-top-3">Typography</h3> | |||||
<p class="panel panel__inner bordered text-left">text-left</p> | |||||
<p class="panel panel__inner bordered text-center">text-center</p> | |||||
<p class="panel panel__inner bordered text-right">text-right</p> | |||||
<p class="panel panel__inner bordered text-justify"> | |||||
text-justify<br /> | |||||
I'm baby literally tousled ramps 8-bit franzen, yuccie before they sold out stumptown XOXO palo santo. Blog taiyaki vegan crucifix. Mustache raw denim shabby chic | |||||
vegan hexagon aesthetic deep v tofu man braid church-key pork belly unicorn pinterest. Palo santo heirloom banh mi waistcoat, neutra listicle selvage sustainable adaptogen tote bag art party migas ethical PBR&B 8-bit. | |||||
Chillwave hammock VHS post-ironic, tumblr brunch normcore blue bottle chambray. Austin vice microdosing celiac. Bushwick blog farm-to-table succulents mlkshk actually. | |||||
</p> | |||||
<p class="panel panel__inner bordered text-italic">text-italic</p> | |||||
<p class="panel panel__inner bordered text-light">text-light</p> | |||||
<p class="panel panel__inner bordered text-normal">text-normal</p> | |||||
<p class="panel panel__inner bordered text-medium">text-medium</p> | |||||
<p class="panel panel__inner bordered text-bold">text-bold</p> | |||||
<p class="panel panel__inner bordered text-capitalize">text-capitalize</p> | |||||
<p class="panel panel__inner bordered text-uppercase">text-uppercase</p> | |||||
<p class="panel panel__inner bordered text-smaller">text-smaller</p> | |||||
<p class="panel panel__inner bordered text-crossed">text-crossed</p> | |||||
<p class="panel panel__inner bordered text-unterline">text-underline</p> | |||||
<!-- width --> | |||||
<h3 class="h4 margin-top-3">Width</h3> | |||||
<div class="panel panel__inner bordered width-25 margin-bottom-1">width-25</div> | |||||
<div class="panel panel__inner bordered width-50 margin-bottom-1">width-50</div> | |||||
<div class="panel panel__inner bordered width-75 margin-bottom-1">width-75</div> | |||||
<div class="panel panel__inner bordered width-100 margin-bottom-1">width-100</div> |
@ -0,0 +1,94 @@ | |||||
<!-- mixins / triangle --> | |||||
<h3 class="h4 margin-top-1"> | |||||
Triangle | |||||
</h3> | |||||
<h4 class="h6 margin-top-1">Sass:</h4> | |||||
<pre class="code"><code>.triangle-left, .triangle-right, .triangle-top, .triangle-bottom { | |||||
display: block; | |||||
} | |||||
.triangle-left { | |||||
@include triangle('left', $crispy__color-primary); | |||||
} | |||||
.triangle-right { | |||||
@include triangle('right', $crispy__color-primary); | |||||
} | |||||
.triangle-top { | |||||
@include triangle('top', $crispy__color-primary); | |||||
} | |||||
.triangle-bottom { | |||||
@include triangle('bottom', $crispy__color-primary); | |||||
} | |||||
</code></pre> | |||||
<p> | |||||
<span class="triangle-right"></span> | |||||
<span class="triangle-left"></span> | |||||
<span class="triangle-top"></span> | |||||
<span class="triangle-bottom"></span> | |||||
</p> | |||||
<!-- mixins / media-queries --> | |||||
<h3 class="h4 margin-top-1"> | |||||
Media Queries | |||||
</h3> | |||||
<p> | |||||
These <strong>@mixins</strong> were used with the Breakpoints from <a target="_blank" href="http://reflexgrid.com/docs/">http://reflexgrid.com/docs/</a>. | |||||
Reflex-Grid is also used as grid for this Site. | |||||
</p> | |||||
<ul> | |||||
<li><strong>xs</strong> 576px</li> | |||||
<li><strong>sm</strong> 768px</li> | |||||
<li><strong>md</strong> 992px</li> | |||||
<li><strong>lg</strong> 1200px</li> | |||||
<li><strong>xlg</strong> 1600px</li> | |||||
</ul> | |||||
<h4 class="h6 margin-top-1">Html:</h4> | |||||
<pre class="code"><code><div class="sm">sm</div> | |||||
<div class="md">md</div> | |||||
<div class="md-only">md-only</div> | |||||
<div class="lg-only">lg-only</div></pre></code> | |||||
<h4 class="h6 margin-top-1">Sass:</h4> | |||||
<pre class="code"><code>.sm, .md, .md-only, .lg-only { | |||||
display: none; | |||||
} | |||||
.sm { | |||||
@include crispy__media-sm() { | |||||
display: block; | |||||
} | |||||
} | |||||
.md { | |||||
@include crispy__media-md() { | |||||
display: block; | |||||
} | |||||
} | |||||
.md-only { | |||||
@include crispy__media-md-only() { | |||||
display: block; | |||||
} | |||||
} | |||||
.lg-only { | |||||
@include crispy__media-lg-only() { | |||||
display: block; | |||||
} | |||||
}</code></pre> | |||||
<div class="grid"> | |||||
<div class="col-3"> | |||||
<div class="panel panel__inner sm margin-bottom-1">sm</div> | |||||
</div> | |||||
<div class="col-3"> | |||||
<div class="panel panel__inner md margin-bottom-1">md</div> | |||||
</div> | |||||
<div class="col-3"> | |||||
<div class="panel panel__inner md-only margin-bottom-1">md-only</div> | |||||
</div> | |||||
<div class="col-3"> | |||||
<div class="panel panel__inner lg-only margin-bottom-1">lg-only</div> | |||||
</div> | |||||
</div> |