forked from roots/sage
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request roots#164 from coreywagehoft/master
adding Foundation CSS Framework, thx @coreywagehoft
- Loading branch information
Showing
18 changed files
with
2,109 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/* Artfully masterminded by ZURB */ | ||
|
||
/* -------------------------------------------------- | ||
Table of Contents | ||
----------------------------------------------------- | ||
:: Shared Styles | ||
:: Page Name 1 | ||
:: Page Name 2 | ||
*/ | ||
|
||
|
||
/* ----------------------------------------- | ||
Shared Styles | ||
----------------------------------------- */ | ||
|
||
|
||
|
||
|
||
|
||
/* ----------------------------------------- | ||
Page Name 1 | ||
----------------------------------------- */ | ||
|
||
|
||
|
||
|
||
|
||
|
||
/* ----------------------------------------- | ||
Page Name 2 | ||
----------------------------------------- */ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
/* Artfully masterminded by ZURB | ||
Make sure to include the app.js if you are going to use inline label inputs | ||
*/ | ||
|
||
|
||
/* ----------------------------------------- | ||
Standard Forms | ||
----------------------------------------- */ | ||
|
||
form { margin: 0 0 18px; } | ||
form label { display: block; font-size: 13px; line-height: 18px; cursor: pointer; margin-bottom: 9px; } | ||
|
||
input.input-text, textarea { border-right: 1px solid #bbb; border-bottom: 1px solid #bbb; } | ||
input.input-text, textarea, select { display: block; margin-bottom: 9px; } | ||
label + input.input-text, label + textarea, label + select, label + div.dropdown, select + div.dropdown { margin-top: -9px; } | ||
|
||
/* Text input and textarea font and padding */ | ||
input.input-text, textarea { font-size: 13px; padding: 4px 3px 2px; outline: none !important; background: #fff; } | ||
input.input-text.oversize, textarea.oversize { font-size: 18px !important; padding: 4px 5px !important; } | ||
input.input-text:focus, textarea:focus { background: #f9f9f9; } | ||
|
||
/* Inlined Label Style */ | ||
input.placeholder, textarea.placeholder { color: #888; } | ||
|
||
/* Text input and textarea sizes */ | ||
input.input-text, textarea { width: 254px; } | ||
input.small, textarea.small { width: 134px; } | ||
input.medium, textarea.medium { width: 254px; } | ||
input.large, textarea.large { width: 434px; } | ||
|
||
/* Fieldsets */ | ||
form fieldset { padding: 9px 9px 2px 9px; border: solid 1px #ddd; margin: 18px 0; } | ||
|
||
/* Errors */ | ||
input.input-text.red { border-color: red; background-color: rgba(255,0,0,0.15); } | ||
label.red { color: red; } | ||
small.error { margin-top: -6px; display: block; margin-bottom: 9px; font-size: 11px; color: red; width: 260px; } | ||
|
||
.small + .error { width: 140px; } | ||
.medium + .error { width: 260px; } | ||
.large + .error { width: 440px; } | ||
|
||
/* ----------------------------------------- | ||
Nicer Forms | ||
----------------------------------------- */ | ||
form.nice input.input-text, form.nice textarea { border: solid 1px #bbb; border-radius: 2px; -webkit-border-radius: 2px; -moz-border-radius: 2px; } | ||
form.nice input.input-text, form.nice textarea { font-size: 13px; padding: 6px 3px 4px; outline: none !important; background: url(../images/misc/input-bg.png) #fff; } | ||
form.nice input.input-text:focus, form.nice textarea:focus { background-color: #f9f9f9; } | ||
|
||
form.nice fieldset { border-radius: 3px; -webkit-border-radius: 3px; -moz-border-radius: 3px; } | ||
|
||
form.nice small.error { padding: 6px 4px; border: solid 0px red; border-width: 0px 1px 1px 1px; margin-top: -10px; background: red; color: #fff; font-size: 12px; font-weight: bold; border-bottom-left-radius: 2px; border-bottom-right-radius: 2px; -webkit-border-bottom-left-radius: 2px; -webkit-border-bottom-right-radius: 2px; -moz-border-radius-bottomleft: 2px; -moz-border-radius-bottomright: 2px; } | ||
|
||
form.nice .small + .error { width: 132px; } | ||
form.nice .medium + .error { width: 252px; } | ||
form.nice .large + .error { width: 432px; } | ||
|
||
/* ----------------------------------------- | ||
Custom Forms | ||
----------------------------------------- */ | ||
|
||
form.custom span.custom { display: inline-block; width: 14px; height: 14px; position: relative; top: 2px; border: solid 1px #ccc; background: url(../images/misc/custom-form-sprites.png) 0 0 no-repeat; } | ||
form.custom span.custom.radio { border-radius: 7px; -webkit-border-radius: 7px; -moz-border-radius: 7px; } | ||
form.custom span.custom.radio.checked { background-position: 0px -14px; } | ||
form.custom span.custom.checkbox.checked { background-position: 0px -28px; } | ||
|
||
form.custom div.custom.dropdown { position: relative; display: inline-block; width: auto; height: 28px; margin-bottom: 9px; } | ||
form.custom div.custom.dropdown a.current { display: block; width: auto; line-height: 26px; padding: 0 38px 0 6px; border: solid 1px #ddd; color: #141414; } | ||
form.custom div.custom.dropdown a.selector { position: absolute; width: 26px; height: 26px; display: block; background: url(../images/misc/custom-form-sprites.png) -14px 0 no-repeat; right: 0px; top: 0px; border: solid 1px #ddd; } | ||
form.custom div.custom.dropdown:hover a.selector, | ||
form.custom div.custom.dropdown.open a.selector { background-position: -14px -26px; } | ||
|
||
form.custom div.custom.dropdown ul { position: absolute; width: auto; display: none; margin: 0; left: 0px; top: 27px; margin: 0; padding: 0; background: rgba(255,255,255,0.9); border: solid 1px #ddd; z-index: 10; } | ||
form.custom div.custom.dropdown ul li { cursor: pointer; padding: 3px 38px 3px 6px; margin: 0; } | ||
form.custom div.custom.dropdown ul li.selected { background: url(../images/misc/custom-form-sprites.png) right -52px no-repeat; } | ||
form.custom div.custom.dropdown ul li:hover { background-color: #2a85e8; color: #fff; } | ||
form.custom div.custom.dropdown ul li.selected:hover { background: url(../images/misc/custom-form-sprites.png) #2a85e8 right -78px no-repeat; } | ||
form.custom div.custom.dropdown ul.show { display: block; } | ||
|
||
form.custom div.custom.dropdown.open ul { display: block; } | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,127 @@ | ||
/* Arfully Masterminded by ZURB */ | ||
|
||
/* -------------------------------------------------- | ||
Table of Contents | ||
----------------------------------------------------- | ||
:: Reset & Standards | ||
:: Links | ||
:: Lists | ||
:: Tables | ||
:: Misc | ||
*/ | ||
|
||
|
||
/* -------------------------------------------------- | ||
:: Global Reset & Standards | ||
-------------------------------------------------- */ | ||
|
||
/* | ||
Eric Meyer's CSS Reset | ||
http://meyerweb.com/eric/tools/css/reset/ | ||
v2.0 | 20110126 | ||
License: none (public domain) | ||
*/ | ||
|
||
html, body, div, span, applet, object, iframe, | ||
h1, h2, h3, h4, h5, h6, p, blockquote, pre, | ||
a, abbr, acronym, address, big, cite, code, | ||
del, dfn, em, img, ins, kbd, q, s, samp, | ||
small, strike, strong, sub, sup, tt, var, | ||
b, u, i, center, | ||
dl, dt, dd, ol, ul, li, | ||
fieldset, form, label, legend, | ||
table, caption, tbody, tfoot, thead, tr, th, td, | ||
article, aside, canvas, details, embed, | ||
figure, figcaption, footer, header, hgroup, | ||
menu, nav, output, ruby, section, summary, | ||
time, mark, audio, video { | ||
margin: 0; | ||
padding: 0; | ||
border: 0; | ||
font: inherit; | ||
vertical-align: baseline; | ||
} | ||
html { | ||
font-size: 62.5%; | ||
} | ||
/* HTML5 display-role reset for older browsers */ | ||
article, aside, details, figcaption, figure, | ||
footer, header, hgroup, menu, nav, section { | ||
display: block; | ||
} | ||
body { | ||
line-height: 1; | ||
} | ||
ol, ul { | ||
list-style: none; | ||
} | ||
blockquote, q { | ||
quotes: none; | ||
} | ||
blockquote:before, blockquote:after, | ||
q:before, q:after { | ||
content: ''; | ||
content: none; | ||
} | ||
table { | ||
border-collapse: collapse; | ||
border-spacing: 0; | ||
} | ||
|
||
|
||
|
||
body { background: #fff; font-family: "Helvetica Neue", "HelveticaNeue", Helvetica, Arial, "Lucida Grande", sans-serif; font-size: 13px; line-height: 18px; color: #555; position: relative; -webkit-font-smoothing: antialiased; } | ||
|
||
|
||
|
||
/* -------------------------------------------------- | ||
:: Links | ||
-------------------------------------------------- */ | ||
a { color: #2a85e8; text-decoration: none; outline: 0; line-height: inherit; } | ||
a:hover { color: #11639d; } | ||
p a, p a:visited { line-height: inherit; } | ||
|
||
|
||
/* -------------------------------------------------- | ||
:: Lists | ||
-------------------------------------------------- */ | ||
ul, ol { margin-bottom: 18px; } | ||
ul { list-style: none outside; } | ||
ol { list-style: decimal; } | ||
ol, ul.square, ul.circle, ul.disc { margin-left: 30px; } | ||
ul.square { list-style: square outside; } | ||
ul.circle { list-style: circle outside; } | ||
ul.disc { list-style: disc outside; } | ||
ul ul, ol ol { margin: 4px 0 5px 30px; } | ||
li { margin-bottom: 12px; } | ||
ul.large li { line-height: 21px; } | ||
|
||
|
||
/* -------------------------------------------------- | ||
:: Tables | ||
-------------------------------------------------- */ | ||
table { background: #fff; -moz-border-radius: 3px; -webkit-border-radius: 3px; width: 100%; margin: 0 0 18px; border: 1px solid #ddd; } | ||
|
||
table thead { background: #f5f5f5; } | ||
table thead tr th, | ||
table tbody tr td { font-size: 12px; line-height: 18px; text-align: left; } | ||
table thead tr th { padding: 8px 10px 9px; font-size: 14px; font-weight: bold; color: #222; } | ||
table thead tr th:first-child { border-left: none; } | ||
table thead tr th:last-child { border-right: none; } | ||
|
||
table thead tr { } | ||
table tbody { } | ||
table tbody tr { } | ||
table tbody tr.even, | ||
table tbody tr.alt { background: #f9f9f9; } | ||
table tbody tr:nth-child(even) { background: #f9f9f9; } | ||
table tbody tr td { color: #333; padding: 9px 10px; vertical-align: top; border: none; } | ||
|
||
/* -------------------------------------------------- | ||
:: Misc | ||
---------------------------------------------------*/ | ||
.left { float: left; } | ||
.right { float: right; } | ||
.hide { display: none; } | ||
.highlight { background: #ff0; } | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
/* Arfully Masterminded by ZURB */ | ||
|
||
/* -------------------------------------------------- | ||
:: Grid | ||
This is the mobile-friendly, responsive grid that | ||
lets Foundation work much of its magic. | ||
-------------------------------------------------- */ | ||
|
||
.container { padding: 0px 20px; } | ||
|
||
.row { width: 100%; max-width: 980px; min-width: 727px; margin: 0 auto; } | ||
/* To fix the grid into a certain size, set max-width to width */ | ||
.row .row { min-width: 0px; } | ||
|
||
.column, .columns { margin-left: 4.4%; float: left; min-height: 1px; position: relative; } | ||
.column:first-child, .columns:first-child { margin-left: 0px; } | ||
|
||
.row .one.columns { width: 4.3%; } | ||
.row .two.columns { width: 13%; } | ||
.row .three.columns { width: 21.68%; } | ||
.row .four.columns { width: 30.4%; } | ||
.row .five.columns { width: 39.1%; } | ||
.row .six.columns { width: 47.8%; } | ||
.row .seven.columns { width: 56.5%; } | ||
.row .eight.columns { width: 65.2%; } | ||
.row .nine.columns { width: 73.9%; } | ||
.row .ten.columns { width: 82.6%; } | ||
.row .eleven.columns { width: 91.3%; } | ||
.row .twelve.columns { width: 100%; } | ||
|
||
.row .offset-by-one { margin-left: 13.1%; } | ||
.row .offset-by-two { margin-left: 21.8%; } | ||
.row .offset-by-three { margin-left: 30.5%; } | ||
.row .offset-by-four { margin-left: 39.2%; } | ||
.row .offset-by-five { margin-left: 47.9%; } | ||
.row .offset-by-six { margin-left: 56.6%; } | ||
.row .offset-by-seven { margin-left: 65.3%; } | ||
.row .offset-by-eight { margin-left: 74.0%; } | ||
.row .offset-by-nine { margin-left: 82.7%; } | ||
.row .offset-by-ten { margin-left: 91.4%; } | ||
/*.row .offset-by-eleven { margin-left: 95.7%; }*/ | ||
|
||
.row .one.centered { margin-left: 47.9%; } | ||
.row .two.centered { margin-left: 43.5%; } | ||
.row .three.centered { margin-left: 39.2%; } | ||
.row .four.centered { margin-left: 34.8%; } | ||
.row .five.centered { margin-left: 30.5%; } | ||
.row .six.centered { margin-left: 26.1%; } | ||
.row .seven.centered { margin-left: 21.8%; } | ||
.row .eight.centered { margin-left: 17.4%; } | ||
.row .nine.centered { margin-left: 13.1%; } | ||
.row .ten.centered { margin-left: 8.7%; } | ||
.row .eleven.centered { margin-left: 4.3%; } | ||
|
||
.row .offset-by-one:first-child { margin-left: 8.7%; } | ||
.row .offset-by-two:first-child { margin-left: 17.4%; } | ||
.row .offset-by-three:first-child { margin-left: 26.1%; } | ||
.row .offset-by-four:first-child { margin-left: 34.8%; } | ||
.row .offset-by-five:first-child { margin-left: 43.5%; } | ||
.row .offset-by-six:first-child { margin-left: 52.2%; } | ||
.row .offset-by-seven:first-child { margin-left: 60.9%; } | ||
.row .offset-by-eight:first-child { margin-left: 69.6%; } | ||
.row .offset-by-nine:first-child { margin-left: 78.3%; } | ||
.row .offset-by-ten:first-child { margin-left: 87%; } | ||
.row .offset-by-eleven:first-child { margin-left: 95.7%; } | ||
|
||
img, object, embed { max-width: 100%; } | ||
img { -ms-interpolation-mode: bicubic; } | ||
|
||
/* Nicolas Gallagher's micro clearfix */ | ||
.row:before, .row:after, .clearfix:before, .clearfix:after { content:""; display:table; } | ||
.row:after, .clearfix:after { clear: both; } | ||
.row, .clearfix { zoom: 1; } | ||
|
||
|
||
|
||
|
||
/* -------------------------------------------------- | ||
:: Block grids | ||
These are 2-up, 3-up, 4-up and 5-up ULs, suited | ||
for repeating blocks of content. Add 'mobile' to | ||
them to switch them just like the layout grid | ||
(one item per line) on phones | ||
-------------------------------------------------- */ | ||
|
||
.block-grid { display: block; overflow: hidden; } | ||
.block-grid>li { display: block; height: auto; float: left; } | ||
|
||
.block-grid.two-up { margin-left: -4% } | ||
.block-grid.two-up>li { margin-left: 4%; width: 46%; } | ||
|
||
.block-grid.three-up { margin-left: -2% } | ||
.block-grid.three-up>li { margin-left: 2%; width: 31.3%; } | ||
|
||
.block-grid.four-up { margin-left: -2% } | ||
.block-grid.four-up>li { margin-left: 2%; width: 23%; } | ||
|
||
.block-grid.five-up { margin-left: -1.5% } | ||
.block-grid.five-up>li { margin-left: 1.5%; width: 18.5%; } | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
/* This is for all IE specfific style less than IE9 and | ||
we make IE 8 render like 7. We hate IE. */ | ||
|
||
div.panel { border: 1px solid #ccc; } |
Oops, something went wrong.