skyblue_rails 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (71) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +22 -0
  3. data/assets/fonts/pe-icon/Pe-icon-7-stroke.eot +0 -0
  4. data/assets/fonts/pe-icon/Pe-icon-7-stroke.svg +212 -0
  5. data/assets/fonts/pe-icon/Pe-icon-7-stroke.ttf +0 -0
  6. data/assets/fonts/pe-icon/Pe-icon-7-stroke.woff +0 -0
  7. data/assets/images/select-webkit-backup.png +0 -0
  8. data/assets/images/select-webkit.png +0 -0
  9. data/assets/javascripts/skyblue/ie.js +1 -0
  10. data/assets/javascripts/skyblue/ie/html5shiv.js +322 -0
  11. data/assets/javascripts/skyblue/ie/respond.src.js +237 -0
  12. data/assets/stylesheets/skyblue.scss +38 -0
  13. data/assets/stylesheets/skyblue/_buttons.scss +136 -0
  14. data/assets/stylesheets/skyblue/_forms.scss +221 -0
  15. data/assets/stylesheets/skyblue/_grid.scss +78 -0
  16. data/assets/stylesheets/skyblue/_helpers.scss +72 -0
  17. data/assets/stylesheets/skyblue/_icons.scss +633 -0
  18. data/assets/stylesheets/skyblue/_main.scss +15 -0
  19. data/assets/stylesheets/skyblue/_mixins.scss +46 -0
  20. data/assets/stylesheets/skyblue/_reset.scss +77 -0
  21. data/assets/stylesheets/skyblue/_tables.scss +174 -0
  22. data/assets/stylesheets/skyblue/_typography.scss +162 -0
  23. data/assets/stylesheets/skyblue/_variables.scss +100 -0
  24. data/lib/skyblue/rails.rb +20 -0
  25. data/lib/skyblue/rails/railtie.rb +13 -0
  26. data/lib/skyblue/rails/version.rb +5 -0
  27. data/lib/skyblue_rails.rb +2 -0
  28. data/readme.md +58 -0
  29. data/spec/dummy/README.rdoc +28 -0
  30. data/spec/dummy/Rakefile +6 -0
  31. data/spec/dummy/app/assets/javascripts/application.js +13 -0
  32. data/spec/dummy/app/assets/stylesheets/application.scss +15 -0
  33. data/spec/dummy/app/controllers/application_controller.rb +7 -0
  34. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  35. data/spec/dummy/app/views/application/icons_test.html.erb +5 -0
  36. data/spec/dummy/app/views/layouts/application.html.erb +14 -0
  37. data/spec/dummy/bin/bundle +3 -0
  38. data/spec/dummy/bin/rails +4 -0
  39. data/spec/dummy/bin/rake +4 -0
  40. data/spec/dummy/bin/setup +29 -0
  41. data/spec/dummy/config.ru +4 -0
  42. data/spec/dummy/config/application.rb +26 -0
  43. data/spec/dummy/config/boot.rb +5 -0
  44. data/spec/dummy/config/database.yml +25 -0
  45. data/spec/dummy/config/environment.rb +5 -0
  46. data/spec/dummy/config/environments/development.rb +41 -0
  47. data/spec/dummy/config/environments/production.rb +79 -0
  48. data/spec/dummy/config/environments/test.rb +42 -0
  49. data/spec/dummy/config/initializers/assets.rb +11 -0
  50. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  51. data/spec/dummy/config/initializers/cookies_serializer.rb +3 -0
  52. data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  53. data/spec/dummy/config/initializers/inflections.rb +16 -0
  54. data/spec/dummy/config/initializers/mime_types.rb +4 -0
  55. data/spec/dummy/config/initializers/session_store.rb +3 -0
  56. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  57. data/spec/dummy/config/locales/en.yml +23 -0
  58. data/spec/dummy/config/routes.rb +3 -0
  59. data/spec/dummy/config/secrets.yml +22 -0
  60. data/spec/dummy/db/development.sqlite3 +0 -0
  61. data/spec/dummy/db/schema.rb +16 -0
  62. data/spec/dummy/db/test.sqlite3 +0 -0
  63. data/spec/dummy/log/test.log +49 -0
  64. data/spec/dummy/public/404.html +67 -0
  65. data/spec/dummy/public/422.html +67 -0
  66. data/spec/dummy/public/500.html +66 -0
  67. data/spec/dummy/public/favicon.ico +0 -0
  68. data/spec/skyblue/rails/railtie_spec.rb +43 -0
  69. data/spec/skyblue/rails_spec.rb +17 -0
  70. data/spec/spec_helper.rb +16 -0
  71. metadata +241 -0
