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,112 @@
|
|
1
|
+
.row {
|
2
|
+
width: 100%;
|
3
|
+
float: left;
|
4
|
+
}
|
5
|
+
|
6
|
+
.column {
|
7
|
+
display: inline-block;
|
8
|
+
float: left;
|
9
|
+
margin: $grid-col-margin-top-bottom $grid-col-margin;
|
10
|
+
padding: $grid-col-padding-top-bottom $grid-col-padding;
|
11
|
+
}
|
12
|
+
|
13
|
+
.span-full {
|
14
|
+
margin: 0;
|
15
|
+
width: 100 - (2 * $grid-col-padding);
|
16
|
+
}
|
17
|
+
|
18
|
+
.span-1 {
|
19
|
+
@include column-width(1);
|
20
|
+
}
|
21
|
+
|
22
|
+
.span-2 {
|
23
|
+
@include column-width(2);
|
24
|
+
}
|
25
|
+
|
26
|
+
.span-3 {
|
27
|
+
@include column-width(3);
|
28
|
+
}
|
29
|
+
|
30
|
+
.span-4 {
|
31
|
+
@include column-width(4);
|
32
|
+
}
|
33
|
+
|
34
|
+
.span-5 {
|
35
|
+
@include column-width(5);
|
36
|
+
}
|
37
|
+
|
38
|
+
.span-6 {
|
39
|
+
@include column-width(6);
|
40
|
+
}
|
41
|
+
|
42
|
+
.span-7 {
|
43
|
+
@include column-width(7);
|
44
|
+
}
|
45
|
+
|
46
|
+
.span-8 {
|
47
|
+
@include column-width(8);
|
48
|
+
}
|
49
|
+
|
50
|
+
.span-9 {
|
51
|
+
@include column-width(9);
|
52
|
+
}
|
53
|
+
|
54
|
+
.span-10 {
|
55
|
+
@include column-width(10);
|
56
|
+
}
|
57
|
+
|
58
|
+
.span-11 {
|
59
|
+
@include column-width(11);
|
60
|
+
}
|
61
|
+
|
62
|
+
.span-12 {
|
63
|
+
@include column-width(12);
|
64
|
+
}
|
65
|
+
|
66
|
+
.span-13 {
|
67
|
+
@include column-width(13);
|
68
|
+
}
|
69
|
+
|
70
|
+
.span-14 {
|
71
|
+
@include column-width(14);
|
72
|
+
}
|
73
|
+
|
74
|
+
.span-15 {
|
75
|
+
@include column-width(15);
|
76
|
+
}
|
77
|
+
|
78
|
+
.span-16 {
|
79
|
+
@include column-width(16);
|
80
|
+
}
|
81
|
+
|
82
|
+
.span-17 {
|
83
|
+
@include column-width(17);
|
84
|
+
}
|
85
|
+
|
86
|
+
.span-18 {
|
87
|
+
@include column-width(18);
|
88
|
+
}
|
89
|
+
|
90
|
+
.span-19 {
|
91
|
+
@include column-width(19);
|
92
|
+
}
|
93
|
+
|
94
|
+
.span-20 {
|
95
|
+
@include column-width(20);
|
96
|
+
}
|
97
|
+
|
98
|
+
.span-21 {
|
99
|
+
@include column-width(21);
|
100
|
+
}
|
101
|
+
|
102
|
+
.span-22 {
|
103
|
+
@include column-width(22);
|
104
|
+
}
|
105
|
+
|
106
|
+
.span-23 {
|
107
|
+
@include column-width(23);
|
108
|
+
}
|
109
|
+
|
110
|
+
.span-24 {
|
111
|
+
@include column-width(24);
|
112
|
+
}
|
@@ -0,0 +1,52 @@
|
|
1
|
+
img {
|
2
|
+
margin: 0;
|
3
|
+
padding: 0;
|
4
|
+
height: auto;
|
5
|
+
&.thumb {
|
6
|
+
width: 150px;
|
7
|
+
}
|
8
|
+
&.medium {
|
9
|
+
width: 300px;
|
10
|
+
}
|
11
|
+
&.large {
|
12
|
+
width: 450px;
|
13
|
+
}
|
14
|
+
&.frame {
|
15
|
+
border: 0.5em solid transparent;
|
16
|
+
outline: 1px solid $accent-light-dark;
|
17
|
+
}
|
18
|
+
&.polaroid {
|
19
|
+
border: 0.75em solid transparent;
|
20
|
+
outline: 1px solid $accent-light-dark;
|
21
|
+
border-bottom-width: 2.75em;
|
22
|
+
}
|
23
|
+
&.center {
|
24
|
+
display: block;
|
25
|
+
margin-right: auto;
|
26
|
+
margin-left: auto;
|
27
|
+
}
|
28
|
+
}
|
29
|
+
|
30
|
+
div.panoramic {
|
31
|
+
width: 100%;
|
32
|
+
height: 200px;
|
33
|
+
overflow:hidden;
|
34
|
+
box-sizing: border-box;
|
35
|
+
position: relative;
|
36
|
+
img {
|
37
|
+
width: 100%;
|
38
|
+
position: absolute;
|
39
|
+
top: -40%;
|
40
|
+
}
|
41
|
+
}
|
42
|
+
|
43
|
+
div.circle {
|
44
|
+
border-radius: 50%;
|
45
|
+
overflow: hidden;
|
46
|
+
width: 150px;
|
47
|
+
height: 150px;
|
48
|
+
img {
|
49
|
+
width: 150px;
|
50
|
+
height: 150px;
|
51
|
+
}
|
52
|
+
}
|
@@ -0,0 +1,111 @@
|
|
1
|
+
nav.top, div.top-nav {
|
2
|
+
width: 100%;
|
3
|
+
background: $primary;
|
4
|
+
overflow: hidden;
|
5
|
+
ul {
|
6
|
+
@include horizontal-nav-core(
|
7
|
+
$nav-tb-background,
|
8
|
+
$nav-tb-color,
|
9
|
+
$nav-tb-background-hover,
|
10
|
+
$nav-tb-color-hover,
|
11
|
+
$nav-tb-padding,
|
12
|
+
$nav-tb-font-size
|
13
|
+
);
|
14
|
+
float: left;
|
15
|
+
&.right {
|
16
|
+
float: right;
|
17
|
+
}
|
18
|
+
}
|
19
|
+
&.secondary {
|
20
|
+
background: $primary-light;
|
21
|
+
ul > li {
|
22
|
+
a {
|
23
|
+
color: $primary;
|
24
|
+
i, span {
|
25
|
+
color: $primary;
|
26
|
+
}
|
27
|
+
&:hover, &.active {
|
28
|
+
background: $primary;
|
29
|
+
color: $accent-light;
|
30
|
+
i, span {
|
31
|
+
background: $primary;
|
32
|
+
color: $accent-light;
|
33
|
+
}
|
34
|
+
}
|
35
|
+
}
|
36
|
+
}
|
37
|
+
}
|
38
|
+
}
|
39
|
+
|
40
|
+
nav.horizontal, div.horizontal-nav {
|
41
|
+
ul {
|
42
|
+
@include horizontal-nav-core(
|
43
|
+
$nav-h-background,
|
44
|
+
$nav-h-color,
|
45
|
+
$nav-h-background-hover,
|
46
|
+
$nav-h-color-hover,
|
47
|
+
$nav-h-padding,
|
48
|
+
$nav-h-font-size
|
49
|
+
);
|
50
|
+
}
|
51
|
+
}
|
52
|
+
|
53
|
+
nav.vertical, nav {
|
54
|
+
ul {
|
55
|
+
@include nav-core();
|
56
|
+
li {
|
57
|
+
a {
|
58
|
+
display: block;
|
59
|
+
padding: $nav-v-padding;
|
60
|
+
font-size: $nav-v-font-size;
|
61
|
+
background: $nav-v-background;
|
62
|
+
color: $nav-v-color;
|
63
|
+
&:hover, &.active {
|
64
|
+
text-decoration: none;
|
65
|
+
background: $nav-v-background-hover;
|
66
|
+
color: $nav-v-color-hover;
|
67
|
+
span, i {
|
68
|
+
background: $nav-v-background-hover;
|
69
|
+
color: $nav-v-color-hover;
|
70
|
+
}
|
71
|
+
}
|
72
|
+
span, i {
|
73
|
+
margin-right: 10px;
|
74
|
+
background: $nav-v-background;
|
75
|
+
color: $nav-v-color;
|
76
|
+
}
|
77
|
+
}
|
78
|
+
}
|
79
|
+
}
|
80
|
+
}
|
81
|
+
|
82
|
+
ul.filter {
|
83
|
+
@include horizontal-nav-core(
|
84
|
+
$nav-f-background,
|
85
|
+
$nav-f-color,
|
86
|
+
$nav-f-background-hover,
|
87
|
+
$nav-f-color-hover,
|
88
|
+
$nav-f-padding,
|
89
|
+
$nav-f-font-size
|
90
|
+
);
|
91
|
+
}
|
92
|
+
|
93
|
+
ul.breadcrumb {
|
94
|
+
@include horizontal-nav-core(
|
95
|
+
$nav-b-background,
|
96
|
+
$nav-b-color,
|
97
|
+
$nav-b-background-hover,
|
98
|
+
$nav-b-color-hover,
|
99
|
+
$nav-b-padding,
|
100
|
+
$nav-b-font-size
|
101
|
+
);
|
102
|
+
li {
|
103
|
+
&:after {
|
104
|
+
content: $nav-b-separator;
|
105
|
+
color: $accent-light-darker;
|
106
|
+
}
|
107
|
+
&:last-child:after {
|
108
|
+
content: "";
|
109
|
+
}
|
110
|
+
}
|
111
|
+
}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
table {
|
2
|
+
width: $table-width;
|
3
|
+
border: $table-border;
|
4
|
+
th, td {
|
5
|
+
padding: $table-cell-padding;
|
6
|
+
}
|
7
|
+
thead tr {
|
8
|
+
background: $table-header-background;
|
9
|
+
th {
|
10
|
+
color: $table-header-color;
|
11
|
+
font-weight: $table-header-font-weight;
|
12
|
+
}
|
13
|
+
}
|
14
|
+
tbody tr {
|
15
|
+
&:nth-child(even) {
|
16
|
+
background: $table-cell-accent-background;
|
17
|
+
}
|
18
|
+
}
|
19
|
+
}
|
@@ -0,0 +1,174 @@
|
|
1
|
+
h1, h2, h3, h4, h5, h6 {
|
2
|
+
margin: $heading-margin;
|
3
|
+
color: $heading-color;
|
4
|
+
font-weight: $heading-font-weight;
|
5
|
+
@if $heading-caps == true {
|
6
|
+
text-transform: uppercase;
|
7
|
+
}
|
8
|
+
|
9
|
+
small {
|
10
|
+
font-size: $heading-small-factor;
|
11
|
+
color: $heading-small-color;
|
12
|
+
}
|
13
|
+
}
|
14
|
+
|
15
|
+
h1 {
|
16
|
+
@include heading($h1-font-size);
|
17
|
+
}
|
18
|
+
|
19
|
+
h2 {
|
20
|
+
@include heading($h2-font-size);
|
21
|
+
}
|
22
|
+
|
23
|
+
h3 {
|
24
|
+
@include heading($h3-font-size);
|
25
|
+
}
|
26
|
+
|
27
|
+
h4 {
|
28
|
+
@include heading($h4-font-size);
|
29
|
+
}
|
30
|
+
|
31
|
+
h5 {
|
32
|
+
@include heading($h5-font-size);
|
33
|
+
}
|
34
|
+
|
35
|
+
h6 {
|
36
|
+
@include heading($h6-font-size);
|
37
|
+
}
|
38
|
+
|
39
|
+
.subheading {
|
40
|
+
font-weight: $subheading-font-weight;
|
41
|
+
color: $subheading-color;
|
42
|
+
}
|
43
|
+
|
44
|
+
h1.subheading {
|
45
|
+
@include subheading($h1-font-size);
|
46
|
+
}
|
47
|
+
|
48
|
+
h2.subheading {
|
49
|
+
@include subheading($h2-font-size);
|
50
|
+
}
|
51
|
+
|
52
|
+
h3.subheading {
|
53
|
+
@include subheading($h3-font-size);
|
54
|
+
}
|
55
|
+
|
56
|
+
h4.subheading {
|
57
|
+
@include subheading($h4-font-size);
|
58
|
+
}
|
59
|
+
|
60
|
+
h5.subheading {
|
61
|
+
@include subheading($h5-font-size);
|
62
|
+
}
|
63
|
+
|
64
|
+
h6.subheading {
|
65
|
+
@include subheading($h6-font-size);
|
66
|
+
}
|
67
|
+
|
68
|
+
p {
|
69
|
+
font-weight: $paragraph-font-weight;
|
70
|
+
margin: $paragraph-margin;
|
71
|
+
line-height: $paragraph-line-height;
|
72
|
+
color: $paragraph-color;
|
73
|
+
}
|
74
|
+
|
75
|
+
blockquote {
|
76
|
+
padding: $blockquote-padding;
|
77
|
+
margin: $blockquote-margin;
|
78
|
+
background: $blockquote-background;
|
79
|
+
border-left: $blockquote-border-left;
|
80
|
+
font-size: $blockquote-font-size;
|
81
|
+
|
82
|
+
code {
|
83
|
+
border: none;
|
84
|
+
background: transparent;
|
85
|
+
font-size: $blockquote-font-size;
|
86
|
+
}
|
87
|
+
}
|
88
|
+
|
89
|
+
a {
|
90
|
+
color: $link-color;
|
91
|
+
@if $link-underline == true {
|
92
|
+
text-decoration: underline;
|
93
|
+
}
|
94
|
+
@else {
|
95
|
+
text-decoration: none;
|
96
|
+
}
|
97
|
+
|
98
|
+
&:hover {
|
99
|
+
color: $link-hover-color;
|
100
|
+
@if $link-hover-underline == true {
|
101
|
+
text-decoration: underline;
|
102
|
+
}
|
103
|
+
@else {
|
104
|
+
text-decoration: none;
|
105
|
+
}
|
106
|
+
}
|
107
|
+
}
|
108
|
+
|
109
|
+
small {
|
110
|
+
font-size: $small-font-factor;
|
111
|
+
}
|
112
|
+
|
113
|
+
big {
|
114
|
+
font-size: $big-font-factor;
|
115
|
+
}
|
116
|
+
|
117
|
+
em {
|
118
|
+
font-style: italic;
|
119
|
+
}
|
120
|
+
|
121
|
+
strong {
|
122
|
+
font-weight: $strong-font-weight;
|
123
|
+
}
|
124
|
+
|
125
|
+
ul {
|
126
|
+
margin-left: $ul-margin-left-level-1;
|
127
|
+
list-style-type: $ul-style-type;
|
128
|
+
ul, ul ul {
|
129
|
+
margin-left: $ul-margin-left-level-2;
|
130
|
+
}
|
131
|
+
li {
|
132
|
+
line-height: $ul-line-height;
|
133
|
+
}
|
134
|
+
}
|
135
|
+
|
136
|
+
ol {
|
137
|
+
margin: $ol-margin-left-level-1;
|
138
|
+
ol, ol ol {
|
139
|
+
margin: $ol-margin-left-level-2;
|
140
|
+
}
|
141
|
+
li {
|
142
|
+
line-height: $ol-line-height;
|
143
|
+
}
|
144
|
+
}
|
145
|
+
|
146
|
+
ul.disc {
|
147
|
+
@include unordered-list(disc);
|
148
|
+
}
|
149
|
+
|
150
|
+
ul.circle {
|
151
|
+
@include unordered-list(circle);
|
152
|
+
}
|
153
|
+
|
154
|
+
ul.square {
|
155
|
+
@include unordered-list(square);
|
156
|
+
}
|
157
|
+
|
158
|
+
ul.no-bullet {
|
159
|
+
@include unordered-list(none);
|
160
|
+
margin-left: $ul-margin-left-level-1 - 20px;
|
161
|
+
ul, ul ul {
|
162
|
+
margin-left: $ul-margin-left-level-2 - 20px;
|
163
|
+
}
|
164
|
+
}
|
165
|
+
|
166
|
+
ul.horizontal {
|
167
|
+
list-style: none;
|
168
|
+
margin: 0;
|
169
|
+
padding: 0;
|
170
|
+
li {
|
171
|
+
display: inline-block;
|
172
|
+
padding: $ul-h-padding;
|
173
|
+
}
|
174
|
+
}
|