Skip to content
This repository has been archived by the owner on Mar 13, 2019. It is now read-only.

Commit

Permalink
First pass on conversion to sass
Browse files Browse the repository at this point in the history
  • Loading branch information
Chad Mazzola committed Jul 10, 2011
1 parent 0ab9815 commit fea7cbd
Show file tree
Hide file tree
Showing 22 changed files with 2,945 additions and 439 deletions.
1,038 changes: 673 additions & 365 deletions css/buttons.css

Large diffs are not rendered by default.

818 changes: 746 additions & 72 deletions css/screen.css

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions index.html
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8">
<title>CSS3 buttons / ubuwaits.github.com/css3-buttons</title>
<meta name="description" content="A collection of CSS3 buttons by Chad Mazzola">
<link rel="stylesheet" href="css/screen.css" type="text/css" media="screen">
<!-- <link rel="stylesheet" href="css/screen.css" type="text/css" media="screen">-->
<link rel="stylesheet" href="css/buttons.css" type="text/css" media="screen">
</head>

Expand Down Expand Up @@ -93,4 +93,4 @@ <h2>WebKit experimental</h2>
</div>

</body>
</html>
</html>
20 changes: 20 additions & 0 deletions scss/_bourbon.scss
@@ -0,0 +1,20 @@
// Custom Functions
@import "functions/compact";
@import "functions/golden-ratio";
@import "functions/tint-shade";

// CSS3 Mixins
@import "css3/animation";
@import "css3/border-radius";
@import "css3/box-shadow";
@import "css3/box-sizing";
@import "css3/flex-box";
@import "css3/inline-block";
@import "css3/linear-gradient";
@import "css3/radial-gradient";
@import "css3/transform";
@import "css3/transition";

// Addons & other mixins
@import "addons/button";
@import "addons/position";
208 changes: 208 additions & 0 deletions scss/_screen.scss
@@ -0,0 +1,208 @@
/* This stylesheet contains only what is necessary to display the example
buttons. See buttons.css for the relevant CSS.
******************************************************************************/
/* Global 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-size: 100%;
font: inherit;
vertical-align: baseline;
}

/* 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;
}

/* Page specific
------------------------------------------------------------------------------*/
body {
background: #fff;
color: #333;
font-family: "helvetica neue", helvetica, arial, sans-serif;
}

div.container {
margin: 40px auto;
width: 960px;
}

a {
color: #333;
font-weight: bold;
text-decoration: none;
}

h1 {
color: #333;
font-size: 38px;
font-weight: 300;
margin: 24px 0 12px 0;
}

p {
color: #555;
font-size: 16px;
font-weight: normal;
line-height: 140%;
margin: 0 0 12px 0;
}

p.credit {
border-top: 1px solid #ccc;
font-size: 14px;
line-height: 140%;
margin: 36px 0 12px 0;
padding: 6px 0 0 0;
}

p.where {
margin: 0 0 12px 0;
}

.button-collection {
border-top: 2px solid #ccc;
margin: 24px 0 36px 0;
padding: 4px 0 12px 0;
}

.button-info {
float: left;
margin: 0 40px 0 0;
width: 245px;

h2 {
color: #222;
font-size: 22px;
font-weight: normal;
margin: 10px 0 6px 0;
}

p {
font-size: 14px;
}
}

ul.column {
float: left;
list-style: none;
width: 675px;

ul.column li {
background: #ddd;
@include border-radius(5px);
float: left;
margin: 10px 0 0 10px;
display: block;
height: 150px;
text-align: center;
width: 215px;
}
}

button {
margin-top: 60px;
}

button.webkit-badge {
margin-top: 32px;
}

button.webkit-check {
margin-top: 30px;
}

button.webkit-seal {
margin-top: 30px;
}

button.slick-black {
margin-top: 56px;
}

button.cupid-green {
margin-top: 62px;
}

button.cupid-blue {
margin-top: 64px;
}

button.blue-pill {
margin-top: 62px;
}

button.dribbble {
margin-top: 60px;
}

button.thoughtbot {
margin-top: 54px;
}

button.punch {
margin-top: 54px;
}

button.fat-letters {
margin-top: 20px;
}

button.download-itunes {
margin-top: 62px;
}

/* Clear Floated Elements
------------------------------------------------------------------------------*/
.column:after,
.button-collection:after,
.clearfix:after {
clear: both;
content: ' ';
display: block;
font-size: 0;
line-height: 0;
visibility: hidden;
width: 0;
height: 0;
}

0 comments on commit fea7cbd

Please sign in to comment.