convert to 2 space indentation

This commit is contained in:
Sindre Sorhus 2014-06-20 17:20:44 +02:00
parent fc358547d7
commit 230cf1f79c
9 changed files with 534 additions and 534 deletions

View File

@ -1,55 +1,55 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Page Not Found</title>
<meta name="viewport" content="width=device-width, initial-scale=1, minimal-ui">
<style>
* {
line-height: 1.5;
margin: 0;
}
<head>
<meta charset="utf-8">
<title>Page Not Found</title>
<meta name="viewport" content="width=device-width, initial-scale=1, minimal-ui">
<style>
* {
line-height: 1.5;
margin: 0;
}
html {
color: #888;
font-family: sans-serif;
text-align: center;
}
html {
color: #888;
font-family: sans-serif;
text-align: center;
}
body {
left: 50%;
margin: -43px 0 0 -150px;
position: absolute;
top: 50%;
width: 300px;
}
body {
left: 50%;
margin: -43px 0 0 -150px;
position: absolute;
top: 50%;
width: 300px;
}
h1 {
color: #555;
font-size: 2em;
font-weight: 400;
}
h1 {
color: #555;
font-size: 2em;
font-weight: 400;
}
p {
line-height: 1.2;
}
p {
line-height: 1.2;
}
@media only screen and (max-width: 270px) {
body {
margin: 10px auto;
position: static;
width: 95%;
}
@media only screen and (max-width: 270px) {
body {
margin: 10px auto;
position: static;
width: 95%;
}
h1 {
font-size: 1.5em;
}
}
</style>
</head>
<body>
<h1>Page Not Found</h1>
<p>Sorry, but the page you were trying to view does not exist.</p>
</body>
h1 {
font-size: 1.5em;
}
}
</style>
</head>
<body>
<h1>Page Not Found</h1>
<p>Sorry, but the page you were trying to view does not exist.</p>
</body>
</html>
<!-- IE needs 512+ bytes: http://blogs.msdn.com/b/ieinternals/archive/2010/08/19/http-error-pages-in-internet-explorer.aspx -->

View File

@ -1,56 +1,56 @@
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1, minimal-ui">
<title></title>
<head>
<meta charset="utf-8">
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1, minimal-ui">
<title></title>
<!-- Add to homescreen for Chrome on Android -->
<meta name="mobile-web-app-capable" content="yes">
<!-- Add to homescreen for Chrome on Android -->
<meta name="mobile-web-app-capable" content="yes">
<!-- Add to homescreen for Safari on iOS -->
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-title" content="">
<!-- Add to homescreen for Safari on iOS -->
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-title" content="">
<!-- iOS icons -->
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="images/touch/apple-touch-icon-144x144-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="images/touch/apple-touch-icon-114x114-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="images/touch/apple-touch-icon-72x72-precomposed.png">
<link rel="apple-touch-icon-precomposed" href="images/touch/apple-touch-icon-57x57-precomposed.png">
<!-- iOS icons -->
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="images/touch/apple-touch-icon-144x144-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="images/touch/apple-touch-icon-114x114-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="images/touch/apple-touch-icon-72x72-precomposed.png">
<link rel="apple-touch-icon-precomposed" href="images/touch/apple-touch-icon-57x57-precomposed.png">
<!-- Tile icon for Win8 (144x144 + tile color) -->
<meta name="msapplication-TileImage" content="images/touch/ms-touch-icon-144x144-precomposed.png">
<meta name="msapplication-TileColor" content="#3372DF">
<!-- Tile icon for Win8 (144x144 + tile color) -->
<meta name="msapplication-TileImage" content="images/touch/ms-touch-icon-144x144-precomposed.png">
<meta name="msapplication-TileColor" content="#3372DF">
<!-- Generic Icon -->
<link rel="shortcut icon" href="images/touch/touch-icon-57x57.png">
<!-- Generic Icon -->
<link rel="shortcut icon" href="images/touch/touch-icon-57x57.png">
<!-- SEO: If mobile URL is different from desktop URL, add a canonical link to the desktop page https://developers.google.com/webmasters/smartphone-sites/feature-phones -->
<!--
<link rel="canonical" href="http://www.example.com/">
-->
<!-- SEO: If mobile URL is different from desktop URL, add a canonical link to the desktop page https://developers.google.com/webmasters/smartphone-sites/feature-phones -->
<!--
<link rel="canonical" href="http://www.example.com/">
-->
<!-- Chrome Add to Homescreen -->
<link rel="shortcut icon" sizes="196x196" href="images/touch/touch-icon-196x196.png">
<!-- Chrome Add to Homescreen -->
<link rel="shortcut icon" sizes="196x196" href="images/touch/touch-icon-196x196.png">
<!-- build:css styles/components/main.min.css -->
<link rel="stylesheet" href="styles/h5bp.css">
<!-- endbuild -->
</head>
<body>
<!-- Add your site or application content here -->
<!-- build:css styles/components/main.min.css -->
<link rel="stylesheet" href="styles/h5bp.css">
<!-- endbuild -->
</head>
<body>
<!-- Add your site or application content here -->
<!-- Google Analytics: change UA-XXXXX-X to be your site's ID -->
<script>
(function(b,o,i,l,e,r){b.GoogleAnalyticsObject=l;b[l]||(b[l]=
function(){(b[l].q=b[l].q||[]).push(arguments)});b[l].l=+new Date;
e=o.createElement(i);r=o.getElementsByTagName(i)[0];
e.src='//www.google-analytics.com/analytics.js';
r.parentNode.insertBefore(e,r)}(window,document,'script','ga'));
ga('create','UA-XXXXX-X');ga('send','pageview');
</script>
<!-- Built with love using Web Starter Kit -->
</body>
<!-- Google Analytics: change UA-XXXXX-X to be your site's ID -->
<script>
(function(b,o,i,l,e,r){b.GoogleAnalyticsObject=l;b[l]||(b[l]=
function(){(b[l].q=b[l].q||[]).push(arguments)});b[l].l=+new Date;
e=o.createElement(i);r=o.getElementsByTagName(i)[0];
e.src='//www.google-analytics.com/analytics.js';
r.parentNode.insertBefore(e,r)}(window,document,'script','ga'));
ga('create','UA-XXXXX-X');ga('send','pageview');
</script>
<!-- Built with love using Web Starter Kit -->
</body>
</html>

View File

@ -3,12 +3,12 @@
# TEAM
<name> -- <role> -- <twitter>
<name> -- <role> -- <twitter>
# THANKS
<name>
<name>
# TECHNOLOGY COLOPHON
HTML5, CSS3
HTML5, CSS3

View File

@ -1,87 +1,87 @@
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="description" content="A front-end template that helps you build fast, modern mobile web apps.">
<meta name="viewport" content="width=device-width, initial-scale=1, minimal-ui">
<title>Web Starter Kit</title>
<head>
<meta charset="utf-8">
<meta name="description" content="A front-end template that helps you build fast, modern mobile web apps.">
<meta name="viewport" content="width=device-width, initial-scale=1, minimal-ui">
<title>Web Starter Kit</title>
<!-- Add to homescreen for Chrome on Android -->
<meta name="mobile-web-app-capable" content="yes">
<!-- Add to homescreen for Chrome on Android -->
<meta name="mobile-web-app-capable" content="yes">
<!-- Add to homescreen for Safari on iOS -->
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-title" content="Web Starter Kit">
<!-- Add to homescreen for Safari on iOS -->
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-title" content="Web Starter Kit">
<!-- iOS icons -->
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="images/touch/apple-touch-icon-144x144-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="images/touch/apple-touch-icon-114x114-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="images/touch/apple-touch-icon-72x72-precomposed.png">
<link rel="apple-touch-icon-precomposed" href="images/touch/apple-touch-icon-57x57-precomposed.png">
<!-- iOS icons -->
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="images/touch/apple-touch-icon-144x144-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="images/touch/apple-touch-icon-114x114-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="images/touch/apple-touch-icon-72x72-precomposed.png">
<link rel="apple-touch-icon-precomposed" href="images/touch/apple-touch-icon-57x57-precomposed.png">
<!-- Tile icon for Win8 (144x144 + tile color) -->
<meta name="msapplication-TileImage" content="images/touch/ms-touch-icon-144x144-precomposed.png">
<meta name="msapplication-TileColor" content="#3372DF">
<!-- Tile icon for Win8 (144x144 + tile color) -->
<meta name="msapplication-TileImage" content="images/touch/ms-touch-icon-144x144-precomposed.png">
<meta name="msapplication-TileColor" content="#3372DF">
<!-- Generic Icon -->
<link rel="shortcut icon" href="images/touch/touch-icon-57x57.png">
<!-- Generic Icon -->
<link rel="shortcut icon" href="images/touch/touch-icon-57x57.png">
<!-- SEO: If mobile URL is different from desktop URL, add a canonical link to the desktop page https://developers.google.com/webmasters/smartphone-sites/feature-phones -->
<!--
<link rel="canonical" href="http://www.example.com/">
-->
<!-- SEO: If mobile URL is different from desktop URL, add a canonical link to the desktop page https://developers.google.com/webmasters/smartphone-sites/feature-phones -->
<!--
<link rel="canonical" href="http://www.example.com/">
-->
<!-- Chrome Add to Homescreen -->
<link rel="shortcut icon" sizes="196x196" href="images/touch/touch-icon-196x196.png">
<!-- Chrome Add to Homescreen -->
<link rel="shortcut icon" sizes="196x196" href="images/touch/touch-icon-196x196.png">
<!-- build:css styles/components/main.min.css -->
<link rel="stylesheet" href="styles/h5bp.css">
<link rel="stylesheet" href="styles/components/components.css">
<link rel="stylesheet" href="styles/main.css">
<!-- endbuild -->
</head>
<body>
<header class="app-bar promote-layer">
<div class="app-bar-container">
<button class="menu"><img src="images/hamburger.svg" alt="menu"></button>
<h1 class="logo">Web Starter Kit</h1>
<section class="app-bar-actions">
<!-- Put App Bar Buttons Here -->
</section>
</div>
</header>
<!-- build:css styles/components/main.min.css -->
<link rel="stylesheet" href="styles/h5bp.css">
<link rel="stylesheet" href="styles/components/components.css">
<link rel="stylesheet" href="styles/main.css">
<!-- endbuild -->
</head>
<body>
<header class="app-bar promote-layer">
<div class="app-bar-container">
<button class="menu"><img src="images/hamburger.svg" alt="menu"></button>
<h1 class="logo">Web Starter Kit</h1>
<section class="app-bar-actions">
<!-- Put App Bar Buttons Here -->
</section>
</div>
</header>
<nav class="navdrawer-container promote-layer">
<h4>Navigation</h4>
<ul>
<li><a href="#hello">Hello</a></li>
<li><a href="#get-started">Get Started</a></li>
<li><a href="styleguide/index.html">Style Guide</a></li>
</ul>
</nav>
<nav class="navdrawer-container promote-layer">
<h4>Navigation</h4>
<ul>
<li><a href="#hello">Hello</a></li>
<li><a href="#get-started">Get Started</a></li>
<li><a href="styleguide/index.html">Style Guide</a></li>
</ul>
</nav>
<main>
<h1 id="hello">Hello!</h1>
<p>Welcome to Web Starter Kit.</p>
<main>
<h1 id="hello">Hello!</h1>
<p>Welcome to Web Starter Kit.</p>
<h2 id="get-started">Get Started.</h2>
<p>Read how to <a href="http://developers.google.com/web/starter-kit">Get Started</a> or check out the <a href="styleguide/index.html">Style Guide</a>.</p>
</main>
<h2 id="get-started">Get Started.</h2>
<p>Read how to <a href="http://developers.google.com/web/starter-kit">Get Started</a> or check out the <a href="styleguide/index.html">Style Guide</a>.</p>
</main>
<!-- build:js scripts/main.min.js -->
<script src="scripts/main.js"></script>
<!-- endbuild -->
<!-- build:js scripts/main.min.js -->
<script src="scripts/main.js"></script>
<!-- endbuild -->
<!-- Google Analytics: change UA-XXXXX-X to be your site's ID -->
<script>
(function(b,o,i,l,e,r){b.GoogleAnalyticsObject=l;b[l]||(b[l]=
function(){(b[l].q=b[l].q||[]).push(arguments)});b[l].l=+new Date;
e=o.createElement(i);r=o.getElementsByTagName(i)[0];
e.src='//www.google-analytics.com/analytics.js';
r.parentNode.insertBefore(e,r)}(window,document,'script','ga'));
ga('create','UA-XXXXX-X');ga('send','pageview');
</script>
<!-- Built with love using Web Starter Kit -->
</body>
<!-- Google Analytics: change UA-XXXXX-X to be your site's ID -->
<script>
(function(b,o,i,l,e,r){b.GoogleAnalyticsObject=l;b[l]||(b[l]=
function(){(b[l].q=b[l].q||[]).push(arguments)});b[l].l=+new Date;
e=o.createElement(i);r=o.getElementsByTagName(i)[0];
e.src='//www.google-analytics.com/analytics.js';
r.parentNode.insertBefore(e,r)}(window,document,'script','ga'));
ga('create','UA-XXXXX-X');ga('send','pageview');
</script>
<!-- Built with love using Web Starter Kit -->
</body>
</html>

