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,6 +1,8 @@
1
+ /* Standard Tables
2
+ ============================ */
1
3
  table {
2
- width: $table-width;
3
- border: $table-border;
4
+ width: $table-default-width;
5
+ border: $table-default-border;
4
6
  th, td {
5
7
  padding: $table-cell-padding;
6
8
  }
@@ -8,12 +10,12 @@ table {
8
10
  background: $table-header-background;
9
11
  th {
10
12
  color: $table-header-color;
11
- font-weight: $table-header-font-weight;
13
+ font-weight: $table-header-fontWeight;
12
14
  }
13
15
  }
14
16
  tbody tr {
15
17
  &:nth-child(even) {
16
- background: $table-cell-accent-background;
18
+ background: $table-cell-altBackground;
17
19
  }
18
20
  }
19
21
  }
@@ -0,0 +1,227 @@
1
+ /* Headings
2
+ ============================ */
3
+ @mixin heading($size) {
4
+ font-size: $size;
5
+ margin: $type-heading-margin;
6
+ color: $type-heading-color;
7
+ font-weight: $type-heading-fontWeight;
8
+ text-transform: $type-heading-textTransform;
9
+ }
10
+
11
+ h1 {
12
+ @include heading($type-h1-fontSize);
13
+ }
14
+
15
+ h2 {
16
+ @include heading($type-h2-fontSize);
17
+ }
18
+
19
+ h3 {
20
+ @include heading($type-h3-fontSize);
21
+ }
22
+
23
+ h4 {
24
+ @include heading($type-h4-fontSize);
25
+ }
26
+
27
+ h5 {
28
+ @include heading($type-h5-fontSize);
29
+ }
30
+
31
+ h6 {
32
+ @include heading($type-h6-fontSize);
33
+ }
34
+
35
+ /* Subheadings
36
+ ============================ */
37
+ @mixin subheading($size) {
38
+ font-size: $size * $type-subheading-sizeFactor;
39
+ font-weight: $type-subheading-fontWeight;
40
+ color: $type-subheading-color;
41
+ }
42
+
43
+ h1.subheading {
44
+ @include subheading($type-h1-fontSize);
45
+ }
46
+
47
+ h2.subheading {
48
+ @include subheading($type-h2-fontSize);
49
+ }
50
+
51
+ h3.subheading {
52
+ @include subheading($type-h3-fontSize);
53
+ }
54
+
55
+ h4.subheading {
56
+ @include subheading($type-h4-fontSize);
57
+ }
58
+
59
+ h5.subheading {
60
+ @include subheading($type-h5-fontSize);
61
+ }
62
+
63
+ h6.subheading {
64
+ @include subheading($type-h6-fontSize);
65
+ }
66
+
67
+ /* Block-Level Elements
68
+ ============================ */
69
+ p {
70
+ font-weight: $type-paragraph-fontWeight;
71
+ margin: $type-paragraph-margin;
72
+ line-height: $type-paragraph-lineHeight;
73
+ color: $type-paragraph-color;
74
+ }
75
+
76
+ blockquote {
77
+ padding: $type-blockquote-padding;
78
+ margin: $type-blockquote-margin;
79
+ background: $type-blockquote-background;
80
+ border-left: $type-blockquote-borderLeft;
81
+ font-size: $type-blockquote-fontSize;
82
+ code {
83
+ border: none;
84
+ background: transparent;
85
+ font-size: $type-blockquote-fontSize;
86
+ }
87
+ }
88
+
89
+ pre {
90
+ margin: $type-codeBlock-margin;
91
+ padding: $type-codeBlock-padding;
92
+ font-family: $type-codeBlock-fontFamily;
93
+ background: $type-codeBlock-background;
94
+ color: $type-codeBlock-color;
95
+ @include border($type-codeBlock-border);
96
+ font-size: $type-codeBlock-fontSize;
97
+ line-height: $type-codeBlock-lineHeight;
98
+ display: block;
99
+ white-space: pre;
100
+ overflow: auto;
101
+ code {
102
+ color: $type-codeBlock-color;
103
+ background: transparent;
104
+ padding: 0;
105
+ border: none;
106
+ }
107
+ span {
108
+ font-family: $type-codeBlock-fontFamily;
109
+ font-size: $type-codeBlock-fontSize;
110
+ }
111
+ }
112
+
113
+ /* Inline Elements
114
+ ============================ */
115
+ a {
116
+ color: $type-link-color;
117
+ @if $type-link-underline == true {
118
+ text-decoration: underline;
119
+ }
120
+ @else {
121
+ text-decoration: none;
122
+ }
123
+ &:hover {
124
+ color: $type-link-color-hover;
125
+ @if $type-link-underline-hover == true {
126
+ text-decoration: underline;
127
+ }
128
+ @else {
129
+ text-decoration: none;
130
+ }
131
+ }
132
+ }
133
+
134
+ code {
135
+ font-family: $type-code-font-family;
136
+ color: $type-code-color;
137
+ font-size: $type-code-fontSize;
138
+ background: $type-code-background;
139
+ padding: $type-code-padding;
140
+ @include border($type-code-border)
141
+ }
142
+
143
+ small {
144
+ font-size: $type-small-fontFactor;
145
+ }
146
+
147
+ big {
148
+ font-size: $type-big-fontFactor;
149
+ }
150
+
151
+ em {
152
+ font-style: italic;
153
+ }
154
+
155
+ strong {
156
+ font-weight: $type-strong-fontWeight;
157
+ }
158
+
159
+ /* Lists
160
+ ============================ */
161
+ @mixin unordered-list($list-type) {
162
+ list-style-type: $list-type;
163
+ ul, ul ul {
164
+ list-style-type: $list-type;
165
+ }
166
+ }
167
+
168
+ ul {
169
+ margin-left: $type-ul-marginLeft-1;
170
+ list-style-type: $type-ul-styleType;
171
+ ul, ul ul {
172
+ margin-left: $type-ul-marginLeft-2;
173
+ }
174
+ li {
175
+ line-height: $type-ul-lineHeight;
176
+ }
177
+ }
178
+
179
+ ol {
180
+ margin: 0;
181
+ margin-left: $type-ol-marginLeft-1;
182
+ ol, ol ol {
183
+ margin-left: $type-ol-marginLeft-2;
184
+ }
185
+ li {
186
+ line-height: $type-ol-lineHeight;
187
+ }
188
+ }
189
+
190
+ ul.disc {
191
+ @include unordered-list(disc);
192
+ }
193
+
194
+ ul.circle {
195
+ @include unordered-list(circle);
196
+ }
197
+
198
+ ul.square {
199
+ @include unordered-list(square);
200
+ }
201
+
202
+ ul.no-bullet {
203
+ @include unordered-list(none);
204
+ margin-left: $type-ul-marginLeft-1 - 20px;
205
+ ul, ul ul {
206
+ margin-left: $type-ul-marginLeft-2 - 20px;
207
+ }
208
+ }
209
+
210
+ ul.horizontal {
211
+ list-style: none;
212
+ margin: 0;
213
+ padding: 0;
214
+ li {
215
+ display: inline-block;
216
+ padding: 0 1em;
217
+ }
218
+ }
219
+
220
+ /* Horizontal Rule
221
+ ============================ */
222
+ hr {
223
+ border: none;
224
+ background: $type-hr-color;
225
+ margin: $type-hr-margin;
226
+ height: $type-hr-height;
227
+ }
@@ -0,0 +1,57 @@
1
+ /* Containers
2
+ ============================ */
3
+ @mixin container() {
4
+ clear: both;
5
+ display: block;
6
+ }
7
+
8
+ html, body {
9
+ position: absolute;
10
+ width: 100%;
11
+ height: 100%;
12
+ top: 0;
13
+ left: 0;
14
+ }
15
+
16
+ div {
17
+ box-sizing: border-box;
18
+ }
19
+
20
+ .container {
21
+ max-width: $wireframe-container-width;
22
+ margin: $wireframe-container-margin;
23
+ padding: $wireframe-container-padding;
24
+ @include container;
25
+ }
26
+
27
+ /* Content
28
+ ============================ */
29
+ .content {
30
+ width: 100%;
31
+ @include container;
32
+ }
33
+
34
+ /* Grid
35
+ ============================ */
36
+ .row {
37
+ @include clearfix;
38
+ width: 100%;
39
+ position: relative;
40
+ }
41
+
42
+ /*
43
+ * This loop enables us to adjust to any value as the base
44
+ * number of columns.
45
+ *
46
+ */
47
+ @for $i from 1 through $wireframe-grid-numberOfCols {
48
+ .column-#{$i} {
49
+ $col-width: percentage( (100 / $wireframe-grid-numberOfCols) / 100 );
50
+ width: ($col-width * $i) - (2 $wireframe-column-marginLeftRight);
51
+ display: inline-block;
52
+ float: left;
53
+ height: 100%;
54
+ margin: $wireframe-column-marginTopBottom $wireframe-column-marginLeftRight;
55
+ padding: $wireframe-column-paddingTopBottom $wireframe-column-paddingLeftRight;
56
+ }
57
+ }
@@ -0,0 +1,201 @@
1
+ .bg-1 {
2
+ background-color: $color-1 !important;
3
+ }
4
+ .bg-1-light {
5
+ background-color: $color-1-light !important;
6
+ }
7
+ .bg-1-lighter {
8
+ background-color: $color-1-lighter !important;
9
+ }
10
+ .bg-1-lightest {
11
+ background-color: $color-1-lightest !important;
12
+ }
13
+ .bg-1-dark {
14
+ background-color: $color-1-dark !important;
15
+ }
16
+ .bg-1-darker {
17
+ background-color: $color-1-darker !important;
18
+ }
19
+ .bg-1-darkest {
20
+ background-color: $color-1-darkest !important;
21
+ }
22
+
23
+ .bg-2 {
24
+ background-color: $color-2 !important;
25
+ }
26
+ .bg-2-light {
27
+ background-color: $color-2-light !important;
28
+ }
29
+ .bg-2-lighter {
30
+ background-color: $color-2-lighter !important;
31
+ }
32
+ .bg-2-lightest {
33
+ background-color: $color-2-lightest !important;
34
+ }
35
+ .bg-2-dark {
36
+ background-color: $color-2-dark !important;
37
+ }
38
+ .bg-2-darker {
39
+ background-color: $color-2-darker !important;
40
+ }
41
+ .bg-2-darkest {
42
+ background-color: $color-2-darkest !important;
43
+ }
44
+
45
+ .bg-3 {
46
+ background-color: $color-3 !important;
47
+ }
48
+ .bg-3-light {
49
+ background-color: $color-3-light !important;
50
+ }
51
+ .bg-3-lighter {
52
+ background-color: $color-3-lighter !important;
53
+ }
54
+ .bg-3-lightest {
55
+ background-color: $color-3-lightest !important;
56
+ }
57
+ .bg-3-dark {
58
+ background-color: $color-3-dark !important;
59
+ }
60
+ .bg-3-darker {
61
+ background-color: $color-3-darker !important;
62
+ }
63
+ .bg-3-darkest {
64
+ background-color: $color-3-darkest !important;
65
+ }
66
+
67
+ .bg-4 {
68
+ background-color: $color-4 !important;
69
+ }
70
+ .bg-4-light {
71
+ background-color: $color-4-light !important;
72
+ }
73
+ .bg-4-lighter {
74
+ background-color: $color-4-lighter !important;
75
+ }
76
+ .bg-4-lightest {
77
+ background-color: $color-4-lightest !important;
78
+ }
79
+ .bg-4-dark {
80
+ background-color: $color-4-dark !important;
81
+ }
82
+ .bg-4-darker {
83
+ background-color: $color-4-darker !important;
84
+ }
85
+ .bg-4-darkest {
86
+ background-color: $color-4-darkest !important;
87
+ }
88
+
89
+ .bg-5 {
90
+ background-color: $color-5 !important;
91
+ }
92
+ .bg-5-light {
93
+ background-color: $color-5-light !important;
94
+ }
95
+ .bg-5-lighter {
96
+ background-color: $color-5-lighter !important;
97
+ }
98
+ .bg-5-lightest {
99
+ background-color: $color-5-lightest !important;
100
+ }
101
+ .bg-5-dark {
102
+ background-color: $color-5-dark !important;
103
+ }
104
+ .bg-5-darker {
105
+ background-color: $color-5-darker !important;
106
+ }
107
+ .bg-5-darkest {
108
+ background-color: $color-5-darkest !important;
109
+ }
110
+
111
+ .bg-light {
112
+ background-color: $color-light !important;
113
+ }
114
+ .bg-light-dark {
115
+ background-color: $color-light-dark !important;
116
+ }
117
+ .bg-light-darker {
118
+ background-color: $color-light-darker !important;
119
+ }
120
+ .bg-light-darkest {
121
+ background-color: $color-light-darkest !important;
122
+ }
123
+
124
+ .bg-dark {
125
+ background-color: $color-dark !important;
126
+ }
127
+ .bg-dark-light {
128
+ background-color: $color-dark-light !important;
129
+ }
130
+ .bg-dark-lighter {
131
+ background-color: $color-dark-lighter !important;
132
+ }
133
+ .bg-dark-lightest {
134
+ background-color: $color-dark-lightest !important;
135
+ }
136
+
137
+ .bg-success {
138
+ background-color: $color-success !important;
139
+ }
140
+ .bg-success-light {
141
+ background-color: $color-success-light !important;
142
+ }
143
+ .bg-success-lighter {
144
+ background-color: $color-success-lighter !important;
145
+ }
146
+ .bg-success-lightest {
147
+ background-color: $color-success-lightest !important;
148
+ }
149
+ .bg-success-dark {
150
+ background-color: $color-success-dark !important;
151
+ }
152
+ .bg-success-darker {
153
+ background-color: $color-success-darker !important;
154
+ }
155
+ .bg-success-darkest {
156
+ background-color: $color-success-darkest !important;
157
+ }
158
+
159
+ .bg-warning {
160
+ background-color: $color-warning !important;
161
+ }
162
+ .bg-warning-light {
163
+ background-color: $color-warning-light !important;
164
+ }
165
+ .bg-warning-lighter {
166
+ background-color: $color-warning-lighter !important;
167
+ }
168
+ .bg-warning-lightest {
169
+ background-color: $color-warning-lightest !important;
170
+ }
171
+ .bg-warning-dark {
172
+ background-color: $color-warning-dark !important;
173
+ }
174
+ .bg-warning-darker {
175
+ background-color: $color-warning-darker !important;
176
+ }
177
+ .bg-warning-darkest {
178
+ background-color: $color-warning-darkest !important;
179
+ }
180
+
181
+ .bg-danger {
182
+ background-color: $color-danger !important;
183
+ }
184
+ .bg-danger-light {
185
+ background-color: $color-danger-light !important;
186
+ }
187
+ .bg-danger-lighter {
188
+ background-color: $color-danger-lighter !important;
189
+ }
190
+ .bg-danger-lightest {
191
+ background-color: $color-danger-lightest !important;
192
+ }
193
+ .bg-danger-dark {
194
+ background-color: $color-danger-dark !important;
195
+ }
196
+ .bg-danger-darker {
197
+ background-color: $color-danger-darker !important;
198
+ }
199
+ .bg-danger-darkest {
200
+ background-color: $color-danger-darkest !important;
201
+ }