Skip to content
This repository was archived by the owner on Sep 11, 2021. It is now read-only.

Commit 588dbc8

Browse files
committed
Updating to Spectral theme
1 parent 3a7012b commit 588dbc8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

81 files changed

+4706
-3544
lines changed

404.html

-57
This file was deleted.

GHOST.txt

-22
This file was deleted.

LICENSE.txt

+58-17
Large diffs are not rendered by default.

README.txt

+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
Spectral by HTML5 UP
2+
html5up.net | @n33co
3+
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
4+
5+
6+
A big, modern, blocky affair with a mobile-style menu, fully responsive styling,
7+
and an assortment of pre-styled elements. So, pretty much what you were expecting
8+
-- except, of course, for how it's put together, specifically:
9+
10+
- It's built on Skel 3*, a leaner, more modular rewrite of my responsive framework.
11+
12+
(* = still in development as of this writing)
13+
14+
- It uses flexbox*, which eliminates all kinds of terrible hacks and clunky layout
15+
stopgaps (like CSS grid systems).
16+
17+
(* = not supported on IE8/9, but non-flexbox fallbacks are included)
18+
19+
- It uses Sass* a lot more intelligently, thanks in part to several new mixins
20+
and functions I've been working on (as well as a few by @HugoGiraudel).
21+
22+
(* = still entirely optional if you prefer vanilla CSS :)
23+
24+
- A ton of other stuff.
25+
26+
In short, Spectral's the culmination of several new things I'm working on/trying out,
27+
so please, let me know what you think :)
28+
29+
Demo images* courtesy of Unsplash, a radtastic collection of CC0 (public domain) images
30+
you can use for pretty much whatever.
31+
32+
(* = not included)
33+
34+
AJ
35+
n33.co @n33co dribbble.com/n33
36+
37+
38+
Credits:
39+
40+
Demo Images:
41+
Unsplash (unsplash.com)
42+
43+
Icons:
44+
Font Awesome (fortawesome.github.com/Font-Awesome)
45+
46+
Other:
47+
jQuery (jquery.com)
48+
html5shiv.js (@afarkas @jdalton @jon_neal @rem)
49+
background-size polyfill (github.com/louisremi)
50+
Misc. Sass functions (@HugoGiraudel)
51+
Respond.js (j.mp/respondjs)
52+
Skel (skel.io)

_config.yml

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Jekyll configuration
2+
markdown: kramdown
3+
sass:
4+
style: compressed
5+
6+
# Site settings
7+
title: 'BuildingSync®'
8+
title_html: 'BuildingSync<sup>&reg;</sup>'
9+
description: 'Standardizing Energy Audit Data Collection.'
10+
language: 'en-us'
11+
baseurl: ''
12+
url: 'http://buildingsync.net/'
13+
google_analytics: UA-18838154-16

_includes/footer.html

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<footer id="footer">
2+
<ul class="copyright">
3+
<li>{{ site.title }} {{ site.time | date: "%Y" }}</li>
4+
<!--<li>Design: <a href="http://html5up.net" target="_blank">HTML5 UP</a></li>-->
5+
</ul>
6+
</footer>

_includes/head.html

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<head>
2+
<meta charset="utf-8" />
3+
<meta name="viewport" content="width=device-width, initial-scale=1" />
4+
<title>{% if page.title %}{{ page.title | escape }}{% else %}{{ site.title | escape }}{% endif %}</title>
5+
<meta name="description" content="{% if page.excerpt %}{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.description }}{% endif %}">
6+
<!--[if lte IE 8]><script src="{{ "/js/ie/html5shiv.js" | prepend: site.baseurl }}"></script><![endif]-->
7+
<link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}">
8+
<link rel="stylesheet" href="{{ "/css/main.css" | prepend: site.baseurl }}" />
9+
<!--[if lte IE 8]><link rel="stylesheet" href="{{ "/css/ie8.css" | prepend: site.baseurl }}" /><![endif]-->
10+
<!--[if lte IE 9]><link rel="stylesheet" href="{{ "/css/ie9.css" | prepend: site.baseurl }}" /><![endif]-->
11+
</head>

_includes/header.html

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<header id="header"{% if page.layout == 'landing' %} class="alt"{% endif %}>
2+
<h1><a href="{{ site.baseurl }}/index.html">{{ site.title_html }}</a></h1>
3+
<nav id="nav">
4+
<ul>
5+
<li class="special">
6+
<a href="#menu" class="menuToggle"><span>Menu</span></a>
7+
<div id="menu">
8+
<ul>
9+
<li><a href="/">Home</a></li>
10+
<li class="{% if page.title == 'About' %}active{% endif %}" role="presentation"><a href="/about/">About</a>
11+
<ul>
12+
<li class="{% if page.title == 'Collaborators' %}active{% endif %}" role="presentation"><a href="/about/collaborators/">Collaborators</a></li>
13+
<li class="{% if page.title == 'Industry Stakeholders' %}active{% endif %}" role="presentation"><a href="/about/industry_stakeholders/">Industry Stakeholders</a></li>
14+
</ul>
15+
</li>
16+
<li role="presentation"><a href="https://github.com/BuildingSync/schema/releases">Download</a></li>
17+
<li class="{% if page.title == 'Docs' %}active{% endif %}" role="presentation"><a href="/docs/">Docs</a>
18+
<ul>
19+
<li class="{% if page.title == 'Schema Documentation' %}active{% endif %}" role="presentation"><a href="/docs/schema/">Schema</a></li>
20+
</ul>
21+
</li>
22+
<li class="{% if page.title == 'FAQ' %}active{% endif %}" role="presentation"><a href="/faq/">FAQ</a></li>
23+
<li class="{% if page.title == 'Tools' %}active{% endif %}" role="presentation"><a href="/tools/">Tools</a></li>
24+
</ul>
25+
</div>
26+
</li>
27+
</ul>
28+
</nav>
29+
</header>

_includes/scripts.html

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<!-- Scripts -->
2+
<script src="/js/jquery.min.js"></script>
3+
<script src="/js/jquery.scrollex.min.js"></script>
4+
<script src="/js/jquery.scrolly.min.js"></script>
5+
<script src="/js/skel.min.js"></script>
6+
<script src="/js/util.js"></script>
7+
<!--[if lte IE 8]><script src="/js/ie/respond.min.js"></script><![endif]-->
8+
<script src="/js/main.js"></script>
9+
<script>
10+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
11+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
12+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
13+
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
14+
15+
ga('create', '{{ site.google_analytics }}', 'auto');
16+
ga('send', 'pageview');
17+
</script>

_layouts/default.html

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<!DOCTYPE html>
2+
<!--
3+
Original Design: Spectral by HTML5 UP
4+
html5up.net | @n33co
5+
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
6+
Jekyll build mod
7+
-->
8+
<html>
9+
{% include head.html %}
10+
<body>
11+
<div id="page-wrapper">
12+
{% include header.html %}
13+
{{ content }}
14+
{% include footer.html %}
15+
{% include scripts.html %}
16+
</div>
17+
</body>
18+
</html>

_layouts/landing.html

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<!DOCTYPE html>
2+
<!--
3+
Original Design: Spectral by HTML5 UP
4+
html5up.net | @n33co
5+
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
6+
Jekyll build mod
7+
-->
8+
<html>
9+
10+
{% include head.html %}
11+
12+
<body class="landing">
13+
14+
<!-- Page Wrapper -->
15+
<div id="page-wrapper">
16+
17+
{% include header.html %}
18+
19+
{{ content }}
20+
21+
{% include footer.html %}
22+
23+
{% include scripts.html %}
24+
25+
</div>
26+
27+
</body>
28+
29+
</html>

_layouts/page.html

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
layout: default
3+
---
4+
<article id="main">
5+
6+
<header>
7+
<h2>{{ page.title }}</h2>
8+
</header>
9+
10+
<section class="wrapper style5">
11+
<div class="inner">
12+
{{ content }}
13+
</div>
14+
</section>
15+
16+
</article>

_sass/libs/_functions.scss

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
/// Gets a duration value.
2+
/// @param {string} $keys Key(s).
3+
/// @return {string} Value.
4+
@function _duration($keys...) {
5+
@return val($duration, $keys...);
6+
}
7+
8+
/// Gets a font value.
9+
/// @param {string} $keys Key(s).
10+
/// @return {string} Value.
11+
@function _font($keys...) {
12+
@return val($font, $keys...);
13+
}
14+
15+
/// Gets a misc value.
16+
/// @param {string} $keys Key(s).
17+
/// @return {string} Value.
18+
@function _misc($keys...) {
19+
@return val($misc, $keys...);
20+
}
21+
22+
/// Gets a palette value.
23+
/// @param {string} $keys Key(s).
24+
/// @return {string} Value.
25+
@function _palette($keys...) {
26+
@return val($palette, $keys...);
27+
}
28+
29+
/// Gets a size value.
30+
/// @param {string} $keys Key(s).
31+
/// @return {string} Value.
32+
@function _size($keys...) {
33+
@return val($size, $keys...);
34+
}

_sass/libs/_mixins.scss

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
/// Makes an element's :before pseudoelement a FontAwesome icon.
2+
/// @param {string} $content Optional content value to use.
3+
@mixin icon($content: false) {
4+
5+
text-decoration: none;
6+
7+
&:before {
8+
9+
@if $content {
10+
content: $content;
11+
}
12+
13+
-moz-osx-font-smoothing: grayscale;
14+
-webkit-font-smoothing: antialiased;
15+
font-family: FontAwesome;
16+
font-style: normal;
17+
font-weight: normal;
18+
text-transform: none !important;
19+
20+
}
21+
22+
}
23+
24+
/// Applies padding to an element, taking the current element-margin value into account.
25+
/// @param {mixed} $tb Top/bottom padding.
26+
/// @param {mixed} $lr Left/right padding.
27+
/// @param {list} $pad Optional extra padding (in the following order top, right, bottom, left)
28+
/// @param {bool} $important If true, adds !important.
29+
@mixin padding($tb, $lr, $pad: (0,0,0,0), $important: null) {
30+
31+
@if $important {
32+
$important: '!important';
33+
}
34+
35+
padding: ($tb + nth($pad,1)) ($lr + nth($pad,2)) max(0.1em, $tb - _size(element-margin) + nth($pad,3)) ($lr + nth($pad,4)) #{$important};
36+
37+
}

0 commit comments

Comments
 (0)