@@ -0,0 +1,15 @@
1
+ body{
2
+ font-family: $font-family;
3
+ font-size: $font-size;
4
+ font-weight: $font-weight;
5
+ line-height: $line-height;
6
+ background-color: $body-background;
7
+ color: $text-color;
8
+
9
+ }
10
+
11
+ img{ max-width: 100%; }
12
+
13
+ .noscroll {
14
+ overflow: hidden;
15
+ }
@@ -0,0 +1,46 @@
1
+ // Box sizing
2
+ @mixin box-sizing($boxmodel) {
3
+ -webkit-box-sizing: $boxmodel;
4
+ -moz-box-sizing: $boxmodel;
5
+ box-sizing: $boxmodel;
6
+ }
7
+
8
+ // Clearfix
9
+ @mixin clearfix{
10
+ &:before, &:after { content: " "; display: table; line-height: 0; }
11
+ &:after { clear: both; }
12
+ }
13
+
14
+
15
+ // Placeholder
16
+ @mixin placeholder($color){
17
+ // Web-kit
18
+ ::-webkit-input-placeholder {
19
+ color: $color;
20
+ }
21
+ // FF4-18
22
+ :-moz-placeholder {
23
+ color: $color;
24
+ }
25
+ // FF19+
26
+ ::-moz-placeholder {
27
+ color: $color;
28
+ }
29
+ // IE10
30
+ :-ms-input-placeholder {
31
+ color: $color;
32
+ }
33
+ // Fix for input type search
34
+ [type="search"] {
35
+ -moz-appearance: textfield;
36
+ -webkit-appearance: textfield;
37
+ appearance: textfield;
38
+ }
39
+ }
40
+
41
+ @mixin select(){
42
+ background-color: #fff;
43
+ background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAKCAYAAACqnE5VAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3QYeBwwgz2YJHAAAASVJREFUOMud0jFqwzAUBuD/6QLqDXqE+Abx4MGDIR5CCBpEsUFzjtTRhAwqeMiQQUdIj9AbJPt7Vhe1OKShdv5FvCf0PngIAOCcWznnNCbGOaedcyvMiGrbdikiXkRC0zT/Yk3TaBEJIuLbtl1OhpjZMzOYORORYK19iFlrtYgEZs7SGz8ZEpFdeoQ0IBhj7jBjjGbmMQIR2U2FCAC22+0qxvgO4CX1zzHGfL/fXwFgs9loIgoAsnR/IaK3rus+ZkEAsF6vFzHGMMIuwzDkAKCUuukTUX44HD7nfAYaF3VdL4ZhuBmazt9aKZV772chdxAAVFX1GmP0ozX95ExEdd/3X3gi9FezLEud1piNkPx4PF7xZOjRRVEUOq0RSqn8dDo9jQDAN6OnnUe+41wgAAAAAElFTkSuQmCC);
44
+ background-repeat: no-repeat;
45
+ background-position: right center;
46
+ }
@@ -0,0 +1,77 @@
1
+ /* http://meyerweb.com/eric/tools/css/reset/
2
+ v2.0 | 20110126
3
+ License: none (public domain)
4
+ */
5
+
6
+ html, body, div, col-md-, applet, object, iframe,
7
+ h1, h2, h3, h4, h5, h6, p, blockquote, pre,
8
+ a, abbr, acronym, address, big, cite, code,
9
+ del, dfn, em, img, ins, kbd, q, s, samp,
10
+ small, strike, strong, sub, sup, tt, var,
11
+ b, u, i, center,
12
+ dl, dt, dd, ol, ul, li,
13
+ fieldset, form, label, legend,
14
+ table, caption, tbody, tfoot, thead, tr, th, td,
15
+ article, aside, canvas, details, embed,
16
+ figure, figcaption, footer, header, hgroup,
17
+ menu, nav, output, ruby, section, summary,
18
+ time, mark, audio, video {
19
+ margin: 0;
20
+ padding: 0;
21
+ border: 0;
22
+ font-size: 100%;
23
+ font: inherit;
24
+ vertical-align: baseline;
25
+ }
26
+ /* HTML5 display-role reset for older browsers */
27
+ article, aside, details, figcaption, figure,
28
+ footer, header, hgroup, menu, nav, section {
29
+ display: block;
30
+ }
31
+ body {
32
+ line-height: 1;
33
+ }
34
+ ol, ul {
35
+ list-style: none;
36
+ }
37
+ blockquote, q {
38
+ quotes: none;
39
+ }
40
+ blockquote:before, blockquote:after,
41
+ q:before, q:after {
42
+ content: '';
43
+ content: none;
44
+ }
45
+ table {
46
+ border-collapse: collapse;
47
+ border-spacing: 0;
48
+ }
49
+
50
+
51
+
52
+
53
+ html {
54
+ // Touch the Mobile Magic
55
+ -webkit-overflow-scrolling: touch;
56
+ -webkit-tap-highlight-color: rgba(0,0,0,0);
57
+
58
+ // -webkit-font-smoothing: antialiased;
59
+ // font-smoothing: antialiased;
60
+ }
61
+
62
+ // Disable i-o-s/Win-mobile font size changes
63
+ @media screen and (max-device-width: 480px) {
64
+ html {
65
+ -webkit-text-size-adjust: 100%;
66
+ -ms-text-size-adjust: 100%;
67
+ }
68
+ }
69
+
70
+ *{
71
+ @include box-sizing(border-box);
72
+ // Prevents transition glithces in chrome
73
+ // http://css-tricks.com/almanac/properties/b/backface-visibility/
74
+ }
75
+
76
+ // ReCaptcha Iframe FIX
77
+ body > iframe {display:none;}
@@ -0,0 +1,174 @@
1
+ // Tables
2
+ table {
3
+ max-width: 100%;
4
+ background-color: #fff;
5
+ border-collapse: collapse;
6
+ border-spacing: 0;
7
+ }
8
+ th {
9
+ text-align: left;
10
+ }
11
+
12
+
13
+ // BASELINE STYLES
14
+ .table {
15
+ width: 100%;
16
+ margin-bottom: $font-size;
17
+
18
+ // Cells
19
+ th,
20
+ td {
21
+ padding: 8px;
22
+ line-height: $line-height;
23
+ vertical-align: top;
24
+ border-top: 1px solid $table-border-color;
25
+ }
26
+ // Bottom align for column headings
27
+ thead th {
28
+ vertical-align: bottom;
29
+ font-weight: $bold;
30
+ }
31
+ // Remove top border from thead by default
32
+ caption + thead tr:first-child th,
33
+ caption + thead tr:first-child td,
34
+ colgroup + thead tr:first-child th,
35
+ colgroup + thead tr:first-child td,
36
+ thead:first-child tr:first-child th,
37
+ thead:first-child tr:first-child td {
38
+ border-top: 0;
39
+ }
40
+ // Account for multiple tbody instances
41
+ tbody + tbody {
42
+ border-top: 2px solid $table-border-color;
43
+ }
44
+
45
+ // Nesting
46
+ .table {
47
+ background-color: $body-background;
48
+ }
49
+ }
50
+
51
+
52
+
53
+ // CONDENSED TABLE W/ HALF PADDING
54
+ .table-condensed {
55
+ th, td {
56
+ padding: 4px 5px;
57
+ }
58
+ }
59
+
60
+
61
+ // BORDERED VERSION
62
+ .table-bordered {
63
+ border: 1px solid $table-border-color;
64
+ border-collapse: separate; // Done so we can round those corners!
65
+ border-left: 0;
66
+ border-radius: $border-radius;
67
+ th,
68
+ td {
69
+ border-left: 1px solid $table-border-color;
70
+ }
71
+ // Prevent a double border
72
+ caption + thead tr:first-child th,
73
+ caption + tbody tr:first-child th,
74
+ caption + tbody tr:first-child td,
75
+ colgroup + thead tr:first-child th,
76
+ colgroup + tbody tr:first-child th,
77
+ colgroup + tbody tr:first-child td,
78
+ thead:first-child tr:first-child th,
79
+ tbody:first-child tr:first-child th,
80
+ tbody:first-child tr:first-child td {
81
+ border-top: 0;
82
+ }
83
+ // For first th/td in the first row in the first thead or tbody
84
+ thead:first-child tr:first-child > th:first-child,
85
+ tbody:first-child tr:first-child > td:first-child,
86
+ tbody:first-child tr:first-child > th:first-child {
87
+ border-top-left-radius: $border-radius;
88
+ }
89
+ // For last th/td in the first row in the first thead or tbody
90
+ thead:first-child tr:first-child > th:last-child,
91
+ tbody:first-child tr:first-child > td:last-child,
92
+ tbody:first-child tr:first-child > th:last-child {
93
+ border-top-right-radius: $border-radius;
94
+ }
95
+ // For first th/td (can be either) in the last row in the last thead, tbody, and tfoot
96
+ thead:last-child tr:last-child > th:first-child,
97
+ tbody:last-child tr:last-child > td:first-child,
98
+ tbody:last-child tr:last-child > th:first-child,
99
+ tfoot:last-child tr:last-child > td:first-child,
100
+ tfoot:last-child tr:last-child > th:first-child {
101
+ border-bottom-left-radius: $border-radius;
102
+ }
103
+ // For last th/td (can be either) in the last row in the last thead, tbody, and tfoot
104
+ thead:last-child tr:last-child > th:last-child,
105
+ tbody:last-child tr:last-child > td:last-child,
106
+ tbody:last-child tr:last-child > th:last-child,
107
+ tfoot:last-child tr:last-child > td:last-child,
108
+ tfoot:last-child tr:last-child > th:last-child {
109
+ border-bottom-right-radius: $border-radius;
110
+ }
111
+
112
+ // Clear border-radius for first and last td in the last row in the last tbody for table with tfoot
113
+ tfoot + tbody:last-child tr:last-child td:first-child {
114
+ border-bottom-left-radius: 0;
115
+ }
116
+ tfoot + tbody:last-child tr:last-child td:last-child {
117
+ border-bottom-right-radius: 0;
118
+ }
119
+
120
+ // Special fixes to round the left border on the first td/th
121
+ caption + thead tr:first-child th:first-child,
122
+ caption + tbody tr:first-child td:first-child,
123
+ colgroup + thead tr:first-child th:first-child,
124
+ colgroup + tbody tr:first-child td:first-child {
125
+ border-top-left-radius: $border-radius;
126
+ }
127
+ caption + thead tr:first-child th:last-child,
128
+ caption + tbody tr:first-child td:last-child,
129
+ colgroup + thead tr:first-child th:last-child,
130
+ colgroup + tbody tr:first-child td:last-child {
131
+ border-top-right-radius: $border-radius;
132
+ }
133
+
134
+ }
135
+
136
+
137
+
138
+ // ZEBRA-STRIPING
139
+ // -------
140
+
141
+ // Default zebra-stripe styles (alternating gray and transparent backgrounds)
142
+ .table-striped {
143
+ tr:nth-child(odd) > td {
144
+ background-color: $table-background;
145
+ }
146
+ }
147
+
148
+
149
+
150
+ // HOVER EFFECT
151
+ // ------
152
+ // Placed here since it has to come after the potential zebra striping
153
+ .table-hover {
154
+ tr:hover > td{
155
+ background-color: $table-background-hover;
156
+ border-left-color: $table-background-hover;
157
+ color: $table-color-hover;
158
+ &:first-child{
159
+ border-left: 1px solid $table-border-color;
160
+ }
161
+ }
162
+ }
163
+
164
+ // Mobile
165
+ @media screen and (max-width: 767px) {
166
+ .table{
167
+ // display: block;
168
+ // max-width: 100%;
169
+ // overflow-x: scroll;
170
+ }
171
+ }
172
+
173
+
174
+
@@ -0,0 +1,162 @@
1
+ // Headers
2
+ h1,h2,h3,h4,h5,h6{
3
+ line-height: 1.2em;
4
+ margin: 0;
5
+ font-weight: 300;
6
+ font-family: 'Dosis', 'Helvetica Neue', Helvetica, sans-serif;
7
+ margin-bottom: 0.5em;
8
+ }
9
+
10
+ h1{
11
+ font-size: 2.4em;
12
+ }
13
+
14
+ h2{
15
+ font-size: 2em;
16
+ }
17
+
18
+ h3{
19
+ font-size: 1.7em;
20
+ }
21
+
22
+ h4{
23
+ font-size: 1.4em;
24
+ }
25
+
26
+ h5{
27
+ font-size: 1.2em;
28
+ }
29
+
30
+ h6{
31
+ font-size: 1em;
32
+ }
33
+
34
+
35
+
36
+ // Paragraphs
37
+ p{
38
+ line-height: $line-height;
39
+ margin-bottom: $font-size;
40
+ }
41
+ small{
42
+ font-size: 0.75em;
43
+ }
44
+ .big{
45
+ font-size: 1.25em;
46
+ }
47
+
48
+ b, strong{
49
+ font-weight: $bold;
50
+ }
51
+ i, em{
52
+ font-style: italic;
53
+ }
54
+
55
+
56
+ img{
57
+ max-width: 100%;
58
+ }
59
+
60
+
61
+
62
+ // Links
63
+ a{
64
+ color: $main-color + #222;
65
+ transition: all $transition-time;
66
+ text-decoration: none;
67
+ &.secundary{ color: $success-color; }
68
+ }
69
+ a:active, a:focus, a:hover{
70
+ color: $main-color - $color-diff;
71
+ &.secundary{ color: $success-color - $color-diff; }
72
+ }
73
+
74
+
75
+
76
+ // Lists
77
+ ul, ol{
78
+ margin-bottom: $font-size;
79
+ padding-left: 22px;
80
+ ul, ol{
81
+ margin-bottom: 0;
82
+ }
83
+ }
84
+
85
+ ul{
86
+ li{
87
+ list-style: disc outside none;
88
+ li{
89
+ list-style: circle outside none;
90
+ }
91
+ }
92
+ }
93
+
94
+ ol{
95
+ li{
96
+ list-style: decimal outside none;
97
+ }
98
+ }
99
+
100
+ ul, ol{
101
+ &.unstyled{
102
+ margin: 0;
103
+ padding: 0;
104
+ li{
105
+ margin: 0;
106
+ padding: 0;
107
+ list-style: none;
108
+ }
109
+ }
110
+ }
111
+
112
+ // Blockquote
113
+ blockquote{
114
+
115
+ border-left: 2px solid $gray2;
116
+ padding: 0.5em 1em;
117
+ margin-bottom: $font-size;
118
+ font-size: 1.1em;
119
+ color: $gray5;
120
+
121
+ cite{
122
+ font-size: 0.8em;
123
+ &:before {
124
+ content: "— ";
125
+ }
126
+ }
127
+ }
128
+
129
+ hr{
130
+ border: 0;
131
+ border-bottom: 1px solid darken($body-background, 7);
132
+ margin: 20px 0 20px 0;
133
+ clear: both;
134
+ }
135
+
136
+
137
+
138
+ // Code
139
+ pre, code{
140
+ font-family: $pre-font-family;
141
+ font-size: $pre-font-size;
142
+ line-height: $line-height;
143
+
144
+ color: $gray2;
145
+ background: $gray6;
146
+ // border: 2px solid $gray2;
147
+ border-radius: 3px;
148
+
149
+ padding: 0.8em 1em;
150
+
151
+ white-space: pre-wrap;
152
+ word-break: break-all;
153
+ word-wrap: break-word;
154
+ }
155
+ pre{
156
+ margin-bottom: $font-size;
157
+ }
158
+ code{
159
+ display: inline-block;
160
+ padding: 0.1em 0.3em;
161
+ }
162
+