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 +4 -4
- data/.hound.yml +2 -0
- data/README.md +7 -7
- data/app/assets/stylesheets/base/{_all.scss → _b-all.scss} +6 -6
- data/app/assets/stylesheets/base/{_button.scss → _b-button.scss} +6 -6
- data/app/assets/stylesheets/base/_b-form.scss +99 -0
- data/app/assets/stylesheets/base/{_image.scss → _b-image.scss} +1 -1
- data/app/assets/stylesheets/base/{_list.scss → _b-list.scss} +5 -5
- data/app/assets/stylesheets/base/_b-table.scss +24 -0
- data/app/assets/stylesheets/base/_b-typography.scss +106 -0
- data/app/assets/stylesheets/base/functions/_colors.scss +2 -2
- data/app/assets/stylesheets/base/variables/_colors.scss +23 -19
- data/app/assets/stylesheets/base/variables/_inputs.scss +18 -18
- data/app/assets/stylesheets/base/variables/_variables.scss +100 -100
- data/app/assets/stylesheets/layout/{_all.scss → _l-all.scss} +0 -0
- data/app/assets/stylesheets/{module/_all.scss → modules/_m-all.scss} +0 -0
- data/app/assets/stylesheets/{state/_all.scss → states/_s-all.scss} +0 -0
- data/lib/crossbar/generator.rb +1 -1
- data/lib/crossbar/version.rb +1 -1
- data/spec/fixtures/application.css.scss +4 -4
- metadata +13 -12
- data/app/assets/stylesheets/base/_form.scss +0 -99
- data/app/assets/stylesheets/base/_table.scss +0 -24
- data/app/assets/stylesheets/base/_typography.scss +0 -106
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6cf2eef122b6265ee531fe6097f2f4b1578b1749
|
4
|
+
data.tar.gz: b43f78c69e963efa17d8d0217d1951446b37567d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8bb27f59a97eeb05eef25cd333688788128c7f908c1ae289e1931e5a4c4a8165482b8ad28f2a0512271b3d988b54d360603d1ed82e770b45f3bcb29c7f1d0c49
|
7
|
+
data.tar.gz: de00c80b811d80374fef38392fc35baec24f944d732c230057b0e2bb102cdffe42ef3aef463cddb6dd33fd8c32413bc5cd0b084ef69f19901c898d28d2fa62d0
|
data/.hound.yml
ADDED
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/
|
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
|
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
|
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 '
|
87
|
-
@import '
|
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
|
-
#{$
|
2
|
+
#{$base-form-button-inputs} {
|
3
3
|
-moz-appearance: none;
|
4
4
|
-webkit-appearance: none;
|
5
5
|
appearance: none;
|
6
|
-
border: $
|
7
|
-
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: $
|
12
|
-
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: $
|
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
|
+
}
|
@@ -8,8 +8,8 @@ Table of content:
|
|
8
8
|
|
9
9
|
ul,
|
10
10
|
ol {
|
11
|
-
margin: $
|
12
|
-
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: $
|
24
|
+
margin-bottom: $base-dl-margin-bottom;
|
25
25
|
|
26
26
|
dt {
|
27
|
-
font-weight: $
|
28
|
-
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,
|
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,
|
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:
|
3
|
-
$
|
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-
|
6
|
-
$black-
|
7
|
-
$black-
|
8
|
-
$black-
|
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
|
-
$
|
11
|
-
$
|
12
|
-
$
|
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
|
-
$
|
22
|
-
$
|
23
|
-
$
|
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
|
-
$
|
4
|
-
|
3
|
+
$base-text-inputs-list: 'input[type="text"]',
|
4
|
+
'input[type="password"]';
|
5
5
|
|
6
|
-
$
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
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
|
-
$
|
21
|
-
|
22
|
-
|
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
|
-
$
|
6
|
-
$
|
7
|
-
$
|
8
|
-
$
|
9
|
-
$
|
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
|
-
$
|
16
|
+
$base-font-family: $sans;
|
17
17
|
|
18
18
|
// Font features
|
19
|
-
$
|
19
|
+
$base-font-features: 'kern', 'liga', 'frac', 'pnum';
|
20
20
|
|
21
21
|
// Font size
|
22
|
-
$
|
23
|
-
$
|
22
|
+
$base-font-size: 1rem;
|
23
|
+
$base-font-size-small: ($base-font-size * 0.75);
|
24
24
|
|
25
25
|
// Font weights
|
26
|
-
$
|
27
|
-
$
|
28
|
-
$
|
26
|
+
$base-font-weight-regular: 400;
|
27
|
+
$base-font-weight-medium: 500;
|
28
|
+
$base-font-weight-bold: 700;
|
29
29
|
|
30
|
-
$
|
30
|
+
$base-font-weight: $base-font-weight-regular;
|
31
31
|
|
32
32
|
// Line height
|
33
|
-
$
|
33
|
+
$base-line-height: 1.5;
|
34
34
|
|
35
35
|
// Spacing
|
36
|
-
$
|
37
|
-
$
|
38
|
-
$
|
39
|
-
$
|
40
|
-
$
|
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
|
-
$
|
44
|
-
$
|
45
|
-
$
|
46
|
-
$
|
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
|
-
$
|
53
|
-
$
|
54
|
-
$
|
55
|
-
$
|
56
|
-
$
|
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
|
-
$
|
60
|
-
$
|
59
|
+
$base-cite-color: $black-at-54;
|
60
|
+
$base-cite-font-style: italic;
|
61
61
|
|
62
62
|
// Code
|
63
|
-
$
|
64
|
-
$
|
63
|
+
$base-code-font-family: $monospace;
|
64
|
+
$base-code-font-size: $base-font-size-small;
|
65
65
|
|
66
66
|
// Headers
|
67
|
-
$
|
68
|
-
$
|
69
|
-
$
|
70
|
-
$
|
71
|
-
$
|
72
|
-
$
|
73
|
-
|
74
|
-
$
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
$
|
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
|
-
$
|
84
|
-
$
|
83
|
+
$base-hr-border: 1px solid $black-12;
|
84
|
+
$base-hr-margin: $base-spacing 0;
|
85
85
|
|
86
86
|
// Hyperlink
|
87
|
-
$
|
88
|
-
$
|
89
|
-
$
|
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
|
-
$
|
92
|
+
$base-paragraph-margin: 0 0 $base-spacing-half;
|
93
93
|
|
94
94
|
|
95
95
|
// BUTTONS
|
96
96
|
// =======
|
97
|
-
$
|
98
|
-
$
|
99
|
-
$
|
100
|
-
$
|
101
|
-
$
|
102
|
-
$
|
103
|
-
|
104
|
-
$button-pri-background-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: $
|
107
|
+
$button-pri-font-weight: $base-font-weight-bold;
|
108
108
|
|
109
|
-
$button-sec-background-color: $
|
109
|
+
$button-sec-background-color: $black-26;
|
110
110
|
$button-sec-background-color-hover: shade($button-sec-background-color, 20);
|
111
|
-
$button-sec-color: $
|
112
|
-
$button-sec-font-weight: $
|
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
|
-
$
|
119
|
-
$
|
118
|
+
$base-form-font-family: $base-font-family;
|
119
|
+
$base-form-font-size: $base-font-size;
|
120
120
|
|
121
121
|
// Fieldset
|
122
|
-
$
|
123
|
-
$
|
124
|
-
$
|
125
|
-
$
|
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
|
-
$
|
128
|
-
$
|
129
|
-
$
|
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
|
-
$
|
132
|
+
$base-form-button-inputs: list-attributes($base-button-inputs-list);
|
133
133
|
|
134
134
|
// Form choice input (checkbox & radio)
|
135
|
-
$
|
135
|
+
$base-form-choice-input-margin: 0 $base-spacing-third 0 0;
|
136
136
|
|
137
137
|
// Form file input
|
138
|
-
$
|
138
|
+
$base-form-file-input-padding: 0 0 $base-spacing-half;
|
139
139
|
|
140
140
|
// Form select
|
141
|
-
$
|
141
|
+
$base-form-select-margin: 0 0 $base-spacing-half;
|
142
142
|
|
143
143
|
// Form text input
|
144
|
-
$
|
145
|
-
$
|
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
|
-
$
|
148
|
-
$
|
149
|
-
$
|
150
|
-
$
|
151
|
-
$
|
152
|
-
$
|
153
|
-
$
|
154
|
-
$
|
155
|
-
$
|
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
|
-
$
|
157
|
+
$base-form-text-input-placeholder-color: $black-at-26;
|
158
158
|
|
159
159
|
// IMAGES
|
160
160
|
// ======
|
161
|
-
$
|
161
|
+
$base-image-margin: 0;
|
162
162
|
|
163
163
|
// LIST
|
164
164
|
// ====
|
165
165
|
|
166
166
|
// Ordered & Unordered List
|
167
|
-
$
|
168
|
-
$
|
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
|
-
$
|
171
|
+
$base-dl-margin-bottom: $base-spacing-half;
|
172
172
|
|
173
|
-
$
|
174
|
-
$
|
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
|
-
$
|
180
|
+
$base-table-margin: $base-spacing-half 0;
|
181
181
|
|
182
182
|
// Table header
|
183
|
-
$
|
184
|
-
$
|
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
|
-
$
|
188
|
-
$
|
187
|
+
$base-td-border-bottom: 1px solid shade($base-border-color, 15);
|
188
|
+
$base-td-padding: $base-spacing-half $base-spacing-fourth;
|
File without changes
|
File without changes
|
File without changes
|
data/lib/crossbar/generator.rb
CHANGED
data/lib/crossbar/version.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
@import 'crossbar/base/all';
|
2
|
-
@import 'crossbar/layout/all';
|
3
|
-
@import 'crossbar/
|
4
|
-
@import 'crossbar/
|
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.
|
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-
|
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/
|
102
|
-
- app/assets/stylesheets/base/
|
103
|
-
- app/assets/stylesheets/base/
|
104
|
-
- app/assets/stylesheets/base/
|
105
|
-
- app/assets/stylesheets/base/
|
106
|
-
- app/assets/stylesheets/base/
|
107
|
-
- app/assets/stylesheets/base/
|
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/
|
118
|
-
- app/assets/stylesheets/
|
119
|
-
- app/assets/stylesheets/
|
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
|
-
}
|