speedo 0.2.0 → 0.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (29) hide show
  1. data/app/assets/javascripts/speedo.js +1 -2
  2. data/app/assets/javascripts/swim.js.coffee +34 -61
  3. data/app/assets/stylesheets/application.css.scss +1 -1
  4. data/app/assets/stylesheets/speedo/base.css.scss +72 -0
  5. data/app/assets/stylesheets/speedo/helpers.css.scss +34 -0
  6. data/app/assets/stylesheets/speedo/layout.css.scss +220 -0
  7. data/app/assets/stylesheets/speedo/plugins.css.scss +110 -0
  8. data/app/assets/stylesheets/speedo/speedo.css.scss +35 -0
  9. data/app/assets/stylesheets/speedo/theme.css.scss +62 -0
  10. data/app/views/layouts/speedo/application.html.haml +4 -1
  11. data/app/views/speedo/home/examples.html.haml +59 -34
  12. data/lib/generators/speedo/install_generator.rb +6 -3
  13. data/lib/speedo/version.rb +1 -1
  14. data/vendor/assets/javascripts/speedo/bootstrap.js +1825 -0
  15. data/vendor/assets/stylesheets/speedo/bootstrap/glyphicons-halflings-white.png +0 -0
  16. data/vendor/assets/stylesheets/speedo/bootstrap/glyphicons-halflings.png +0 -0
  17. data/vendor/assets/stylesheets/speedo/bootstrap-responsive.css +815 -0
  18. data/vendor/assets/stylesheets/speedo/bootstrap.css +4983 -0
  19. data/vendor/assets/stylesheets/speedo/chosen.css +19 -19
  20. data/vendor/assets/stylesheets/speedo/jquery-ui-1.8.18.custom.css +17 -17
  21. data/vendor/assets/stylesheets/speedo/jquery.dataTables.css +11 -11
  22. data/vendor/assets/stylesheets/speedo/uniform.default.css +4 -4
  23. metadata +32 -67
  24. data/app/assets/stylesheets/speedo.css.scss +0 -596
  25. data/vendor/assets/javascripts/speedo/jquery.mousewheel-3.0.4.pack.js +0 -14
  26. data/vendor/assets/javascripts/speedo/jquery.tools.min.js +0 -35
  27. data/vendor/assets/stylesheets/speedo/gh-buttons.css +0 -393
  28. data/vendor/assets/stylesheets/speedo/gh-icons.png +0 -0
  29. data/vendor/assets/stylesheets/speedo/normalize.css +0 -504
@@ -1,14 +1,13 @@
1
1
  //= require jquery-ui
2
+ //= require speedo/bootstrap
2
3
  //= require speedo/chosen.jquery
3
4
  //= require speedo/jquery.autoSuggest
4
5
  //= require speedo/jquery.autogrow
5
6
  //= require speedo/jquery.dataTables
6
7
  //= require speedo/jquery.livequery
7
- //= require speedo/jquery.mousewheel-3.0.4.pack
8
8
  //= require speedo/jquery.placeholder.min
9
9
  //= require speedo/spin
10
10
  //= require speedo/jquery.spin
11
11
  //= require speedo/jquery.timeago
12
- //= require speedo/jquery.tools.min
13
12
  //= require speedo/jquery.uniform
14
13
  //= require swim
@@ -1,80 +1,53 @@
1
1
  $ ->
2
-
3
- # For Web-app mode, uncomment this (and the CSS in style.scss) to make the cols fill the browser
2
+ # For Web-app mode, uncomment this (and the CSS in speedo/layout.css.scss) to make the cols fill the browser
4
3
  # $('.col1, .col2, .col3').css('height',$(window).height() - $('.main_nav').outerHeight() - $('.branding').outerHeight() - 60 + 'px')
5
4
  # $(window).resize ->
6
5
  # $('.col1, .col2, .col3').css('height',$(window).height() - $('.main_nav').outerHeight() - $('.branding').outerHeight() - 60 + 'px')
7
-
8
-
9
- $('.popup:not(a)').livequery ->
10
- $(this).overlay()
11
6
 
