Skip to content

Instantly share code, notes, and snippets.

@frane
Forked from anonymous/dabblet.css
Created October 22, 2012 23:57
Show Gist options
  • Save frane/3935651 to your computer and use it in GitHub Desktop.
Save frane/3935651 to your computer and use it in GitHub Desktop.
Diagonal stripes
/**
* Diagonal stripes
*/
@import url(http://fonts.googleapis.com/css?family=Cabin+Sketch);
.button {
background: repeating-linear-gradient(150deg, white, white 2px, #08b 1px, #08b 3px);
display: inline-block;
border: 1px solid transparent;
border-top: 1px solid rgba(0, 136, 187, .5);
border-bottom: 1px solid rgba(0, 136, 187, .5);
width: 150px;
padding: 5px;
text-align: center;
vertical-align: bottom;
line-height: baseline;
color: #000;
text-shadow: 0 -1px #fff, 1px 0 #fff, 0 1px #fff, -1px 0 #fff;
font-family: 'Cabin Sketch';
font-weight: bold;
font-size: 20px;
border-radius: 20px;
box-shadow: inset 0 0 20px 5px #fff;
}
.button:hover {
border: 1px solid #08b;
}
.button:active {
background: #08b;
box-shadow: none;
}
.button.red {
background: repeating-linear-gradient(150deg, white, white 2px, #b00 1px, #08b 3px);
border-top: 1px solid rgba(187, 0, 0, .5);
border-bottom: 1px solid rgba(187, 0, 0, .5);
}
.field{
border: none;
border-bottom: 1px solid #08b;
border-top: 1px solid #08b;
display: inline-block;
font-size: 20px;
padding: 5px;
border-top-left-radius: 20px;
border-bottom-right-radius: 20px;
border-top-right-radius: 20px;
border-bottom-left-radius: 20px;
font-family: 'Cabin Sketch';
outline: none;
background: transparent;
}
.field:focus {
background: #fff;
}
label {
display: inline-block;
font-size: 20px;
font-family: 'Cabin Sketch';
width: 90px;
text-align: right;
}
body {
background-color: #fff;
background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
background-position: -2px -2px, -2px -2px, -1px -1px, -1px -1px;
background-image: linear-gradient(rgba(34, 102, 152, .075) 2px, transparent 2px),
linear-gradient(0, rgba(34, 102, 152, .075) 2px, transparent 2px),
linear-gradient(0, rgba(34, 102, 152, .075) 2px, transparent 2px),
linear-gradient(rgba(34, 102, 153,.075) 1px, transparent 1px),
linear-gradient(0, rgba(34,102,153,.075) 1px, transparent 1px);
font-family: 'Cabin Sketch';
}
fieldset {
border: 1px #ccc solid;
background: #fefefe url(http://dabblet.com/img/noise.png);
z-index: 10;
box-shadow: 4px 4px 10px rgba(0, 0, 0, .5), inset 0 0 60px 3px rgba(0, 0, 0, .1);
width: 400px;
}
h1 {
font-weight: normal;
font-size: 40px;
display: inline-block;
margin-bottom: 10px;
margin-top: 0;
z-index: 10;
height: 40px;
}
h1:after {
box-shadow: 0 0px 10px 3px #08b;
content: "";
width: 100%;
overflow: hidden;
height: 0;
position: relative;
bottom: 40px;
left: 0;
display: inline-block;
z-index: 5;
}
header h1 {
margin: 0;
padding: 0;
font-size: 50px;
padding: 5px;
height: auto;
z-index: 20;
position: relative;
}
header h1:after {
position: relative;
display: none;
content: none;
height: 0;
width: 0;
box-shadow: none;
}
header h1, header nav li {
display: block;
}
header h1, header nav li a {
background: #eaeae0 url(http://dabblet.com/img/noise.png);
box-shadow: 1px 1px 10px rgba(0, 0, 0, .5);
border: 1px #ccc solid;
}
header nav, header nav ul {
display: inline;
width: auto;
position: relative;
clear: both;
margin: 0;
padding: 0;
}
header nav li {
font-size: 30px;
padding-left: 20px;
padding-right: 20px;
padding-top: 40px;
margin-top: -30px;
margin-left: 20px;
display: block;
clear: both;
position: relative;
transition: all 1s ease-in-out;
}
header nav li:nth-child(1) { z-index: 9; transform: rotate(10deg); margin-left: 10px; }
header nav li:nth-child(2) { z-index: 8; transform: rotate(5deg); margin-left: 15px; }
header nav li:nth-child(3) { z-index: 7; transform: rotate(-5deg); margin-left: 12px; }
header nav li:nth-child(4) { z-index: 6; transform: rotate(3deg); margin-left: 10px; }
header nav li a {
padding-bottom: 5px;
padding-left: 20px;
padding-right: 20px;
padding-top: 20px;
z-index: inherit;
}
header nav li:active {
transform: rotate(0deg);
z-index: 10;
margin-left: 100px;
}
header nav li:hover {
transform: rotate(0deg);
}
header {
margin-bottom: 30px;
margin-top: 30px;
margin-right: 50px;
display: inline-block;
width: 200px;
vertical-align: top;
}
header a {
text-decoration: none;
color: #000;
}
section {
display: inline-block;
vertical-align: top;
}
<header>
<h1>Cashdio</h1>
<nav>
<ul>
<li><a href="#">Debts</a></li>
<li class="actve"><a href="#">Stats</a></li>
<li><a href="#">Profile</a></li>
<li><a href="#">Logout</a></li>
</ul>
</nav>
</header>
<section>
<fieldset>
<h1>Login</h1><br />
<label>E-Mail:</label>
<input type="text" class="field" value="Test" /><br />
<label>Password:</label>
<input type="password" class="field" value="Test" /><br />
<div class="button">OK</div><div class="button red">Cancel</div>
</fieldset>
</section>
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment