Skip to content

Commit

Permalink
Prototype base structure
Browse files Browse the repository at this point in the history
  • Loading branch information
cornae committed Jul 12, 2014
1 parent a658e3e commit 05a0325
Show file tree
Hide file tree
Showing 120 changed files with 7,611 additions and 2,338 deletions.
4,303 changes: 4,303 additions & 0 deletions config.codekit

Large diffs are not rendered by default.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
1 change: 1 addition & 0 deletions prototype/CNAME
@@ -0,0 +1 @@
patterns.cornae.com
2 changes: 1 addition & 1 deletion prototype/Gemfile 100644 → 100755
@@ -1,2 +1,2 @@
source 'https://rubygems.org'
gem 'github-pages'
gem 'github-pages'
26 changes: 26 additions & 0 deletions prototype/LICENSE.txt
@@ -0,0 +1,26 @@
Copyright (c) The Regents of the University of California.
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
3. Neither the name of the University nor the names of its contributors
may be used to endorse or promote products derived from this software
without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
SUCH DAMAGE.
19 changes: 19 additions & 0 deletions prototype/README.md
@@ -0,0 +1,19 @@
# Patterns

Patterns is a JavaScript library that enables designers to build rich
interactive prototypes without the need for writing any JavaScript. All events
are triggered by classes and other attributes in the HTML, without abusing the
HTML as a programming language. Accessibility, SEO and well structured HTML are
core values of Patterns.

## Browser support

Patterns aims to support at least the two latest major versions of all popular browsers.

Currently that means:

- Apple Safari 5+
- Google Chrome 20+
- Microsoft Internet Explorer 8+

Other browser version may work too, but are not actively tested against.
63 changes: 53 additions & 10 deletions prototype/_config.yml 100644 → 100755
@@ -1,12 +1,55 @@
title: Plone Intranet
author: Plone Intranet Community
baseurl:
domain: demo.org
title: Patterns
author: Cornelis G. A. Kolbach
baseurl: http://patterns.cornae.com
domain: patterns.cornae.com
media: /media
markdown: kramdown
permalink: /:title
encoding: utf-8
categories:
- about
tags:
- article
- case
exclude:
- Gemfile
- Gemfile.lock
- work
- config.codekit
prose:
rooturl: '_posts'
siteurl: 'http://patterns.cornae.com/'
relativeLinks: 'http://patterns.cornae.com/links.jsonp'
media: 'media'
ignore:
- index.html
- _config.yml
- /_layouts
- /_includes
- /media
- /lib
- /work
- /style
metadata:
_posts:
- name: "layout"
field:
element: "hidden"
value: "generic"
options:
- name: 'Generic'
value: 'generic'
- name: "title"
field:
element: "text"
placeholder: "Title"
label: "Documenttitel"
- name: "summary"
field:
element: "text"
placeholder: "Samenvatting"
label: "Samenvatting"
_posts/static:
- name: "layout"
field:
element: "hidden"
value: "page"
- name: "permalink"
field:
element: "text"
label: "Permalink"
value: ""
67 changes: 0 additions & 67 deletions prototype/_includes/global-header.html

This file was deleted.

9 changes: 0 additions & 9 deletions prototype/_layouts/generic.html

This file was deleted.

59 changes: 32 additions & 27 deletions prototype/_layouts/shell.html 100755 → 100644
@@ -1,34 +1,39 @@
<!DOCTYPE html>
<!-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ -->
<!--[if lt IE 7]> <html class="no-js lt-ie10 lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie10 lt-ie9 lt-ie8" lang="en"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie10 lt-ie9" lang="en"> <![endif]-->
<!--[if IE 9]> <html class="no-js lt-ie10" lang="en"> <![endif]-->
<!-- Consider adding a manifest.appcache: h5bp.com/d/Offline -->
<!--[if gt IE 9]><!-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Patterns library</title>
<link rel="stylesheet" href="{{ site.baseurl }}/style/base.css" type="text/css">

<html class="no-js lt-ie9 lt-ie10" lang="en">
<!--<![endif]-->
<script src="{{ site.baseurl }}/bundles/patterns.min.js" type="text/javascript"></script>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-37987884-1']);
_gaq.push(['_trackPageview']);

<head>
<meta content="IE=Edge" http-equiv="X-UA-Compatible">
<meta charset="utf-8">
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();

<title>{% if page.title %} {{ page.title }}— {% endif %} Plone Intranet</title>
<meta content="" name="description"><!-- Mobile viewport optimized: h5bp.com/viewport -->
<meta content="width=device-width,initial-scale=1" name="viewport">
<!-- Place favicon.ico and apple-touch-icon.png in the root directory: mathiasbynens.be/notes/touch-icons -->
<link href="{{ site.baseurl }}/style/base.css" media="all" rel="stylesheet" type="text/css">
<!--[if lt IE 9]>
<script src="{{ site.baseurl }}/Libraries/html5shiv.js"></script>
<script src="{{ site.baseurl }}/Libraries/respond.min.js" type="text/javascript" charset="utf-8"></script>
<![endif]-->
<script charset="utf-8" src="{{ site.baseurl }}/libraries/prefixfree.min.js" type="text/javascript"></script>
<script charset="utf-8" src="{{ site.baseurl }}/libraries/modernizr.min.js" type="text/javascript"></script>
</script>

<link rel="icon" type="image/png" href="{{ site.baseurl }}/media/favicon.png" />
<!--[if IE]>
<link rel="shortcut icon" type="image/x-icon" href="media/favicon.ico" />
<![endif]-->
</head>
<body class="application-{{ page.application }} {{ page.class }}">
{{ content }}
<script id="ploneintranet-js" charset="utf-8" src="{{ site.baseurl }}/bundles/ploneintranet.js" type="text/javascript"></script>
<body class="state-{{ page.state }}">
<header id="site-header">
<nav class="global-nav navigation">
<a class="pat-switch download pat-inject" data-pat-switch="body state-* state-download" href="/download.html#content">Download</a>
<a class="pat-switch patterns pat-inject" data-pat-switch="body state-* state-home" href="/index.html#content">Patterns</a>
<a class="pat-switch documentation pat-inject" data-pat-switch="body state-* state-documentation" href="/documentation.html#content">Documentation</a>
</nav>
</header>
<div id="content">
{{ content }}
</div>
</body>
</html>
</html>
20 changes: 20 additions & 0 deletions prototype/_sass/_settings.scss
@@ -0,0 +1,20 @@
// first we set the variables:
//
// Libs/tools
@import "libraries/mixins";
@import "../general/web-fonts.css";
@import "fontello/css/fontello.css";

// Primary colours
$felt:#89AA74;
$colour-alert: red;

// Secondary colours


// Categories
$cat-form:#be9ac1;
$cat-layout:#a1ced2;

// Responsive font-size:
$mobile:768px;
24 changes: 24 additions & 0 deletions prototype/_sass/base.scss
@@ -0,0 +1,24 @@
// enable sass compass
@import "compass";

// meta
@import "settings";

// general
@import "libraries/reset";
@import "libraries/web-fonts";
@import "libraries/animation";

// components
@import "components/injection";
@import "components/pattern-tile";
@import "components/site-header";
@import "components/sub-nav";
@import "components/button-bar";
@import "components/button";
@import "components/component-index";
@import "components/download-form";
@import "components/checklist";
@import "components/nav-tile";
@import "components/grid";

3 changes: 3 additions & 0 deletions prototype/_sass/components/_button-bar.scss
@@ -0,0 +1,3 @@
.button-bar {
margin-bottom: 1em;
}
6 changes: 6 additions & 0 deletions prototype/_sass/components/_button.scss
@@ -0,0 +1,6 @@
button {
padding: 0.8em 2em;
background: rgba(0,0,0,0.2);
color: white;
font-size: 0.8em;
}
40 changes: 40 additions & 0 deletions prototype/_sass/components/_checklist.scss
@@ -0,0 +1,40 @@
.pat-checklist {

label {
display: block;
padding-left: 1.5em;
position: relative;

input[type="checkbox"],
input[type="radio"] {
position: absolute;
left: 0;
top: 0;
opacity: 0;
}

&:before {
font-family: "fontello";
font-size: 0.8em;
content: "\e808";
margin-left: -1.75em;
position: relative;
top: 0.25em;
float: left;
}

&.checked:before {
content: "\e809"
}
}

&.radio label {
&:before {
content: "\e807";
}

&.checked:before {
content: "\e806";
}
}
}
16 changes: 16 additions & 0 deletions prototype/_sass/components/_component-index.scss
@@ -0,0 +1,16 @@
.component-index {
margin-bottom: 1em;

.functions {
display: block;
margin-bottom: 1em;
}

.listing {
column-count: 5;
}

label {
display: block;
}
}
5 changes: 5 additions & 0 deletions prototype/_sass/components/_download-form.scss
@@ -0,0 +1,5 @@
form.download {
.bundle-type {
margin-bottom: 1em;
}
}

0 comments on commit 05a0325

Please sign in to comment.