flutie 1.1.2 → 1.1.3

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.
@@ -2,13 +2,13 @@ h1. Flutie
2
2
 
3
3
  Basic, default styles for rails applications
4
4
 
5
- h2. Installation
5
+ h2. Installation & Upgrading
6
6
 
7
7
  Flutie is a Rails engine. It works with versions of Rails greater than 3.0.
8
8
 
9
9
  Flutie is recommended to be run as a gem and included in your Gemfile.
10
10
 
11
- $ rake flutie:install
11
+ bc. rake flutie:install
12
12
 
13
13
  The installer will copy the Flutie stylesheets into public/flutie/stylesheets
14
14
 
@@ -16,11 +16,13 @@ Once Flutie is installed, with your application running (not in production envir
16
16
 
17
17
  Click on the "Default styles" link to view the same markup with a barebones layout that only contains the Flutie stylesheets. Click on "Application styles" to view the markup in your application layout.
18
18
 
19
+ To upgrade, bump the gem version in your Gemfile, and then run 'rake flutie:install' again to get the latest changes moved into your application.
20
+
19
21
  h2. Usage
20
22
 
21
23
  Flutie registers a :flutie shortcut for stylesheets, so in your layout you can do...
22
24
 
23
- <%= stylesheet_link_tag :flutie, 'admin', :cache => true %>
25
+ bc.. <%= stylesheet_link_tag :flutie, 'admin', :cache => true %>
24
26
 
25
27
  ...this will include all the flutie stylesheets, then the 'admin' stylesheet, and it will cache them all into one file.
26
28
 
@@ -28,13 +30,13 @@ h3. Sass
28
30
 
29
31
  If you use Sass in your application, the flutie stylesheets are also available as scss files, installed in public/flutie/sass. This location is automatically added to your Sass template load path. These files can be imported into your own css files for use with the following:
30
32
 
31
- @import "flutie"
33
+ bc. @import "flutie"
32
34
 
33
35
  h3. Custom Styles
34
36
 
35
37
  To add custom styles to the styleguide add partials to the app/views/styleguides directory. For example:
36
38
 
37
- bc. app/views/styleguides/_todo_item.erb:
39
+ app/views/styleguides/_todo_item.erb:
38
40
 
39
41
  bc.. <ol>
40
42
  <li class="todo">This is a todo item</li>
@@ -63,7 +65,7 @@ Fork away and create a "Github Issue":http://github.com/thoughtbot/flutie/issues
63
65
 
64
66
  h2. Development
65
67
 
66
- The actual stylesheet source files are sass, so edit the files in public/stylesheets/sass.
68
+ The actual stylesheet source files are sass, so edit the files in public/stylesheets/sass.
67
69
  To rebuild the normal scss run:
68
70
 
69
- sass -C --update public/stylesheets/sass:public/stylesheets
71
+ bc. sass -C --update public/stylesheets/sass:public/stylesheets
@@ -80,16 +80,57 @@ hr.space {
80
80
  color: #fff;
81
81
  }
82
82
 
83
- /* Clearfix hack I love you */
84
- .clearfix:after {
85
- content:".";
86
- display:block;
87
- height:0;
88
- clear:both;
89
- visibility:hidden;
90
- }
91
-
92
- .clearfix {display:inline-block;}
93
- /* Hide from IE Mac \*/
94
- .clearfix {display:block;}
95
- /* End hide from IE Mac */
83
+ /* for image replacement */
84
+ .ir {
85
+ display: block;
86
+ text-indent: -999em;
87
+ overflow: hidden;
88
+ background-repeat:
89
+ no-repeat;
90
+ text-align: left;
91
+ direction: ltr;
92
+ }
93
+
94
+ /* Hide for both screenreaders and browsers
95
+ css-discuss.incutio.com/wiki/Screenreader_Visibility */
96
+ .hidden {
97
+ display: none;
98
+ visibility: hidden;
99
+ }
100
+
101
+ /* Hide only visually, but have it available for screenreaders
102
+ www.webaim.org/techniques/css/invisiblecontent/ & j.mp/visuallyhidden */
103
+ .visuallyhidden { position: absolute !important;
104
+ clip: rect(1px 1px 1px 1px); /* IE6, IE7 */
105
+ clip: rect(1px, 1px, 1px, 1px); }
106
+
107
+ /* Hide visually and from screenreaders, but maintain layout */
108
+ .invisible { visibility: hidden; }
109
+
110
+ /* >> The Magnificent CLEARFIX: Updated to prevent margin-collapsing on child elements << j.mp/bestclearfix */
111
+ .clearfix:before, .clearfix:after {
112
+ content: "\0020";
113
+ display: block;
114
+ height: 0;
115
+ visibility: hidden;
116
+ }
117
+
118
+ .clearfix:after { clear: both; }
119
+ /* Fix clearfix: blueprintcss.lighthouseapp.com/projects/15318/tickets/5-extra-margin-padding-bottom-of-page */
120
+ .clearfix { zoom: 1; }
121
+
122
+ .ie7 img { -ms-interpolation-mode: bicubic; }
123
+
124
+ @media print {
125
+ * { background: transparent !important; color: #444 !important; text-shadow: none !important; }
126
+ a, a:visited { color: #444 !important; text-decoration: underline; }
127
+ a:after { content: " (" attr(href) ")"; }
128
+ abbr:after { content: " (" attr(title) ")"; }
129
+ .ir a:after { content: ""; } /* Don't show links for images */
130
+ pre, blockquote { border: 1px solid #999; page-break-inside: avoid; }
131
+ thead { display: table-header-group; } /* css-discuss.incutio.com/wiki/Printing_Tables */
132
+ tr, img { page-break-inside: avoid; }
133
+ @page { margin: 0.5cm; }
134
+ p, h2, h3 { orphans: 3; widows: 3; }
135
+ h2, h3{ page-break-after: avoid; }
136
+ }
@@ -83,6 +83,7 @@ fieldset fieldset fieldset {
83
83
  legend {
84
84
  font-weight: bold;
85
85
  }
86
+ .ie6 legend, .ie7 legend { margin-left: -7px; }
86
87
 
87
88
  fieldset.buttons {
88
89
  background: inherit;
@@ -119,6 +120,9 @@ input[type="week"] {
119
120
  padding: 3px 2px;
120
121
  width: 300px;
121
122
  }
123
+ .ie6 input {
124
+ vertical-align: text-bottom;
125
+ }
122
126
 
123
127
  input[disabled='disabled'] {
124
128
  background-color: #fcfcfc;
@@ -131,6 +135,9 @@ input[type="checkbox"] {
131
135
  top: -2px;
132
136
  vertical-align: middle;
133
137
  }
138
+ .ie7 input[type="checkbox"] {
139
+ vertical-align: baseline;
140
+ }
134
141
 
135
142
  input[type="radio"] {
136
143
  margin: 0 3px 0 0;
@@ -156,6 +163,7 @@ textarea {
156
163
  margin: 0 0.5em 0.5em 0;
157
164
  padding: 5px;
158
165
  width: 440px;
166
+ overflow: auto;
159
167
  }
160
168
 
161
169
  /* Select fields */
@@ -1,53 +1,55 @@
1
- /* http://meyerweb.com/eric/tools/css/reset/ */
2
- /* v1.0 | 20080212 */
3
- html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p,
4
- blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em,
5
- font, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var,
6
- b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table,
7
- caption, tbody, tfoot, thead, tr, th, td {
8
- margin: 0;
9
- padding: 0;
10
- border: 0;
11
- outline: 0;
12
- font-size: 100%;
13
- vertical-align: baseline;
14
- background: transparent;
15
- }
1
+ /*
2
+ html5doctor.com Reset Stylesheet (Eric Meyer's Reset Reloaded + HTML5 baseline)
3
+ v1.4 2009-07-27 | Authors: Eric Meyer & Richard Clark
4
+ html5doctor.com/html-5-reset-stylesheet/
5
+ */
6
+
7
+ html, body, div, span, object, iframe,
8
+ h1, h2, h3, h4, h5, h6, p, blockquote, pre,
9
+ abbr, address, cite, code,
10
+ del, dfn, em, img, ins, kbd, q, samp,
11
+ small, strong, sub, sup, var,
12
+ b, i,
13
+ dl, dt, dd, ol, ul, li,
14
+ fieldset, form, label, legend,
15
+ table, caption, tbody, tfoot, thead, tr, th, td,
16
+ article, aside, canvas, details, figcaption, figure,
17
+ footer, header, hgroup, menu, nav, section, summary,
18
+ time, mark, audio, video {
19
+ margin:0;
20
+ padding:0;
21
+ border:0;
22
+ outline:0;
23
+ font-size:100%;
24
+ vertical-align:baseline;
25
+ background:transparent;
26
+ }
27
+
28
+ article, aside, details, figcaption, figure,
29
+ footer, header, hgroup, menu, nav, section {
30
+ display:block;
31
+ }
32
+
33
+ nav ul { list-style:none; }
34
+
35
+ blockquote, q { quotes:none; }
16
36
 
17
- body {
18
- line-height: 1;
19
- }
37
+ blockquote:before, blockquote:after,
38
+ q:before, q:after { content:''; content:none; }
20
39
 
21
- ol, ul {
22
- list-style: none;
23
- }
40
+ a { margin:0; padding:0; font-size:100%; vertical-align:baseline; background:transparent; }
24
41
 
25
- blockquote, q {
26
- quotes: none;
27
- }
42
+ ins { background-color:#ff9; color:#000; text-decoration:none; }
28
43
 
29
- blockquote:before, blockquote:after,
30
- q:before, q:after {
31
- content: '';
32
- content: none;
33
- }
44
+ mark { background-color:#ff9; color:#000; font-style:italic; font-weight:bold; }
34
45
 
35
- /* remember to define focus styles! */
36
- :focus {
37
- outline: 0;
38
- }
46
+ del { text-decoration: line-through; }
39
47
 
40
- /* remember to highlight inserts somehow! */
41
- ins {
42
- text-decoration: none;
43
- }
48
+ abbr[title], dfn[title] { border-bottom:1px dotted; cursor:help; }
44
49
 
45
- del {
46
- text-decoration: line-through;
47
- }
50
+ /* tables still need cellspacing="0" in the markup */
51
+ table { border-collapse:collapse; border-spacing:0; }
48
52
 
49
- /* tables still need 'cellspacing="0"' in the markup */
50
- table {
51
- border-collapse: collapse;
52
- border-spacing: 0;
53
- }
53
+ hr { display:block; height:1px; border:0; border-top:1px solid #ccc; margin:1em 0; padding:0; }
54
+
55
+ input, select { vertical-align:middle; }
@@ -116,7 +116,10 @@ dfn {
116
116
 
117
117
  pre, code {
118
118
  margin: 1.5em 0;
119
- white-space: pre;
119
+ white-space: pre; /* CSS2 */
120
+ white-space: pre-wrap; /* CSS 2.1 */
121
+ white-space: pre-line; /* CSS 3 (and 2.1 as well, actually) */
122
+ word-wrap: break-word; /* IE */
120
123
  }
121
124
 
122
125
  pre, code, tt {
@@ -134,4 +137,4 @@ tt {
134
137
  display: block;
135
138
  line-height: 1.5;
136
139
  margin: 1.5em 0;
137
- }
140
+ }
metadata CHANGED
@@ -1,13 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flutie
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
5
4
  prerelease: false
6
5
  segments:
7
6
  - 1
8
7
  - 1
9
- - 2
10
- version: 1.1.2
8
+ - 3
9
+ version: 1.1.3
11
10
  platform: ruby
12
11
  authors:
13
12
  - Chad Pytel
@@ -19,18 +18,16 @@ autorequire:
19
18
  bindir: bin
20
19
  cert_chain: []
21
20
 
22
- date: 2010-11-12 00:00:00 -05:00
21
+ date: 2010-11-26 00:00:00 -05:00
23
22
  default_executable:
24
23
  dependencies:
25
24
  - !ruby/object:Gem::Dependency
26
25
  name: haml
27
26
  prerelease: false
28
27
  requirement: &id001 !ruby/object:Gem::Requirement
29
- none: false
30
28
  requirements:
31
29
  - - ">="
32
30
  - !ruby/object:Gem::Version
33
- hash: 3
34
31
  segments:
35
32
  - 0
36
33
  version: "0"
@@ -75,27 +72,23 @@ rdoc_options: []
75
72
  require_paths:
76
73
  - lib
77
74
  required_ruby_version: !ruby/object:Gem::Requirement
78
- none: false
79
75
  requirements:
80
76
  - - ">="
81
77
  - !ruby/object:Gem::Version
82
- hash: 3
83
78
  segments:
84
79
  - 0
85
80
  version: "0"
86
81
  required_rubygems_version: !ruby/object:Gem::Requirement
87
- none: false
88
82
  requirements:
89
83
  - - ">="
90
84
  - !ruby/object:Gem::Version
91
- hash: 3
92
85
  segments:
93
86
  - 0
94
87
  version: "0"
95
88
  requirements: []
96
89
 
97
90
  rubyforge_project:
98
- rubygems_version: 1.3.7
91
+ rubygems_version: 1.3.6
99
92
  signing_key:
100
93
  specification_version: 3
101
94
  summary: Flutie adds default stylesheets to web apps