View File

@ -17,29 +17,29 @@
*
*/
(function () {
'use strict';
'use strict';
var navdrawerContainer = document.querySelector('.navdrawer-container');
var appbarElement = document.querySelector('.app-bar');
var menuBtn = document.querySelector('.menu');
var main = document.querySelector('main');
var navdrawerContainer = document.querySelector('.navdrawer-container');
var appbarElement = document.querySelector('.app-bar');
var menuBtn = document.querySelector('.menu');
var main = document.querySelector('main');
function closeMenu() {
appbarElement.classList.remove('open');
navdrawerContainer.classList.remove('open');
function closeMenu() {
appbarElement.classList.remove('open');
navdrawerContainer.classList.remove('open');
}
function toggleMenu() {
appbarElement.classList.toggle('open');
navdrawerContainer.classList.toggle('open');
}
main.addEventListener('ontouchstart', closeMenu);
main.addEventListener('click', closeMenu);
menuBtn.addEventListener('click', toggleMenu);
navdrawerContainer.addEventListener('click', function (event) {
if (event.target.nodeName === 'A' || event.target.nodeName === 'LI') {
closeMenu();
}
function toggleMenu() {
appbarElement.classList.toggle('open');
navdrawerContainer.classList.toggle('open');
}
main.addEventListener('ontouchstart', closeMenu);
main.addEventListener('click', closeMenu);
menuBtn.addEventListener('click', toggleMenu);
navdrawerContainer.addEventListener('click', function (event) {
if (event.target.nodeName === 'A' || event.target.nodeName === 'LI') {
closeMenu();
}
});
});
})();

View File

@ -1,25 +1,25 @@
<!doctype html>
<html lang="en" class="no-js no-touch" itemscope itemtype="http://schema.org/Article">
<head>
<meta charset="utf-8" >
<meta name="author" content="">
<meta name="description" content="">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta id="viewport" name="viewport" content="width=device-width, initial-scale=1, minimal-ui">
<meta itemprop="name" content="Visual Style Guide — Web Starter Kit">
<meta itemprop="description" content="Visual style guide used by this site.">
<link rel="stylesheet" href="../styles/components/components.css">
<title>Visual Style Guide — Web Starter Kit</title>
<style>
.auto-gen-code-snippet {
display: none;
}
.auto-gen-code-visible {
display: block;
}
</style>
</head>
<body class="page--styleguide">
<head>
<meta charset="utf-8" >
<meta name="author" content="">
<meta name="description" content="">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta id="viewport" name="viewport" content="width=device-width, initial-scale=1, minimal-ui">
<meta itemprop="name" content="Visual Style Guide — Web Starter Kit">
<meta itemprop="description" content="Visual style guide used by this site.">
<link rel="stylesheet" href="../styles/components/components.css">
<title>Visual Style Guide — Web Starter Kit</title>
<style>
.auto-gen-code-snippet {
display: none;
}
.auto-gen-code-visible {
display: block;
}
</style>
</head>
<body class="page--styleguide">
<div class="container">
<h1>Web Starter Kit</h1>

View File

@ -15,24 +15,24 @@ button,
input,
select,
textarea {
color: #222;
color: #222;
}
body {
font-size: 1em;
line-height: 1.4;
font-size: 1em;
line-height: 1.4;
}
a {
color: #00e;
color: #00e;
}
a:visited {
color: #551a8b;
color: #551a8b;
}
a:hover {
color: #06e;
color: #06e;
}
/*
@ -40,7 +40,7 @@ a:hover {
*/
img {
vertical-align: middle;
vertical-align: middle;
}
/*
@ -48,9 +48,9 @@ img {
*/
fieldset {
border: 0;
margin: 0;
padding: 0;
border: 0;
margin: 0;
padding: 0;
}
/*
@ -58,7 +58,7 @@ fieldset {
*/
textarea {
resize: vertical;
resize: vertical;
}
/* ==========================================================================
@ -89,25 +89,25 @@ textarea {
/* Prevent callout */
.nocallout {
-webkit-touch-callout: none;
-webkit-touch-callout: none;
}
.pressed {
background-color: rgba(0, 0, 0, 0.7);
background-color: rgba(0, 0, 0, 0.7);
}
/* A hack for HTML5 contenteditable attribute on mobile */
textarea[contenteditable] {
-webkit-appearance: none;
-webkit-appearance: none;
}
/* A workaround for S60 3.x and 5.0 devices which do not animated gif images if
they have been set as display: none */
.gifhidden {
position: absolute;
left: -100%;
position: absolute;
left: -100%;
}
/*
@ -115,18 +115,18 @@ textarea[contenteditable] {
*/
.ir {
background-color: transparent;
background-repeat: no-repeat;
border: 0;
direction: ltr;
display: block;
overflow: hidden;
text-align: left;
text-indent: -999em;
background-color: transparent;
background-repeat: no-repeat;
border: 0;
direction: ltr;
display: block;
overflow: hidden;
text-align: left;
text-indent: -999em;
}
.ir br {
display: none;
display: none;
}
/*
@ -134,8 +134,8 @@ textarea[contenteditable] {
*/
.hidden {
display: none !important;
visibility: hidden;
display: none !important;
visibility: hidden;
}
/*
@ -143,14 +143,14 @@ textarea[contenteditable] {
*/
.visuallyhidden {
border: 0;
clip: rect(0 0 0 0);
height: 1px;
margin: -1px;
overflow: hidden;
padding: 0;
position: absolute;
width: 1px;
border: 0;
clip: rect(0 0 0 0);
height: 1px;
margin: -1px;
overflow: hidden;
padding: 0;
position: absolute;
width: 1px;
}
/*
@ -160,12 +160,12 @@ textarea[contenteditable] {
.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
clip: auto;
height: auto;
margin: 0;
overflow: visible;
position: static;
width: auto;
clip: auto;
height: auto;
margin: 0;
overflow: visible;
position: static;
width: auto;
}
/*
@ -173,7 +173,7 @@ textarea[contenteditable] {
*/
.invisible {
visibility: hidden;
visibility: hidden;
}
/**
@ -183,12 +183,12 @@ textarea[contenteditable] {
.clearfix:before,
.clearfix:after {
content: "";
display: table;
content: "";
display: table;
}
.clearfix:after {
clear: both;
clear: both;
}
/* ==========================================================================
@ -198,10 +198,10 @@ textarea[contenteditable] {
========================================================================== */
@media only screen and (min-width: 800px) {
/* Style adjustments for viewports that meet the condition */
/* Style adjustments for viewports that meet the condition */
}
@media only screen and (-webkit-min-device-pixel-ratio: 1.5),
only screen and (min-resolution: 144dpi) {
/* Style adjustments for viewports that meet the condition */
only screen and (min-resolution: 144dpi) {
/* Style adjustments for viewports that meet the condition */
}

View File

@ -7,324 +7,324 @@
*/
html, body {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
width: 100%;
height: 100%;
margin: 0;
padding: 0;
}
body {
position: relative;
font-family: 'Roboto Condensed', 'Helvetica', 'Arial', sans-serif;
font-weight: 300;
background-color: #FFFFFF;
box-sizing: border-box;
overflow: hidden;
min-height: 100%;
position: relative;
font-family: 'Roboto Condensed', 'Helvetica', 'Arial', sans-serif;
font-weight: 300;
background-color: #FFFFFF;
box-sizing: border-box;
overflow: hidden;
min-height: 100%;
}
.app-bar {
display: block;
width: 100%;
position: fixed;
top: 0;
left: 0;
background-color: #4285f4;
overflow: hidden;
z-index: 1;
display: block;
width: 100%;
position: fixed;
top: 0;
left: 0;
background-color: #4285f4;
overflow: hidden;
z-index: 1;
}
.app-bar-container {
display: -webkit-flex;
display: flex;
width: 100%;
height: 60px;
position: relative;
-webkit-flex-direction: row;
flex-direction: row;
margin: 0 auto;
display: -webkit-flex;
display: flex;
width: 100%;
height: 60px;
position: relative;
-webkit-flex-direction: row;
flex-direction: row;
margin: 0 auto;
}
.app-bar.open,
.app-bar.open ~ main {
-webkit-transform: translate(250px, 0);
transform: translate(250px, 0);
-webkit-transform: translate(250px, 0);
transform: translate(250px, 0);
}
.app-bar .logo {
-webkit-flex: 1;
flex: 1;
font-size: 2em;
line-height: 60px;
margin: 0 16px;
padding: 0;
color: #fefefe;
float: none;
max-width: none;
font-family: 'Roboto Condensed', 'Helvetica Neue', Helvetica, sans-serif;
font-weight: 300;
line-height: 60px;
-webkit-flex: 1;
flex: 1;
font-size: 2em;
line-height: 60px;
margin: 0 16px;
padding: 0;
color: #fefefe;
float: none;
max-width: none;
font-family: 'Roboto Condensed', 'Helvetica Neue', Helvetica, sans-serif;
font-weight: 300;
line-height: 60px;
}
.app-bar .logo a {
text-decoration: none;
color: inherit;
font-weight: normal;
text-decoration: none;
color: inherit;
font-weight: normal;
}
.app-bar-actions {
display: -webkit-flex;
display: flex;
-webkit-flex-direction: row;
flex-direction: row;
z-index: 2;
display: -webkit-flex;
display: flex;
-webkit-flex-direction: row;
flex-direction: row;
z-index: 2;
}
.app-bar button {
width: 60px;
height: 60px;
background-image: none;
background-color: transparent;
border: none;
padding: 0;
transition: background-color 0.2s ease-out;
width: 60px;
height: 60px;
background-image: none;
background-color: transparent;
border: none;
padding: 0;
transition: background-color 0.2s ease-out;
-webkit-tap-highlight-color: transparent;
-webkit-tap-highlight-color: transparent;
}
.app-bar button img {
width: 60px;
height: 60px;
width: 60px;
height: 60px;
}
.app-bar button:hover {
background-color: rgba(255, 255, 255, 0.1);
background-color: rgba(255, 255, 255, 0.1);
}
.app-bar button:focus {
background-color: rgba(255, 255, 255, 0.2);
outline: 0;
background-color: rgba(255, 255, 255, 0.2);
outline: 0;
}
.app-bar button:active {
background-color: rgba(255, 255, 255, 0.4);
background-color: rgba(255, 255, 255, 0.4);
}
button.menu img {
height:24px;
width: 24px;
height:24px;
width: 24px;
}
.promote-layer {
/*
This may promote the layer to a composited
layer.
/*
This may promote the layer to a composited
layer.
Replace with will-change when available
Replace with will-change when available
#perfmatters
*/
-webkit-backface-visibility: hidden;
backface-visibility: hidden;
#perfmatters
*/
-webkit-backface-visibility: hidden;
backface-visibility: hidden;
}
.base, p, ul, ol {
font-size: 19px;
font-size: 19px;
}
.navdrawer-container {
z-index: 1;
position: fixed;
top: 0;
bottom: 0;
width: 250px;
height: 100%;
background-color: #3367D6;
color: #fefefe;
-webkit-transform: translate(-250px, 0);
transform: translate(-250px, 0);
overflow-y: scroll;
z-index: 1;
position: fixed;
top: 0;
bottom: 0;
width: 250px;
height: 100%;
background-color: #3367D6;
color: #fefefe;
-webkit-transform: translate(-250px, 0);
transform: translate(-250px, 0);
overflow-y: scroll;
}
.navdrawer-container.open {
-webkit-transform: translate(0, 0);
transform: translate(0, 0);
-webkit-transform: translate(0, 0);
transform: translate(0, 0);
}
.app-bar, .navdrawer-container, main {
transition: -webkit-transform 0.3s ease-out;
transition: transform 0.3s ease-out;
transition: -webkit-transform 0.3s ease-out;
transition: transform 0.3s ease-out;
}
.navdrawer-container h4,
.navdrawer-container ul li a {
height: 60px;
padding: 0 20px;
line-height: 60px;
height: 60px;
padding: 0 20px;
line-height: 60px;
}
.navdrawer-container h4 {
background-color: white;
color: #3367D6;
background-color: white;
color: #3367D6;
}
.navdrawer-container ul {
padding: 0;
margin: 0;
list-style-type: none;
padding: 0;
margin: 0;
list-style-type: none;
}
.navdrawer-container ul li a {
display: block;
text-decoration: none;
color: white;
transition: background-color 0.2s ease-out;
display: block;
text-decoration: none;
color: white;
transition: background-color 0.2s ease-out;
}
.navdrawer-container ul li {
border-bottom-style: solid;
border-width: 1px;
border-color: white;
padding: 0;
border-bottom-style: solid;
border-width: 1px;
border-color: white;
padding: 0;
}
.navdrawer-container ul li:before {
content: none;
content: none;
}
.navdrawer-container ul li a:hover {
background-color: rgba(255, 255, 255, 0.2);
background-color: rgba(255, 255, 255, 0.2);
}
.navdrawer-container ul li a:focus {
background-color: rgba(255, 255, 255, 0.3);
outline: 0;
background-color: rgba(255, 255, 255, 0.3);
outline: 0;
}
.navdrawer-container ul li a:active {
background-color: rgba(255, 255, 255, 0.4);
background-color: rgba(255, 255, 255, 0.4);
}
main {
margin: 0 auto;
/* Height of the header */
padding: 60px 16px 16px 16px;
min-height: 100%;
margin: 0 auto;
/* Height of the header */
padding: 60px 16px 16px 16px;
min-height: 100%;
}
/** Larger Screens - desktops and tablets **/
@media all and (min-device-width: 1200px) {
.app-bar {
position: relative;
}
.app-bar {
position: relative;
}
.app-bar-container {
display: block;
height: 130px;
max-width: 864px;
padding: 0 16px;
box-sizing: border-box;
background-color: #4285f4;
}
.app-bar-container {
display: block;
height: 130px;
max-width: 864px;
padding: 0 16px;
box-sizing: border-box;
background-color: #4285f4;
}
.app-bar .logo {
float: left;
margin: 0;
padding: 0;
line-height: 130px;
font-size: 46px;
}
.app-bar .logo {
float: left;
margin: 0;
padding: 0;
line-height: 130px;
font-size: 46px;
}
.app-bar-actions {
float: right;
}
.app-bar-actions {
float: right;
}
.app-bar:after {
content: ' ';
display: block;
height: 0;
overflow: hidden;
clear: both;
}
.app-bar:after {
content: ' ';
display: block;
height: 0;
overflow: hidden;
clear: both;
}
button.menu {
display: none;
}
button.menu {
display: none;
}
nav {
display: block;
margin-top: 130px;
}
nav {
display: block;
margin-top: 130px;
}
.navdrawer-container {
position: relative;
width: 100%;
height: auto;
margin-top: 130px;
-webkit-transform: translate(0, 0);
transform: translate(0, 0);
transition: none;
overflow-y: auto;
}
.navdrawer-container {
position: relative;
width: 100%;
height: auto;
margin-top: 130px;
-webkit-transform: translate(0, 0);
transform: translate(0, 0);
transition: none;
overflow-y: auto;
}
.navdrawer-container h4 {
display: none;
}
.navdrawer-container h4 {
display: none;
}
.navdrawer-container ul {
display: -webkit-flex;
display: flex;
max-width: 864px;
margin: 0 auto;
-webkit-flex-direction: row;
flex-direction: row;
}
.navdrawer-container ul {
display: -webkit-flex;
display: flex;
max-width: 864px;
margin: 0 auto;
-webkit-flex-direction: row;
flex-direction: row;
}
.navdrawer-container ul li {
border: none;
}
.navdrawer-container ul li {
border: none;
}
main {
max-width: 864px;
padding-top: 0;
min-height: initial;
}
main {
max-width: 864px;
padding-top: 0;
min-height: initial;
}
body {
overflow-y: scroll;
}
body {
overflow-y: scroll;
}
.navdrawer-container {
position: relative;
margin-top: 0;
}
.navdrawer-container {
position: relative;
margin-top: 0;
}
}
@media all and (min-device-width: 1200px) and (max-width: 800px) {
.app-bar .logo {
float: none;
width: 100%;
line-height: normal;
text-align: center;
padding-top: 36px;
}
.app-bar .logo {
float: none;
width: 100%;
line-height: normal;
text-align: center;
padding-top: 36px;
}
.app-bar-container {
height: auto;
}
.app-bar-container {
height: auto;
}
.app-bar-actions {
width: 100%;
}
.app-bar-actions {
width: 100%;
}
.navdrawer-container {
padding: 0 16px;
overflow-y: auto;
}
.navdrawer-container {
padding: 0 16px;
overflow-y: auto;
}
.navdrawer-container li {
-webkit-flex: 1;
flex: 1;
text-align: center;
}
.navdrawer-container li {
-webkit-flex: 1;
flex: 1;
text-align: center;
}
}

View File

@ -30,58 +30,58 @@ var reload = browserSync.reload;
// Lint JavaScript
gulp.task('jshint', function () {
return gulp.src('app/scripts/**/*.js')
.pipe($.jshint())
.pipe($.jshint.reporter('jshint-stylish'))
.pipe($.jshint.reporter('fail'))
.pipe(reload({stream: true, once: true}));
return gulp.src('app/scripts/**/*.js')
.pipe($.jshint())
.pipe($.jshint.reporter('jshint-stylish'))
.pipe($.jshint.reporter('fail'))
.pipe(reload({stream: true, once: true}));
});
// Optimize Images
gulp.task('images', function () {
return gulp.src('app/images/**/*')
.pipe($.cache($.imagemin({
progressive: true,
interlaced: true
})))
.pipe(gulp.dest('dist/images'))
.pipe(reload({stream: true, once: true}))
.pipe($.size({title: 'images'}));
return gulp.src('app/images/**/*')
.pipe($.cache($.imagemin({
progressive: true,
interlaced: true
})))
.pipe(gulp.dest('dist/images'))
.pipe(reload({stream: true, once: true}))
.pipe($.size({title: 'images'}));
});
// Automatically Prefix CSS
gulp.task('styles:css', function () {
return gulp.src('app/styles/**/*.css')
.pipe($.autoprefixer('last 1 version'))
.pipe(gulp.dest('app/styles'))
.pipe(reload({stream: true}))
.pipe($.size({title: 'styles:css'}));
return gulp.src('app/styles/**/*.css')
.pipe($.autoprefixer('last 1 version'))
.pipe(gulp.dest('app/styles'))
.pipe(reload({stream: true}))
.pipe($.size({title: 'styles:css'}));
});
// Compile Sass For Style Guide Components (app/styles/components)
gulp.task('styles:components', function () {
return gulp.src('app/styles/components/components.scss')
.pipe($.rubySass({
style: 'expanded',
precision: 10,
loadPath: ['app/styles/components']
}))
.pipe($.autoprefixer('last 1 version'))
.pipe(gulp.dest('app/styles/components'))
.pipe($.size({title: 'styles:components'}));
return gulp.src('app/styles/components/components.scss')
.pipe($.rubySass({
style: 'expanded',
precision: 10,
loadPath: ['app/styles/components']
}))
.pipe($.autoprefixer('last 1 version'))
.pipe(gulp.dest('app/styles/components'))
.pipe($.size({title: 'styles:components'}));
});
// Compile Any Other Sass Files You Added (app/styles)
gulp.task('styles:scss', function () {
return gulp.src(['app/styles/**/*.scss', '!app/styles/components/components.scss'])
.pipe($.rubySass({
style: 'expanded',
precision: 10,
loadPath: ['app/styles']
}))
.pipe($.autoprefixer('last 1 version'))
.pipe(gulp.dest('.tmp/styles'))
.pipe($.size({title: 'styles:scss'}));
return gulp.src(['app/styles/**/*.scss', '!app/styles/components/components.scss'])
.pipe($.rubySass({
style: 'expanded',
precision: 10,
loadPath: ['app/styles']
}))
.pipe($.autoprefixer('last 1 version'))
.pipe(gulp.dest('.tmp/styles'))
.pipe($.size({title: 'styles:scss'}));
});
// Output Final CSS Styles
@ -89,60 +89,60 @@ gulp.task('styles', ['styles:components', 'styles:scss', 'styles:css']);
// Scan Your HTML For Assets & Optimize Them
gulp.task('html', function () {
return gulp.src('app/**/*.html')
.pipe($.useref.assets({searchPath: '{.tmp,app}'}))
// Concatenate And Minify JavaScript
.pipe($.if('*.js', $.uglify()))
// Concatenate And Minify Styles
.pipe($.if('*.css', $.csso()))
// Remove Any Unused CSS
// Note: If not using the Style Guide, you can delete it from
// the next line to only include styles your project uses.
.pipe($.if('*.css', $.uncss({ html: ['app/index.html','app/styleguide/index.html'] })))
.pipe($.useref.restore())
.pipe($.useref())
// Update Production Style Guide Paths
.pipe($.replace('components/components.css', 'components/main.min.css'))
// Minify Any HTML
.pipe($.minifyHtml())
// Output Files
.pipe(gulp.dest('dist'))
.pipe($.size({title: 'html'}));
return gulp.src('app/**/*.html')
.pipe($.useref.assets({searchPath: '{.tmp,app}'}))
// Concatenate And Minify JavaScript
.pipe($.if('*.js', $.uglify()))
// Concatenate And Minify Styles
.pipe($.if('*.css', $.csso()))
// Remove Any Unused CSS
// Note: If not using the Style Guide, you can delete it from
// the next line to only include styles your project uses.
.pipe($.if('*.css', $.uncss({ html: ['app/index.html','app/styleguide/index.html'] })))
.pipe($.useref.restore())
.pipe($.useref())
// Update Production Style Guide Paths
.pipe($.replace('components/components.css', 'components/main.min.css'))
// Minify Any HTML
.pipe($.minifyHtml())
// Output Files
.pipe(gulp.dest('dist'))
.pipe($.size({title: 'html'}));
});
// Clean Output Directory
gulp.task('clean', function (cb) {
rimraf('dist', rimraf.bind({}, '.tmp', cb));
rimraf('dist', rimraf.bind({}, '.tmp', cb));
});
// Watch Files For Changes & Reload
gulp.task('serve', function () {
browserSync.init({
server: {
baseDir: ['app', '.tmp']
},
notify: false
});
browserSync.init({
server: {
baseDir: ['app', '.tmp']
},
notify: false
});
gulp.watch(['app/**/*.html'], reload);
gulp.watch(['app/styles/**/*.{css,scss}'], ['styles']);
gulp.watch(['.tmp/styles/**/*.css'], reload);
gulp.watch(['app/scripts/**/*.js'], ['jshint']);
gulp.watch(['app/images/**/*'], ['images']);
gulp.watch(['app/**/*.html'], reload);
gulp.watch(['app/styles/**/*.{css,scss}'], ['styles']);
gulp.watch(['.tmp/styles/**/*.css'], reload);
gulp.watch(['app/scripts/**/*.js'], ['jshint']);
gulp.watch(['app/images/**/*'], ['images']);
});
// Build Production Files, the Default Task
gulp.task('default', ['clean'], function (cb) {
runSequence('styles', ['jshint', 'html', 'images'], cb);
runSequence('styles', ['jshint', 'html', 'images'], cb);
});
// Run PageSpeed Insights
// Update `url` below to the public URL for your site
gulp.task('pagespeed', pagespeed.bind(null, {
// By default, we use the PageSpeed Insights
// free (no API key) tier. You can use a Google
// Developer API key if you have one. See
// http://goo.gl/RkN0vE for info key: 'YOUR_API_KEY'
url: 'https://example.com',
strategy: 'mobile'
// By default, we use the PageSpeed Insights
// free (no API key) tier. You can use a Google
// Developer API key if you have one. See
// http://goo.gl/RkN0vE for info key: 'YOUR_API_KEY'
url: 'https://example.com',
strategy: 'mobile'
}));