Hacking on example components and crap

This commit is contained in:
Adam Wathan 2017-08-18 12:46:57 -04:00
parent 959b57199e
commit 0b71c16d21
32 changed files with 126 additions and 48 deletions

View file

@ -19,6 +19,10 @@ a {
}
}
svg {
fill: currentColor;
}
@spacing-scale:
'px' 1px,
'0' 0,

View file

@ -1,11 +1,11 @@
.markdown {
.subnav {
.markdown, .markdown& {
.subnav, .subnav& {
.flex;
.mt-6;
.pb-2;
.border-b;
.subnav-link {
.subnav-link, .subnav-link& {
.mr-6;
.leading-none;
.text-dark-soft;
@ -13,11 +13,11 @@
}
}
a {
a, a& {
.text-blue;
}
p code {
p code, p& code& {
.border;
.rounded;
.text-sm;
@ -26,13 +26,13 @@
color: #DD4A68;
}
blockquote {
blockquote, blockquote& {
.text-em;
.text-dark-soft;
.text-sm;
}
h1 {
h1, h1& {
.mb-4;
.leading-none;
.text-dark-softer;
@ -41,7 +41,7 @@
.text-blue;
}
h2 {
h2, h2& {
.mt-16;
.mb-8;
.text-blue;
@ -50,7 +50,7 @@
.text-xl;
}
h3 {
h3, h3& {
.mt-16;
.mb-8;
.text-dark;
@ -59,7 +59,7 @@
.text-lg;
}
p {
p, p& {
.mt-8;
.mb-3;
}

View file

@ -0,0 +1,7 @@
@extends('_layouts.master')
@section('body')
<div class="markdown">
@yield('content')
</div>
@endsection

View file

@ -59,8 +59,8 @@
<li><a class="{{ $page->getUrl() === '/forms' ? 'text-blue' : 'text-dark-soft' }}" href="{{ $page->baseUrl }}/forms">Forms</a></li>
</ul>
</nav>
<div class="p-12 constrain-lg markdown">
@yield('content')
<div class="p-12 constrain-lg">
@yield('body')
</div>
</div>
</body>

View file

@ -1,5 +1,5 @@
---
extends: _layouts.master
extends: _layouts.markdown
title: "Backgrounds"
---

View file

@ -1,5 +1,5 @@
---
extends: _layouts.master
extends: _layouts.markdown
title: "Borders"
---

View file

@ -1,5 +1,5 @@
---
extends: _layouts.master
extends: _layouts.markdown
title: "Buttons"
---

View file

@ -1,5 +1,5 @@
---
extends: _layouts.master
extends: _layouts.markdown
title: "Changelog"
---

View file

@ -1,5 +1,5 @@
---
extends: _layouts.master
extends: _layouts.markdown
title: "Colors"
---

View file

@ -1,5 +1,5 @@
---
extends: _layouts.master
extends: _layouts.markdown
title: "Constrain"
---

View file

@ -1,5 +1,5 @@
---
extends: _layouts.master
extends: _layouts.markdown
title: "Customization"
---

View file

@ -1,5 +1,5 @@
---
extends: _layouts.master
extends: _layouts.markdown
title: "Display"
---

View file

@ -1,13 +1,11 @@
---
extends: _layouts.master
title: "Examples"
---
@extends('_layouts.master')
# Examples
@section('body')
<h1 class="markdown">Examples</h1>
Some component examples, just to get a vibe for what's possible and for us to double check our default utilities are producing good looking stuff!
<p class="markdown">Some component examples, just to get a vibe for what's possible and for us to double check our default utilities are producing good looking stuff!</p>
## Alerts
<h2 class="markdown">Alerts</h2>
<div class="bg-red-lightest border border-red-light rounded p-4 mb-4">
<div class="text-medium text-red-dark">
@ -91,7 +89,7 @@ Some component examples, just to get a vibe for what's possible and for us to do
</div>
</div>
## Buttons
<h2 class="markdown">Buttons</h2>
<div class="mb-4">
<button class="text-medium text-dark rounded py-2 px-4 bg-light mr-4">
@ -187,3 +185,50 @@ Some component examples, just to get a vibe for what's possible and for us to do
Disabled
</button>
</div>
<h2 class="markdown">Cards</h2>
<div class="constrain-sm mb-8">
<div class="rounded overflow-hidden shadow-3">
<img class="fit w-full" src="/img/card-top.jpg" alt="">
<div class="px-6 py-4">
<h2 class="text-xl mb-2">The Coldest Sunset</h2>
<p class="text-dark-soft text-base">
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Voluptatibus quia, nulla! Maiores et perferendis eaque, exercitationem praesentium nihil.
</p>
</div>
<div class="px-6 py-4">
<span class="inline-block bg-light-softer pill px-3 py-1 text-sm text-medium text-dark-soft mr-2">#photography</span>
<span class="inline-block bg-light-softer pill px-3 py-1 text-sm text-medium text-dark-soft mr-2">#travel</span>
<span class="inline-block bg-light-softer pill px-3 py-1 text-sm text-medium text-dark-soft">#winter</span>
</div>
</div>
</div>
<div class="constrain-md">
<div class="flex">
<div class="rounded-l w-128 text-center overflow-hidden">
<img class="h-64" src="/img/card-left.jpg" alt="">
</div>
<div class="border-t border-r border-b border-dark-softer rounded-r p-4">
<div class="mb-12">
<p class="text-sm text-dark-softer flex-y-center">
<svg class="text-dark-softest w-3 h-3 mr-2" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M4 8V6a6 6 0 1 1 12 0v2h1a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2v-8c0-1.1.9-2 2-2h1zm5 6.73V17h2v-2.27a2 2 0 1 0-2 0zM7 6v2h6V6a3 3 0 0 0-6 0z"/></svg>
Members only
</p>
<h2 class="text-xl mb-2">Is your coffee giving you hemorrhoids?</h2>
<p class="text-dark-soft text-base">
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Voluptatibus quia, nulla! Maiores et perferendis eaque, exercitationem praesentium nihil.
</p>
</div>
<div class="flex-y-center">
<img class="w-10 h-10 pill mr-4" src="https://pbs.twimg.com/profile_images/885868801232961537/b1F6H4KC_400x400.jpg" alt="">
<div class="text-sm">
<p class="text-dark leading-none">Jonathan Reinink</p>
<p class="text-dark-softer">Aug 18</p>
</div>
</div>
</div>
</div>
</div>
@endsection

View file

@ -1,5 +1,5 @@
---
extends: _layouts.master
extends: _layouts.markdown
title: "Flexbox"
---

View file

@ -1,5 +1,5 @@
---
extends: _layouts.master
extends: _layouts.markdown
title: "Forms"
---

View file

@ -1,5 +1,5 @@
---
extends: _layouts.master
extends: _layouts.markdown
title: "Grid"
---

View file

@ -1,5 +1,5 @@
---
extends: _layouts.master
extends: _layouts.markdown
title: "Images"
---

Binary file not shown.

After

Width:  |  Height:  |  Size: 145 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 68 KiB

View file

@ -1,5 +1,5 @@
---
extends: _layouts.master
extends: _layouts.markdown
---
# Welcome

View file

@ -1,5 +1,5 @@
---
extends: _layouts.master
extends: _layouts.markdown
title: "Installation"
---

View file

@ -1,5 +1,5 @@
---
extends: _layouts.master
extends: _layouts.markdown
title: "Position"
---

View file

@ -1,5 +1,5 @@
---
extends: _layouts.master
extends: _layouts.markdown
title: "Principles"
---

View file

@ -1,5 +1,5 @@
---
extends: _layouts.master
extends: _layouts.markdown
title: "Responsive"
---

View file

@ -1,5 +1,5 @@
---
extends: _layouts.master
extends: _layouts.markdown
title: "Shadows"
---

View file

@ -1,5 +1,5 @@
---
extends: _layouts.master
extends: _layouts.markdown
title: "Spacing"
---

View file

@ -1,5 +1,5 @@
---
extends: _layouts.master
extends: _layouts.markdown
title: "Text"
---

View file

@ -1,5 +1,5 @@
---
extends: _layouts.master
extends: _layouts.markdown
title: "Z-Index"
---