📱 Just randomly dropping in to make these look better on mobile devices.
This commit is contained in:
6 files changed
+97
-32
No files matched your search
@@ -17,6 +17,7 @@ body {
|
|||||||
background-color: #111;
|
background-color: #111;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
width: 100%;
|
||||||
font-family: 'ChicagoFLF', 'Times New Roman', 'Georgia', serif;
|
font-family: 'ChicagoFLF', 'Times New Roman', 'Georgia', serif;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,6 +12,7 @@
|
|||||||
background-image: url(../img/seafloor.jpg);
|
background-image: url(../img/seafloor.jpg);
|
||||||
background-position: bottom;
|
background-position: bottom;
|
||||||
background-repeat: repeat-x;
|
background-repeat: repeat-x;
|
||||||
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bubbles {
|
.bubbles {
|
||||||
|
|||||||
+13
-12
@@ -3,6 +3,7 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<title>Flying Toasters | After Dark in CSS</title>
|
<title>Flying Toasters | After Dark in CSS</title>
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<link rel="shortcut icon" href="../img/favicon.png" />
|
<link rel="shortcut icon" href="../img/favicon.png" />
|
||||||
<link rel="stylesheet" href="base.css">
|
<link rel="stylesheet" href="base.css">
|
||||||
<style>
|
<style>
|
||||||
@@ -28,7 +29,7 @@
|
|||||||
* T1 is fastest speed
|
* T1 is fastest speed
|
||||||
* T2 is mid speed & flaps out of sequence with T1
|
* T2 is mid speed & flaps out of sequence with T1
|
||||||
* T3 is the common speed
|
* T3 is the common speed
|
||||||
* T4 is a deleyd batch going at the fastest speed
|
* T4 is a delayed batch going at the fastest speed
|
||||||
* T5, T6, T7, T8, & T9 are a delayed batch of toasters going at the common speed
|
* T5, T6, T7, T8, & T9 are a delayed batch of toasters going at the common speed
|
||||||
*/
|
*/
|
||||||
.t1 {
|
.t1 {
|
||||||
@@ -136,25 +137,25 @@
|
|||||||
/**
|
/**
|
||||||
* Starting positions of objects (both toast & toasters).
|
* Starting positions of objects (both toast & toasters).
|
||||||
* - There is a different position for each object to prevent overlapping.
|
* - There is a different position for each object to prevent overlapping.
|
||||||
* - We use percentages in order to accomodate for all window dimensions.
|
* - We use percentages in order to accommodate for all window dimensions.
|
||||||
* - Use -6% as the smallest amount for remaining off-screen.
|
* - Use -6% as the smallest amount for remaining off-screen.
|
||||||
* - Organized into reverse "L" shaped batches to keep a constant flow.
|
* - Organized into reverse "L" shaped batches to keep a constant flow.
|
||||||
*/
|
*/
|
||||||
/* Batch 1 (-10% to -20%) */
|
/* Batch 1 (-10% to -20%) */
|
||||||
/* Top edge, from right to left */
|
/* Top edge, from right to left */
|
||||||
.p6 { right: -2%; top: -10%; }
|
.p6 { right: -2%; top: -17%; }
|
||||||
.p7 { right: 10%; top: -12%; }
|
.p7 { right: 10%; top: -19%; }
|
||||||
.p8 { right: 20%; top: -18%; }
|
.p8 { right: 20%; top: -18%; }
|
||||||
.p9 { right: 30%; top: -13%; }
|
.p9 { right: 30%; top: -20%; }
|
||||||
.p10 { right: 40%; top: -17%; }
|
.p10 { right: 40%; top: -21%; }
|
||||||
.p11 { right: 50%; top: -11%; }
|
.p11 { right: 50%; top: -18%; }
|
||||||
.p12 { right: 60%; top: -20%; }
|
.p12 { right: 60%; top: -20%; }
|
||||||
/* Right side, from top to bottom */
|
/* Right side, from top to bottom */
|
||||||
.p13 { right: -10%; top: 10%; }
|
.p13 { right: -17%; top: 10%; }
|
||||||
.p14 { right: -13%; top: 20%; }
|
.p14 { right: -19%; top: 20%; }
|
||||||
.p15 { right: -17%; top: 30%; }
|
.p15 { right: -21%; top: 30%; }
|
||||||
.p16 { right: -15%; top: 50%; }
|
.p16 { right: -23%; top: 50%; }
|
||||||
.p17 { right: -20%; top: 70%; }
|
.p17 { right: -25%; top: 70%; }
|
||||||
|
|
||||||
/* Batch 2 (-20% to -40%) */
|
/* Batch 2 (-20% to -40%) */
|
||||||
/* Top edge, from right to left */
|
/* Top edge, from right to left */
|
||||||
|
|||||||
@@ -3,9 +3,14 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<title>Hard Rain | After Dark in CSS</title>
|
<title>Hard Rain | After Dark in CSS</title>
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<link rel="shortcut icon" href="../img/favicon.png" />
|
<link rel="shortcut icon" href="../img/favicon.png" />
|
||||||
<link rel="stylesheet" href="base.css">
|
<link rel="stylesheet" href="base.css">
|
||||||
<style>
|
<style>
|
||||||
|
body {
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
/* shared raindrop attributes */
|
/* shared raindrop attributes */
|
||||||
.r {
|
.r {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<title>Spotlight | After Dark in CSS</title>
|
<title>Spotlight | After Dark in CSS</title>
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<link rel="shortcut icon" href="../img/favicon.png" />
|
<link rel="shortcut icon" href="../img/favicon.png" />
|
||||||
<link rel="stylesheet" href="base.css">
|
<link rel="stylesheet" href="base.css">
|
||||||
<style>
|
<style>
|
||||||
@@ -18,6 +19,7 @@
|
|||||||
-moz-background-size: cover;
|
-moz-background-size: cover;
|
||||||
-o-background-size: cover;
|
-o-background-size: cover;
|
||||||
background-size: cover;
|
background-size: cover;
|
||||||
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ball styling */
|
/* ball styling */
|
||||||
|
|||||||
+75
-20
@@ -1,8 +1,10 @@
|
|||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<title>After Dark in CSS</title>
|
<title>After Dark in CSS</title>
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<link rel="shortcut icon" href="img/favicon.png" />
|
<link rel="shortcut icon" href="img/favicon.png" />
|
||||||
<link rel="stylesheet" href="all/base.css">
|
<link rel="stylesheet" href="all/base.css">
|
||||||
<style>
|
<style>
|
||||||
@@ -10,9 +12,11 @@
|
|||||||
body {
|
body {
|
||||||
background-color: #929292;
|
background-color: #929292;
|
||||||
}
|
}
|
||||||
|
|
||||||
a {
|
a {
|
||||||
color: black;
|
color: black;
|
||||||
}
|
}
|
||||||
|
|
||||||
.content {
|
.content {
|
||||||
position: relative;
|
position: relative;
|
||||||
z-index: 2;
|
z-index: 2;
|
||||||
@@ -22,6 +26,7 @@
|
|||||||
background: #fff;
|
background: #fff;
|
||||||
box-shadow: 1px 1px #111;
|
box-shadow: 1px 1px #111;
|
||||||
}
|
}
|
||||||
|
|
||||||
.title {
|
.title {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
@@ -32,6 +37,7 @@
|
|||||||
background-color: #f0f0f0;
|
background-color: #f0f0f0;
|
||||||
box-shadow: inset 1px -3px 0px -2px #a8a9b6;
|
box-shadow: inset 1px -3px 0px -2px #a8a9b6;
|
||||||
}
|
}
|
||||||
|
|
||||||
.title:before {
|
.title:before {
|
||||||
height: 11px;
|
height: 11px;
|
||||||
width: 64px;
|
width: 64px;
|
||||||
@@ -40,6 +46,7 @@
|
|||||||
background: url(img/lines.png) repeat;
|
background: url(img/lines.png) repeat;
|
||||||
margin-right: 8px;
|
margin-right: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.title:after {
|
.title:after {
|
||||||
height: 11px;
|
height: 11px;
|
||||||
width: 64px;
|
width: 64px;
|
||||||
@@ -48,16 +55,19 @@
|
|||||||
background: url(img/lines.png) repeat;
|
background: url(img/lines.png) repeat;
|
||||||
margin-left: 8px;
|
margin-left: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.content .ad {
|
.content .ad {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
margin: 1em 0;
|
margin: 1em 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.content ul {
|
.content ul {
|
||||||
list-style-type: none;
|
list-style-type: none;
|
||||||
margin: 2px 0 2em 0;
|
margin: 2px 0 2em 0;
|
||||||
padding: 0 0 0 2em;
|
padding: 0 0 0 2em;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.footer {
|
.footer {
|
||||||
width: 400px;
|
width: 400px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
@@ -75,6 +85,7 @@
|
|||||||
border-left: 1px solid #38394a;
|
border-left: 1px solid #38394a;
|
||||||
box-shadow: 0 0 0px 1px #f0f0f0;
|
box-shadow: 0 0 0px 1px #f0f0f0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.closebox-innr {
|
.closebox-innr {
|
||||||
display: block;
|
display: block;
|
||||||
height: 8px;
|
height: 8px;
|
||||||
@@ -84,9 +95,11 @@
|
|||||||
border-right: 1px solid #38394a;
|
border-right: 1px solid #38394a;
|
||||||
text-indent: -99999em;
|
text-indent: -99999em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.closebox-innr:hover {
|
.closebox-innr:hover {
|
||||||
background-color: #ccc;
|
background-color: #ccc;
|
||||||
}
|
}
|
||||||
|
|
||||||
.maxbox {
|
.maxbox {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 3px;
|
top: 3px;
|
||||||
@@ -97,6 +110,7 @@
|
|||||||
border-left: 1px solid #38394a;
|
border-left: 1px solid #38394a;
|
||||||
box-shadow: 0 0 0px 1px #f0f0f0;
|
box-shadow: 0 0 0px 1px #f0f0f0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.maxbox-innr {
|
.maxbox-innr {
|
||||||
height: 8px;
|
height: 8px;
|
||||||
width: 8px;
|
width: 8px;
|
||||||
@@ -104,6 +118,7 @@
|
|||||||
border-bottom: 1px solid #38394a;
|
border-bottom: 1px solid #38394a;
|
||||||
border-right: 1px solid #38394a;
|
border-right: 1px solid #38394a;
|
||||||
}
|
}
|
||||||
|
|
||||||
.maxbox-innr:before {
|
.maxbox-innr:before {
|
||||||
height: 5px;
|
height: 5px;
|
||||||
width: 5px;
|
width: 5px;
|
||||||
@@ -125,37 +140,67 @@
|
|||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.toaster {
|
.toaster {
|
||||||
width: 64px;
|
width: 64px;
|
||||||
height: 64px;
|
height: 64px;
|
||||||
margin: 0 auto 2em;
|
margin: 0 auto 2em;
|
||||||
background-image: url("img/toaster-sprite.gif");
|
background-image: url("img/toaster-sprite.gif");
|
||||||
-webkit-animation: flap .2s steps(4) infinite alternate;
|
-webkit-animation: flap .2s steps(4) infinite alternate;
|
||||||
-moz-animation: flap .2s steps(4) infinite alternate;
|
-moz-animation: flap .2s steps(4) infinite alternate;
|
||||||
-o-animation: flap .2s steps(4) infinite alternate;
|
-o-animation: flap .2s steps(4) infinite alternate;
|
||||||
animation: flap .2s steps(4) infinite alternate;
|
animation: flap .2s steps(4) infinite alternate;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Flapping animation */
|
/* Flapping animation */
|
||||||
@-webkit-keyframes flap {
|
@-webkit-keyframes flap {
|
||||||
from { background-position: 0px; }
|
from {
|
||||||
to { background-position: -256px; }
|
background-position: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
to {
|
||||||
|
background-position: -256px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@-moz-keyframes flap {
|
@-moz-keyframes flap {
|
||||||
from { background-position: 0px; }
|
from {
|
||||||
to { background-position: -256px; }
|
background-position: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
to {
|
||||||
|
background-position: -256px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@-ms-keyframes flap {
|
@-ms-keyframes flap {
|
||||||
from { background-position: 0px; }
|
from {
|
||||||
to { background-position: -256px; }
|
background-position: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
to {
|
||||||
|
background-position: -256px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@-o-keyframes flap {
|
@-o-keyframes flap {
|
||||||
from { background-position: 0px; }
|
from {
|
||||||
to { background-position: -256px; }
|
background-position: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
to {
|
||||||
|
background-position: -256px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@keyframes flap {
|
@keyframes flap {
|
||||||
from { background-position: 0px; }
|
from {
|
||||||
to { background-position: -256px; }
|
background-position: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
to {
|
||||||
|
background-position: -256px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<script>
|
<script>
|
||||||
@@ -173,7 +218,7 @@
|
|||||||
/* Build a list of href's */
|
/* Build a list of href's */
|
||||||
var choices = Array();
|
var choices = Array();
|
||||||
var elements = document.querySelectorAll('.s');
|
var elements = document.querySelectorAll('.s');
|
||||||
Array.prototype.forEach.call(elements, function(el, i){
|
Array.prototype.forEach.call(elements, function (el, i) {
|
||||||
choices.push(el.getAttribute('href'));
|
choices.push(el.getAttribute('href'));
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -193,11 +238,17 @@
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<a href="https://github.com/bryanbraun/after-dark-css"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://github-camo.global.ssl.fastly.net/365986a132ccd6a44c23a9169022c0b5c890c387/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f7265645f6161303030302e706e67" alt="Fork me on GitHub" data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png"></a>
|
<a href="https://github.com/bryanbraun/after-dark-css"><img style="position: absolute; top: 0; right: 0; border: 0;"
|
||||||
|
src="https://github-camo.global.ssl.fastly.net/365986a132ccd6a44c23a9169022c0b5c890c387/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f7265645f6161303030302e706e67"
|
||||||
|
alt="Fork me on GitHub"
|
||||||
|
data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png"></a>
|
||||||
<div id="content" class="content">
|
<div id="content" class="content">
|
||||||
<div class="closebox"><a class="closebox-innr" id="x" href="#">Close</a></div>
|
<div class="closebox"><a class="closebox-innr" id="x" href="#">Close</a></div>
|
||||||
<div class="maxbox"><div class="maxbox-innr"></div></div>
|
<div class="maxbox">
|
||||||
|
<div class="maxbox-innr"></div>
|
||||||
|
</div>
|
||||||
<h1 class="title">After Dark in CSS</h1>
|
<h1 class="title">After Dark in CSS</h1>
|
||||||
<div class="ad"><img src="img/after-dark-icon.png" /></div>
|
<div class="ad"><img src="img/after-dark-icon.png" /></div>
|
||||||
<ul>
|
<ul>
|
||||||
@@ -217,13 +268,17 @@
|
|||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<footer class="footer">
|
<footer class="footer">
|
||||||
<a href="https://twitter.com/share" class="twitter-share-button" data-text="Classic "After Dark" screensavers, rebuilt using CSS animations:" data-related="bryanebraun">Tweet</a>
|
<a href="https://twitter.com/share" class="twitter-share-button"
|
||||||
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>
|
data-text="Classic "After Dark" screensavers, rebuilt using CSS animations:"
|
||||||
|
data-related="bryanebraun">Tweet</a>
|
||||||
|
<script>!function (d, s, id) {var js, fjs = d.getElementsByTagName(s)[0], p = /^http:/.test(d.location) ? 'http' : 'https'; if (!d.getElementById(id)) {js = d.createElement(s); js.id = id; js.src = p + '://platform.twitter.com/widgets.js'; fjs.parentNode.insertBefore(js, fjs);} }(document, 'script', 'twitter-wjs');</script>
|
||||||
</footer>
|
</footer>
|
||||||
<div class="behind">
|
<div class="behind">
|
||||||
<a href="http://codepen.io/bryanbraun/pen/bojpu" class="clearfix"><div class="toaster"></div></a>
|
<a href="http://codepen.io/bryanbraun/pen/bojpu" class="clearfix">
|
||||||
|
<div class="toaster"></div>
|
||||||
|
</a>
|
||||||
<p>Made by <a href="http://bryanbraun.com">Bryan</a></p>
|
<p>Made by <a href="http://bryanbraun.com">Bryan</a></p>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
Reference in new issue
Block a user