bones-rails 0.1.0 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (68) hide show
  1. data/{LICENSE.txt → LICENSE.md} +1 -1
  2. data/app/assets/stylesheets/bones.scss +61 -59
  3. data/app/assets/stylesheets/bones/config.scss +67 -0
  4. data/app/assets/stylesheets/bones/config/__default.scss +14 -0
  5. data/app/assets/stylesheets/bones/config/_buttons.scss +21 -0
  6. data/app/assets/stylesheets/bones/config/_colors.scss +93 -0
  7. data/app/assets/stylesheets/bones/config/_components.scss +4 -0
  8. data/app/assets/stylesheets/bones/config/_forms.scss +28 -0
  9. data/app/assets/stylesheets/bones/config/_helpers.scss +31 -0
  10. data/app/assets/stylesheets/bones/config/_images.scss +23 -0
  11. data/app/assets/stylesheets/bones/config/_nav.scss +117 -0
  12. data/app/assets/stylesheets/bones/config/_tables.scss +12 -0
  13. data/app/assets/stylesheets/bones/config/_typography.scss +83 -0
  14. data/app/assets/stylesheets/bones/config/_wireframe.scss +18 -0
  15. data/app/assets/stylesheets/bones/styles/__default.scss +27 -0
  16. data/app/assets/stylesheets/bones/styles/_buttons.scss +118 -0
  17. data/app/assets/stylesheets/bones/styles/_components.scss +24 -0
  18. data/app/assets/stylesheets/bones/{partials → styles}/_forms.scss +18 -2
  19. data/app/assets/stylesheets/bones/styles/_images.scss +69 -0
  20. data/app/assets/stylesheets/bones/styles/_nav.scss +210 -0
  21. data/app/assets/stylesheets/bones/{partials → styles}/_tables.scss +6 -4
  22. data/app/assets/stylesheets/bones/styles/_typography.scss +227 -0
  23. data/app/assets/stylesheets/bones/styles/_wireframe.scss +57 -0
  24. data/app/assets/stylesheets/bones/styles/helpers/_background.scss +201 -0
  25. data/app/assets/stylesheets/bones/styles/helpers/_border.scss +201 -0
  26. data/app/assets/stylesheets/bones/styles/helpers/_color.scss +201 -0
  27. data/app/assets/stylesheets/bones/styles/helpers/_margin.scss +82 -0
  28. data/app/assets/stylesheets/bones/styles/helpers/_padding.scss +82 -0
  29. data/app/assets/stylesheets/bones/{helpers → styles/helpers}/_positioning.scss +4 -3
  30. data/app/assets/stylesheets/bones/styles/helpers/_size.scss +11 -0
  31. data/app/assets/stylesheets/bones/styles/plugins/_syntax_highlighting.scss +273 -0
  32. data/app/assets/stylesheets/bones/vendor/_normalize.scss +1 -1
  33. data/lib/bones/generators/install_generator.rb +29 -5
  34. data/lib/bones/rails/version.rb +1 -1
  35. metadata +32 -39
  36. data/app/assets/javascripts/bones.js +0 -116
  37. data/app/assets/stylesheets/bones/config/bones_config.scss +0 -262
  38. data/app/assets/stylesheets/bones/helpers/_background.scss +0 -138
  39. data/app/assets/stylesheets/bones/helpers/_border.scss +0 -138
  40. data/app/assets/stylesheets/bones/helpers/_color.scss +0 -138
  41. data/app/assets/stylesheets/bones/helpers/_margin.scss +0 -82
  42. data/app/assets/stylesheets/bones/helpers/_padding.scss +0 -82
  43. data/app/assets/stylesheets/bones/helpers/_size.scss +0 -34
  44. data/app/assets/stylesheets/bones/mixins/_buttons.scss +0 -19
  45. data/app/assets/stylesheets/bones/mixins/_forms.scss +0 -15
  46. data/app/assets/stylesheets/bones/mixins/_globals.scss +0 -15
  47. data/app/assets/stylesheets/bones/mixins/_grid.scss +0 -4
  48. data/app/assets/stylesheets/bones/mixins/_nav.scss +0 -41
  49. data/app/assets/stylesheets/bones/mixins/_typography.scss +0 -15
  50. data/app/assets/stylesheets/bones/partials/_buttons.scss +0 -86
  51. data/app/assets/stylesheets/bones/partials/_code.scss +0 -99
  52. data/app/assets/stylesheets/bones/partials/_components.scss +0 -22
  53. data/app/assets/stylesheets/bones/partials/_globals.scss +0 -27
  54. data/app/assets/stylesheets/bones/partials/_grid.scss +0 -112
  55. data/app/assets/stylesheets/bones/partials/_images.scss +0 -52
  56. data/app/assets/stylesheets/bones/partials/_nav.scss +0 -111
  57. data/app/assets/stylesheets/bones/partials/_typography.scss +0 -174
  58. data/app/assets/stylesheets/bones/variables/_buttons.scss +0 -16
  59. data/app/assets/stylesheets/bones/variables/_code.scss +0 -15
  60. data/app/assets/stylesheets/bones/variables/_colors.scss +0 -122
  61. data/app/assets/stylesheets/bones/variables/_forms.scss +0 -12
  62. data/app/assets/stylesheets/bones/variables/_globals.scss +0 -12
  63. data/app/assets/stylesheets/bones/variables/_grid.scss +0 -8
  64. data/app/assets/stylesheets/bones/variables/_helpers.scss +0 -9
  65. data/app/assets/stylesheets/bones/variables/_images.scss +0 -13
  66. data/app/assets/stylesheets/bones/variables/_nav.scss +0 -40
  67. data/app/assets/stylesheets/bones/variables/_tables.scss +0 -7
  68. data/app/assets/stylesheets/bones/variables/_typography.scss +0 -61
