plinth 0.0.1.beta.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (237) hide show
  1. data/.codoopts +10 -0
  2. data/.env +1 -0
  3. data/.gitignore +23 -0
  4. data/.ruby-version +1 -0
  5. data/CHANGELOG.md +1 -0
  6. data/Capfile +4 -0
  7. data/Gemfile +52 -0
  8. data/Gemfile.lock +243 -0
  9. data/Guardfile +9 -0
  10. data/LICENSE +22 -0
  11. data/Procfile +1 -0
  12. data/README.md +79 -0
  13. data/Rakefile +35 -0
  14. data/app/assets/images/layouts/basic-marketing-site.png +0 -0
  15. data/app/assets/images/layouts/jumbotron-site.png +0 -0
  16. data/app/assets/images/rails.png +0 -0
  17. data/app/assets/javascripts/application.js +17 -0
  18. data/app/assets/javascripts/base.js.coffee +3 -0
  19. data/app/assets/javascripts/grids.js.coffee +3 -0
  20. data/app/assets/javascripts/javascript.js.coffee +3 -0
  21. data/app/assets/javascripts/lib/modernizr.js +4 -0
  22. data/app/assets/javascripts/modules.js.coffee +3 -0
  23. data/app/assets/stylesheets/application-old-ie.css.scss +10 -0
  24. data/app/assets/stylesheets/application.css.scss +57 -0
  25. data/app/assets/stylesheets/base/_all.scss +6 -0
  26. data/app/assets/stylesheets/base/_reset.css.scss +16 -0
  27. data/app/assets/stylesheets/base/_type.scss +16 -0
  28. data/app/assets/stylesheets/modules/_coderay.css.scss +171 -0
  29. data/app/assets/stylesheets/modules/_layout_examples.css.scss +13 -0
  30. data/app/assets/stylesheets/modules/_webfont_table.css.scss +47 -0
  31. data/app/assets/stylesheets/vanilla-normal-old-ie.css.scss +11 -0
  32. data/app/assets/stylesheets/vanilla-normal.css.scss +33 -0
  33. data/app/controllers/application_controller.rb +5 -0
  34. data/app/controllers/base_controller.rb +52 -0
  35. data/app/controllers/grids_controller.rb +48 -0
  36. data/app/controllers/javascript_controller.rb +20 -0
  37. data/app/controllers/javascripts_controller.rb +4 -0
  38. data/app/controllers/modules_controller.rb +43 -0
  39. data/app/controllers/ui_controller.rb +2 -0
  40. data/app/helpers/plinth_helper.rb +33 -0
  41. data/app/views/base/_webfonts_social_standard.html +429 -0
  42. data/app/views/base/_webfonts_ss_standard.html +2413 -0
  43. data/app/views/base/buttons.html.haml +20 -0
  44. data/app/views/base/forms.html.haml +40 -0
  45. data/app/views/base/images.html.haml +20 -0
  46. data/app/views/base/index.html.haml +68 -0
  47. data/app/views/base/labels.html.haml +22 -0
  48. data/app/views/base/lists.html.haml +20 -0
  49. data/app/views/base/webfonts.html.haml +17 -0
  50. data/app/views/grids/index.html.haml +73 -0
  51. data/app/views/grids/layouts/basic-marketing-site.haml +69 -0
  52. data/app/views/grids/layouts/jumbotron-site.haml +92 -0
  53. data/app/views/grids/layouts.html.haml +9 -0
  54. data/app/views/layouts/_main_nav.html.haml +15 -0
  55. data/app/views/layouts/application.html.haml +15 -0
  56. data/app/views/modules/alerts.html.haml +12 -0
  57. data/app/views/modules/footer.html.haml +2 -0
  58. data/app/views/modules/index.html.haml +5 -0
  59. data/app/views/modules/nav.html.haml +12 -0
  60. data/app/views/modules/panels.html.haml +3 -0
  61. data/app/views/modules/tabs.html.haml +58 -0
  62. data/app/views/old_javascript/close.html.haml +2 -0
  63. data/app/views/old_javascript/forms.html.haml +2 -0
  64. data/app/views/old_javascript/ga_events.html.haml +2 -0
  65. data/app/views/old_javascript/index.html.haml +2 -0
  66. data/app/views/old_javascript/responsive_resize.html.haml +2 -0
  67. data/app/views/old_javascript/switch.html.haml +2 -0
  68. data/app/views/parts/base/_button.haml +3 -0
  69. data/app/views/parts/base/_button_colours.haml +4 -0
  70. data/app/views/parts/base/_button_group.haml +4 -0
  71. data/app/views/parts/base/_button_sizing.haml +3 -0
  72. data/app/views/parts/base/_button_states.haml +3 -0
  73. data/app/views/parts/base/_form_example.haml +26 -0
  74. data/app/views/parts/base/_form_example_horizontal.haml +26 -0
  75. data/app/views/parts/base/_form_group.haml +10 -0
  76. data/app/views/parts/base/_form_location.haml +3 -0
  77. data/app/views/parts/base/_labels.haml +5 -0
  78. data/app/views/parts/base/_labels_sizing.haml +3 -0
  79. data/app/views/parts/base/_list.haml +10 -0
  80. data/app/views/parts/base/_list_action.haml +5 -0
  81. data/app/views/parts/base/_list_nav.haml +12 -0
  82. data/app/views/parts/base/_list_unset.haml +10 -0
  83. data/app/views/parts/base/_type_body.haml +2 -0
  84. data/app/views/parts/base/_type_headings.haml +5 -0
  85. data/app/views/parts/base/_type_helpers.haml +3 -0
  86. data/app/views/parts/base/_type_links.haml +9 -0
  87. data/app/views/parts/base/_type_shouts.haml +4 -0
  88. data/app/views/parts/grids/_example_layout_1.haml +10 -0
  89. data/app/views/parts/grids/_live_grid.haml +29 -0
  90. data/app/views/parts/modules/_alerts.haml +11 -0
  91. data/app/views/parts/modules/_nav_footer.haml +34 -0
  92. data/app/views/parts/modules/_nav_header.haml +18 -0
  93. data/app/views/parts/modules/_panels.haml +9 -0
  94. data/app/views/parts/modules/_tabs_minimal.haml +11 -0
  95. data/app/views/parts/modules/_tabs_simple_group.haml +11 -0
  96. data/app/views/parts/modules/_tabs_simple_group_toggle.haml +11 -0
  97. data/app/views/parts/modules/_tabs_toggle.haml +5 -0
  98. data/app/views/parts/modules/_tabs_traditional.haml +11 -0
  99. data/app/views/shared/_placeholder_text.html.haml +1 -0
  100. data/app/views/shared/_title.html.haml +8 -0
  101. data/app/views/shared/_ui_nav.html.haml +5 -0
  102. data/app/views/ui/alert.html.haml +35 -0
  103. data/app/views/ui/buttons.html.haml +116 -0
  104. data/app/views/ui/footer.html.haml +69 -0
  105. data/app/views/ui/forms/_vertical_form.haml +7 -0
  106. data/app/views/ui/forms.html.haml +59 -0
  107. data/app/views/ui/grids.html.haml +18 -0
  108. data/app/views/ui/index.html.haml +5 -0
  109. data/app/views/ui/labels.html.haml +15 -0
  110. data/app/views/ui/modules/panel.html.haml +3 -0
  111. data/app/views/ui/nav.html.haml +48 -0
  112. data/app/views/ui/tabs.html.haml +171 -0
  113. data/app/views/ui/typography.html.haml +118 -0
  114. data/db/development.sqlite3 +0 -0
  115. data/db/seeds.rb +7 -0
  116. data/doc/README_FOR_APP +2 -0
  117. data/lib/assets/.gitkeep +0 -0
  118. data/lib/plinth/version.rb +3 -0
  119. data/lib/plinth.rb +11 -0
  120. data/lib/tasks/.gitkeep +0 -0
  121. data/lib/templates/haml/scaffold/_form.html.haml +8 -0
  122. data/log/.gitkeep +0 -0
  123. data/plinth.gemspec +33 -0
  124. data/public/404.html +26 -0
  125. data/public/422.html +26 -0
  126. data/public/500.html +25 -0
  127. data/public/favicon.ico +0 -0
  128. data/public/javascripts/LICENSE.html +158 -0
  129. data/public/javascripts/README.md.html +163 -0
  130. data/public/javascripts/assets/codo.css +1 -0
  131. data/public/javascripts/assets/codo.js +21 -0
  132. data/public/javascripts/assets/search_data.js +1 -0
  133. data/public/javascripts/class_index.html +215 -0
  134. data/public/javascripts/class_list.html +58 -0
  135. data/public/javascripts/classes/Close.html +259 -0
  136. data/public/javascripts/classes/GAEvent.html +231 -0
  137. data/public/javascripts/classes/ResizeHandler.html +225 -0
  138. data/public/javascripts/classes/Switch.html +318 -0
  139. data/public/javascripts/classes/TBGForm.html +373 -0
  140. data/public/javascripts/extra_list.html +36 -0
  141. data/public/javascripts/file_list.html +74 -0
  142. data/public/javascripts/files/styleguide/plugins/tbg-close.js.coffee.html +160 -0
  143. data/public/javascripts/files/styleguide/plugins/tbg-forms.js.coffee.html +160 -0
  144. data/public/javascripts/files/styleguide/plugins/tbg-ga-events.js.coffee.html +160 -0
  145. data/public/javascripts/files/styleguide/plugins/tbg-respinsiveresize.js.coffee.html +160 -0
  146. data/public/javascripts/files/styleguide/plugins/tbg-switch.js.coffee.html +160 -0
  147. data/public/javascripts/index.html +14 -0
  148. data/public/javascripts/method_list.html +187 -0
  149. data/public/javascripts/mixin_list.html +28 -0
  150. data/public/robots.txt +5 -0
  151. data/script/rails +6 -0
  152. data/spec/javascripts/fixtures/plugins/tbg-close_fixture.html.haml +4 -0
  153. data/spec/javascripts/fixtures/plugins/tbg-forms_fixture.html.haml +12 -0
  154. data/spec/javascripts/fixtures/plugins/tbg-ga-events_fixture.html.haml +9 -0
  155. data/spec/javascripts/fixtures/plugins/tbg-switch_fixture.html.haml +11 -0
  156. data/spec/javascripts/plugins/tbg-close_spec.js.coffee +54 -0
  157. data/spec/javascripts/plugins/tbg-forms_spec.js.coffee +87 -0
  158. data/spec/javascripts/plugins/tbg-ga-events_spec.js.coffee +83 -0
  159. data/spec/javascripts/plugins/tbg-switch_spec.js.coffee +96 -0
  160. data/spec/javascripts/spec.js.coffee +2 -0
  161. data/vendor/assets/fonts/ss-social-circle.eot +0 -0
  162. data/vendor/assets/fonts/ss-social-circle.svg +139 -0
  163. data/vendor/assets/fonts/ss-social-circle.ttf +0 -0
  164. data/vendor/assets/fonts/ss-social-circle.woff +0 -0
  165. data/vendor/assets/fonts/ss-social-regular.eot +0 -0
  166. data/vendor/assets/fonts/ss-social-regular.svg +133 -0
  167. data/vendor/assets/fonts/ss-social-regular.ttf +0 -0
  168. data/vendor/assets/fonts/ss-social-regular.woff +0 -0
  169. data/vendor/assets/fonts/ss-social.js +75 -0
  170. data/vendor/assets/fonts/ss-standard.eot +0 -0
  171. data/vendor/assets/fonts/ss-standard.js +75 -0
  172. data/vendor/assets/fonts/ss-standard.svg +207 -0
  173. data/vendor/assets/fonts/ss-standard.ttf +0 -0
  174. data/vendor/assets/fonts/ss-standard.woff +0 -0
  175. data/vendor/assets/images/background.png +0 -0
  176. data/vendor/assets/images/logos/sb-logo-white.png +0 -0
  177. data/vendor/assets/images/logos/sb-logo-white.svg +5 -0
  178. data/vendor/assets/images/middleman.png +0 -0
  179. data/vendor/assets/index.html.haml +8 -0
  180. data/vendor/assets/javascripts/.gitkeep +0 -0
  181. data/vendor/assets/javascripts/plinth/lib/handlebars.js +3 -0
  182. data/vendor/assets/javascripts/plinth/lib/jquery.fitvids.js +81 -0
  183. data/vendor/assets/javascripts/plinth/lib/ss-social.js +75 -0
  184. data/vendor/assets/javascripts/plinth/lib/ss-standard.js +78 -0
  185. data/vendor/assets/javascripts/plinth/plugins/doc/assets/codo.css +1 -0
  186. data/vendor/assets/javascripts/plinth/plugins/doc/assets/codo.js +21 -0
  187. data/vendor/assets/javascripts/plinth/plugins/doc/assets/search_data.js +1 -0
  188. data/vendor/assets/javascripts/plinth/plugins/doc/class_index.html +194 -0
  189. data/vendor/assets/javascripts/plinth/plugins/doc/class_list.html +58 -0
  190. data/vendor/assets/javascripts/plinth/plugins/doc/classes/Close.html +215 -0
  191. data/vendor/assets/javascripts/plinth/plugins/doc/classes/GAEvent.html +235 -0
  192. data/vendor/assets/javascripts/plinth/plugins/doc/classes/ResizeHandler.html +192 -0
  193. data/vendor/assets/javascripts/plinth/plugins/doc/classes/Switch.html +233 -0
  194. data/vendor/assets/javascripts/plinth/plugins/doc/classes/TBGForm.html +318 -0
  195. data/vendor/assets/javascripts/plinth/plugins/doc/extra_list.html +30 -0
  196. data/vendor/assets/javascripts/plinth/plugins/doc/file_list.html +58 -0
  197. data/vendor/assets/javascripts/plinth/plugins/doc/files/tbg-close.js.coffee.html +154 -0
  198. data/vendor/assets/javascripts/plinth/plugins/doc/files/tbg-forms.js.coffee.html +154 -0
  199. data/vendor/assets/javascripts/plinth/plugins/doc/files/tbg-ga-events.js.coffee.html +154 -0
  200. data/vendor/assets/javascripts/plinth/plugins/doc/files/tbg-respinsiveresize.js.coffee.html +154 -0
  201. data/vendor/assets/javascripts/plinth/plugins/doc/files/tbg-switch.js.coffee.html +154 -0
  202. data/vendor/assets/javascripts/plinth/plugins/doc/index.html +14 -0
  203. data/vendor/assets/javascripts/plinth/plugins/doc/method_list.html +163 -0
  204. data/vendor/assets/javascripts/plinth/plugins/doc/mixin_list.html +28 -0
  205. data/vendor/assets/javascripts/plinth/plugins/tbg-close.js.coffee +97 -0
  206. data/vendor/assets/javascripts/plinth/plugins/tbg-forms.js.coffee +156 -0
  207. data/vendor/assets/javascripts/plinth/plugins/tbg-ga-events.js.coffee +107 -0
  208. data/vendor/assets/javascripts/plinth/plugins/tbg-respinsiveresize.js.coffee +73 -0
  209. data/vendor/assets/javascripts/plinth/plugins/tbg-switch.js.coffee +121 -0
  210. data/vendor/assets/stylesheets/.gitkeep +0 -0
  211. data/vendor/assets/stylesheets/_functions.scss +28 -0
  212. data/vendor/assets/stylesheets/_mixins.css.scss +273 -0
  213. data/vendor/assets/stylesheets/_settings.css.scss +120 -0
  214. data/vendor/assets/stylesheets/plinth/base/_all.css.scss +7 -0
  215. data/vendor/assets/stylesheets/plinth/base/_buttons.css.scss +166 -0
  216. data/vendor/assets/stylesheets/plinth/base/_form.css.scss +196 -0
  217. data/vendor/assets/stylesheets/plinth/base/_labels.css.scss +58 -0
  218. data/vendor/assets/stylesheets/plinth/base/_lists.css.scss +57 -0
  219. data/vendor/assets/stylesheets/plinth/base/_reset.css.scss +284 -0
  220. data/vendor/assets/stylesheets/plinth/base/_type.css.scss +328 -0
  221. data/vendor/assets/stylesheets/plinth/base/webfonts/_all.css.scss +2 -0
  222. data/vendor/assets/stylesheets/plinth/base/webfonts/ss-social.css.scss +57 -0
  223. data/vendor/assets/stylesheets/plinth/base/webfonts/ss-standard.css.scss +48 -0
  224. data/vendor/assets/stylesheets/plinth/grid/_grid.css.scss +127 -0
  225. data/vendor/assets/stylesheets/plinth/modules/_alert.css.scss +71 -0
  226. data/vendor/assets/stylesheets/plinth/modules/_all-grid.css.scss +1 -0
  227. data/vendor/assets/stylesheets/plinth/modules/_all-no-grid.css.scss +4 -0
  228. data/vendor/assets/stylesheets/plinth/modules/_footer.css.scss +93 -0
  229. data/vendor/assets/stylesheets/plinth/modules/_nav.css.scss +106 -0
  230. data/vendor/assets/stylesheets/plinth/modules/_panel.css.scss +28 -0
  231. data/vendor/assets/stylesheets/plinth/modules/_switch.css.scss +88 -0
  232. data/vendor/assets/stylesheets/plinth.css.scss +15 -0
  233. data/vendor/assets/views/buttons/_buttons.haml +9 -0
  234. data/vendor/assets/views/forms/_vertical_form.haml +7 -0
  235. data/vendor/assets/views/type/_headings.haml +6 -0
  236. data/vendor/assets/views/type/_paragraphs.haml +4 -0
  237. metadata +537 -0