12
- $('a.popup').livequery ->
13
- $(this).overlay
14
- onBeforeLoad: ->
15
- wrap = this.getOverlay().find(".wrap")
16
- wrap.load(this.getTrigger().attr("href"))
17
-
18
- $('.modal:not(a)').livequery ->
19
- $(this).overlay
20
- mask: '#fff'
21
- closeOnClick: false
22
- closeOnEsc: false
23
-
24
- $('a.modal').livequery ->
25
- $(this).overlay
26
- mask: '#fff'
27
- closeOnClick: false
28
- closeOnEsc: false
29
- onBeforeLoad: ->
30
- wrap = this.getOverlay().find(".wrap")
31
- wrap.load(this.getTrigger().attr("href"))
7
+ $('.tip').livequery ->
8
+ $(@).tooltip()
32
9
 
33
10
  $('time.ago').livequery ->
34
- $(this).timeago()
35
-
36
- $('.tip').livequery ->
37
- $(this).tooltip
38
- effect: 'slide'
39
- slideFade: true
40
- bounce: true
41
- .dynamic
42
- direction: 'down'
43
- bounce: true
44
-
45
- $('input[type="date"]').livequery ->
46
- $(this).datepicker
11
+ $(@).timeago()
12
+
13
+ $('textarea.autogrow').livequery ->
14
+ $(@).autogrow()
15
+
16
+ $('select.chzn').livequery ->
17
+ $(@).chosen()
18
+
19
+ $('input, textarea').livequery ->
20
+ $(@).placeholder()
21
+
22
+ $("select, input:checkbox, input:radio, input:file").livequery ->
23
+ $(@).not(':hidden').not('.chzn').not('.bare').uniform()
24
+
25
+ $('input[type=date]').livequery ->
26
+ $(@).not('.bare').datepicker
47
27
  numberOfMonths: 2
48
28
  dateFormat: 'yy-mm-dd'
49
29
  showOn: 'focus'
50
-
51
- $('textarea.autoGrow').livequery ->
52
- $(this).autogrow()
53
-
54
- $("select:not(.chzn), input:checkbox, input:radio, input:file").not(':hidden').livequery ->
55
- $(this).uniform()
56
-
57
- $('select.chzn').livequery ->
58
- $(this).chosen()
59
-
30
+
31
+ $("a[data-toggle=modal]").livequery ->
32
+ $(@).click ->
33
+ target = $(@).attr('data-target')
34
+ url = $(@).attr('href')
35
+ $(target).find('.modal-body').load(url)
36
+
60
37
  $('input.autoSuggest').livequery ->
61
- # $(this).autoSuggest "/path/to/script",
38
+ # $(@).autoSuggest "/path/to/script",
62
39
  # minChars: 2
63
40
  autoSuggestData = [{value: "21", name: "Mick Jagger"},{value: "43", name: "Johnny Storm"},{value: "46", name: "Richard Hatch"}]
64
- $(this).autoSuggest autoSuggestData,
41
+ $(@).autoSuggest autoSuggestData,
65
42
  startText: "AutoSuggesting"
66
43
  selectedItemProp: "name"
67
44
  searchObjProps: "name"
68
-
69
- $('input, textarea').livequery ->
70
- $(this).placeholder()
71
-
72
-
45
+
73
46
  $('.dataTable').livequery ->
74
- $(this).dataTable
47
+ $(@).dataTable
75
48
  "bPaginate": false # Don't paginate
76
49
  "aaSorting": [] # No initial sorting
77
- # "bJQueryUI": true # Use jQueryUI styling
78
- # "aoColumnDefs": [ # Use this to make the final column un-sortable
79
- # { "bSortable": false, "aTargets": [ -1 ] }
80
- # ]
50
+ "aoColumnDefs": [ # Use this to make the final column un-sortable
51
+ { "bSortable": false, "aTargets": [ -1 ] }
52
+ ]
53
+ # "bJQueryUI": true # Use jQueryUI styling
@@ -1,2 +1,2 @@
1
1
  // @import files below speedo (in order) so you can use the bourbon's jazzy mixins. Don't *=require
