crossbar 0.0.2 → 0.0.4

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: 39a6f4a339810902812a985af31c1f5cdcd736eb
4
- data.tar.gz: a201b1ea983a36cbcfa6a658d7de37fc40bf5259
3
+ metadata.gz: 6cf2eef122b6265ee531fe6097f2f4b1578b1749
4
+ data.tar.gz: b43f78c69e963efa17d8d0217d1951446b37567d
5
5
  SHA512:
6
- metadata.gz: 175474aebbcad5d68d894d3a402d3c6f0994ef05600899e4ad5e241fa10ac8620e5699d37798b7e06362e8f081bbfe9731c003201d1149fbace2fd62aa2ec3a3
7
- data.tar.gz: 2f8451e7a0ff50c2b5560878c6fd536fc68c77835c756f29e3a90553e3fadf71e62784b42eeb64e9bc3b0cabacd28c1da08bb1a8d34731e5b48e0a91e2d2545e
6
+ metadata.gz: 8bb27f59a97eeb05eef25cd333688788128c7f908c1ae289e1931e5a4c4a8165482b8ad28f2a0512271b3d988b54d360603d1ed82e770b45f3bcb29c7f1d0c49
7
+ data.tar.gz: de00c80b811d80374fef38392fc35baec24f944d732c230057b0e2bb102cdffe42ef3aef463cddb6dd33fd8c32413bc5cd0b084ef69f19901c898d28d2fa62d0
@@ -0,0 +1,2 @@
1
+ ruby:
2
+ enabled: true
data/README.md CHANGED
@@ -13,7 +13,7 @@ Crossbar will scaffold your a stylesheet structure with a basic set of sass vari
13
13
 
14
14
  ## Using Crossbar
15
15
  ### Foreword