@@ -1,82 +0,0 @@
1
- // general
2
- .padding-small {
3
- padding: $padding-small;
4
- }
5
- .padding-medium {
6
- padding: $padding-medium;
7
- }
8
- .padding-large {
9
- padding: $padding-large;
10
- }
11
-
12
- // vertical
13
- .padding-v-small {
14
- padding-top: $padding-small;
15
- padding-bottom: $padding-small;
16
- }
17
- .padding-v-medium {
18
- padding-top: $padding-medium;
19
- padding-bottom: $padding-medium;
20
- }
21
- .padding-v-large {
22
- padding-top: $padding-large;
23
- padding-bottom: $padding-large;
24
- }
25
-
26
- // horizontal
27
- .padding-h-small {
28
- padding-right: $padding-small;
29
- padding-left: $padding-small;
30
- }
31
- .padding-h-medium {
32
- padding-right: $padding-medium;
33
- padding-left: $padding-medium;
34
- }
35
- .padding-h-large {
36
- padding-right: $padding-large;
37
- padding-left: $padding-large;
38
- }
39
-
40
- // left
41
- .padding-left-small {
42
- padding-left: $padding-small;
43
- }
44
- .padding-left-medium {
45
- padding-left: $padding-medium;
46
- }
47
- .padding-left-large {
48
- padding-left: $padding-large;
49
- }
50
-
51
- // right
52
- .padding-right-small {
53
- padding-right: $padding-small;
54
- }
55
- .padding-right-medium {
56
- padding-right: $padding-medium;
57
- }
58
- .padding-right-large {
59
- padding-right: $padding-large;
60
- }
61
-
62
- // top
63
- .padding-top-small {
64
- padding-top: $padding-small;
65
- }
66
- .padding-top-medium {
67
- padding-top: $padding-medium;
68
- }
69
- .padding-top-large {
70
- padding-top: $padding-large;
71
- }
72
-
73
- // bottom
74
- .padding-bottom-small {
75
- padding-bottom: $padding-small;
76
- }
77
- .padding-bottom-medium {
78
- padding-bottom: $padding-medium;
79
- }
80
- .padding-bottom-large {
81
- padding-bottom: $padding-large;
82
- }
@@ -1,34 +0,0 @@
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
- }
@@ -1,19 +0,0 @@
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
-
@@ -1,15 +0,0 @@
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
- }
@@ -1,15 +0,0 @@
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
- }
@@ -1,4 +0,0 @@
1
- @mixin column-width($cols) {
2
- $col-width: percentage( (100 / $grid-cols) / 100 );
3
- width: ($col-width * $cols) - (2 * $grid-col-margin) - (2 * $grid-col-padding);
4
- }
@@ -1,41 +0,0 @@
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
- }
@@ -1,15 +0,0 @@
1
- @mixin heading($size) {
2
- font-size: $size;
3
- }
4
-
5
- @mixin subheading($size) {
6
- font-size: $size * $subheading-size-factor;
7
- }
8
-
9
- @mixin unordered-list($type) {
10
- list-style-type: $type;
11
- ul, ul ul {
12
- list-style-type: $type;
13
- }
14
- }
15
-
@@ -1,86 +0,0 @@
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
- }
@@ -1,99 +0,0 @@
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; }
@@ -1,22 +0,0 @@
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
- }