Commit b95e99a1 authored by Mark Otto's avatar Mark Otto

Updated documentation; added stacked forms; cleaned up spacing; moved all ids...

Updated documentation; added stacked forms; cleaned up spacing; moved all ids to the section element instead of the page header to fix spacing with bookmarked links;
parent b9d6acf7
This diff is collapsed.
...@@ -13,22 +13,27 @@ article, ...@@ -13,22 +13,27 @@ article,
aside { aside {
display: block; display: block;
} }
#masthead {
margin-top: @baseline * -1; #masthead,
#footer {
#gradient > .vertical(darken(@blue-dark, 5%), darken(@blue, 7.5%)); #gradient > .vertical(darken(@blue-dark, 5%), darken(@blue, 7.5%));
div.inner { div.inner {
background: transparent url(../img/grid-20px.png) 0 -1px; background: transparent url(../img/grid-20px.png) 0 -1px;
padding: 40px 0; padding: 40px 0;
.box-shadow(inset 0 10px 30px rgba(0,0,0,.25)); .box-shadow(inset 0 10px 30px rgba(0,0,0,.25));
} }
h1, p, small {
color: #fff;
text-shadow: 0 2px 0 rgba(0,0,0,.25);
}
}
#masthead {
margin-top: @baseline * 2;
margin-bottom: @baseline * -2;
h1 { h1 {
margin-bottom: 0; margin-bottom: 0;
} }
h1, p { p.lead {
color: #fff;
text-shadow: 0 1px 0 rgba(0,0,0,.25);
}
p {
.font(300,20px,30px); .font(300,20px,30px);
margin: 5px 0; margin: 5px 0;
} }
...@@ -42,6 +47,7 @@ aside { ...@@ -42,6 +47,7 @@ aside {
border: 0; border: 0;
@shadow: inset 0 1px 0 rgba(255,255,255,.25), inset 0 -1px 0 rgba(0,0,0,.25), 0 1px 2px rgba(0,0,0,.4); @shadow: inset 0 1px 0 rgba(255,255,255,.25), inset 0 -1px 0 rgba(0,0,0,.25), 0 1px 2px rgba(0,0,0,.4);
.box-shadow(@shadow); .box-shadow(@shadow);
.transition(all .2s linear);
} }
small { small {
display: block; display: block;
...@@ -55,9 +61,9 @@ aside { ...@@ -55,9 +61,9 @@ aside {
} }
} }
// Body // Page footer
#body { #footer {
padding: 0 0 40px; margin-top: @baseline * 4;
} }
// Show the grids // Show the grids
...@@ -82,7 +88,8 @@ aside { ...@@ -82,7 +88,8 @@ aside {
// Break up sections // Break up sections
section { section {
margin-bottom: 40px; padding-top: @baseline * 4;
margin-bottom: @baseline * -2;
} }
// Hashgrid.js grid // Hashgrid.js grid
......
...@@ -4,11 +4,11 @@ ...@@ -4,11 +4,11 @@
*/ */
/* Global form styles /* Global form styles
-------------------------------------------------- */ -------------------------------------------------- */
form { form {
margin-bottom: @baseline;
// Groups of fields with labels on top (legends) // Groups of fields with labels on top (legends)
fieldset { fieldset {
margin-bottom: @baseline; margin-bottom: @baseline;
...@@ -64,11 +64,13 @@ form { ...@@ -64,11 +64,13 @@ form {
border: 1px solid #bbb; border: 1px solid #bbb;
.border-radius(3px); .border-radius(3px);
} }
select, select {
input[type=file] {
height: @baseline * 1.5; height: @baseline * 1.5;
line-height: @baseline * 1.5; line-height: @baseline * 1.5;
} }
input[type=file] {
line-height: @baseline * 1.5;
}
textarea { textarea {
height: auto; height: auto;
} }
...@@ -300,42 +302,13 @@ ul.inputs-list { ...@@ -300,42 +302,13 @@ ul.inputs-list {
} }
} }
/* Disabled states for form elements, containing elements, and help text */
div.disabled span {
color: #aaa;
}
div.disabled input[type=text],
div.disabled input[type=passsword],
div.disabled textarea {
background: #f5f5f5;
}
ul.options label.disabled,
ul.options label.disabled span,
ul.options label.disabled small,
ul.options label.disabled strong {
color: #aaa !important;
}
// Stacked forms // Stacked forms
form.stacked-form { form.form-stacked {
h4, p {
margin: 0 0 2px;
color: rgba(0,0,0,.5);
}
fieldset { fieldset {
margin: 0; padding-top: @baseline / 2;
padding: 19px 0 0;
border-top-color: rgba(0,0,0,.1);
}
div.actions {
margin-left: 0;
padding: 19px 0 30px 180px;
border-top: 1px solid rgba(0,0,0,.1);
} }
legend { legend {
margin: 0; margin-left: 0;
padding: 0;
} }
label { label {
display: block; display: block;
...@@ -346,16 +319,14 @@ form.stacked-form { ...@@ -346,16 +319,14 @@ form.stacked-form {
line-height: 20px; line-height: 20px;
padding-top: 1px; padding-top: 1px;
} }
div.input {
margin: 0;
}
div.clearfix { div.clearfix {
margin-bottom: 10px; margin-bottom: @baseline / 2;
div.input {
margin-left: 0;
} }
div.six.columns input, div.six.columns textarea, div.six.columns select {
width: 320px;
} }
div.three.columns input, div.three.columns textarea, div.three.columns select { ul.inputs-list li label {
width: 150px; font-weight: normal;
padding-top: 0;
} }
} }
...@@ -7,10 +7,6 @@ ...@@ -7,10 +7,6 @@
/* Top bar /* Top bar
-------------------------------------------------- */ -------------------------------------------------- */
body {
padding-top: 60px;
background-position: 0 40px;
}
div.topbar { div.topbar {
#gradient > .vertical(#333, #222); #gradient > .vertical(#333, #222);
position: fixed; position: fixed;
...@@ -33,6 +29,7 @@ div.topbar { ...@@ -33,6 +29,7 @@ div.topbar {
float: left; float: left;
padding: 0 10px; padding: 0 10px;
line-height: 40px; line-height: 40px;
text-shadow: 0 -1px 0 rgba(0,0,0,.25);
} }
// Logo // Logo
a#logo { a#logo {
...@@ -41,7 +38,6 @@ div.topbar { ...@@ -41,7 +38,6 @@ div.topbar {
color: @gray-light; color: @gray-light;
font-size: 20px; font-size: 20px;
font-weight: 200; font-weight: 200;
text-shadow: 0 -1px 0 rgba(0,0,0,.25);
img { img {
float: left; float: left;
margin-top: 9px; margin-top: 9px;
...@@ -56,9 +52,6 @@ div.topbar { ...@@ -56,9 +52,6 @@ div.topbar {
margin: 0; margin: 0;
li { li {
display: inline; display: inline;
a {
}
&.active a { &.active a {
color: #fff; color: #fff;
background-color: rgba(0,0,0,.5); background-color: rgba(0,0,0,.5);
......
TODOS TODOS
* Cross browser checks? Show this anywhere? * Cross browser checks? Show this anywhere?
* Add layouts section back in
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment