-
Notifications
You must be signed in to change notification settings - Fork 66
Initial Sass file structure #33
Changes from all commits
ae180fc
91ca08e
2d0775c
ba97756
09cfa7d
ad5bd41
4da6aa8
d994d9c
6e95114
e91797e
dd6d06b
77886e2
962e6df
62988dd
98d2e72
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
# Files | ||
npm-debug.log | ||
*.css.map | ||
style.css | ||
|
||
# Folders | ||
bower_components/ | ||
node_modules/ | ||
.sass-cache/ |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,3 +11,25 @@ Chassis is an attempt at creating open standards designed for CSS libraries, Jav | |
## Project Collaboration and Interoperability | ||
|
||
If you maintain a JavaScript library that has UI components, we'd love for you to join our efforts. We'd be happy to hear your feedback and work through updates of your project(s) to support CSS Framework. If you have the time and interest to help define the standards and improve on our implementation, that's even better! Check out the [contribution guidelines](https://github.com/jquery/css-chassis/blob/master/CONTRIBUTING.md) for more information. | ||
|
||
|
||
## Getting started | ||
|
||
### Prerequisites | ||
|
||
Node.js and npm should be installed. [[installer]](http://nodejs.org/download/) | ||
|
||
### Building | ||
|
||
Once you've cloned Chassis to your machine, run `npm install` and `grunt build` from the root Chassis directory. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
|
||
``` | ||
$ npm install | ||
$ grunt build | ||
``` | ||
|
||
### Other grunt commands | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
|
||
* `grunt` - JS lint and style check | ||
* `grunt build` - Compiles the Sass into CSS | ||
* `grunt watch` - Watches Sass files for changes. Upon change, compiles the Sass. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,50 @@ | ||
{ | ||
"name": "css-chassis", | ||
"title": "Chassis", | ||
"description": "An attempt at creating open standards designed for CSS libraries, JavaScript UI libraries, and web developers in general", | ||
"version": "0.0.1-pre", | ||
"author": { | ||
"name": "jQuery Foundation and other contributors", | ||
"url": "https://github.com/jquery/css-chassis/blob/master/AUTHORS.txt" | ||
}, | ||
"maintainers": [ | ||
{ | ||
"name": "Sarah Frisk", | ||
"email": "sarah@sarahfrisk.net", | ||
"url": "http://sarahfrisk.net" | ||
}, | ||
{ | ||
"name": "Alexander Schmitz", | ||
"email": "arschmitz@gmail.com", | ||
"url": "http://arschmitz.me" | ||
}, | ||
{ | ||
"name": "Chris Bracco", | ||
"email": "chris@cbracco.me", | ||
"url": "http://cbracco.me" | ||
} | ||
|
||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com/jquery/css-chassis.git" | ||
}, | ||
"bugs": "http://github.com/jquery/css-chassis/issues/", | ||
"licenses": [ | ||
{ | ||
"type": "MIT", | ||
"url": "https://github.com/jquery/css-chassis/blob/master/LICENSE.txt" | ||
} | ||
], | ||
"dependencies": {}, | ||
"devDependencies": { | ||
"commitplease": "2.0.0", | ||
"grunt": "0.4.2", | ||
"grunt-contrib-jshint": "0.10.0", | ||
"grunt-git-authors": "2.0.0", | ||
"grunt-jscs": "0.6.2" | ||
}, | ||
"keywords": [] | ||
"name": "css-chassis", | ||
"title": "Chassis", | ||
"description": "An attempt at creating open standards designed for CSS libraries, JavaScript UI libraries, and web developers in general", | ||
"version": "0.0.1-pre", | ||
"author": { | ||
"name": "jQuery Foundation and other contributors", | ||
"url": "https://github.com/jquery/css-chassis/blob/master/AUTHORS.txt" | ||
}, | ||
"maintainers": [ | ||
{ | ||
"name": "Sarah Frisk", | ||
"email": "sarah@sarahfrisk.net", | ||
"url": "http://sarahfrisk.net" | ||
}, | ||
{ | ||
"name": "Alexander Schmitz", | ||
"email": "arschmitz@gmail.com", | ||
"url": "http://arschmitz.me" | ||
}, | ||
{ | ||
"name": "Chris Bracco", | ||
"email": "chris@cbracco.me", | ||
"url": "http://cbracco.me" | ||
} | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com/jquery/css-chassis.git" | ||
}, | ||
"bugs": "http://github.com/jquery/css-chassis/issues/", | ||
"licenses": [ | ||
{ | ||
"type": "MIT", | ||
"url": "https://github.com/jquery/css-chassis/blob/master/LICENSE.txt" | ||
} | ||
], | ||
"dependencies": {}, | ||
"devDependencies": { | ||
"commitplease": "2.0.0", | ||
"grunt": "0.4.2", | ||
"grunt-autoprefixer": "^2.1.0", | ||
"grunt-contrib-jshint": "0.10.0", | ||
"grunt-contrib-watch": "^0.6.1", | ||
"grunt-git-authors": "2.0.0", | ||
"grunt-jscs": "0.6.2", | ||
"grunt-sass": "^0.17.0" | ||
}, | ||
"keywords": [] | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// ========================================================================== | ||
// Clearfix | ||
// ========================================================================== | ||
|
||
|
||
@mixin clearfix() { | ||
&:before, | ||
&:after { | ||
content: ""; | ||
display: table; | ||
} | ||
&:after { | ||
clear: both; | ||
} | ||
} | ||
|
||
.clearfix { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Seems weird that we'd define one of these. Do we use it a whole bunch? Doesn't seem necessary in modern design patterns IMO. Is Also, is this actually going to define There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
I know I do and many others do.
It currently does output There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Regarding naming here, this really is dependent upon final decision on #4 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We can leave it in for name (the name), and if we decided to have different naming conventions for #4, then we can change it. Also might as well leave the clearfix mixin there for now, since in some cases it could definitely be handy to have. |
||
@include clearfix; | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
// ========================================================================== | ||
// Colors | ||
// ========================================================================== |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
// ========================================================================== | ||
// Icons | ||
// ========================================================================== |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// ========================================================================== | ||
// Typography functions | ||
// ========================================================================== | ||
|
||
// em() function | ||
// Convert px to em in a readable fashion. | ||
// Examples: | ||
// 1. font-size: em(14px); | ||
// 2. font-size: em(30px/14px); | ||
@function em($value, $context: map-get($root-font, font-size)) { | ||
@return ($value / $context * 1em); | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
// ========================================================================== | ||
// Typography | ||
// ========================================================================== | ||
|
||
@import | ||
"variables", | ||
"functions"; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// ========================================================================== | ||
// Typography variables | ||
// ========================================================================== | ||
|
||
// Change these values when using custom fonts | ||
// For example, normal: 400; | ||
$normal: normal; | ||
$bold: bold; | ||
|
||
$root-font:( | ||
color: #222, | ||
font-size: 20px, | ||
line-height: 1.5 | ||
); | ||
|
||
// Typefaces | ||
$monospace: "courier new", monospace; | ||
$serif: Georgia, "Times New Roman", Times, serif; | ||
$sans: Helvetica, Arial, sans-serif; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// ========================================================================== | ||
// CSS Chassis | ||
// ========================================================================== | ||
|
||
@import | ||
"_utilities/clearfix", | ||
"_utilities/colors"; | ||
|
||
@import | ||
"atoms/icons/icons", | ||
"atoms/typography/typography"; | ||
|
||
@import | ||
"views/main"; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
// ========================================================================== | ||
// Main | ||
// ========================================================================== |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There should be an alias that can be called directly (when not using watch), that could be used here as well, like "build".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe you could use that alias in here too?