16
- Crossbar is made to work with a CSS reset; not to replace one. [Normalize](http://necolas.github.io/normalize.css/) is my reset of choice; so this is the first thing that gets called in `base/_all.scss`, with the following `@import 'vendor/reset';`. Remove this line if you decide to use a different Reset or manage your vendor dependencies differently.
16
+ Crossbar is made to work with a CSS reset; not to replace one. [Normalize](http://necolas.github.io/normalize.css/) is my reset of choice; so this is the first thing that gets called in `base/_b-all.scss`, with the following `@import 'vendor/reset';`. Remove this line if you decide to use a different Reset or manage your vendor dependencies differently.
17
17
 
18
18
  ### Sass structure
19
19
  #### 1. Base
@@ -30,13 +30,13 @@ The layout directory contains styles that are large containers of a page. This d
30
30
  - Page specific layout (footer, header, section, etc.)
31
31
 
32
32
  #### 3. Modules
33
- The module directory will, probably, contain the bulk of your Sass files. A page may contains multiple modules; and every module should be completely independent of its context. These modules may include, and are not limited to the the followings:
33
+ The modules directory will, probably, contain the bulk of your Sass files. A page may contains multiple modules; and every module should be completely independent of its context. These modules may include, and are not limited to the the followings:
34
34
  - Content block
35
35
  - Primary action button
36
36
  - Secondary action button
37
37
 
38
38
  #### 4. States
39
- The state directory may contain Sass files that will augment and override all other styles.
39
+ The states directory may contain Sass files that will augment and override all other styles.
40
40
  For example, a fieldset may be hidden until the user enables it. In this case we can use toggle between the `is-hidden` or the `is-shown` states.
41
41
  ```
42
42
  .is {
@@ -81,10 +81,10 @@ For example, a fieldset may be hidden until the user enables it. In this case we
81
81
 
82
82
  3. Add Crossbar to your project by calling the following from your main Sass files
83
83
  ```sass
84
- @import 'base/all';
85
- @import 'layout/all';
86
- @import 'module/all';
87
- @import 'state/all';
84
+ @import 'base/b-all';
85
+ @import 'layout/l-all';
86
+ @import 'modules/m-all';
87
+ @import 'states/s-all';
88
88
  ```
89
89
 
90
90
  ## License
@@ -16,9 +16,9 @@
16
16
  // Extends
17
17
 
18
18
  // Base
19
- @import 'button';
20
- @import 'form';
21
- @import 'image';
22
- @import 'list';
23
- @import 'table';
24
- @import 'typography';
19
+ @import 'b-button';
20
+ @import 'b-form';
21
+ @import 'b-image';
22
+ @import 'b-list';
23
+ @import 'b-table';
24
+ @import 'b-typography';
@@ -1,18 +1,18 @@
1
1
  button,
2
- #{$b-form-button-inputs} {
2
+ #{$base-form-button-inputs} {
3
3
  -moz-appearance: none;
4
4
  -webkit-appearance: none;
5
5
  appearance: none;
6
- border: $b-button-border;
7
- border-radius: $b-button-border-radius;
6
+ border: $base-button-border;
7
+ border-radius: $base-button-border-radius;
8
8
  box-sizing: border-box;
9
9
  cursor: pointer;
10
10
  display: inline-block;
11
- font-family: $b-button-font-family;
12
- font-size: $b-button-font-size;
11
+ font-family: $base-button-font-family;
12
+ font-size: $base-button-font-size;
13
13
  -webkit-font-smoothing: antialiased;
14
14
  line-height: 1;
15
- padding: $b-button-padding;
15
+ padding: $base-button-padding;
16
16
  text-decoration: none;
17
17
  transition: background-color 125ms ease-out;
18
18
  user-select: none;
@@ -0,0 +1,99 @@
1
+ // Form elements
2
+
3
+ ::-webkit-input-placeholder { /* WebKit browsers */
4
+ color: $base-form-text-input-placeholder-color;
5
+ }
6
+ :-moz-placeholder { /* Mozilla Firefox 4 to 18 */
7
+ color: $base-form-text-input-placeholder-color;
8
+ opacity: 1;
9
+ }
10
+ ::-moz-placeholder { /* Mozilla Firefox 19+ */
11
+ color: $base-form-text-input-placeholder-color;
12
+ opacity: 1;
13
+ }
14
+ :-ms-input-placeholder { /* Internet Explorer 10+ */
15
+ color: $base-form-text-input-placeholder-color;
16
+ }
17
+
18
+ fieldset {
19
+ background-color: $base-form-fieldset-background-color;
20
+ border: $base-form-fieldset-border;
21
+ margin: $base-form-fieldset-margin;
22
+ padding: $base-form-fieldset-padding;
23
+ }
24
+
25
+ input,
26
+ label,
27
+ select {
28
+ display: block;
29
+ font-family: $base-form-font-family;
30
+ font-size: $base-form-font-size;
31
+ }
32
+
33
+ label {
34
+ color: $base-form-label-color;
35
+ font-weight: $base-form-label-font-weight;
36
+ line-height: 1;
37
+ margin: $base-form-label-margin;
38
+
39
+ &.required:after {
40
+ content: '*';
41
+ }
42
+
43
+ abbr {
44
+ display: none;
45
+ }
46
+ }
47
+
48
+ #{$base-form-text-inputs},
49
+ #{$base-form-text-inputs-html5},
50
+ select[multiple=multiple],
51
+ textarea {
52
+ background-color: $base-form-text-input-background-color;
53
+ border: 1px solid $base-form-text-input-border-color;
54
+ border-radius: $base-form-text-input-border-radius;
55
+ box-shadow: $base-form-text-input-box-shadow;
56
+ box-sizing: border-box;
57
+ color: $base-form-text-input-color;
58
+ font-family: $base-form-font-family;
59
+ font-size: $base-form-font-size;
60
+ margin: $base-form-text-input-margin;
61
+ padding: $base-form-text-input-padding;
62
+ transition: border-color 125ms ease-out;
63
+ width: 100%;
64
+
65
+ &:hover {
66
+ border-color: $base-form-text-input-border-color-hover;
67
+ }
68
+
69
+ &:focus {
70
+ border-color: $base-form-text-input-border-color-focus;
71
+ outline: none;
72
+ }
73
+ }
74
+
75
+ input[type='search'] {
76
+ -moz-appearance: none;
77
+ -webkit-appearance: none;
78
+ }
79
+
80
+ input[type='checkbox'],
81
+ input[type='radio'] {
82
+ display: inline;
83
+ margin: $base-form-choice-input-margin;
84
+ }
85
+
86
+ input[type='file'] {
87
+ padding: $base-form-file-input-padding;
88
+ width: 100%;
89
+ }
90
+
91
+ select {
92
+ margin: $base-form-select-margin;
93
+ max-width: 100%;
94
+ width: auto;
95
+ }
96
+
97
+ textarea {
98
+ resize: vertical;
99
+ }
@@ -1,5 +1,5 @@
1
1
  image,
2
2
  picture {
3
- margin: $b-image-margin;
3
+ margin: $base-image-margin;
4
4
  max-width: 100%;
5
5
  }
@@ -8,8 +8,8 @@ Table of content:
8
8
 
9
9
  ul,
10
10
  ol {
11
- margin: $b-ul-margin;
12
- padding: $b-ul-padding;
11
+ margin: $base-ul-margin;
12
+ padding: $base-ul-padding;
13
13
 
14
14
  &%list-reset {
15
15
  list-style-type: none;
@@ -21,11 +21,11 @@ ol {
21
21
  // Definition list
22
22
 
23
23
  dl {
24
- margin-bottom: $b-dl-margin-bottom;
24
+ margin-bottom: $base-dl-margin-bottom;
25
25
 
26
26
  dt {
27
- font-weight: $b-dt-font-weight;
28
- margin-top: $b-dt-margin-top;
27
+ font-weight: $base-dt-font-weight;
28
+ margin-top: $base-dt-margin-top;
29
29
  }
30
30
 
31
31
  dd {
@@ -0,0 +1,24 @@
1
+ table {
2
+ border-collapse: collapse;
3
+ margin: $base-table-margin;
4
+ table-layout: fixed;
5
+ width: 100%;
6
+ }
7
+
8
+ th {
9
+ border-bottom: $base-th-border-bottom;
10
+ font-weight: $base-font-weight-bold;
11
+ padding: $base-th-padding;
12
+ text-align: left;
13
+ }
14
+
15
+ td {
16
+ border-bottom: $base-td-border-bottom;
17
+ padding: $base-td-padding;
18
+ }
19
+
20
+ td,
21
+ th,
22
+ tr {
23
+ vertical-align: middle;
24
+ }
@@ -0,0 +1,106 @@
1
+ /*
2
+ Typography
3
+
4
+ Table of content:
5
+ - Scaffolding
6
+ - Hyperlink <a>
7
+ - Blockquote <blockquote>
8
+ - Cite <cite>
9
+ - Headers <h1> <h2> <h3> <h4> <h5> <h6>
10
+ - Horizontal line <hr>
11
+ - Paragraph <p>
12
+ */
13
+
14
+ // Scaffolding
15
+
16
+ body {
17
+ background-color: $base-background-color;
18
+ color: $base-font-color;
19
+ // font-family: $font-family-b;
20
+ font-family: $base-font-family;
21
+ font-feature-settings: $base-font-features;
22
+ font-size: $base-font-size;
23
+ -webkit-font-smoothing: antialiased;
24
+ line-height: $base-line-height;
25
+ }
26
+
27
+ // Hyperlink
28
+
29
+ a {
30
+ color: $base-link-color;
31
+ text-decoration: underline;
32
+ transition: color 125ms linear;
33
+
34
+ &:hover {
35
+ color: $base-link-color-hover;
36
+ text-decoration: none;
37
+ }
38
+
39
+ &:active,
40
+ &:focus {
41
+ color: $base-link-color-active;
42
+ outline: none;
43
+ text-decoration: none;
44
+ }
45
+ }
46
+
47
+ // Blockquote
48
+
49
+ blockquote {
50
+ border-left: $base-blockquote-border-left;
51
+ color: $base-blockquote-color;
52
+ font-family: $base-blockquote-font-family;
53
+ margin: $base-blockquote-margin;
54
+ padding: $base-blockquote-padding;
55
+ }
56
+
57
+ cite {
58
+ color: $base-cite-color;
59
+ font-style: $base-cite-font-style;
60
+ white-space: pre;
61
+
62
+ &:before {
63
+ content: '\A \2014 \00A0';
64
+ }
65
+ }
66
+
67
+ // Code
68
+ code {
69
+ font-family: $base-code-font-family;
70
+ font-size: $base-code-font-size;
71
+ -webkit-font-smoothing: antialiased;
72
+ }
73
+
74
+ // Headers
75
+
76
+ h1,
77
+ h2,
78
+ h3,
79
+ h4,
80
+ h5,
81
+ h6 {
82
+ line-height: $base-headers-line-height;
83
+ margin: 0 0 $base-spacing-half;
84
+ }
85
+
86
+ @each $header, $value in $base-headers-font-sizes {
87
+ #{$header} {
88
+ font-size: $value;
89
+ }
90
+ }
91
+
92
+ // Horizontal line
93
+
94
+ hr {
95
+ border-bottom: $base-hr-border;
96
+ border-left: 0;
97
+ border-right: 0;
98
+ border-top: 0;
99
+ margin: $base-hr-margin;
100
+ }
101
+
102
+ // Paragraph
103
+
104
+ p {
105
+ margin: $base-paragraph-margin;
106
+ }
@@ -12,7 +12,7 @@
12
12
  @if $percentage < 0 or $percentage > 100 {
13
13
  @warn "Percentage #{$percentage} must be between 0 and 100";
14
14
  }
15
- @return mix($color, white, (100 - $percentage));
15
+ @return mix(white, $color, $percentage);
16
16
  }
17
17
 
18
18
  /*
@@ -29,5 +29,5 @@
29
29
  @if $percentage < 0 or $percentage > 100 {
30
30
  @warn "Percentage #{$percentage} must be between 0 and 100";
31
31
  }
32
- @return mix($color, black, (100 - $percentage));
32
+ @return mix(black, $color, $percentage);
33
33
  }
@@ -1,23 +1,27 @@
1
+ // Base Gray scale
2
+ $black: hsl(0, 100%, 0);
3
+ $white: hsl(0, 0, 100%);
1
4
 
2
- $black: rgba(0, 0, 0, 1);
3
- $white: rgba(255, 255, 255, 1);
5
+ $black-87: tint($black, 13%);
6
+ $black-54: tint($black, 46%);
7
+ $black-26: tint($black, 74%);
8
+ $black-12: tint($black, 88%);
4
9
 
5
- $black-level-1: rgba($black, 0.87);
6
- $black-level-2: rgba($black, 0.54);
7
- $black-level-3: rgba($black, 0.27);
8
- $black-level-4: rgba($black, 0.12);
10
+ $black-at-87: rgba($black, 0.87);
11
+ $black-at-54: rgba($black, 0.54);
12
+ $black-at-26: rgba($black, 0.26);
13
+ $black-at-12: rgba($black, 0.12);
9
14
 
10
- $gray-50: #fafafa;
11
- $gray-100: #f5f5f5;
12
- $gray-200: #eee;
13
- $gray-300: #e0e0e0;
14
- $gray-400: #bdbdbd;
15
- $gray-500: #9e9e9e;
16
- $gray-600: #757575;
17
- $gray-700: #616161;
18
- $gray-800: #424242;
19
- $gray-900: #212121;
15
+ $white-70: shade($white, 30%);
16
+ $white-30: shade($white, 70%);
17
+ $white-12: shade($white, 88%);
20
18
 
21
- $blue: #328cc0;
22
- $green: #3eb596;
23
- $red: #f3585e;
19
+ $white-at-70: rgba($white, 0.7);
20
+ $white-at-30: rgba($white, 0.3);
21
+ $white-at-12: rgba($white, 0.12);
22
+
23
+ // Base Colors
24
+ $blue: hsl(202, 59%, 47%);
25
+ $green: hsl(164, 49%, 48%);
26
+ $red: hsl(358, 87%, 65%);
27
+ $yellow: hsl(43, 87%, 65%);
@@ -1,22 +1,22 @@
1
1
  // Inputs
2
2
 
3
- $b-text-inputs-list: 'input[type="text"]',
4
- 'input[type="password"]';
3
+ $base-text-inputs-list: 'input[type="text"]',
4
+ 'input[type="password"]';
5
5
 
6
- $b-text-inputs-list-html5: 'input[type="color"]',
7
- 'input[type="date"]',
8
- 'input[type="datetime"]',
9
- 'input[type="datetime-local"]',
10
- 'input[type="email"]',
11
- 'input[type="month"]',
12
- 'input[type="number"]',
13
- 'input[type="password"]',
14
- 'input[type="search"]',
15
- 'input[type="tel"]',
16
- 'input[type="time"]',
17
- 'input[type="url"]',
18
- 'input[type="week"]';
6
+ $base-text-inputs-list-html5: 'input[type="color"]',
7
+ 'input[type="date"]',
8
+ 'input[type="datetime"]',
9
+ 'input[type="datetime-local"]',
10
+ 'input[type="email"]',
11
+ 'input[type="month"]',
12
+ 'input[type="number"]',
13
+ 'input[type="password"]',
14
+ 'input[type="search"]',
15
+ 'input[type="tel"]',
16
+ 'input[type="time"]',
17
+ 'input[type="url"]',
18
+ 'input[type="week"]';
19
19
 
20
- $b-button-inputs-list: 'input[type="button"]',
21
- 'input[type="reset"]',
22
- 'input[type="submit"]';
20
+ $base-button-inputs-list: 'input[type="button"]',
21
+ 'input[type="reset"]',
22
+ 'input[type="submit"]';
@@ -2,187 +2,187 @@
2
2
  // =====
3
3
 
4
4
  // Colors
5
- $b-accent-color: $blue;
6
- $b-background-color: $white;
7
- $b-font-color: $black-level-1;
8
- $b-link-color: $b-accent-color;
9
- $b-link-color-hover: shade($b-link-color, 20);
5
+ $base-accent-color: $blue;
6
+ $base-background-color: $white;
7
+ $base-font-color: $black-at-87;
8
+ $base-link-color: $base-accent-color;
9
+ $base-link-color-hover: shade($base-link-color, 20);
10
10
 
11
11
  // Font families
12
12
  $sans: 'Helevetica Neue', 'Helvetica', 'Verdana', 'Arial', sans-serif;
13
13
  $serif: 'Georgia', 'Cambria', 'Times', 'Times New Roman', serif;
14
14
  $monospace: 'Menlo', 'Courier New', 'Courier', monospace;
15
15
 
16
- $b-font-family: $sans;
16
+ $base-font-family: $sans;
17
17
 
18
18
  // Font features
19
- $b-font-features: 'kern', 'liga', 'frac', 'pnum';
19
+ $base-font-features: 'kern', 'liga', 'frac', 'pnum';
20
20
 
21
21
  // Font size
22
- $b-font-size: 1rem;
23
- $b-font-size-small: ($b-font-size * 0.75);
22
+ $base-font-size: 1rem;
23
+ $base-font-size-small: ($base-font-size * 0.75);
24
24
 
25
25
  // Font weights
26
- $b-font-weight-regular: 400;
27
- $b-font-weight-medium: 500;
28
- $b-font-weight-bold: 700;
26
+ $base-font-weight-regular: 400;
27
+ $base-font-weight-medium: 500;
28
+ $base-font-weight-bold: 700;
29
29
 
30
- $b-font-weight: $b-font-weight-regular;
30
+ $base-font-weight: $base-font-weight-regular;
31
31
 
32
32
  // Line height
33
- $b-line-height: 1.5;
33
+ $base-line-height: 1.5;
34
34
 
35
35
  // Spacing
36
- $b-spacing: ($b-line-height * 1rem);
37
- $b-spacing-half: ($b-spacing / 2);
38
- $b-spacing-third: ($b-spacing / 3);
39
- $b-spacing-fourth: ($b-spacing / 4);
40
- $b-spacing-eighth: ($b-spacing / 8);
36
+ $base-spacing: ($base-line-height * 1rem);
37
+ $base-spacing-half: ($base-spacing / 2);
38
+ $base-spacing-third: ($base-spacing / 3);
39
+ $base-spacing-fourth: ($base-spacing / 4);
40
+ $base-spacing-eighth: ($base-spacing / 8);
41
41
 
42
42
  // Border
43
- $b-border-color: $gray-300;
44
- $b-border-size: 1px;
45
- $b-border-style: solid;
46
- $b-border: $b-border-size $b-border-style $b-border-color;
43
+ $base-border-color: $black-12;
44
+ $base-border-size: 1px;
45
+ $base-border-style: solid;
46
+ $base-border: $base-border-size $base-border-style $base-border-color;
47
47
 
48
48
  // TYPOGRAPHY
49
49
  // =========
50
50
 
51
51
  // Blockquote
52
- $b-blockquote-border-left: medium solid $b-border-color;
53
- $b-blockquote-color: $black-level-1;
54
- $b-blockquote-font-family: $serif;
55
- $b-blockquote-margin: $b-spacing 0;
56
- $b-blockquote-padding: 0 0 0 $b-spacing-half;
52
+ $base-blockquote-border-left: medium solid $base-border-color;
53
+ $base-blockquote-color: $black-at-87;
54
+ $base-blockquote-font-family: $serif;
55
+ $base-blockquote-margin: $base-spacing 0;
56
+ $base-blockquote-padding: 0 0 0 $base-spacing-half;
57
57
 
58
58
  // Cite;
59
- $b-cite-color: $black-level-2;
60
- $b-cite-font-style: italic;
59
+ $base-cite-color: $black-at-54;
60
+ $base-cite-font-style: italic;
61
61
 
62
62
  // Code
63
- $b-code-font-family: $monospace;
64
- $b-code-font-size: $b-font-size-small;
63
+ $base-code-font-family: $monospace;
64
+ $base-code-font-size: $base-font-size-small;
65
65
 
66
66
  // Headers
67
- $b-h1-font-size: ($b-font-size * 2.25);
68
- $b-h2-font-size: ($b-font-size * 2);
69
- $b-h3-font-size: ($b-font-size * 1.75);
70
- $b-h4-font-size: ($b-font-size * 1.5);
71
- $b-h5-font-size: ($b-font-size * 1.25);
72
- $b-h6-font-size: $b-font-size;
73
-
74
- $b-headers-font-sizes: (h1: $b-h1-font-size,
75
- h2: $b-h2-font-size,
76
- h3: $b-h3-font-size,
77
- h4: $b-h4-font-size,
78
- h5: $b-h5-font-size,
79
- h6: $b-h6-font-size);
80
- $b-headers-line-height: 1.25;
67
+ $base-h1-font-size: ($base-font-size * 2.25);
68
+ $base-h2-font-size: ($base-font-size * 2);
69
+ $base-h3-font-size: ($base-font-size * 1.75);
70
+ $base-h4-font-size: ($base-font-size * 1.5);
71
+ $base-h5-font-size: ($base-font-size * 1.25);
72
+ $base-h6-font-size: $base-font-size;
73
+
74
+ $base-headers-font-sizes: (h1: $base-h1-font-size,
75
+ h2: $base-h2-font-size,
76
+ h3: $base-h3-font-size,
77
+ h4: $base-h4-font-size,
78
+ h5: $base-h5-font-size,
79
+ h6: $base-h6-font-size);
80
+ $base-headers-line-height: 1.25;
81
81
 
82
82
  // Horizontal line
83
- $b-hr-border: 1px solid $black-level-4;
84
- $b-hr-margin: $b-spacing 0;
83
+ $base-hr-border: 1px solid $black-12;
84
+ $base-hr-margin: $base-spacing 0;
85
85
 
86
86
  // Hyperlink
87
- $b-link-color: $b-accent-color;
88
- $b-link-color-hover: shade($b-link-color, 20);
89
- $b-link-color-active: shade($b-link-color, 40);
87
+ $base-link-color: $base-accent-color;
88
+ $base-link-color-hover: shade($base-link-color, 20);
89
+ $base-link-color-active: shade($base-link-color, 40);
90
90
 
91
91
  // Paragraph
92
- $b-paragraph-margin: 0 0 $b-spacing-half;
92
+ $base-paragraph-margin: 0 0 $base-spacing-half;
93
93
 
94
94
 
95
95
  // BUTTONS
96
96
  // =======
97
- $b-button-border: 0;
98
- $b-button-border-radius: 0;
99
- $b-button-color: $b-font-color;
100
- $b-button-font-family: $sans;
101
- $b-button-font-size: $b-font-size;
102
- $b-button-padding: $b-spacing-half $b-spacing;
103
-
104
- $button-pri-background-color: $b-accent-color;
97
+ $base-button-border: 0;
98
+ $base-button-border-radius: 0;
99
+ $base-button-color: $base-font-color;
100
+ $base-button-font-family: $sans;
101
+ $base-button-font-size: $base-font-size;
102
+ $base-button-padding: $base-spacing-half $base-spacing;
103
+
104
+ $button-pri-background-color: $base-accent-color;
105
105
  $button-pri-background-color-hover: shade($button-pri-background-color, 20);
106
106
  $button-pri-color: $white;
107
- $button-pri-font-weight: $b-font-weight-bold;
107
+ $button-pri-font-weight: $base-font-weight-bold;
108
108
 
109
- $button-sec-background-color: $gray-300;
109
+ $button-sec-background-color: $black-26;
110
110
  $button-sec-background-color-hover: shade($button-sec-background-color, 20);
111
- $button-sec-color: $b-font-color;
112
- $button-sec-font-weight: $b-font-weight-medium;
111
+ $button-sec-color: $base-font-color;
112
+ $button-sec-font-weight: $base-font-weight-medium;
113
113
 
114
114
  // FORM ELEMENTS
115
115
  // =============
116
116
 
117
117
  // Form
118
- $b-form-font-family: $b-font-family;
119
- $b-form-font-size: $b-font-size;
118
+ $base-form-font-family: $base-font-family;
119
+ $base-form-font-size: $base-font-size;
120
120
 
121
121
  // Fieldset
122
- $b-form-fieldset-background-color: $gray-50;
123
- $b-form-fieldset-border: $b-border;
124
- $b-form-fieldset-margin: 0 0 $b-spacing-half;
125
- $b-form-fieldset-padding: $b-spacing;
122
+ $base-form-fieldset-background-color: tint($black-12, 60);
123
+ $base-form-fieldset-border: $base-border;
124
+ $base-form-fieldset-margin: 0 0 $base-spacing-half;
125
+ $base-form-fieldset-padding: $base-spacing;
126
126
 
127
- $b-form-label-color: $black-level-2;
128
- $b-form-label-font-weight: $b-font-weight-medium;
129
- $b-form-label-margin: 0 0 $b-spacing-eighth;
127
+ $base-form-label-color: $black-at-54;
128
+ $base-form-label-font-weight: $base-font-weight-medium;
129
+ $base-form-label-margin: 0 0 $base-spacing-eighth;
130
130
 
131
131
  // Form button input
132
- $b-form-button-inputs: list-attributes($b-button-inputs-list);
132
+ $base-form-button-inputs: list-attributes($base-button-inputs-list);
133
133
 
134
134
  // Form choice input (checkbox & radio)
135
- $b-form-choice-input-margin: 0 $b-spacing-third 0 0;
135
+ $base-form-choice-input-margin: 0 $base-spacing-third 0 0;
136
136
 
137
137
  // Form file input
138
- $b-form-file-input-padding: 0 0 $b-spacing-half;
138
+ $base-form-file-input-padding: 0 0 $base-spacing-half;
139
139
 
140
140
  // Form select
141
- $b-form-select-margin: 0 0 $b-spacing-half;
141
+ $base-form-select-margin: 0 0 $base-spacing-half;
142
142
 
143
143
  // Form text input
144
- $b-form-text-inputs: list-attributes($b-text-inputs-list);
145
- $b-form-text-inputs-html5: list-attributes($b-text-inputs-list-html5);
144
+ $base-form-text-inputs: list-attributes($base-text-inputs-list);
145
+ $base-form-text-inputs-html5: list-attributes($base-text-inputs-list-html5);
146
146
 
147
- $b-form-text-input-background-color: $white;
148
- $b-form-text-input-border-color: $gray-400;
149
- $b-form-text-input-border-color-hover: $gray-700;
150
- $b-form-text-input-border-color-focus: $b-accent-color;
151
- $b-form-text-input-border-radius: 0;
152
- $b-form-text-input-box-shadow: 0;
153
- $b-form-text-input-color: $black-level-1;
154
- $b-form-text-input-margin: 0 0 $b-spacing-half;
155
- $b-form-text-input-padding: $b-spacing-half;
147
+ $base-form-text-input-background-color: $white;
148
+ $base-form-text-input-border-color: $black-26;
149
+ $base-form-text-input-border-color-hover: $black-54;
150
+ $base-form-text-input-border-color-focus: $base-accent-color;
151
+ $base-form-text-input-border-radius: 0;
152
+ $base-form-text-input-box-shadow: 0;
153
+ $base-form-text-input-color: $base-font-color;
154
+ $base-form-text-input-margin: 0 0 $base-spacing-half;
155
+ $base-form-text-input-padding: $base-spacing-half;
156
156
 
157
- $b-form-text-input-placeholder-color: $black-level-3;
157
+ $base-form-text-input-placeholder-color: $black-at-26;
158
158
 
159
159
  // IMAGES
160
160
  // ======
161
- $b-image-margin: 0;
161
+ $base-image-margin: 0;
162
162
 
163
163
  // LIST
164
164
  // ====
165
165
 
166
166
  // Ordered & Unordered List
167
- $b-ul-margin: 0 0 $b-spacing-half;
168
- $b-ul-padding: 0 0 0 $b-spacing;
167
+ $base-ul-margin: 0 0 $base-spacing-half;
168
+ $base-ul-padding: 0 0 0 $base-spacing;
169
169
 
170
170
  // Definition List
171
- $b-dl-margin-bottom: $b-spacing-half;
171
+ $base-dl-margin-bottom: $base-spacing-half;
172
172
 
173
- $b-dt-font-weight: $b-font-weight-bold;
174
- $b-dt-margin-top: $b-spacing-half;
173
+ $base-dt-font-weight: $base-font-weight-bold;
174
+ $base-dt-margin-top: $base-spacing-half;
175
175
 
176
176
  // TABLES
177
177
  // ======
178
178
 
179
179
  // Table
180
- $b-table-margin: $b-spacing-half 0;
180
+ $base-table-margin: $base-spacing-half 0;
181
181
 
182
182
  // Table header
183
- $b-th-border-bottom: medium solid shade($b-border-color, 15);
184
- $b-th-padding: $b-spacing-half $b-spacing-fourth;
183
+ $base-th-border-bottom: medium solid shade($base-border-color, 15);
184
+ $base-th-padding: $base-spacing-half $base-spacing-fourth;
185
185
 
186
186
  // Table division
187
- $b-td-border-bottom: 1px solid shade($b-border-color, 15);
188
- $b-td-padding: $b-spacing-half $b-spacing-fourth;
187
+ $base-td-border-bottom: 1px solid shade($base-border-color, 15);
188
+ $base-td-padding: $base-spacing-half $base-spacing-fourth;
@@ -33,7 +33,7 @@ module Crossbar
33
33
  end
34
34
 
35
35
  def crossbar_folders
36
- return ["base", "layout", "modules", "state"]
36
+ return ["base", "layout", "modules", "states"]
37
37
  end
38
38
 
39
39
 
@@ -1,3 +1,3 @@
1
1
  module Crossbar
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.4"
3
3
  end
@@ -1,4 +1,4 @@
1
- @import 'crossbar/base/all';
2
- @import 'crossbar/layout/all';
3
- @import 'crossbar/module/all';
4
- @import 'crossbar/state/all';
1
+ @import 'crossbar/base/b-all';
2
+ @import 'crossbar/layout/l-all';
3
+ @import 'crossbar/modules/m-all';
4
+ @import 'crossbar/states/s-all';
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: crossbar
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - makabde
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-18 00:00:00.000000000 Z
11
+ date: 2015-01-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -93,18 +93,19 @@ extra_rdoc_files: []
93
93
  files:
94
94
  - ".editorconfig"
95
95
  - ".gitignore"
96
+ - ".hound.yml"
96
97
  - ".scss-lint.yml"
97
98
  - Gemfile
98
99
  - LICENSE.md
99
100
  - README.md
100
101
  - Rakefile
101
- - app/assets/stylesheets/base/_all.scss
102
- - app/assets/stylesheets/base/_button.scss
103
- - app/assets/stylesheets/base/_form.scss
104
- - app/assets/stylesheets/base/_image.scss
105
- - app/assets/stylesheets/base/_list.scss
106
- - app/assets/stylesheets/base/_table.scss
107
- - app/assets/stylesheets/base/_typography.scss
102
+ - app/assets/stylesheets/base/_b-all.scss
103
+ - app/assets/stylesheets/base/_b-button.scss
104
+ - app/assets/stylesheets/base/_b-form.scss
105
+ - app/assets/stylesheets/base/_b-image.scss
106
+ - app/assets/stylesheets/base/_b-list.scss
107
+ - app/assets/stylesheets/base/_b-table.scss
108
+ - app/assets/stylesheets/base/_b-typography.scss
108
109
  - app/assets/stylesheets/base/extends/.keep
109
110
  - app/assets/stylesheets/base/functions/_colors.scss
110
111
  - app/assets/stylesheets/base/functions/_list-attributes.scss
@@ -114,9 +115,9 @@ files:
114
115
  - app/assets/stylesheets/base/variables/_inputs.scss
115
116
  - app/assets/stylesheets/base/variables/_variables.scss
116
117
  - app/assets/stylesheets/base/vendor/normalize.css
117
- - app/assets/stylesheets/layout/_all.scss
118
- - app/assets/stylesheets/module/_all.scss
119
- - app/assets/stylesheets/state/_all.scss
118
+ - app/assets/stylesheets/layout/_l-all.scss
119
+ - app/assets/stylesheets/modules/_m-all.scss
120
+ - app/assets/stylesheets/states/_s-all.scss
120
121
  - bin/crossbar
121
122
  - crossbar.gemspec
122
123
  - lib/crossbar.rb
@@ -1,99 +0,0 @@
1
- // Form elements
2
-
3
- ::-webkit-input-placeholder { /* WebKit browsers */
4
- color: $b-form-text-input-placeholder-color;
5
- }
6
- :-moz-placeholder { /* Mozilla Firefox 4 to 18 */
7
- color: $b-form-text-input-placeholder-color;
8
- opacity: 1;
9
- }
10
- ::-moz-placeholder { /* Mozilla Firefox 19+ */
11
- color: $b-form-text-input-placeholder-color;
12
- opacity: 1;
13
- }
14
- :-ms-input-placeholder { /* Internet Explorer 10+ */
15
- color: $b-form-text-input-placeholder-color;
16
- }
17
-
18
- fieldset {
19
- background-color: $b-form-fieldset-background-color;
20
- border: $b-form-fieldset-border;
21
- margin: $b-form-fieldset-margin;
22
- padding: $b-form-fieldset-padding;
23
- }
24
-
25
- input,
26
- label,
27
- select {
28
- display: block;
29
- font-family: $b-form-font-family;
30
- font-size: $b-form-font-size;
31
- }
32
-
33
- label {
34
- color: $b-form-label-color;
35
- font-weight: $b-form-label-font-weight;
36
- line-height: 1;
37
- margin: $b-form-label-margin;
38
-
39
- &.required:after {
40
- content: '*';
41
- }
42
-
43
- abbr {
44
- display: none;
45
- }
46
- }
47
-
48
- #{$b-form-text-inputs},
49
- #{$b-form-text-inputs-html5},
50
- select[multiple=multiple],
51
- textarea {
52
- background-color: $b-form-text-input-background-color;
53
- border: 1px solid $b-form-text-input-border-color;
54
- border-radius: $b-form-text-input-border-radius;
55
- box-shadow: $b-form-text-input-box-shadow;
56
- box-sizing: border-box;
57
- color: $b-form-text-input-color;
58
- font-family: $b-form-font-family;
59
- font-size: $b-form-font-size;
60
- margin: $b-form-text-input-margin;
61
- padding: $b-form-text-input-padding;
62
- transition: border-color 125ms ease-out;
63
- width: 100%;
64
-
65
- &:hover {
66
- border-color: $b-form-text-input-border-color-hover;
67
- }
68
-
69
- &:focus {
70
- border-color: $b-form-text-input-border-color-focus;
71
- outline: none;
72
- }
73
- }
74
-
75
- input[type='search'] {
76
- -moz-appearance: none;
77
- -webkit-appearance: none;
78
- }
79
-
80
- input[type='checkbox'],
81
- input[type='radio'] {
82
- display: inline;
83
- margin: $b-form-choice-input-margin;
84
- }
85
-
86
- input[type='file'] {
87
- padding: $b-form-file-input-padding;
88
- width: 100%;
89
- }
90
-
91
- select {
92
- margin: $b-form-select-margin;
93
- max-width: 100%;
94
- width: auto;
95
- }
96
-
97
- textarea {
98
- resize: vertical;
99
- }
@@ -1,24 +0,0 @@
1
- table {
2
- border-collapse: collapse;
3
- margin: $b-table-margin;
4
- table-layout: fixed;
5
- width: 100%;
6
- }
7
-
8
- th {
9
- border-bottom: $b-th-border-bottom;
10
- font-weight: $b-font-weight-bold;
11
- padding: $b-th-padding;
12
- text-align: left;
13
- }
14
-
15
- td {
16
- border-bottom: $b-td-border-bottom;
17
- padding: $b-td-padding;
18
- }
19
-
20
- td,
21
- th,
22
- tr {
23
- vertical-align: middle;
24
- }
@@ -1,106 +0,0 @@
1
- /*
2
- Typography
3
-
4
- Table of content:
5
- - Scaffolding
6
- - Hyperlink <a>
7
- - Blockquote <blockquote>
8
- - Cite <cite>
9
- - Headers <h1> <h2> <h3> <h4> <h5> <h6>
10
- - Horizontal line <hr>
11
- - Paragraph <p>
12
- */
13
-
14
- // Scaffolding
15
-
16
- body {
17
- background-color: $b-background-color;
18
- color: $b-font-color;
19
- // font-family: $font-family-b;
20
- font-family: $b-font-family;
21
- font-feature-settings: $b-font-features;
22
- font-size: $b-font-size;
23
- -webkit-font-smoothing: antialiased;
24
- line-height: $b-line-height;
25
- }
26
-
27
- // Hyperlink
28
-
29
- a {
30
- color: $b-link-color;
31
- text-decoration: underline;
32
- transition: color 125ms linear;
33
-
34
- &:hover {
35
- color: $b-link-color-hover;
36
- text-decoration: none;
37
- }
38
-
39
- &:active,
40
- &:focus {
41
- color: $b-link-color-active;
42
- outline: none;
43
- text-decoration: none;
44
- }
45
- }
46
-
47
- // Blockquote
48
-
49
- blockquote {
50
- border-left: $b-blockquote-border-left;
51
- color: $b-blockquote-color;
52
- font-family: $b-blockquote-font-family;
53
- margin: $b-blockquote-margin;
54
- padding: $b-blockquote-padding;
55
- }
56
-
57
- cite {
58
- color: $b-cite-color;
59
- font-style: $b-cite-font-style;
60
- white-space: pre;
61
-
62
- &:before {
63
- content: '\A \2014 \00A0';
64
- }
65
- }
66
-
67
- // Code
68
- code {
69
- font-family: $b-code-font-family;
70
- font-size: $b-code-font-size;
71
- -webkit-font-smoothing: antialiased;
72
- }
73
-
74
- // Headers
75
-
76
- h1,
77
- h2,
78
- h3,
79
- h4,
80
- h5,
81
- h6 {
82
- line-height: $b-headers-line-height;
83
- margin: 0 0 $b-spacing-half;
84
- }
85
-
86
- @each $header, $value in $b-headers-font-sizes {
87
- #{$header} {
88
- font-size: $value;
89
- }
90
- }
91
-
92
- // Horizontal line
93
-
94
- hr {
95
- border-bottom: $b-hr-border;
96
- border-left: 0;
97
- border-right: 0;
98
- border-top: 0;
99
- margin: $b-hr-margin;
100
- }
101
-
102
- // Paragraph
103
-
104
- p {
105
- margin: $b-paragraph-margin;
106
- }