Skip to content

Instantly share code, notes, and snippets.

@wopian
Created December 6, 2014 22:23
Show Gist options
  • Save wopian/8d933756feba9df88f1e to your computer and use it in GitHub Desktop.
Save wopian/8d933756feba9df88f1e to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
<!DOCTYPE html>
<html>
<head>
<title>Love Live Cards</title>
<link href='https://fonts.googleapis.com/css?family=Sansita+One|Nunito:400,300,700' rel='stylesheet' type='text/css'>
</head>
<canvas id="snow"></canvas>
<body>
<div id="skrollr-body">
<section>
<h1 data-bottom="opacity:0"
data-center="opacity:1"
data-top="opacity:0">Love Live Cards</h1>
<p>Coming soon</p>
</section>
<section>
<div class="row">
<div>
<p>Test</p>
</div>
<div>
<p>Test</p>
</div>
<div>
<p>Test</p>
</div>
<div>
<p>Test</p>
</div>
<div>
<p>Test</p>
</div>
<div>
<p>Test</p>
</div>
</div>
</section>
<section>
<h2><a href="/test.html">Test</a></h2>
</section>
</div>
</body>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
</html>
// ----
// Sass (v3.4.7)
// Compass (v1.0.1)
// ----
$font: 'Nunito', sans-serif;
$font-heading: 'Sansita One', cursive;
$font-size: 18px;
$primary-colour: #605579;
* {
margin: 0;
padding: 0;
}
body {
text-align: center;
font-family: $font;
font-weight: 400;
font-size: $font-size;
/* Remove A.S.A.P */
overflow: hidden;
}
section {
width: 100%;
min-height: 100vh;
background: $primary-colour;
color: #fff;
display: flex;
flex-direction: column;
flex-wrap: nowrap;
justify-content: flex-start;
align-content: center;
align-items: center;
&:first-of-type {
justify-content: center;
}
> * {
flex: 0 1 auto;
align-self: auto;
}
}
h1, h2 {
font-size: 3em;
font-weight: 700;
}
h1 {
font-size: 4em;
font-family: $font-heading;
}
ul {
list-style: none;
}
.big {
padding: 1em;
font-size: 1.25em;
> span {
font-size: 1.25em;
}
}
.row {
display: flex;
> div {
flex: 1;
min-width: 5em;
height: 50px;
background: red;
}
}
#snow {
height: 100vh;
width: 100%;
z-index: 999;
pointer-events: none;
position: fixed;
top: 0;
left: 0;
}
* {
margin: 0;
padding: 0;
}
body {
text-align: center;
font-family: "Nunito", sans-serif;
font-weight: 400;
font-size: 18px;
/* Remove A.S.A.P */
overflow: hidden;
}
section {
width: 100%;
min-height: 100vh;
background: #605579;
color: #fff;
display: flex;
flex-direction: column;
flex-wrap: nowrap;
justify-content: flex-start;
align-content: center;
align-items: center;
}
section:first-of-type {
justify-content: center;
}
section > * {
flex: 0 1 auto;
align-self: auto;
}
h1, h2 {
font-size: 3em;
font-weight: 700;
}
h1 {
font-size: 4em;
font-family: "Sansita One", cursive;
}
ul {
list-style: none;
}
.big {
padding: 1em;
font-size: 1.25em;
}
.big > span {
font-size: 1.25em;
}
.row {
display: flex;
}
.row > div {
flex: 1;
min-width: 5em;
height: 50px;
background: red;
}
#snow {
height: 100vh;
width: 100%;
z-index: 999;
pointer-events: none;
position: fixed;
top: 0;
left: 0;
}
<!DOCTYPE html>
<html>
<head>
<title>Love Live Cards</title>
<link href='https://fonts.googleapis.com/css?family=Sansita+One|Nunito:400,300,700' rel='stylesheet' type='text/css'>
</head>
<canvas id="snow"></canvas>
<body>
<div id="skrollr-body">
<section>
<h1 data-bottom="opacity:0"
data-center="opacity:1"
data-top="opacity:0">Love Live Cards</h1>
<p>Coming soon</p>
</section>
<section>
<div class="row">
<div>
<p>Test</p>
</div>
<div>
<p>Test</p>
</div>
<div>
<p>Test</p>
</div>
<div>
<p>Test</p>
</div>
<div>
<p>Test</p>
</div>
<div>
<p>Test</p>
</div>
</div>
</section>
<section>
<h2><a href="/test.html">Test</a></h2>
</section>
</div>
</body>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment