north 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 94e7556021224e323fd17fec2f7ce638d745fd0d
4
- data.tar.gz: 9ebe769a77e4254ccb9aa72abbc705f57f162005
3
+ metadata.gz: 93d894b2a4ac2e8afa1d467808e152996ea6bd98
4
+ data.tar.gz: 0b6c9532a0c8c5577f130a08d6d93f79c44e3011
5
5
  SHA512:
6
- metadata.gz: c439b9d0f3490ade26d61e562f9c41d546c343d93875e231ffd359e44ab9992ebf6b3201010b86e3a0c4182a23b1db8a6c989c57d2ca98d701236f38855b1891
7
- data.tar.gz: e6ee6f9a60b3fcfa9b91303870ff03ed5242c6ea9152442e69e61e18d7a9a64cc1f65bcb4851c35e651d88c5210e4115264f169c5bd62ce06c5b924813ac5117
6
+ metadata.gz: a888a307a7a62194872055feeb77efdf189a335af41f978fbb9f7d6c1f6066b1e1cb098fbfa9844bb11e49aff58f80c149198fc2df22ca1dd7df72f792d920d9
7
+ data.tar.gz: 71d2f9ef69649d81dd08d013e5ac3a4a5ae3e44a0ab1a0cf8fe8aabf07767ac81da140ad7d6b9db58b8f2c9cefb9c190cf0a4bebcac145bf951906ce818eaba0
data/README.md CHANGED
@@ -1339,14 +1339,72 @@ When building site, very often a point will come when a decision must be made as
1339
1339
 
1340
1340
  There have been a handful of tools that have been created in order to assist in working with the North standards, making building awesome things easier.
1341
1341
 
1342
- ## Intake Center
1342
+ ## North Sass Plugin
1343
+
1344
+ Available both as a [Bower](http://bower.io/) component (`bower install north --save-dev`) or as a Compass extension (`gem 'north', '~> 0.3.1'` in your [Gemfile](http://bundler.io/)), the North Sass plugin is designed to make working with North's [CSS Naming Conventions](#css-naming-conventions) easy. The North Sass Plugin requires at least *Sass 3.3*. Simply import into a project and have the following mixins and functions available for use:
1345
+
1346
+ #### component($name)
1347
+ #### @include component($name) { @content }
1348
+ #### @include components($names...) { @content }
1349
+
1350
+ #### layout($name)
1351
+ #### @include layout($name) { @content }
1352
+ #### @include layoutss($names...) { @content }
1353
+
1354
+ #### aspect($name)
1355
+ #### @include aspect($name) { @content }
1356
+ #### @include aspects($names...) { @content }
1357
+
1358
+ #### element($name)
1359
+ #### @include element($name) { @content }
1360
+ #### @include elements($names...) { @content }
1361
+
1362
+ #### state($name)
1363
+ #### @include state($name) { @content }
1364
+ #### @include states($names...) { @content }
1365
+
1366
+ Each function (save `state`) will return their given part of a selector (`aspect` will only return the capitalized half of a selector, `layout` will only return the lowercased name with leading underscore, etc…). `state` will return a full attribute selector to be used. Mixins must contain content. The plural versions of each mixin allow multiple names to be passed, each getting comma separated in the output. Usage of the mixins can look something like the following:
1367
+
1368
+ **Sass**
1369
+
1370
+ ```scss
1371
+ .message {
1372
+ @include aspect(warning) {
1373
+ background: yellow;
1374
+ }
1375
+ @include aspect(error) {
1376
+ background: red;
1377
+ }
1378
+
1379
+ @include element(title) {
1380
+ font-size: 2em;
1381
+ }
1382
+ }
1383
+ ```
1384
+
1385
+ **CSS**
1386
+
1387
+ ```css
1388
+ .message--WARNING {
1389
+ background: yellow;
1390
+ }
1391
+ .message--ERROR {
1392
+ background: red;
1393
+ }
1394
+ .message--title {
1395
+ font-size: 2em;
1396
+ }
1397
+ ```
1343
1398
 
1344
- [Intake.Center](https://github.com/Snugug/intake) is a webapp developed to assist with [role definitions](https://github.com/Snugug/north#roles-and-responsibilities) and [content strategy](https://github.com/Snugug/north#content-strategy). It includes tools for developing and recording [project vision](#project-vision), [user personas](#user-personas), and [content models](#content-modeling) based on [Schema.org](http://schema.org/) schemas. [Content inventory](#content-inventory) and [audit](#content-audit) should be performed before modeling takes place.
1345
1399
 
1346
1400
  ## Generator North
1347
1401
 
1348
1402
  [Generator North](https://github.com/Snugug/generator-north) is a [Yeoman](http://yeoman.io/) generator designed to quickly spin up new North based projects, including integrations with [Sass and Compass](#sass-and-compass), [Bower](http://bower.io/), and [JSHint](http://www.jshint.com/), with an option to include [BrowserSync](http://browsersync.io/) server and live reloading. Either [Grunt](http://gruntjs.com/) or [Gulp](http://gulpjs.com/) can be chosen as a task runner. Generator North also provides an easy way scaffold out new components and layouts, reducing the overhead needed to create each new component or layout.
1349
1403
 
1404
+ ## Intake Center
1405
+
1406
+ [Intake.Center](https://github.com/Snugug/intake) is a webapp developed to assist with [role definitions](https://github.com/Snugug/north#roles-and-responsibilities) and [content strategy](https://github.com/Snugug/north#content-strategy). It includes tools for developing and recording [project vision](#project-vision), [user personas](#user-personas), and [content models](#content-modeling) based on [Schema.org](http://schema.org/) schemas. [Content inventory](#content-inventory) and [audit](#content-audit) should be performed before modeling takes place.
1407
+
1350
1408
 
1351
1409
  # License and Acknowledgements
1352
1410
 
@@ -6,6 +6,6 @@ stylesheets_dir = File.join(base_directory, 'north')
6
6
  Compass::Frameworks.register("north", :path => base_directory, :stylesheets_directory => stylesheets_dir)
7
7
 
8
8
  module North
9
- VERSION = "0.3.0"
9
+ VERSION = "0.3.1"
10
10
  DATE = "2014-04-27"
11
11
  end
@@ -15,8 +15,15 @@
15
15
  }
16
16
  }
17
17
  @each $name in $names {
18
- &--#{call($type, $name)} {
19
- @extend %#{$extend};
18
+ @if $type == 'state' {
19
+ &#{call($type, $name)} {
20
+ @extend %#{$extend};
21
+ }
22
+ }
23
+ @else {
24
+ &--#{call($type, $name)} {
25
+ @extend %#{$extend};
26
+ }
20
27
  }
21
28
  }
22
29
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: north
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sam Richard