Initial commit
This commit is contained in:
commit
7dfe1a2f09
BIN
fonts/Eczar/eczar-bold.woff
Normal file
BIN
fonts/Eczar/eczar-bold.woff
Normal file
Binary file not shown.
BIN
fonts/Eczar/eczar-bold.woff2
Normal file
BIN
fonts/Eczar/eczar-bold.woff2
Normal file
Binary file not shown.
BIN
fonts/Eczar/eczar-extrabold.ttf
Normal file
BIN
fonts/Eczar/eczar-extrabold.ttf
Normal file
Binary file not shown.
BIN
fonts/Eczar/eczar-extrabold.woff
Normal file
BIN
fonts/Eczar/eczar-extrabold.woff
Normal file
Binary file not shown.
BIN
fonts/Eczar/eczar-extrabold.woff2
Normal file
BIN
fonts/Eczar/eczar-extrabold.woff2
Normal file
Binary file not shown.
BIN
fonts/Eczar/eczar-medium.woff
Normal file
BIN
fonts/Eczar/eczar-medium.woff
Normal file
Binary file not shown.
BIN
fonts/Eczar/eczar-medium.woff2
Normal file
BIN
fonts/Eczar/eczar-medium.woff2
Normal file
Binary file not shown.
BIN
fonts/Eczar/eczar-regular.woff
Normal file
BIN
fonts/Eczar/eczar-regular.woff
Normal file
Binary file not shown.
BIN
fonts/Eczar/eczar-regular.woff2
Normal file
BIN
fonts/Eczar/eczar-regular.woff2
Normal file
Binary file not shown.
BIN
fonts/Gentium_Basic/genbasbold.woff
Normal file
BIN
fonts/Gentium_Basic/genbasbold.woff
Normal file
Binary file not shown.
BIN
fonts/Gentium_Basic/genbasbold.woff2
Normal file
BIN
fonts/Gentium_Basic/genbasbold.woff2
Normal file
Binary file not shown.
BIN
fonts/Gentium_Basic/genbasbolditalic.woff
Normal file
BIN
fonts/Gentium_Basic/genbasbolditalic.woff
Normal file
Binary file not shown.
BIN
fonts/Gentium_Basic/genbasbolditalic.woff2
Normal file
BIN
fonts/Gentium_Basic/genbasbolditalic.woff2
Normal file
Binary file not shown.
BIN
fonts/Gentium_Basic/genbasitalic.ttf
Normal file
BIN
fonts/Gentium_Basic/genbasitalic.ttf
Normal file
Binary file not shown.
BIN
fonts/Gentium_Basic/genbasitalic.woff
Normal file
BIN
fonts/Gentium_Basic/genbasitalic.woff
Normal file
Binary file not shown.
BIN
fonts/Gentium_Basic/genbasitalic.woff2
Normal file
BIN
fonts/Gentium_Basic/genbasitalic.woff2
Normal file
Binary file not shown.
BIN
fonts/Gentium_Basic/genbasregular.woff
Normal file
BIN
fonts/Gentium_Basic/genbasregular.woff
Normal file
Binary file not shown.
BIN
fonts/Gentium_Basic/genbasregular.woff2
Normal file
BIN
fonts/Gentium_Basic/genbasregular.woff2
Normal file
Binary file not shown.
BIN
images/bg.jpg
Normal file
BIN
images/bg.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 544 KiB |
BIN
images/coffee.png
Normal file
BIN
images/coffee.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 12 KiB |
BIN
images/coffee_white.png
Normal file
BIN
images/coffee_white.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 29 KiB |
206
index.html
Normal file
206
index.html
Normal file
@ -0,0 +1,206 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Better Living Through Coffee</title>
|
||||
|
||||
<meta charset="UTF-8">
|
||||
<meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">
|
||||
<meta content="width=device-width, initial-scale=1" name="viewport">
|
||||
|
||||
<link rel="apple-touch-icon" href="img/favicon.icns">
|
||||
<link rel="shortcut icon" href="img/favicon.ico">
|
||||
|
||||
<meta content="Bustling and cozy cafe with a waterfront view." name="description">
|
||||
<meta content="Port Townsend, Coffee, Organic, Roast, Espresso, Cappuccino, Latte, Mocha, Decaf, French Roast, " name="keywords">
|
||||
|
||||
<link href="styles/base.css" rel="stylesheet">
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<nav>
|
||||
<a href="#top">Top</a>
|
||||
<a href="#drinks">Drinks Menu</a>
|
||||
<a href="#food">Food Menu</a>
|
||||
</nav>
|
||||
<div class="banner">
|
||||
<img src="../images/coffee_white.png" data-src="../images/coffee_white.png">
|
||||
|
||||
<h1>Better Living Through Coffee</h1>
|
||||
<p class="byline"><em>Bustling cozy cafe with a waterfront view.</em></p>
|
||||
|
||||
<div class="block">
|
||||
<h4>Phone</h4>
|
||||
<a href="tel:+13603853388">(360) 385-3388</a>
|
||||
|
||||
<h4>Location</h4>
|
||||
<address>
|
||||
<a href="https://www.google.com/maps/place/100+Tyler+St,+Port+Townsend,+WA+98368/">100 Tyler St,
|
||||
Port Townsend, WA 98368</a>
|
||||
</address>
|
||||
|
||||
<h4>Hours</h4>
|
||||
<p>Monday - Thursday: 7am - 5pm<br>
|
||||
Friday - Sunday: 7am - 7pm</p>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
|
||||
|
||||
<main>
|
||||
<article id="drinks">
|
||||
<header>
|
||||
<h2>Drinks Menu</h2>
|
||||
|
||||
<p><em>Fair-trade, organic, locally roasted drip coffee and espresso;<br>
|
||||
organic herbal teas, smoothies, and specialty drinks.</em></p>
|
||||
|
||||
<!-- <p><em>Now serving Beer and Wine!</em></p> -->
|
||||
</header>
|
||||
|
||||
<div class="wrapper">
|
||||
<section>
|
||||
<h3>Drip Coffee</h3>
|
||||
|
||||
|
||||
<p><strong>Nicaragua</strong> - Mild Roast<br>
|
||||
Central American. Medium body. Good acidity.</p>
|
||||
|
||||
<p><strong>Dante’s Tornado</strong> - Medium Roast (Full City)<br>
|
||||
Good body. Rounded flavor. Medium acidity.</p>
|
||||
|
||||
<p><strong>Sumatra</strong> - Dark Roast<br>
|
||||
Low acid. Heavy body. Like a Vienna roast.</p>
|
||||
|
||||
<p><strong>Ethiopa Sidamo</strong> - Dark Roast<br>
|
||||
Earthy, fruity, wild and complex. Good body.</p>
|
||||
|
||||
<p><strong>Loop d’ Loop</strong> - Dark Roast<br>
|
||||
Smooth. Well-rounded. Good body. Chocolatey.</p>
|
||||
|
||||
<p><strong>Decaf French</strong> - Dark Roast<br>
|
||||
Smooth, smokey.</p>
|
||||
|
||||
<p><strong>Pantomime</strong> - Very Dark French Roast<br>
|
||||
Smokey, caramel flavors.</p>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
<h3>Espresso</h3>
|
||||
|
||||
|
||||
<p><strong>Espresso</strong><br>
|
||||
Double ristretto.</p>
|
||||
|
||||
<p><strong>Macchiato</strong><br>
|
||||
Espresso marked with foam.</p>
|
||||
|
||||
<p><strong>Con Panna</strong><br>
|
||||
Espresso marked with whipped cream.</p>
|
||||
|
||||
<p><strong>Americano</strong><br>
|
||||
Espresso in hot water.</p>
|
||||
|
||||
<p><strong>Cappuccino</strong><br>
|
||||
Dry foam over espresso.</p>
|
||||
|
||||
<p><strong>Caffè Latte</strong><br>
|
||||
Microfoam over espresso.</p>
|
||||
|
||||
<p><strong>Caffè Breve</strong><br>
|
||||
Dry foam.</p>
|
||||
|
||||
<p><strong>Flavored Latte</strong><br>
|
||||
Vanilla, hazelnut, or caramel.</p>
|
||||
|
||||
<p><strong>Caffè Vienois</strong><br>
|
||||
Vanilla, cinnamon.</p>
|
||||
|
||||
<p><strong>Caffè Mocha</strong><br>
|
||||
Organic cocoa.</p>
|
||||
|
||||
<p><strong>Caffè Arancia</strong><br>
|
||||
Organic cocoa, orange peel, vanilla.</p>
|
||||
|
||||
<p><strong>Caffè Chetzemocha</strong><br>
|
||||
Cocoa, spices, chipotle peppers.</p>
|
||||
|
||||
<p><strong>Salted Caramel Latte</strong><br>
|
||||
House-made caramel.</p>
|
||||
</section>
|
||||
</div>
|
||||
</article>
|
||||
|
||||
<article id="food">
|
||||
<header>
|
||||
<h2>Food Menu</h2>
|
||||
|
||||
<p><em>Freshly baked, delicious, nutrient-dense:<br>
|
||||
pastries, soups, quiches, and other treats made with organic ingredients.</em></p>
|
||||
</header>
|
||||
|
||||
<div class="wrapper">
|
||||
<section>
|
||||
|
||||
<p><strong>Sausage Pepper Quiche</strong><br>
|
||||
Peppers, onions & raw chedder.</p>
|
||||
|
||||
<p><strong>Spinach Quiche</strong><br>
|
||||
Spinach & raw cheddar.</p>
|
||||
|
||||
<p><strong>Tamale Pie</strong><br>
|
||||
Local grass-fed beef.</p>
|
||||
|
||||
<p><strong>Chicken Pot Pie</strong><br>
|
||||
Einkorn crust, vegetables.</p>
|
||||
|
||||
<p><strong>Salmon Quiche</strong><br>
|
||||
Wild salmon, capers.</p>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
<p><strong>Green Salad</strong><br>
|
||||
Baby greens, olives, dressing.</p>
|
||||
|
||||
<p><strong>Apple Walnut Salad</strong><br>
|
||||
Amish cheddar, olives, dressing.</p>
|
||||
|
||||
<p><strong>Salmon Salad</strong><br>
|
||||
Wild salmon, olives, dressing.</p>
|
||||
|
||||
<p><strong>Lentil Soup</strong><br>
|
||||
Vegan.</p>
|
||||
|
||||
<p><strong>Salmon Chowder</strong><br>
|
||||
Creamy. Wild salmon.</p>
|
||||
|
||||
<p><strong>Yogurt Parfait</strong><br>
|
||||
Yogurt, walnuts, berries, honey.</p>
|
||||
</section>
|
||||
</div>
|
||||
<p><small>All food items are made on site using local, organic produce when available, locally raised grass-fed beef, pastured chickens and organic eggs, and wild Alaskan line-caught salmon.</small></p>
|
||||
</article>
|
||||
</main>
|
||||
|
||||
<footer>
|
||||
<p>
|
||||
<strong>Phone:</strong>
|
||||
<a href="tel:+13603853388">(360) 385-3388</a>
|
||||
</p>
|
||||
<address>
|
||||
<strong>Location:</strong>
|
||||
<a href="https://www.google.com/maps/place/100+Tyler+St,+Port+Townsend,+WA+98368/">100 Tyler St,
|
||||
Port Townsend, WA 98368</a>
|
||||
</address>
|
||||
<p>
|
||||
<strong>Hours:</strong>
|
||||
Mon - Thu: 7am - 5pm,<wbr> Fri - Sun: 7am - 7pm
|
||||
</p>
|
||||
|
||||
<p>Better Living Through Coffee is located in the beautiful, historic downtown district of Port Townsend, Washington.</p>
|
||||
</footer>
|
||||
|
||||
<script type="text/javascript" src="scripts/index.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
23
scripts/index.js
Normal file
23
scripts/index.js
Normal file
@ -0,0 +1,23 @@
|
||||
(function () {
|
||||
|
||||
// Defer image loading till last.
|
||||
function init() {
|
||||
var imgDefer = document.getElementsByTagName('img');
|
||||
for (var i = 0; i < imgDefer.length; i++) {
|
||||
if (imgDefer[i].getAttribute('data-src')) {
|
||||
imgDefer[i].setAttribute('src', imgDefer[i].getAttribute('data-src'));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// When the DOM is ready it'll execute fn().
|
||||
function ready(fn) {
|
||||
if (document.readyState != 'loading'){
|
||||
fn();
|
||||
} else {
|
||||
document.addEventListener('DOMContentLoaded', fn);
|
||||
}
|
||||
}
|
||||
|
||||
window.onload = init;
|
||||
})();
|
||||
141
styles/base.css
Normal file
141
styles/base.css
Normal file
@ -0,0 +1,141 @@
|
||||
@import url("normalize.css");
|
||||
@import url("fonts.css");
|
||||
|
||||
|
||||
html {
|
||||
font-size: 1.25em;
|
||||
}
|
||||
|
||||
body {
|
||||
background-color: white;
|
||||
font-family: 'gentium_basic', serif;
|
||||
font-weight: 400;
|
||||
line-height: 1.45;
|
||||
color: #333;
|
||||
|
||||
padding: 0;
|
||||
max-width: 100%;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
p {
|
||||
margin-bottom: 1.3em;
|
||||
}
|
||||
|
||||
h1, h2, h3, h4 {
|
||||
font-family: "eczar";
|
||||
margin: 1.414em 0 0.5em;
|
||||
font-weight: bold;
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
h1 {
|
||||
margin-top: 0;
|
||||
font-size: 2.441em;
|
||||
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-size: 1.953em;
|
||||
}
|
||||
|
||||
h3 {
|
||||
font-size: 1.563em;
|
||||
}
|
||||
|
||||
h4 {
|
||||
font-size: 1.25em;
|
||||
}
|
||||
|
||||
small {
|
||||
font-size: 0.8em;
|
||||
}
|
||||
|
||||
address {
|
||||
font-style: inherit;
|
||||
}
|
||||
|
||||
.byline {
|
||||
font-size: 1.563em;
|
||||
}
|
||||
|
||||
|
||||
/* Layout */
|
||||
img {
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.wrapper {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
flex-flow: row wrap;
|
||||
}
|
||||
|
||||
nav {
|
||||
width: 100%;
|
||||
background-color: rgba(0,0,0,.95);
|
||||
color: white;
|
||||
|
||||
padding-top: 0.25em;
|
||||
padding-bottom: 0.25em;
|
||||
|
||||
position: fixed;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: baseline;
|
||||
flex-flow: row wrap;
|
||||
}
|
||||
nav a {
|
||||
color: white;
|
||||
margin-right: 1em;
|
||||
margin-left: 1em;
|
||||
}
|
||||
footer a {
|
||||
color: white;
|
||||
}
|
||||
|
||||
article header,
|
||||
body header {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
main {
|
||||
max-width: 40em;
|
||||
margin: 0 auto;
|
||||
padding: 1em;
|
||||
}
|
||||
|
||||
article {
|
||||
padding-top: 1.563em;
|
||||
}
|
||||
|
||||
footer {
|
||||
width: 100%;
|
||||
background-color: rgba(0,0,0,.95);
|
||||
color: white;
|
||||
text-align: center;
|
||||
|
||||
padding-top: 0.25em;
|
||||
padding-bottom: 0.25em;
|
||||
|
||||
display: flex;
|
||||
justify-content: space-around;
|
||||
align-items: baseline;
|
||||
flex-flow: row wrap;
|
||||
}
|
||||
|
||||
/* Theme */
|
||||
.banner {
|
||||
padding: 4em 2em;
|
||||
background-size: cover;
|
||||
background-image: url(../images/bg.jpg);
|
||||
background-repeat: no-repeat;
|
||||
background-position: top center;
|
||||
|
||||
color: white;
|
||||
text-shadow: 1px 1px 2px black;
|
||||
}
|
||||
|
||||
.banner a {
|
||||
color: white;
|
||||
}
|
||||
69
styles/fonts.css
Normal file
69
styles/fonts.css
Normal file
@ -0,0 +1,69 @@
|
||||
/* Eczar */
|
||||
|
||||
@font-face {
|
||||
font-family: 'eczar';
|
||||
src: url('../fonts/Eczar/eczar-bold.woff2') format('woff2'),
|
||||
url('../fonts/Eczar/eczar-bold.woff') format('woff');
|
||||
font-weight: 700;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'eczar';
|
||||
src: url('../fonts/Eczar/eczar-extrabold.woff2') format('woff2'),
|
||||
url('../fonts/Eczar/eczar-extrabold.woff') format('woff');
|
||||
font-weight: bolder;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'eczar';
|
||||
src: url('../fonts/Eczar/eczar-medium.woff2') format('woff2'),
|
||||
url('../fonts/Eczar/eczar-medium.woff') format('woff');
|
||||
font-weight: 500;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'eczar';
|
||||
src: url('../fonts/Eczar/eczar-regular.woff2') format('woff2'),
|
||||
url('../fonts/Eczar/eczar-regular.woff') format('woff');
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* Gentium Basic */
|
||||
|
||||
@font-face {
|
||||
font-family: 'gentium_basic';
|
||||
src: url('../fonts/Gentium_Basic/genbasbold.woff2') format('woff2'),
|
||||
url('../fonts/Gentium_Basic/genbasbold.woff') format('woff');
|
||||
font-weight: bold;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'gentium_basic';
|
||||
src: url('../fonts/Gentium_Basic/genbasbolditalic.woff2') format('woff2'),
|
||||
url('../fonts/Gentium_Basic/genbasbolditalic.woff') format('woff');
|
||||
font-weight: bold;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'gentium_basic';
|
||||
src: url('../fonts/Gentium_Basic/genbasitalic.woff2') format('woff2'),
|
||||
url('../fonts/Gentium_Basic/genbasitalic.woff') format('woff');
|
||||
font-weight: normal;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'gentium_basic';
|
||||
src: url('../fonts/Gentium_Basic/genbasregular.woff2') format('woff2'),
|
||||
url('../fonts/Gentium_Basic/genbasregular.woff') format('woff');
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
}
|
||||
341
styles/normalize.css
vendored
Normal file
341
styles/normalize.css
vendored
Normal file
@ -0,0 +1,341 @@
|
||||
/*! normalize.css v8.0.0 | MIT License | github.com/necolas/normalize.css */
|
||||
|
||||
/* 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;
|
||||
}
|
||||
|
||||
/**
|
||||
* Correct the font size and margin on `h1` elements within `section` and
|
||||
* `article` contexts in Chrome, Firefox, and Safari.
|
||||
*/
|
||||
|
||||
h1 {
|
||||
font-size: 2em;
|
||||
margin: 0.67em 0;
|
||||
}
|
||||
|
||||
/* 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;
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user