bones-rails 0.0.2 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +29 -7
- data/app/assets/stylesheets/bones.scss +65 -0
- data/app/assets/stylesheets/bones/config/bones_config.scss +262 -0
- data/app/assets/stylesheets/bones/helpers/_background.scss +138 -0
- data/app/assets/stylesheets/bones/helpers/_border.scss +138 -0
- data/app/assets/stylesheets/bones/helpers/_color.scss +138 -0
- data/app/assets/stylesheets/bones/helpers/_margin.scss +82 -0
- data/app/assets/stylesheets/bones/helpers/_padding.scss +82 -0
- data/app/assets/stylesheets/bones/helpers/_positioning.scss +24 -0
- data/app/assets/stylesheets/bones/helpers/_size.scss +34 -0
- data/app/assets/stylesheets/bones/mixins/_buttons.scss +19 -0
- data/app/assets/stylesheets/bones/mixins/_forms.scss +15 -0
- data/app/assets/stylesheets/bones/mixins/_globals.scss +15 -0
- data/app/assets/stylesheets/bones/mixins/_grid.scss +4 -0
- data/app/assets/stylesheets/bones/mixins/_nav.scss +41 -0
- data/app/assets/stylesheets/bones/mixins/_typography.scss +15 -0
- data/app/assets/stylesheets/bones/partials/_buttons.scss +86 -0
- data/app/assets/stylesheets/bones/partials/_code.scss +99 -0
- data/app/assets/stylesheets/bones/partials/_components.scss +22 -0
- data/app/assets/stylesheets/bones/partials/_forms.scss +49 -0
- data/app/assets/stylesheets/bones/partials/_globals.scss +27 -0
- data/app/assets/stylesheets/bones/partials/_grid.scss +112 -0
- data/app/assets/stylesheets/bones/partials/_images.scss +52 -0
- data/app/assets/stylesheets/bones/partials/_nav.scss +111 -0
- data/app/assets/stylesheets/bones/partials/_tables.scss +19 -0
- data/app/assets/stylesheets/bones/partials/_typography.scss +174 -0
- data/app/assets/stylesheets/bones/variables/_buttons.scss +16 -0
- data/app/assets/stylesheets/bones/variables/_code.scss +15 -0
- data/app/assets/stylesheets/bones/variables/_colors.scss +122 -0
- data/app/assets/stylesheets/bones/variables/_forms.scss +12 -0
- data/app/assets/stylesheets/bones/variables/_globals.scss +12 -0
- data/app/assets/stylesheets/bones/variables/_grid.scss +8 -0
- data/app/assets/stylesheets/bones/variables/_helpers.scss +9 -0
- data/app/assets/stylesheets/bones/variables/_images.scss +13 -0
- data/app/assets/stylesheets/bones/variables/_nav.scss +40 -0
- data/app/assets/stylesheets/bones/variables/_tables.scss +7 -0
- data/app/assets/stylesheets/bones/variables/_typography.scss +61 -0
- data/app/assets/stylesheets/bones/vendor/_normalize.scss +406 -0
- data/bones-rails.gemspec +11 -10
- data/lib/bones/generators/install_generator.rb +18 -0
- data/lib/bones/rails.rb +2 -3
- data/lib/bones/rails/version.rb +1 -3
- metadata +67 -8
- checksums.yaml +0 -15
- data/app/assets/stylesheets/bones.css +0 -1
@@ -0,0 +1,34 @@
|
|
1
|
+
// width
|
2
|
+
.full-width {
|
3
|
+
width: 100%;
|
4
|
+
}
|
5
|
+
.width-100 {
|
6
|
+
width: 100px;
|
7
|
+
}
|
8
|
+
.width-200 {
|
9
|
+
width: 200px;
|
10
|
+
}
|
11
|
+
.width-300 {
|
12
|
+
width: 300px;
|
13
|
+
}
|
14
|
+
.width-400 {
|
15
|
+
width: 400px;
|
16
|
+
}
|
17
|
+
.width-500 {
|
18
|
+
width: 500px;
|
19
|
+
}
|
20
|
+
.width-600 {
|
21
|
+
width: 600px;
|
22
|
+
}
|
23
|
+
.width-700 {
|
24
|
+
width: 700px;
|
25
|
+
}
|
26
|
+
.width-800 {
|
27
|
+
width: 800px;
|
28
|
+
}
|
29
|
+
.width-900 {
|
30
|
+
width: 900px;
|
31
|
+
}
|
32
|
+
.width-1000 {
|
33
|
+
width: 1000px;
|
34
|
+
}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
@mixin button($color: $accent-light, $background-color: $primary, $hover-background-color: $primary-dark, $active-background-color: $primary-darker) {
|
2
|
+
color: $color;
|
3
|
+
background-color: $background-color;
|
4
|
+
display: inline-block;
|
5
|
+
border: $button-border;
|
6
|
+
padding: $button-padding;
|
7
|
+
margin: $button-margin;
|
8
|
+
font-size: $button-font-size;
|
9
|
+
line-height: $button-font-size;
|
10
|
+
&:hover {
|
11
|
+
background-color: $hover-background-color;
|
12
|
+
cursor: pointer;
|
13
|
+
}
|
14
|
+
&:active {
|
15
|
+
background-color: $active-background-color;
|
16
|
+
outline: none;
|
17
|
+
}
|
18
|
+
}
|
19
|
+
|
@@ -0,0 +1,15 @@
|
|
1
|
+
@mixin form-global() {
|
2
|
+
display: block;
|
3
|
+
margin: $form-margin;
|
4
|
+
width: $form-width;
|
5
|
+
box-sizing: $form-box-sizing;
|
6
|
+
border: $form-border;
|
7
|
+
&:focus {
|
8
|
+
outline: $form-focus-outline;
|
9
|
+
border: $form-focus-border;
|
10
|
+
}
|
11
|
+
}
|
12
|
+
|
13
|
+
@mixin form-input() {
|
14
|
+
padding: $form-input-padding;
|
15
|
+
}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
@mixin clearfix() {
|
2
|
+
display: inline-block;
|
3
|
+
&:after {
|
4
|
+
content: ".";
|
5
|
+
display: block;
|
6
|
+
clear: both;
|
7
|
+
visibility: hidden;
|
8
|
+
line-height: 0;
|
9
|
+
height: 0;
|
10
|
+
}
|
11
|
+
}
|
12
|
+
|
13
|
+
@mixin border($color: $accent-light-dark, $weight: 1px, $style: solid) {
|
14
|
+
border: $weight $style $color;
|
15
|
+
}
|
@@ -0,0 +1,41 @@
|
|
1
|
+
@mixin nav-core() {
|
2
|
+
list-style: none;
|
3
|
+
margin: 0;
|
4
|
+
padding: 0;
|
5
|
+
}
|
6
|
+
|
7
|
+
@mixin horizontal-list-core() {
|
8
|
+
@include nav-core();
|
9
|
+
li {
|
10
|
+
display: inline-block;
|
11
|
+
margin: 0;
|
12
|
+
padding: 0;
|
13
|
+
}
|
14
|
+
}
|
15
|
+
|
16
|
+
@mixin horizontal-nav-core($bg, $fg, $bg-hover, $fg-hover, $padding, $font-size) {
|
17
|
+
@include horizontal-list-core;
|
18
|
+
li {
|
19
|
+
a {
|
20
|
+
display: inline-block;
|
21
|
+
font-size: $font-size;
|
22
|
+
margin: 0;
|
23
|
+
padding: $padding;
|
24
|
+
background-color: $bg;
|
25
|
+
color: $fg;
|
26
|
+
&:hover {
|
27
|
+
text-decoration: none;
|
28
|
+
background: $bg-hover;
|
29
|
+
color: $fg-hover;
|
30
|
+
span, i {
|
31
|
+
background: $bg-hover;
|
32
|
+
color: $fg-hover;
|
33
|
+
}
|
34
|
+
}
|
35
|
+
span, i {
|
36
|
+
background-color: $bg;
|
37
|
+
color: $fg;
|
38
|
+
}
|
39
|
+
}
|
40
|
+
}
|
41
|
+
}
|
@@ -0,0 +1,86 @@
|
|
1
|
+
// default buttons
|
2
|
+
button {
|
3
|
+
@include button($button-color, $button-background-color, $button-hover-background-color, $button-active-background-color);
|
4
|
+
}
|
5
|
+
|
6
|
+
a.button, .button {
|
7
|
+
@include button($button-color, $button-background-color, $button-hover-background-color, $button-active-background-color);
|
8
|
+
text-decoration: none;
|
9
|
+
&:hover {
|
10
|
+
text-decoration: none;
|
11
|
+
}
|
12
|
+
}
|
13
|
+
|
14
|
+
input[type=submit], form > input[type=submit] {
|
15
|
+
@include button($button-color, $button-background-color, $button-hover-background-color, $button-active-background-color);
|
16
|
+
}
|
17
|
+
|
18
|
+
// sizes
|
19
|
+
button.huge, a.button.huge {
|
20
|
+
font-size: $button-huge-font-size;
|
21
|
+
}
|
22
|
+
|
23
|
+
button.large, a.button.large {
|
24
|
+
font-size: $button-large-font-size;
|
25
|
+
}
|
26
|
+
|
27
|
+
button.small, a.button.small {
|
28
|
+
font-size: $button-small-font-size;
|
29
|
+
}
|
30
|
+
|
31
|
+
// colors
|
32
|
+
button.primary, a.button.primary {
|
33
|
+
@include button($accent-light, $primary, $primary-dark, $primary-darker);
|
34
|
+
}
|
35
|
+
|
36
|
+
button.accent-1, a.button.accent-1 {
|
37
|
+
@include button($accent-light, $accent-1, $accent-1-dark, $accent-1-darker);
|
38
|
+
}
|
39
|
+
|
40
|
+
button.accent-2, a.button.accent-2 {
|
41
|
+
@include button($accent-light, $accent-2, $accent-2-dark, $accent-2-darker);
|
42
|
+
}
|
43
|
+
|
44
|
+
button.dark, a.button.dark {
|
45
|
+
@include button($accent-light, $accent-dark, $accent-dark-light, $accent-dark-lightest);
|
46
|
+
}
|
47
|
+
|
48
|
+
button.light, a.button.light {
|
49
|
+
@include button($accent-dark, $accent-light-dark, $accent-light-darker, $accent-light-darkest);
|
50
|
+
}
|
51
|
+
|
52
|
+
button.success, a.button.success {
|
53
|
+
@include button($accent-light, $success, $success-dark, $success-darker);
|
54
|
+
}
|
55
|
+
|
56
|
+
button.notice, a.button.notice {
|
57
|
+
@include button($accent-light, $warning, $warning-dark, $warning-darker);
|
58
|
+
}
|
59
|
+
|
60
|
+
button.alert, a.button.alert {
|
61
|
+
@include button($accent-light, $danger, $danger-dark, $danger-darker);
|
62
|
+
}
|
63
|
+
|
64
|
+
// block
|
65
|
+
button.block, a.button.block, input[type=submit].block, form > input[type=submit].block {
|
66
|
+
@include button($button-color, $button-background-color, $button-hover-background-color, $button-active-background-color);
|
67
|
+
display: block;
|
68
|
+
width: 100%;
|
69
|
+
}
|
70
|
+
|
71
|
+
// disabled
|
72
|
+
button, input[type=submit], form > input[type=submit] {
|
73
|
+
&:disabled {
|
74
|
+
@include button($accent-dark-lightest, $accent-dark-lighter, $accent-dark-lighter, $accent-dark-lighter);
|
75
|
+
&:hover {
|
76
|
+
cursor: default;
|
77
|
+
}
|
78
|
+
}
|
79
|
+
}
|
80
|
+
|
81
|
+
a.button.disabled, .button.disabled {
|
82
|
+
@include button($accent-dark-lightest, $accent-dark-lighter, $accent-dark-lighter, $accent-dark-lighter);
|
83
|
+
&:hover {
|
84
|
+
cursor: default;
|
85
|
+
}
|
86
|
+
}
|
@@ -0,0 +1,99 @@
|
|
1
|
+
code {
|
2
|
+
font-family: $code-font-family;
|
3
|
+
color: $code-color;
|
4
|
+
font-size: $code-font-size;
|
5
|
+
background: $code-background;
|
6
|
+
padding: $code-padding;
|
7
|
+
@include border($code-border)
|
8
|
+
}
|
9
|
+
|
10
|
+
pre {
|
11
|
+
margin: $code-block-margin;
|
12
|
+
padding: $code-block-padding;
|
13
|
+
font-family: $code-font-family;
|
14
|
+
background: $code-block-background;
|
15
|
+
color: $code-block-color;
|
16
|
+
@include border($code-block-border);
|
17
|
+
font-size: $code-block-font-size;
|
18
|
+
line-height: $code-block-line-height;
|
19
|
+
display: block;
|
20
|
+
white-space: pre;
|
21
|
+
overflow: auto;
|
22
|
+
|
23
|
+
code {
|
24
|
+
color: $code-block-color;
|
25
|
+
background: transparent;
|
26
|
+
padding: 0;
|
27
|
+
border: none;
|
28
|
+
}
|
29
|
+
|
30
|
+
span {
|
31
|
+
font-family: $code-block-font-family;
|
32
|
+
font-size: $code-block-font-size;
|
33
|
+
}
|
34
|
+
}
|
35
|
+
|
36
|
+
// syntax highlighting (GitHub theme)
|
37
|
+
.hll { background-color: #f8f8f8; border: 1px solid #ccc; padding: 6px 10px; border-radius: 3px; }
|
38
|
+
.c { color: #999988; font-style: italic; }
|
39
|
+
.err { color: #a61717; background-color: #e3d2d2; }
|
40
|
+
.k { font-weight: bold; }
|
41
|
+
.o { font-weight: bold; }
|
42
|
+
.cm { color: #999988; font-style: italic; }
|
43
|
+
.cp { color: #999999; font-weight: bold; }
|
44
|
+
.c1 { color: #999988; font-style: italic; }
|
45
|
+
.cs { color: #999999; font-weight: bold; font-style: italic; }
|
46
|
+
.gd { color: #000000; background-color: #ffdddd; }
|
47
|
+
.gd .x { color: #000000; background-color: #ffaaaa; }
|
48
|
+
.ge { font-style: italic; }
|
49
|
+
.gr { color: #aa0000; }
|
50
|
+
.gh { color: #999999; }
|
51
|
+
.gi { color: #000000; background-color: #ddffdd; }
|
52
|
+
.gi .x { color: #000000; background-color: #aaffaa; }
|
53
|
+
.go { color: #888888; }
|
54
|
+
.gp { color: #555555; }
|
55
|
+
.gs { font-weight: bold; }
|
56
|
+
.gu { color: #800080; font-weight: bold; }
|
57
|
+
.gt { color: #aa0000; }
|
58
|
+
.kc { font-weight: bold; }
|
59
|
+
.kd { font-weight: bold; }
|
60
|
+
.kn { font-weight: bold; }
|
61
|
+
.kp { font-weight: bold; }
|
62
|
+
.kr { font-weight: bold; }
|
63
|
+
.kt { color: #445588; font-weight: bold; }
|
64
|
+
.m { color: #009999; }
|
65
|
+
.s { color: #dd1144; }
|
66
|
+
.n { color: #333333; }
|
67
|
+
.na { color: teal; }
|
68
|
+
.nb { color: #0086b3; }
|
69
|
+
.nc { color: #445588; font-weight: bold; }
|
70
|
+
.no { color: teal; }
|
71
|
+
.ni { color: purple; }
|
72
|
+
.ne { color: #990000; font-weight: bold; }
|
73
|
+
.nf { color: #990000; font-weight: bold; }
|
74
|
+
.nn { color: #555555; }
|
75
|
+
.nt { color: navy; }
|
76
|
+
.nv { color: teal; }
|
77
|
+
.ow { font-weight: bold; }
|
78
|
+
.w { color: #bbbbbb; }
|
79
|
+
.mf { color: #009999; }
|
80
|
+
.mh { color: #009999; }
|
81
|
+
.mi { color: #009999; }
|
82
|
+
.mo { color: #009999; }
|
83
|
+
.sb { color: #dd1144; }
|
84
|
+
.sc { color: #dd1144; }
|
85
|
+
.sd { color: #dd1144; }
|
86
|
+
.s2 { color: #dd1144; }
|
87
|
+
.se { color: #dd1144; }
|
88
|
+
.sh { color: #dd1144; }
|
89
|
+
.si { color: #dd1144; }
|
90
|
+
.sx { color: #dd1144; }
|
91
|
+
.sr { color: #009926; }
|
92
|
+
.s1 { color: #dd1144; }
|
93
|
+
.ss { color: #990073; }
|
94
|
+
.bp { color: #999999; }
|
95
|
+
.vc { color: teal; }
|
96
|
+
.vg { color: teal; }
|
97
|
+
.vi { color: teal; }
|
98
|
+
.il { color: #009999; }
|
99
|
+
.gc { color: #999; background-color: #EAF2F5; }
|
@@ -0,0 +1,22 @@
|
|
1
|
+
@mixin notification($bg) {
|
2
|
+
background: $bg;
|
3
|
+
padding: 0.5em 1em;
|
4
|
+
width: 100%;
|
5
|
+
color: $accent-light;
|
6
|
+
}
|
7
|
+
|
8
|
+
.alert {
|
9
|
+
@include notification($danger);
|
10
|
+
}
|
11
|
+
.notice {
|
12
|
+
@include notification($primary);
|
13
|
+
}
|
14
|
+
.danger {
|
15
|
+
@include notification($danger);
|
16
|
+
}
|
17
|
+
.warning {
|
18
|
+
@include notification($warning);
|
19
|
+
}
|
20
|
+
.success {
|
21
|
+
@include notification($success);
|
22
|
+
}
|
@@ -0,0 +1,49 @@
|
|
1
|
+
form {
|
2
|
+
input[type=text] {
|
3
|
+
@include form-global();
|
4
|
+
@include form-input();
|
5
|
+
}
|
6
|
+
input[type=email] {
|
7
|
+
@include form-global();
|
8
|
+
@include form-input();
|
9
|
+
}
|
10
|
+
input[type=password] {
|
11
|
+
@include form-global();
|
12
|
+
@include form-input();
|
13
|
+
}
|
14
|
+
input[type=search] {
|
15
|
+
@include form-global();
|
16
|
+
@include form-input();
|
17
|
+
}
|
18
|
+
textarea {
|
19
|
+
@include form-global();
|
20
|
+
@include form-input();
|
21
|
+
height: 350px;
|
22
|
+
}
|
23
|
+
select {
|
24
|
+
@include form-global();
|
25
|
+
}
|
26
|
+
input[type=radio], input[type=checkbox] {
|
27
|
+
@include form-global();
|
28
|
+
display: inline;
|
29
|
+
width: auto;
|
30
|
+
margin: $form-radio-margin;
|
31
|
+
}
|
32
|
+
label {
|
33
|
+
display: block;
|
34
|
+
}
|
35
|
+
label.inline {
|
36
|
+
display: inline;
|
37
|
+
}
|
38
|
+
label.boolean {
|
39
|
+
display: inline;
|
40
|
+
margin-left: 5px;
|
41
|
+
}
|
42
|
+
fieldset {
|
43
|
+
border: $form-fieldset-border;
|
44
|
+
legend {
|
45
|
+
font-weight: $form-fieldset-legend-font-weight;
|
46
|
+
padding: $form-fieldset-legend-padding;
|
47
|
+
}
|
48
|
+
}
|
49
|
+
}
|
@@ -0,0 +1,27 @@
|
|
1
|
+
* {
|
2
|
+
font-family: $default-font-family;
|
3
|
+
font-size: $default-font-size;
|
4
|
+
font-weight: $default-font-weight;
|
5
|
+
color: $default-color;
|
6
|
+
line-height: $default-line-height;
|
7
|
+
}
|
8
|
+
|
9
|
+
.container {
|
10
|
+
max-width: $container-width;
|
11
|
+
margin: auto;
|
12
|
+
padding: $container-padding;
|
13
|
+
@include clearfix;
|
14
|
+
clear: both;
|
15
|
+
display: block;
|
16
|
+
}
|
17
|
+
|
18
|
+
hr {
|
19
|
+
border: none;
|
20
|
+
background: $hr-color;
|
21
|
+
margin: $hr-margin;
|
22
|
+
height: $hr-height;
|
23
|
+
}
|
24
|
+
|
25
|
+
div {
|
26
|
+
box-sizing: border-box;
|
27
|
+
}
|