1
0
mirror of https://github.com/kremalicious/kbdfun.git synced 2024-12-27 23:27:43 +01:00

project rename

This commit is contained in:
Matthias Kretschmann 2012-07-16 15:40:35 +02:00
parent 4429506404
commit 3610fd81b5
5 changed files with 60 additions and 47 deletions

View File

@ -10,17 +10,6 @@ nav,
section { section {
display: block; display: block;
} }
audio,
canvas,
video {
display: inline-block;
}
audio:not([controls]) {
display: none;
}
[hidden] {
display: none;
}
/* Basics /* Basics
-------------------------------------------------- */ -------------------------------------------------- */
body { body {
@ -28,7 +17,15 @@ body {
font: 24px/1.5em "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif; font: 24px/1.5em "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif;
text-align: center; text-align: center;
margin: 0; margin: 0;
padding-top: 1em; padding-top: 3em;
color: #ccc;
}
h1,
h2,
p {
margin: 0;
padding: 0;
margin-bottom: 1.5em;
} }
a, a,
a:visited { a:visited {
@ -159,18 +156,30 @@ code {
display: block; display: block;
color: #ccc; color: #ccc;
font-size: .8em; font-size: .8em;
text-align: left;
} }
body > header { body > header {
-webkit-box-shadow: 0 3px 5px rgba(0, 0, 0, 0.1);
-moz-box-shadow: 0 3px 5px rgba(0, 0, 0, 0.1);
box-shadow: 0 3px 5px rgba(0, 0, 0, 0.1);
padding-bottom: 1em;
}
body > header h1,
body > header p {
margin-left: auto; margin-left: auto;
margin-right: auto; margin-right: auto;
padding-left: 1.5em; padding-left: 1.5em;
padding-right: 1.5em; padding-right: 1.5em;
max-width: 40em; max-width: 40em;
text-align: left; }
body > header h1 {
margin-bottom: .5em;
} }
body > footer { body > footer {
padding: 2em 0; padding: 2em 0;
font-size: .8em;
}
body > footer p {
margin-bottom: 0;
} }
article > section { article > section {
padding: 2em 0 3.5em 0; padding: 2em 0 3.5em 0;
@ -181,7 +190,6 @@ article > section p {
padding-left: 1.5em; padding-left: 1.5em;
padding-right: 1.5em; padding-right: 1.5em;
max-width: 40em; max-width: 40em;
margin-bottom: 1.5em;
} }
article > section p:last-child { article > section p:last-child {
margin-bottom: 0; margin-bottom: 0;
@ -192,7 +200,6 @@ article > section header {
padding-left: 1.5em; padding-left: 1.5em;
padding-right: 1.5em; padding-right: 1.5em;
max-width: 40em; max-width: 40em;
text-align: left;
} }
article > section header h2 { article > section header h2 {
color: #ccc; color: #ccc;
@ -200,6 +207,8 @@ article > section header h2 {
article > section#keysdark { article > section#keysdark {
background: #999; background: #999;
border-top: 1px solid #fff; border-top: 1px solid #fff;
-webkit-box-shadow: 0 -1px 0 #cccccc;
-moz-box-shadow: 0 -1px 0 #cccccc;
box-shadow: 0 -1px 0 #cccccc; box-shadow: 0 -1px 0 #cccccc;
} }
article > section#keysios { article > section#keysios {
@ -211,6 +220,8 @@ article > section#keysios {
background-repeat: repeat-x; background-repeat: repeat-x;
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff9c9ba6', endColorstr='#ff43444b', GradientType=0); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff9c9ba6', endColorstr='#ff43444b', GradientType=0);
border-top: 1px solid #c0becf; border-top: 1px solid #c0becf;
-webkit-box-shadow: 0 -1px 0 #9b9aa5;
-moz-box-shadow: 0 -1px 0 #9b9aa5;
box-shadow: 0 -1px 0 #9b9aa5; box-shadow: 0 -1px 0 #9b9aa5;
} }
article > section#keysios h2, article > section#keysios h2,
@ -220,6 +231,8 @@ article > section#keysios code {
article > section#keysandroid { article > section#keysandroid {
background: #181818; background: #181818;
border-top: 1px solid #505050; border-top: 1px solid #505050;
-webkit-box-shadow: 0 -1px 0 #000000;
-moz-box-shadow: 0 -1px 0 #000000;
box-shadow: 0 -1px 0 #000000; box-shadow: 0 -1px 0 #000000;
} }
article > section#keysandroid h2, article > section#keysandroid h2,
@ -236,17 +249,15 @@ article > section#keysandroid code {
left: 0; left: 0;
top: 0; top: 0;
width: 100%; width: 100%;
padding: 0 1em; padding: 0 1.5em;
} }
.navbar p { .navbar p {
margin-left: auto;
margin-right: auto;
padding-left: 1.5em;
padding-right: 1.5em;
max-width: 40em;
text-align: left; text-align: left;
margin: 0; margin: 0;
font-size: 16px; font-size: 14px;
}
.navbar p a.github {
float: right;
} }
kbd.android { kbd.android {
font-family: RobotoRegular, sans-serif; font-family: RobotoRegular, sans-serif;

View File

@ -1,8 +1,6 @@
// HTML5 display definitions // HTML5 display definitions
article, aside, details, figcaption, figure, footer, header, hgroup, nav, section { display: block; } article, aside, details, figcaption, figure, footer, header, hgroup, nav, section { display: block; }
audio, canvas, video { display: inline-block; }
audio:not([controls]) { display: none; }
[hidden] { display: none; }
/* Basics /* Basics
-------------------------------------------------- */ -------------------------------------------------- */
@ -12,11 +10,14 @@ body {
font: 24px/1.5em "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif; font: 24px/1.5em "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif;
text-align: center; text-align: center;
margin: 0; margin: 0;
padding-top: 1em; padding-top: 3em;
color: #ccc;
} }
h1, h2 { h1, h2, p {
margin: 0;
padding: 0;
margin-bottom: 1.5em;
} }
a, a,
@ -51,7 +52,7 @@ a:hover {
} }
// import kbd styles // import kbd styles
@import 'kbdftw.less'; @import 'kbdfun.less';
/* Content /* Content
@ -61,16 +62,22 @@ code {
display: block; display: block;
color: #ccc; color: #ccc;
font-size: .8em; font-size: .8em;
text-align: left;
} }
body > header { body > header {
.container; .box-shadow(0 3px 5px rgba(0,0,0,.1));
text-align: left; padding-bottom: 1em;
h1, p {
.container;
}
h1 { margin-bottom: .5em; }
} }
body > footer { body > footer {
padding: 2em 0; padding: 2em 0;
font-size: .8em;
p { margin-bottom: 0 }
} }
article > section { article > section {
@ -78,16 +85,11 @@ article > section {
p { p {
.container; .container;
margin-bottom: 1.5em;
&:last-child { margin-bottom: 0 } &:last-child { margin-bottom: 0 }
} }
header { header {
.container; .container;
text-align: left; h2 { color: #ccc; }
h2 {
color: #ccc;
}
} }
&#keysdefault { &#keysdefault {
@ -97,13 +99,13 @@ article > section {
&#keysdark { &#keysdark {
background: #999; background: #999;
border-top: 1px solid #fff; border-top: 1px solid #fff;
box-shadow: 0 -1px 0 #ccc; .box-shadow(0 -1px 0 #ccc);
} }
&#keysios { &#keysios {
#gradient > .vertical(#9c9ba6, #43444b); #gradient > .vertical(#9c9ba6, #43444b);
border-top: 1px solid #c0becf; border-top: 1px solid #c0becf;
box-shadow: 0 -1px 0 #9b9aa5; .box-shadow(0 -1px 0 #9b9aa5);
h2, code { color: #696972; } h2, code { color: #696972; }
} }
@ -111,7 +113,7 @@ article > section {
&#keysandroid { &#keysandroid {
background: #181818; background: #181818;
border-top: 1px solid #505050; border-top: 1px solid #505050;
box-shadow: 0 -1px 0 #000; .box-shadow(0 -1px 0 #000);
h2, code { color: #2e2d2e; } h2, code { color: #2e2d2e; }
} }
@ -125,14 +127,14 @@ article > section {
left: 0; left: 0;
top: 0; top: 0;
width: 100%; width: 100%;
padding: 0 1em; padding: 0 1.5em;
} }
.navbar p { .navbar p {
.container;
text-align: left; text-align: left;
margin: 0; margin: 0;
font-size: 16px; font-size: 14px;
a.github { float: right; }
} }
// load Roboto // load Roboto

View File

@ -74,11 +74,11 @@
</article> </article>
<footer> <footer>
<p>A fun project by <a href="http://matthiaskretschmann.com" rel="me">Matthias Kretschmann</a></p> <p>A fun project by <a href="http://matthiaskretschmann.com" rel="me">Matthias Kretschmann</a> | <a href="https://twitter.com/kremalicious">@kremalicious</a></p>
</footer> </footer>
<div class="navbar"> <div class="navbar">
<p><a href="http://kremalicious.com">&larr; Back to article</a></p> <p><a href="http://kremalicious.com">&larr; Back to article</a> <a class="github" href="">Download or Fork on GitHub</a></p>
</div> </div>
</body> </body>