2
- @import "speedo";
2
+ @import 'speedo/speedo';
@@ -0,0 +1,72 @@
1
+ /* Base Styles - Set HTML element styles here */
2
+ * {
3
+ -moz-box-sizing:border-box;
4
+ -webkit-box-sizing:border-box;
5
+ box-sizing:border-box;
6
+ }
7
+ body {
8
+ color: $text;
9
+ background: $bg;
10
+ font-size:12px;
11
+ line-height:1.231;
12
+ }
13
+ a, a:visited:not(.btn), .link {
14
+ color: $link;
15
+ text-decoration: none;
16
+ cursor:pointer;
17
+ }
18
+ a:hover, .link:hover {
19
+ color: $hover;
20
+ }
21
+ ul, ol {
22
+ margin: 0;
23
+ padding: 0;
24
+ li {
25
+ list-style: none;
26
+ }
27
+ }
28
+ h1,h3,h5 {
29
+ font-weight:normal;
30
+ font-weight:200;
31
+ }
32
+ h2,h4,h6{
33
+ font-weight:normal;
34
+ }
35
+
36
+ input:not(.btn), textarea {
37
+ height:auto;
38
+ border:1px solid #999;
39
+ @include border-radius(3px);
40
+ padding:5px;
41
+ @include box-shadow(inset 0 1px 1px rgba(0,0,0,0.2));
42
+ &:focus {
43
+ border-color:#acd;
44
+ @include box-shadow(0 0 3px rgba(150,180,230,1));
45
+ }
46
+ }
47
+ footer {
48
+ position:relative;
49
+ margin:-1.8em 10px 0 0; /* So it appears at the bottom of the right column and is not lost in web-app mode */
50
+ float: right;
51
+ font-size: 0.8em;
52
+ opacity:0.5;
53
+ }
54
+
55
+
56
+ /* No-JS */
57
+ .no-js body {
58
+ margin-top:30px;
59
+ }
60
+ #noscript_warning {
61
+ position: fixed;
62
+ top: 0;
63
+ left: 0;
64
+ width: 100%;
65
+ padding: 5px 0 6px;
66
+ text-align: center;
67
+ font-size: 120%;
68
+ font-weight: bold;
69
+ color: #fff;
70
+ background:#AE0000;
71
+ z-index: 101;
72
+ }
@@ -0,0 +1,34 @@
1
+ /* =============================================================================
2
+ Non-semantic helper classes
3
+ ========================================================================== */
4
+
5
+ /* For image replacement */
6
+ .ir { display: block; text-indent: -999em; overflow: hidden; background-repeat: no-repeat; text-align: left; direction: ltr; }
7
+ .ir br { display: none; }
8
+
9
+ /* Hide for both screenreaders and browsers:
10
+ css-discuss.incutio.com/wiki/Screenreader_Visibility */
11
+ .hidden { display: none !important; visibility: hidden !important; }
12
+
13
+ /* Hide only visually, but have it available for screenreaders: by Jon Neal.
14
+ www.webaim.org/techniques/css/invisiblecontent/ & j.mp/visuallyhidden */
15
+ .visuallyhidden { border: 0; clip: rect(0 0 0 0); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; }
16
+
17
+ /* Extends the .visuallyhidden class to allow the element to be focusable when navigated to via the keyboard: drupal.org/node/897638 */
18
+ .visuallyhidden.focusable:active, .visuallyhidden.focusable:focus { clip: auto; height: auto; margin: 0; overflow: visible; position: static; width: auto; }
19
+
20
+ /* Hide visually and from screenreaders, but maintain layout */
21
+ .invisible { visibility: hidden; }
22
+
23
+ /* Contain floats: nicolasgallagher.com/micro-clearfix-hack/ */
24
+ .clearfix:before, .clearfix:after { content: ""; display: table; }
25
+ .clearfix:after { clear: both; }
26
+ .clearfix { *zoom: 1; }
27
+
28
+ /* Float and clear */
29
+ .left { float: left; }
30
+ .right { float: right; }
31
+ .clear { clear: both; }
32
+
33
+ /* Inline-block */
34
+ .ib { display:inline-block; *zoom:1; *display:inline; }
@@ -0,0 +1,220 @@
1
+ /*
2
+ Column Layout
3
+ =============
4
+ This layout is designed for mobile-first, so that the 'side' columns go below the main
5
+ content on narrower screen-widths.
6
+
7
+ IMPORTANT: Most of the styles that will be seen by the typical browser (i.e. the 960 design)
8
+ are in the @media queries below.
9
+
10
+ Set the column background colours using the variables (top of file) for consistent
11
+ column colouration.
12
+ */
13
+
14
+ #wrapper {
15
+ max-width: 960px; /* Set the width of the page here */
16
+ padding:0;
17
+ margin: 0 auto 20px;
18
+ @include border-bottom-radius(3px);
19
+ @include box-shadow(0 2px 2px rgba(0,0,0,0.5));
20
+ }
21
+
22
+ /* Layout for mobile < 480px width screens (see below for media queries) */
23
+ .colmask {
24
+ position:relative; /* This fixes the IE7 overflow hidden bug */
25
+ clear:both;
26
+ float:left;
27
+ width:100%; /* width of whole page */
28
+ @include border-radius(0 0 3px 3px);
29
+ background:#fff;
30
+ overflow:hidden; /* This chops off any overhanging divs, including the leftcol bg */
31
+ }
32
+ .colright,.colmid,.colleft {
33
+ float:left;
34
+ width:100%;
35
+ position:relative;
36
+ }
37
+ .col1,.col2,.col3 {
38
+ float:left;
39
+ position:relative;
40
+ padding:0 0 5em;
41
+ }
42
+ .onecol { /* Full page settings */
43
+ background:$maincolbg; /* page background colour */
44
+ .col1 {
45
+ width:96%; /* page width minus left and right padding */
46
+ left:2%; /* page left padding */
47
+ }
48
+ }
49
+ .threecol, .leftcol, .rightcol {
50
+ background:$maincolbg; /* main column background colour */
51
+ .col1, .col2, .col3 {
52
+ width:100%; /* page width minus left and right padding */
53
+ padding:0 2% 50px; /* page left padding */
54
+ }
55
+ .col2 {background:$leftcolbg;} /* left column background colour */
56
+ .col3 {background:$rightcolbg;} /* right column background colour */
57
+ }
58
+ .rightcol .col2, .leftcol .col3, .onecol .col2, .onecol .col3 { display:none; }
59
+
60
+
61
+ /* Media Queries for Responsive Design. These override the primary ('mobile first') styles */
62
+
63
+ @media only screen and (min-width: 480px) {
64
+ /* Style adjustments for viewports 480px and over go here */
65
+ /* 2 Column (double page) settings */
66
+ .threecol {
67
+ .col2 {
68
+ width:46%; /* left column content width (column width minus left and right padding) */
69
+ left:0%; /* right column width plus left column left padding */
70
+ }
71
+ .col3 {
72
+ width:46%; /* right column content width (column width minus left and right padding) */
73
+ left:0%; /* (right column width) plus (left column left and right padding) plus (right column left padding) */
74
+ }
75
+ }
76
+ }
77
+
78
+ @media only screen and (min-width: 768px) {
79
+ /* Style adjustments for viewports 768px and over (most desktop browsers) go here */
80
+ .colmask {
81
+ .col1, .col2, .col3 {
82
+ padding:0 0 5em;
83
+ background:transparent
84
+ }
85
+ }
86
+ .col1 { min-height:400px; }
87
+ .leftcol { /* 2 Column (left menu) settings */
88
+ background:$maincolbg; /* right column background colour */
89
+ .colleft {
90
+ right:75%; /* right column width */
91
+ background:$leftcolbg; /* left column background colour */
92
+ @include box-shadow(inset -1px 0 0 #ccc); /* 0 spread so it isn't visible at the top and bottom */
93
+ }
94
+ .col1 {
95
+ width:71%; /* right column content width */
96
+ left:102%; /* 100% plus left column left padding */
97
+ }
98
+ .col2 {
99
+ width:21%; /* left column content width (column width minus left and right padding) */
100
+ left:6%; /* (right column left and right padding) plus (left column left padding) */
101
+ }
102
+ .col3 {
103
+ display:none;
104
+ }
105
+ }
106
+ .rightcol { /* 2 Column (right menu) settings */
107
+ background:$rightcolbg; /* right column background colour */
108
+ .colleft {
109
+ right:25%; /* right column width */
110
+ background:$maincolbg; /* left column background colour */
111
+ @include box-shadow(inset -1px 0 0 #ccc); /* 0 spread so it isn't visible at the top and bottom */
112
+ }
113
+ .col1 {
114
+ width:71%; /* left column content width (left column width minus left and right padding) */
115
+ left:27%; /* (right column width) plus (left column left padding) */
116
+ }
117
+ .col2 {
118
+ display:none;
119
+ }
120
+ .col3 {
121
+ width:21%; /* right column content width (right column width minus left and right padding) */
122
+ left:31%; /* (right column width) plus (left column left and right padding) plus (right column left padding) */
123
+ }
124
+ }
125
+ .threecol { /* 3 Column settings */
126
+ background:$rightcolbg; /* right column background colour */
127
+ .colmid {
128
+ right:25%; /* width of the right column */
129
+ background:$maincolbg; /* left column background colour */
130
+ @include box-shadow(1px 0 0 #ccc); /* Use box-shadow for 'borders' so the layout isn't affected */
131
+ }
132
+ .colleft {
133
+ right:50%; /* width of the middle column */
134
+ background:$leftcolbg; /* left column background colour */
135
+ @include box-shadow(inset -1px 0 0 #ccc); /* 0 spread so it isn't visible at the top and bottom */
136
+ }
137
+ .col1 {
138
+ width:46%; /* width of center column content (column width minus padding on either side) */
139
+ left:102%; /* 100% plus left padding of center column */
140
+ }
141
+ .col2 {
142
+ width:21%; /* Width of left column content (column width minus padding on either side) */
143
+ left:31%; /* width of (right column) plus (center column left and right padding) plus (left column left padding) */
144
+ }
145
+ .col3 {
146
+ width:21%; /* Width of right column content (column width minus padding on either side) */
147
+ left:85%; /* Please make note of the brackets here:
148
+ (100% - left column width) plus (center column left and right padding) plus (left column left and right padding) plus (right column left padding) */
149
+ }
150
+ }
151
+ }
152
+
153
+
154
+
155
+ /* Below are three options for variations on theming:
156
+ 1. Web-app mode: Full-width, full-height page that doesn't scroll (the columns scroll instead) - also requires JS
157
+ 2. Full-width page, fixed-position header, with scrolling content
158
+ 3. Fixed-position header, with scrolling content (2 sections of CSS to uncomment)
159
+ */
160
+
161
+
162
+
163
+ @media only screen and (min-width: 768px) {
164
+ /* For Web-app mode, uncomment this (and the JS in home.coffee) * /
165
+ #wrapper {
166
+ max-width: 100%;
167
+ width:100%;
168
+ margin:0;
169
+ padding:0;
170
+ }
171
+ .col1,.col2,.col3 {
172
+ overflow-y:auto;
173
+ }
174
+ /* */
175
+
176
+ /* For full-width fixed header+nav, uncomment this * /
177
+ #wrapper {
178
+ max-width: 100%;
179
+ width:100%;
180
+ margin:0;
181
+ padding:0;
182
+ }
183
+ .branding, .main_nav {
184
+ position:fixed;
185
+ width:100%;
186
+ top:0;
187
+ margin:0 auto;
188
+ z-index:1000;
189
+ }
190
+ .main_nav {
191
+ top:50px; // Height of .branding
192
+ }
193
+ .col1,.col2,.col3 {
194
+ margin-top:83px; // Height of .branding + .main_nav
195
+ }
196
+ /* */
197
+
198
+ /* For fixed header+nav, uncomment this (and 963 CSS below) * /
199
+ .branding, .main_nav {
200
+ position:fixed;
201
+ width:964px;
202
+ top:0;
203
+ margin:0 auto;
204
+ z-index:1000;
205
+ }
206
+ .main_nav {
207
+ top:50px; // Height of .branding
208
+ }
209
+ .col1,.col2,.col3 {
210
+ margin-top:83px; // Height of .branding + .main_nav
211
+ }
212
+ /* */
213
+ }
214
+ @media only screen and (max-width: 963px) {
215
+ /* For fixed header+nav, uncomment this (and above) * /
216
+ .branding, .main_nav {
217
+ width:100%;
218
+ }
219
+ /* */
220
+ }
@@ -0,0 +1,110 @@
1
+ /* Error messages */
2
+ .flash {
3
+ padding:0.5em 2em;
4
+ font-size:1.5em;
5
+ text-align:center;
6
+ text-shadow:-1px -1px 1px #FFFFFF, 1px 1px 1px rgba(0, 0, 0, 0.3);
7
+ &.success {
8
+ background:$bggreen;
9
+ color:#090;
10
+ }
11
+ &.notice {
12
+ background:$bgblue;
13
+ color:#009;
14
+ }
15
+ &.alert {
16
+ background:$bgyellow;
17
+ color:#770;
18
+ }
19
+ &.error {
20
+ background:$bgred;
21
+ color:#900;
22
+ }
23
+ }
24
+
25
+
26
+ .dataTables_wrapper {
27
+ @include clearfix;
28
+ }
29
+
30
+ div.uni-selector, div.uni-uploader {
31
+ margin-left:-2px; /* Left aligns the uniform masks, but be careful if they're inline */
32
+ }
33
+ div.uni-uploader {
34
+ width:211px;
35
+ span.uni-filename {
36
+ width:124px;
37
+ }
38
+ span.uni-action {
39
+ height:28px;
40
+ }
41
+ input {
42
+ width:100%;
43
+ }
44
+ }
45
+
46
+ .formtastic {
47
+ textarea {
48
+ padding:5px;
49
+ }
50
+ .fragments .label, .choices .label {
51
+ position:relative;
52
+ width:25%;
53
+ margin-right:-25%;
54
+ label {
55
+ position:relative;
56
+ }
57
+ }
58
+ .label { // Override bootstrap label styling
59
+ font-size: inherit;
60
+ font-weight: inherit;
61
+ line-height: inherit;
62
+ text-shadow: none;
63
+ vertical-align: inherit;
64
+ white-space: inherit;
65
+ border:0;
66
+ border-radius:0;
67
+ padding:0;
68
+ color: $text;
69
+ background-color: transparent;
70
+ }
71
+ .inline_choices {
72
+ .choices-group {
73
+ width:100%;
74
+ .choice {
75
+ display:inline-block; zoom:1;*display:inline;
76
+ vertical-align:top;
77
+ margin-right:1em;
78
+ margin:0 1em 0 0;
79
+ }
80
+ }
81
+ }
82
+ }
83
+
84
+
85
+ ul.as-selections {
86
+ width:72%; // To match the formtastic input widths
87
+ border:1px solid #999;
88
+ @include border-radius(3px);
89
+ padding:5px;
90
+ @include box-shadow(inset 0 1px 1px rgba(0,0,0,0.2));
91
+ li.as-original input {
92
+ height:26px;
93
+ margin:0;
94
+ @include box-shadow(none);
95
+ color:#999; /* For the placeholder colour */
96
+ &:focus {color:inherit;}
97
+ }
98
+ }
99
+ .as-results {
100
+ position:absolute;
101
+ left:25%; // To match the formtastic label width
102
+ }
103
+
104
+
105
+ .chzn-drop { // box-sizing overrides
106
+ width:100% !important;
107
+ .chzn-search input {
108
+ width:100% !important;
109
+ }
110
+ }
@@ -0,0 +1,35 @@
1
+ @import 'bootstrap';
2
+ @import 'formtastic-buttonless';
3
+ @import 'autoSuggest';
4
+ @import 'chosen';
5
+ @import 'jquery.dataTables';
6
+ @import 'jquery-ui-1.8.18.custom';
7
+ @import 'uniform.default';
8
+ @import 'bourbon';
9
+
10
+ @import 'speedo/theme';
11
+ @import 'speedo/base';
12
+ @import 'speedo/layout';
13
+ @import 'speedo/plugins';
14
+ @import 'speedo/helpers';
15
+
16
+
17
+
18
+ /* =============================================================================
19
+ Print styles.
20
+ Inlined to avoid required HTTP connection: www.phpied.com/delay-loading-your-print-css/
21
+ ========================================================================== */
22
+
23
+ @media print {
24
+ * { background: transparent !important; color: black !important; text-shadow: none !important; filter:none !important; -ms-filter: none !important; } /* Black prints faster: sanbeiji.com/archives/953 */
25
+ a, a:visited { color: #444 !important; text-decoration: underline; }
26
+ pre, blockquote { border: 1px solid #999; page-break-inside: avoid; }
27
+ thead { display: table-header-group; } /* css-discuss.incutio.com/wiki/Printing_Tables */
28
+ tr, img { page-break-inside: avoid; }
29
+ img { max-width: 100% !important; }
30
+ @page { margin: 0.5cm; }
31
+ p, h2, h3 { orphans: 3; widows: 3; }
32
+ h2, h3{ page-break-after: avoid; }
33
+ }
34
+
35
+
@@ -0,0 +1,62 @@
1
+ /* Colors, base.css */
2
+ $bg: #ddd; /* Background color (if not in web-app mode) */
3
+ $text: #333;
4
+ $link: #0090d5;
5
+ $hover: #17639b;
6
+ /* Pastels, plugins.css */
7
+ $bggreen: #e3fde4;
8
+ $bgblue: #bcf;
9
+ $bgyellow: #ffc;
10
+ $bgred: #f99;
11
+ /* Column background colors, layout.css */
12
+ $maincolbg: #fff;
13
+ $leftcolbg: #f6f6f6;
14
+ $rightcolbg: #fafafa;
15
+
16
+
17
+ .branding {
18
+ padding:5px 0;
19
+ background:#eee;
20
+ .logo {
21
+ float: left;
22
+ margin-left:2%;
23
+ img {
24
+ display:block;
25
+ height: 40px;
26
+ }
27
+ }
28
+ .user {
29
+ float:right;
30
+ margin:10px 2% 0;
31
+ a {
32
+ }
33
+ .user-name {
34
+ }
35
+ .user-logout {
36
+ }
37
+ }
38
+ }
39
+
40
+
41
+ .main_nav {
42
+ padding:5px 0;
43
+ background:#eee;
44
+ .search {
45
+ margin-right:10px;
46
+ }
47
+ .home {
48
+ margin-left:10px;
49
+ }
50
+ a {
51
+ display:inline-block; zoom:1;*display:inline;
52
+ padding:0.2em 0.5em;
53
+ background:#ccc;
54
+ @include border-radius(0.3em);
55
+ &:hover {
56
+ background:#ddd;
57
+ }
58
+ &.active {
59
+ @include box-shadow(inset 0 1px 2px rgba(0,0,0,0.5));
60
+ }
61
+ }
62
+ }
@@ -15,12 +15,15 @@
15
15
 
16
16
  = javascript_include_tag 'speedo/modernizr.min.js'
17
17
  = javascript_include_tag 'speedo/respond.js'
18
+ /[if lt IE 9]
19
+ %script{:src => "https://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE9.js"}
18
20
  = stylesheet_link_tag :application
19
21
  = javascript_include_tag :application
20
22
  = yield :head
21
23
 
22
24
  %body
23
- %noscript#noscript_warning This site works best with JavaScript enabled. Some features may not be available
25
+ %noscript
26
+ #noscript_warning This site works best with JavaScript enabled. Some features may not be available
24
27
  #wrapper.clearfix
25
28
  %header.branding.clearfix
26
29
  = link_to image_tag('speedo/logo.png'), root_url, class: 'logo'