@@ -0,0 +1,166 @@
1
+ //
2
+ // Buttons - both fake and real
3
+ // $author Ad Taylor
4
+ //
5
+ @import "compass/css3";
6
+
7
+ // ==========================================================================
8
+ // Button Cokdlours
9
+ // ==========================================================================
10
+ $default-btn-bg: mono(3);
11
+ $default-btn-color: mono(2);
12
+ $default-btn-hover-color: darken(mono(2),10);
13
+
14
+
15
+ // ==========================================================================
16
+ // Button Color Mixin
17
+ // ==========================================================================
18
+ @mixin btn-color($color) {
19
+ border-color: $color;
20
+ background-color: $color;
21
+ }
22
+
23
+ // ==========================================================================
24
+ // Default button
25
+ // ==========================================================================
26
+ .btn {
27
+
28
+ display: inline-block;
29
+ @include ie7-inline-block;
30
+ padding: $btn-base ($btn-base * 2) ($btn-base + 1);
31
+ margin-bottom: 0; // For input.btn
32
+ @include ie7-restore-left-whitespace;
33
+
34
+ /* Sizes */
35
+ &.large {
36
+ padding: ($large-btn-base) ($large-btn-base * 2) ($large-btn-base + 1);
37
+ font-size: ms(1);
38
+ }
39
+ &.medium {
40
+ font-size: ms(0);
41
+ }
42
+ &.small {
43
+ font-size: ms(0)*0.786;
44
+ padding: ($small-btn-base) ($small-btn-base * 2) $small-btn-base;
45
+ }
46
+ &.expand {
47
+ width: 100%;
48
+ text-align: center;
49
+ }
50
+
51
+
52
+ border: 1px solid $default-btn-bg;
53
+ *border: 0; // Remove the border to prevent IE7's black border on input:focus
54
+ border-bottom-color: darken($default-btn-bg, 10%);
55
+ @include border-radius($btn-radius);
56
+
57
+ @include background-image(linear-gradient(lighten($default-btn-bg, 30), lighten($default-btn-bg, 15) 30%, $default-btn-bg));
58
+
59
+ color: $default-btn-color;
60
+ font-size: ms(0);
61
+ line-height: 1;
62
+ text-decoration: none;
63
+ text-shadow: 0 1px 1px $shiny-edge;
64
+ text-align: center;
65
+ vertical-align: middle;
66
+
67
+ cursor: pointer;
68
+ @include box-shadow(0 1px 0 $shiny-edge inset, 0 1px 0px $shiny-edge);
69
+ @include single-transition(background-color, .15s, ease-in-out);
70
+
71
+ /* Button colors */
72
+
73
+ &.orange, &.green, &.blue {
74
+ @include box-shadow(none);
75
+ background-image: none;
76
+ color: $white;
77
+ text-decoration: none;
78
+ text-shadow: none;
79
+
80
+ &:hover {
81
+ background-image: none;
82
+ color: $white;
83
+ }
84
+ }
85
+
86
+ &.orange {
87
+ @include btn-color(orange());
88
+ &:hover, &.is-active, &:active {
89
+ @include btn-color(orange(2));
90
+ }
91
+ }
92
+
93
+ &.blue {
94
+ @include btn-color(blue());
95
+ &:hover, &.is-active, &:active {
96
+ @include btn-color(blue(2));
97
+ }
98
+ }
99
+
100
+ &.green {
101
+ @include btn-color(green());
102
+ &:hover, &.is-active, &:active {
103
+ @include btn-color(green(2));
104
+ }
105
+ }
106
+
107
+
108
+ /* Hover state */
109
+ &:hover {
110
+ color: $default-btn-hover-color;
111
+ border-color: $default-btn-hover-color;
112
+ text-decoration: none;
113
+ @include background-image(linear-gradient(lighten($default-btn-bg, 20), lighten($default-btn-bg, 5) 30%, $default-btn-bg));
114
+ }
115
+
116
+
117
+ /* Focus state */
118
+ &:focus {
119
+ @include set-focus;
120
+ }
121
+
122
+
123
+ /* Active state */
124
+ &.is-active,
125
+ &:active {
126
+ // background-color: darken($white, 10%);
127
+ // background-color: darken($white, 15%) e("\9");
128
+ // background-image: none;
129
+ // outline: 0;
130
+ // .box-shadow(~"inset 0 2px 4px rgba(0,0,0,.15), 0 1px 2px rgba(0,0,0,.05)");
131
+ }
132
+
133
+
134
+ /* Disabled state */
135
+ &.disabled,
136
+ &[disabled] {
137
+ cursor: default;
138
+ border-color: darken($white, 10%) !important;
139
+ background-color: darken($white, 10%) !important;
140
+ background-image: none !important;
141
+ color: $default-btn-color !important;
142
+ @include opacity(65);
143
+ @include box-shadow(none);
144
+
145
+ &:hover {
146
+ border: 1px solid $default-btn-bg;
147
+ color: $default-btn-color;
148
+ }
149
+ }
150
+
151
+ }
152
+
153
+
154
+ // ==========================================================================
155
+ // Button Groups
156
+ // ==========================================================================
157
+
158
+ .suffix {
159
+ @include border-top-left-radius(0px);
160
+ @include border-bottom-left-radius(0px);
161
+ }
162
+
163
+ .prefix {
164
+ @include border-top-right-radius(0px);
165
+ @include border-bottom-right-radius(0px);
166
+ }
@@ -0,0 +1,196 @@
1
+ //
2
+ // Forms
3
+ // $author Ad Taylor
4
+ //
5
+ @import "compass/css3";
6
+
7
+ // ==========================================================================
8
+ // Standard Forms
9
+ // ==========================================================================
10
+
11
+ $form-spacing: 10px;
12
+
13
+ form {
14
+ // @todo set the margin
15
+ margin: 0;
16
+ }
17
+
18
+ fieldset {
19
+ padding: 0;
20
+ margin: 0;
21
+ border: 0;
22
+ }
23
+
24
+ label {
25
+ color: $black;
26
+ cursor: pointer;
27
+ display: block;
28
+ font-weight: 500;
29
+ margin-bottom: 3px;
30
+
31
+ &.right { float: none; text-align: right; }
32
+ }
33
+
34
+ label, input, button,
35
+ select, textarea {
36
+ font-size: ms(0);
37
+ line-height: 1.5;
38
+ @include border-radius(4px);
39
+
40
+ &.suffix {
41
+ margin-left: -1px;
42
+ }
43
+
44
+ &.prefix {
45
+ margin-right: -1px;
46
+ }
47
+
48
+ }
49
+
50
+
51
+ input[type="text"], input[type="password"],
52
+ input[type="date"], input[type="datetime"],
53
+ input[type="email"], input[type="number"],
54
+ input[type="search"], input[type="tel"],
55
+ input[type="time"], input[type="url"],
56
+ textarea, select {
57
+ display: block;
58
+ margin: 0;
59
+ padding: $form-spacing * 0.25 $form-spacing * 0.5;
60
+ height: (ms(0) + ($form-spacing * 1.5));
61
+ width: 100%;
62
+ border: 1px solid mono(3);
63
+ color: rgba(0,0,0,0.75);
64
+ font-size: ms(0);
65
+ @include transition(all 0.15s linear);
66
+
67
+ &.large {
68
+ font-size: ms(1);
69
+ padding: $form-spacing * 0.75;
70
+ }
71
+
72
+ &:focus {
73
+ background: darken($white, 2%);
74
+ outline: none !important;
75
+ border-color: darken($white, 30%);
76
+ }
77
+
78
+ &[disabled] {
79
+ background-color: #ddd;
80
+ }
81
+
82
+ }
83
+
84
+ textarea {
85
+ height: auto;
86
+ }
87
+
88
+ select {
89
+ width: 100%;
90
+ }
91
+
92
+ /* Fieldsets - Removed by Ad on the 28th Nov 2012
93
+ fieldset {
94
+ border: solid 1px #ddd;
95
+ border-radius: 3px;
96
+ @include border-radius(3px);
97
+ padding: 12px 12px 0;
98
+ margin: 18px 0;
99
+
100
+ legend {
101
+ font-weight: bold;
102
+ background: $white;
103
+ padding: 0 3px;
104
+ margin: 0 0 0 -3px;
105
+ }
106
+ }
107
+ */
108
+
109
+
110
+ .location.input {
111
+ position: relative;
112
+
113
+ .locate {
114
+ display: none;
115
+ position: absolute;
116
+ top: 6px;
117
+ right: 1px;
118
+ width: 20px;
119
+ height: 20px;
120
+ cursor: pointer;
121
+ color: mono(2);
122
+
123
+ &.is-active {
124
+ color: $main-color;
125
+ }
126
+ }
127
+ }
128
+
129
+ .geolocation .location.input .locate {
130
+ display: block;
131
+ }
132
+
133
+ // ==========================================================================
134
+ // Formtastic list forms
135
+ // ==========================================================================
136
+ .formtastic {
137
+ .inputs, .actions{
138
+ & > ol {
139
+ margin-left: 0;
140
+ padding-left: 0;
141
+ list-style: none;
142
+ }
143
+ }
144
+
145
+ .input {
146
+ margin-bottom: ms(1);
147
+ }
148
+
149
+ .hidden {
150
+ display: none;
151
+ }
152
+
153
+ &.horizontal {
154
+ label {
155
+ width: 20%;
156
+ float: left;
157
+ display: block;
158
+ abbr {
159
+ border: none;
160
+ }
161
+
162
+ & + input,
163
+ & + textarea,
164
+ & + select {
165
+ width: 76%;
166
+ vertical-align:middle;
167
+ }
168
+ }
169
+
170
+ .action {
171
+ margin-left: 20%;
172
+ }
173
+ }
174
+ }
175
+
176
+
177
+ // ==========================================================================
178
+ // Form validations
179
+ // ==========================================================================
180
+
181
+ .form-msg {
182
+ &.is-error {
183
+ color: $alert-color;
184
+ }
185
+
186
+ &.is-info {
187
+ color: blue();
188
+ }
189
+ }
190
+
191
+ input, select, textarea {
192
+ &.is-error {
193
+ border-color: $alert-color;
194
+ }
195
+ }
196
+
@@ -0,0 +1,58 @@
1
+ //
2
+ // Labels
3
+ // $author Ad Taylor
4
+ //
5
+ @import "compass/css3";
6
+
7
+ // ==========================================================================
8
+ // Label colouring in
9
+ // ==========================================================================
10
+
11
+ @mixin label-color($color, $hover-color, $txt-color, $hover-txt-color: false) {
12
+ background-color: $color;
13
+ color: $txt-color;
14
+
15
+ &:hover, &.is-active {
16
+ background-color: $hover-color;
17
+ @if $hover-txt-color {
18
+ color: $hover-txt-color;
19
+ } @else {
20
+ color: $txt-color;
21
+ }
22
+ }
23
+ }
24
+
25
+ // ==========================================================================
26
+ // Default alert
27
+ // ==========================================================================
28
+ .label {
29
+ display: inline-block;
30
+ @include ie7-inline-block;
31
+ padding: -1px+ms(0)/4 ms(0)/2 1px+ms(0)/4 ;
32
+ margin-bottom: 0; // For input.btn
33
+ @include ie7-restore-left-whitespace;
34
+
35
+ @include border-radius( ms(0)/4 );
36
+
37
+ @include label-color( mono(2), mono(3) , $white);
38
+ @extend small;
39
+ line-height: 1;
40
+ text-align: center;
41
+ letter-spacing: 1px;
42
+ vertical-align: middle;
43
+
44
+ /* Label colors */
45
+ &.orange {
46
+ @include label-color( orange(), orange(2), $white );
47
+ }
48
+
49
+ &.blue {
50
+ @include label-color( blue(), blue(2), $white );
51
+ }
52
+
53
+ &.green {
54
+ @include label-color( green(), green(2), $white);
55
+ }
56
+
57
+ }
58
+
@@ -0,0 +1,57 @@
1
+ //
2
+ // Lists
3
+ // $author Ad Taylor
4
+ //
5
+
6
+ // ==========================================================================
7
+ // Action list - hoz
8
+ // ==========================================================================
9
+
10
+ .action-list {
11
+ @include clearfix();
12
+ padding: 0;
13
+
14
+ & > li {
15
+ display:block;
16
+ margin-right: $column-gutter/4;
17
+ }
18
+
19
+ .divider {
20
+ border-left: 1px solid mono(2);
21
+ height: $base-line-height-px/2;
22
+ }
23
+ }
24
+
25
+
26
+ // ==========================================================================
27
+ // Action list Collapse state
28
+ // ==========================================================================
29
+
30
+ @include smallest-query(true){
31
+ // Pass true to output outside
32
+ // media query for IE
33
+ .action-list.collapse {
34
+ & > li {
35
+ display: inline-block;
36
+ margin:0;
37
+ @if old-ie {
38
+ *display: inline;
39
+ *zoom: 1;
40
+ }
41
+
42
+ &:last-child {
43
+ margin-right: 0;
44
+ }
45
+ }
46
+ }
47
+ }
48
+
49
+
50
+ // ==========================================================================
51
+ // Action list - hoz
52
+ // ==========================================================================
53
+ .unset-list {
54
+ padding-left: 0;
55
+ list-style: none;
56
+ list-style-image: none;
57
+ }