Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #40 from thoughtbot/mj-remove-stylesheets

Remove stylesheets from flutie
  • Loading branch information...
commit e1d9dcb41bdac99b18dd3dfff77a0fcad1eca48a 2 parents 35b9e1e + 7d2f3d9
@mjankowski mjankowski authored
Showing with 10 additions and 2,299 deletions.
  1. +2 −30 Gemfile.lock
  2. +4 −81 README.md
  3. +0 −103 app/assets/stylesheets/_defaults.scss
  4. +0 −41 app/assets/stylesheets/_flashes.scss
  5. +0 −7 app/assets/stylesheets/_flutie.scss
  6. +0 −202 app/assets/stylesheets/_forms.scss
  7. +0 −45 app/assets/stylesheets/_lists.scss
  8. +0 −95 app/assets/stylesheets/_reset.scss
  9. +0 −39 app/assets/stylesheets/_tables.scss
  10. +0 −133 app/assets/stylesheets/_type.scss
  11. +0 −27 app/controllers/flutie/styleguides_controller.rb
  12. +0 −734 app/views/flutie/styleguides/show.erb
  13. +0 −47 app/views/layouts/flutie.erb
  14. +0 −1  config/initializers/expansion.rb
  15. +0 −5 config/routes.rb
  16. +3 −5 flutie.gemspec
  17. +1 −1  lib/flutie/version.rb
  18. +0 −25 lib/tasks/flutie.rake
  19. +0 −556 public/stylesheets/flutie.css
  20. +0 −21 server.rb
  21. +0 −62 spec/controllers/styleguides_controller_spec.rb
  22. +0 −1  spec/fixtures/app/views/styleguides/_one.erb
  23. +0 −1  spec/fixtures/app/views/styleguides/_two.erb
  24. +0 −7 spec/flutie_spec.rb
  25. +0 −16 spec/initialization_spec.rb
  26. +0 −9 spec/integration/navigation_spec.rb
  27. +0 −5 spec/spec_helper.rb
View
32 Gemfile.lock
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
- flutie (1.3.4)
+ flutie (2.0.0)
GEM
remote: http://rubygems.org/
@@ -22,33 +22,17 @@ GEM
activesupport (3.2.9)
i18n (~> 0.6)
multi_json (~> 1.0)
- addressable (2.3.2)
appraisal (0.5.1)
bundler
rake
builder (3.0.4)
- capybara (2.0.1)
- mime-types (>= 1.16)
- nokogiri (>= 1.3.3)
- rack (>= 1.0.0)
- rack-test (>= 0.5.4)
- selenium-webdriver (~> 2.0)
- xpath (~> 1.0.0)
- childprocess (0.3.6)
- ffi (~> 1.0, >= 1.0.6)
diff-lcs (1.1.3)
erubis (2.7.0)
- ffi (1.2.0)
hike (1.2.1)
i18n (0.6.1)
journey (1.0.4)
json (1.7.5)
- libwebsocket (0.1.7.1)
- addressable
- websocket
- mime-types (1.19)
multi_json (1.5.0)
- nokogiri (1.5.5)
rack (1.4.1)
rack-cache (1.2)
rack (>= 0.4)
@@ -77,32 +61,20 @@ GEM
rspec-core (~> 2.12.0)
rspec-expectations (~> 2.12.0)
rspec-mocks (~> 2.12.0)
- rubyzip (0.9.9)
- sass (3.2.3)
- selenium-webdriver (2.27.2)
- childprocess (>= 0.2.5)
- libwebsocket (~> 0.1.3)
- multi_json (~> 1.0)
- rubyzip
sprockets (2.2.2)
hike (~> 1.2)
multi_json (~> 1.0)
rack (~> 1.0)
tilt (~> 1.1, != 1.3.0)
- sqlite3 (1.3.6)
+ sqlite3 (1.3.7)
thor (0.16.0)
tilt (1.3.3)
- websocket (1.0.4)
- xpath (1.0.0)
- nokogiri (~> 1.3)
PLATFORMS
ruby
DEPENDENCIES
appraisal
- capybara (>= 0.4.0)
flutie!
rspec-rails
- sass
sqlite3
View
85 README.md
@@ -3,57 +3,16 @@ Flutie
[![Build Status](https://secure.travis-ci.org/thoughtbot/flutie.png)](http://travis-ci.org/thoughtbot/flutie)
-Basic, default styles for rails applications
+Extra view helpers for Rails applications.
-We also have a [Bourbon](https://github.com/thoughtbot/bourbon) gem available, which can be used to extend flutie with a set of vanilla sass mixins.
+We also have the [Bourbon](https://github.com/thoughtbot/bourbon) and [Neat](https://github.com/thoughtbot/neat) gems available.
Installation & Upgrading
------------------------
-Flutie is a Rails engine. It works with versions of Rails greater than 3.0.
+Flutie is a Rails engine. It works with versions of Rails greater than 3.0. Flutie is recommended to be run as a gem and included in your Gemfile:
-Flutie is recommended to be run as a gem and included in your Gemfile:
-
- gem "flutie"
-
-### Rails 3.1 & Rails 3.2
-
-After you've bundled, if you are using rails 3.1 or greater with asset pipelining enabled, simply add:
-
- @import 'flutie';
-
-as a sass import in the application stylesheet manifest (app/assets/stylesheets/application.css.scss).
-
-If this is a new Rails 3.1 or 3.2 project you will need to rename the application.css manifest to application.css.scss so it is processed
-by the asset pipeline and sass to perform the @import.
-
-### Rails 3.0
-
-After you've bundled, run the installer:
-
- rake flutie:install
-
-The installer will copy the Flutie stylesheets sass into public/stylesheets/sass/flutie, and a static flutie.css into public/stylesheets/ in your app.
-
-Once Flutie is installed, with your application running (not in production environment) you can browse to /styleguides. This will present you with many standard markup elements that are present in a Rails application, in your default application layout.
-
-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.
-
-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.
-
-Flutie registers a :flutie shortcut for stylesheets, so in your layout you can do...
-
- <%= stylesheet_link_tag :flutie, 'admin', :cache => true %>
-
-...this will include all the flutie stylesheets, then the 'admin' stylesheet, and it will cache them all into one file.
-
-#### Sass
-
-If you use Sass in your application, the flutie stylesheets are also available as scss files, installed in public/stylesheets/sass/flutie. These files can be imported into your own sass files for use with the following:
-
- @import "flutie/flutie";
-
-You'll want to import flutie before any of your own styles so that you can do things like extend your classes with flutie classes.
+ gem 'flutie'
Helpers
-------
@@ -96,28 +55,6 @@ Anything which has been added via `content_for(:extra_body_classes)` will be add
<body class="<%= body_class %>">
<body class="widgets widgets-show special-page">
-Custom Styles
--------------
-
-To add custom styles to the styleguide add partials to the app/views/styleguides directory. For example:
-
- app/views/styleguides/_todo_item.erb:
-
- <ol>
- <li class="todo">This is a todo item</li>
- </ol>
-
-Plugin authors can also add to the styleguide by ensuring that their view path is in `ActionController::Base.view_paths` and by placing a partial under the styleguides directory. For example:
-
- ActionController::Base.append_view_path(File.join(File.dirname(__FILE__), 'views'))
-
- my_awesome_plugin/views/styleguides/_pagination.erb:
-
- <div class="pagination">
- <a href="#prev">Previous</a>
- <a href="#next">Next</a>
- </div>
-
Suggestions, Bugs, Refactoring?
-------------------------------
@@ -125,20 +62,6 @@ Fork away and create a [Github Issue](http://github.com/thoughtbot/flutie/issues
Please see CONTRIBUTING.md for details.
-Development
------------
-
-The actual stylesheet source files are sass, so edit the files in app/assets/stylesheets/.
-To rebuild the static flutie.css file, you can run:
-
- sass --update app/assets/stylesheets/_flutie.scss:public/stylesheets/flutie.css
-
-You can also run a local server which will allow you to view the flutie styleguide:
-
- ruby server.rb
-
-Browsing to localhost at the port output by the above command will show you the styleguide.
-
Credits
-------
View
103 app/assets/stylesheets/_defaults.scss
@@ -1,103 +0,0 @@
-body {
- color: #333;
- font-size: 100%;
- font-family: "helvetica neue", arial, helvetica, "lucida grande", sans-serif;
-}
-
-h1, h2, h3, h4, h5, h6 {
- color: #111;
- font-family: "helvetica neue", Helvetica, arial, sans-serif;
-}
-
-
-/* Misc classes and elements */
-/* Use a .box to create a padded box inside a column. */
-.box {
- background: #eee;
- margin-bottom: 1em;
- margin-bottom: 1rem;
- padding: 1em;
- padding: 1rem;
-}
-
-/* Use this to create a horizontal ruler across a column. */
-hr {
- background: #ddd;
- border: none;
- clear: both;
- color: #ddd;
- float: none;
- height: 1px;
- margin: 0 0 .75rem;
- width: 100%;
-}
-
-hr.space {
- background: #fff;
- color: #fff;
-}
-
-/* for image replacement */
-.ir {
- background-repeat: no-repeat;
- direction: ltr;
- display: block;
- overflow: hidden;
- text-align: left;
- text-indent: -9999px;
-}
-
-/* Hide for both screenreaders and browsers
-css-discuss.incutio.com/wiki/Screenreader_Visibility */
-.hidden {
- display: none;
- visibility: hidden;
-}
-
-/* Hide only visually, but have it available for screenreaders
-www.webaim.org/techniques/css/invisiblecontent/ & j.mp/visuallyhidden */
-.visuallyhidden {
- clip: rect(1px 1px 1px 1px); /* IE6, IE7 */
- clip: rect(1px, 1px, 1px, 1px);
- position: absolute !important;
-}
-
-/* Hide visually and from screenreaders, but maintain layout */
-.invisible {
- visibility: hidden;
-}
-
-/* >> The Magnificent CLEARFIX: Updated to prevent margin-collapsing on child elements << j.mp/bestclearfix */
-.clearfix:before, .clearfix:after {
- content: "\0020";
- display: block;
- height: 0;
- visibility: hidden;
-}
-
-.clearfix:after {
- clear: both;
-}
-
-/* Fix clearfix: blueprintcss.lighthouseapp.com/projects/15318/tickets/5-extra-margin-padding-bottom-of-page */
-.clearfix {
- zoom: 1;
-}
-
-.ie7 img {
- -ms-interpolation-mode: bicubic;
-}
-
-@media print {
- * { background: transparent !important; color: #444 !important; text-shadow: none !important; }
- a, a:visited { color: #444 !important; text-decoration: underline; }
- a:after { content: " (" attr(href) ")"; }
- abbr:after { content: " (" attr(title) ")"; }
- .ir a:after { content: ""; } /* Don't show links for images */
- pre, blockquote { border: 1px solid #999; page-break-inside: avoid; }
- thead { display: table-header-group; } /* css-discuss.incutio.com/wiki/Printing_Tables */
- tr, img { page-break-inside: avoid; }
- @page { margin: 0.5cm; }
- p, h2, h3 { orphans: 3; widows: 3; }
- h2, h3{ page-break-after: avoid; }
-}
View
41 app/assets/stylesheets/_flashes.scss
@@ -1,41 +0,0 @@
-/* Success, error & notice boxes for messages and errors. */
-div.error, div.notice, div.success, #flash_failure, #flash_success, #flash_notice {
- border: 1px solid #ddd;
- -moz-border-radius: .5rem;
- -webkit-border-radius: .5rem;
- border-radius: .5rem;
- margin-bottom: .75em;
- margin-bottom: .75rem;
- padding: .75em;
- padding: .75rem;
-}
-
-div.error, #flash_failure {
- background: #FBE3E4;
- border-color: #FBC2C4;
- color: #D12F19;
-}
-
-div.error a, #flash_failure a {
- color: #D12F19;
-}
-
-div.notice, #flash_notice {
- background: #FFF6BF;
- border-color: #FFD324;
- color: #817134;
-}
-
-div.notice a, #flash_notice a {
- color: #817134;
-}
-
-div.success, #flash_success {
- background: #E6EFC2;
- border-color: #C6D880;
- color: #529214;
-}
-
-div.success a, #flash_success a {
- color: #529214;
-}
View
7 app/assets/stylesheets/_flutie.scss
@@ -1,7 +0,0 @@
-@import 'reset';
-@import 'defaults';
-@import 'flashes';
-@import 'type';
-@import 'forms';
-@import 'tables';
-@import 'lists';
View
202 app/assets/stylesheets/_forms.scss
@@ -1,202 +0,0 @@
-/* Forms */
-
-/*
-* Remove inner padding and border in FF3/4
-* www.sitepen.com/blog/2008/05/14/the-devils-in-the-details-fixing-dojos-toolbar-buttons/
-*/
-input[type="submit"]::-moz-focus-inner {
- border: 0;
- padding: 0;
-}
-
-form ol {
- list-style: none;
- margin: 0 0 .75em 0;
- margin: 0 0 .75rem 0;
-}
-
-form ol ol {
- margin-left: 0;
-}
-
-form ol li {
- list-style-position: outside;
- margin: 0 0 .75em 0;
- margin: 0 0 .75rem 0;
-}
-
-/*list-style-position fixes IE label margin bug*/
-form ol ol li {
- list-style-position: outside;
- margin: 0 0 .25em 0;
- margin: 0 0 .25rem 0;
-}
-
-form ol li.error input {
- background: #FBE3E4;
-}
-
-p.inline-errors {
- color: #D12F19;
-}
-
-form ol li.file {
- background: #e1e1e1;
- border: 1px solid #c8c8c8;
- padding: .75em;
- padding: .75rem;
-}
-
-form abbr {
- border-bottom: 0;
-}
-
-label {
- display: block;
-}
-
-.required label {
- font-weight: bold;
-}
-
-.checkbox_field label,
-.radio_field label {
- font-weight: normal;
-}
-
-a.cancel {
- color: #7d0d0d;
-}
-
-.inline-hints {
- color: #666;
- font-size: .75em;
- font-size: .75rem;
- margin-bottom: .25em;
- margin-bottom: .25rem;
-}
-
-/* Fieldsets */
-fieldset {
- background: #f1f1f1;
- border: 1px solid #e3e3e3;
- margin: 0 0 1em 0;
- margin: 0 0 1rem 0;
- padding: 1rem 1rem .75em 1em;
- padding: 1rem 1rem .75rem 1rem;
-}
-
-fieldset fieldset, fieldset fieldset fieldset {
- border: 0;
- padding: 0;
-}
-
-legend {
- font-weight: bold;
-}
-.ie6 legend, .ie7 legend {
- margin-left: .5em;
- margin-left: .5rem;
-}
-
-fieldset.buttons {
- background: inherit;
- border: 0;
- padding: 0;
-}
-
-fieldset.buttons li {
- display: inline;
-}
-
-.radio fieldset {
- margin: 0;
- padding: 0;
-}
-
-/* Text fields */
-input[type="color"],
-input[type="date"],
-input[type="datetime"],
-input[type="datetime-local"],
-input[type="email"],
-input[type="month"],
-input[type="number"],
-input[type="password"],
-input[type="range"],
-input[type="search"],
-input[type="tel"],
-input[type="text"],
-input[type="time"],
-input[type="url"],
-input[type="week"] {
- font-size: inherit;
- padding: .25em;
- padding: .25rem;
-}
-.ie6 input {
- vertical-align: text-bottom;
-}
-
-input[disabled='disabled'] {
- background-color: #fcfcfc;
- cursor:default;
-}
-
-input[type="checkbox"] {
- margin: 0 .25em 0 0;
- margin: 0 .25rem 0 0;
- position: relative;
- vertical-align: middle;
-}
-.ie7 input[type="checkbox"] {
- vertical-align: baseline;
-}
-
-input[type="radio"] {
- margin: 0 .25em 0 0;
- margin: 0 .25rem 0 0;
- position: relative;
- vertical-align: middle;
-}
-
-.check_boxes label {
- display: inline;
- padding: 0;
- vertical-align: middle;
-}
-
-.radio label {
- padding: 0;
-}
-
-/* Textareas */
-textarea {
- font-size: inherit;
- margin: 0 .5em .5em 0;
- margin: 0 .5rem .5rem 0;
- padding: .5em;
- padding: .5rem;
- overflow: auto;
-}
-
-/* Select fields */
-fieldset .select select {
- font-size: .75em;
- font-size: .75rem;
-}
-
-optgroup {
- margin: 0 0 .5em 0;
- margin: 0 0 .5rem 0;
-}
-
-/* Date & Time */
-form ol li.date select, form ol li.time select, form ol li.datetime select {
- display: inline;
- width: auto;
-}
-
-form ol li.date ol li, form ol li.time ol li, form ol li.datetime ol li {
- display: inline-block;
-}
View
45 app/assets/stylesheets/_lists.scss
@@ -1,45 +0,0 @@
-/* Lists */
-
-ul, ol {
- list-style-position: inside;
- margin-bottom: 1em;
- margin-bottom: 1rem;
-}
-
-ul {
- list-style-type: disc;
-}
-
-ol {
- list-style-type: decimal;
-}
-
-dl {
- line-height: 1.4em;
- margin-bottom: 1em;
- margin-bottom: 1rem;
-}
-
-dl dt {
- font-weight: bold;
- margin-top: .5em;
- margin-top: .5rem;
-}
-
-dl dd {
- margin-bottom: 0;
-}
-
-dd {
- margin-left: .5em;
- margin-left: .5rem;
-}
-
-li {
- line-height: 1.4em;
-}
-
-ol ol, ol ul, ul ul, ul ol {
- margin-left: .75em;
- margin-left: .75rem;
-}
View
95 app/assets/stylesheets/_reset.scss
@@ -1,95 +0,0 @@
-/*
-html5doctor.com Reset Stylesheet
-v1.6.1
-Last Updated: 2010-09-17
-Author: Richard Clark - http://richclarkdesign.com
-Twitter: @rich_clark
-*/
-
-html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote,
-pre, abbr, address, cite, code, del, dfn, em, img, ins, kbd, q, samp, small,
-strong, sub, sup, var,b, i,dl, dt, dd, ol, ul, li,fieldset, form, label,
-legend,table, caption, tbody, tfoot, thead, tr, th, td,article, aside, canvas,
-details, figcaption, figure, footer, header, hgroup, menu, nav, section,
-summary, time, mark, audio, video {
- margin:0;
- padding:0;
- border:0;
- outline:0;
- font-size:100%;
- vertical-align:baseline;
- background:transparent;
-}
-
-body {
- line-height:1;
-}
-
-article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav,
-section {
- display:block;
-}
-
-nav ul {
- list-style:none;
-}
-
-blockquote, q {
- quotes:none;
-}
-
-blockquote:before, blockquote:after, q:before, q:after {
- content:'';
- content:none;
-}
-
-a {
- margin:0;
- padding:0;
- font-size:100%;
- vertical-align:baseline;
- background:transparent;
-}
-
-/* change colours to suit your needs */
-ins {
- background-color:#ff9;
- color:#000;
- text-decoration:none;
-}
-
-/* change colours to suit your needs */
-mark {
- background-color:#ff9;
- color:#000;
- font-style:italic;
- font-weight:bold;
-}
-
-del {
- text-decoration: line-through;
-}
-
-abbr[title], dfn[title] {
- border-bottom:1px dotted;
- cursor:help;
-}
-
-table {
- border-collapse:collapse;
- border-spacing:0;
-}
-
-/* change border colour to suit your needs */
-hr {
- display:block;
- height:1px;
- border:0;
- border-top:1px solid #cccccc;
- margin:1em 0;
- padding:0;
-}
-
-input, select {
- vertical-align: middle;
-}
View
39 app/assets/stylesheets/_tables.scss
@@ -1,39 +0,0 @@
-/* Tables */
-
-table {
- margin-bottom: 1.5em;
- margin-bottom: 1.5rem;
- width: 100%;
-}
-
-th {
- border-bottom: 2px solid #ccc;
- font-weight: bold;
- text-align: left;
-}
-
-td {
- border-bottom: 1px solid #ddd;
-}
-
-caption, th, td {
- padding: .25em .75em .25em 0;
- padding: .25rem .75rem .25rem 0;
-}
-
-caption {
- background: #f1f1f1;
- margin-bottom: .75em;
- margin-bottom: .75rem;
- padding: .75em 0;
- padding: .75rem 0;
-}
-
-tr, td, th {
- vertical-align: middle;
-}
-
-/* Use this if you use span-x classes on th/td. */
-table .last {
- padding-right: 0;
-}
View
133 app/assets/stylesheets/_type.scss
@@ -1,133 +0,0 @@
-/* Headings */
-h1, h2, h3, h4, h5, h6 {
- font-weight: bold;
- line-height: 1.2em;
-}
-
-h1 {
- font-size: 1.75em;
- font-size: 1.75rem;
-}
-
-h2 {
- font-size: 1.5em;
- font-size: 1.5rem;
-}
-
-h3 {
- font-size: 1.25em;
- font-size: 1.25rem;
-}
-
-h4 {
- font-size: 1em;
- font-size: 1rem;
-}
-
-h5 {
- font-size: .75em;
- font-size: .75rem;
-}
-
-h6 {
- font-size: .5em;
- font-size: .5rem;
-}
-
-/* Text elements */
-p {
- line-height: 1.4em;
-}
-
-/* Use this if the image is at the top of the <p>. */
-p img.top {
- margin-top: 0;
-}
-
-img {
- margin: 0 0 .75em;
- margin: 0 0 .75rem;
-}
-
-abbr, acronym {
- border-bottom: 1px dotted #666;
- cursor: help;
-}
-
-address {
- font-style: italic;
- margin-top: 1em;
- margin-top: 1rem;
-}
-
-del {
- color:#666;
-}
-
-a, a:link {
- color: #1a4882;
- text-decoration: underline;
-}
-
-a:visited {
- color: #1a4882;
-}
-
-a:hover {
- color: #052246;
-}
-
-a:active, a:focus {
- color: #1a4882;
-}
-
-blockquote {
- border-left: 4px solid #d1d1d1;
- color: #666;
- font-style: italic;
- margin: 1em 0;
- margin: 1rem 0;
- padding-left: .75em;
- padding-left: .75rem;
-}
-
-strong {
- font-weight: bold;
-}
-
-em,
-dfn {
- font-style: italic;
-}
-
-dfn {
- font-weight: bold;
-}
-
-pre, code {
- margin: .75em 0;
- margin: .75rem 0;
- white-space: pre; /* CSS2 */
- white-space: pre-wrap; /* CSS 2.1 */
- word-wrap: break-word; /* IE */
-}
-
-pre, code, tt {
- font: .75rem 'andale mono', 'monotype.com', 'lucida console', monospace;
- font-size: .75em;
- font-size: .75rem;
- line-height: 1.4em;
-}
-
-pre.code {
- background: #000;
- color: #fff;
- padding: 1.25em;
- padding: 1.25rem;
-}
-
-tt {
- display: block;
- line-height: 1.4em;
- margin: 1rem 0;
-}
View
27 app/controllers/flutie/styleguides_controller.rb
@@ -1,27 +0,0 @@
-module Flutie
-
- class StyleguidesController < ApplicationController
-
- unloadable
-
- def show
- @styleguides = styleguides
- render :layout => "flutie" if params[:flutie] == "true"
- end
-
- private
-
- def styleguides
- all_styleguide_partials = ActionController::Base.view_paths.map do |view_path|
- styleguide_path = File.join(view_path.to_s, 'styleguides')
- if File.exists?(styleguide_path)
- Dir.glob(styleguide_path + '/_*.*').map { |file| file.chomp(File.extname(file)) }
- else
- nil
- end
- end
- all_styleguide_partials.flatten.compact
- end
- end
-
-end
View
734 app/views/flutie/styleguides/show.erb
@@ -1,734 +0,0 @@
-<div>
- <h1>This is an example page of our basic styles</h1>
- <h2>This is an h2 level heading</h2>
-
- <p>Wolbachia pipientis is a maternally transmitted obligate intracellular bacterium that chronically infects thousands of insect species, as well as a range of other arthropods and filarial nematodes. Wolbachia bacteria can induce various reproductive abnormalities in hosts that promote the bacteria's vertical transmission and spread. The discordance of host and Wolbachia phylogenies indicates that these bacteria have moved between host lineages on <a href="#">multiple occasions</a> during their evolutionary history, although the mechanisms that facilitate the transfer of Wolbachia are not well understood. The success of such host shifts is inherently reliant on the ability of the bacteria to adapt to new intracellular environments.</p>
-
- <p>The experimental transfer of Wolbachia between host species (transinfection) has proved technically challenging, and the success of such experiments is difficult to predict. Despite an increasing number of reports that document Wolbachia transinfection, many attempts to experimentally infect host species are unsuccessful due to poor maternal transmission rates in the novel host (40). In some cases, transferred strains are extremely stable and maternally inherited at very high rates. This situation occurs primarily when Wolbachia is transferred within or between closely related species in a family or genus. In other cases, the infecting strain appears to be poorly adapted to its new host, showing fluctuating infection densities and various degrees of transovarial transmission. The result is often the loss of infection within a few host generations. Not surprisingly, Wolbachia infections tend to be more susceptible to loss when they have been transferred between phylogenetically distant hosts (17, 35). Similarly, those species that do not naturally harbor Wolbachia can be especially challenging to successfully transinfect.</p>
-
- <blockquote>
- <p>Blockquoted text. Not too long ago, two friends of mine were talking to a Cuban refugee, a businessman who had escaped from Castro, and in the midst of his story one of my friends turned to the other and said, "We don't know how lucky we are." And the Cuban stopped and said, "How lucky you are? I had someplace to escape to." And in that sentence he told us the entire story. If we lose freedom here, there's no place to escape to. This is the last stand on earth.</p>
- </blockquote>
-
- <h3>This is an h3 level heading</h3>
- <p>Senator Humphrey last week charged that Barry Goldwater, as President, would seek to eliminate farmers. He should do his homework a little better, because he'll find out that we've had a decline of 5 million in the farm population under these government programs. He'll also find that the Democratic administration has sought to get from Congress [an] extension of the farm program to include that three-fourths that is now free. He'll find that they've also asked for the right to imprison farmers who wouldn't keep books as prescribed by the federal government. The Secretary of Agriculture asked for the right to seize farms through condemnation and resell them to other individuals. And contained in that same program was a provision that would have allowed the federal government to remove 2 million farmers from the soil.</p>
-
- <hr />
-
- <h1>This is an h1 heading</h1>
- <h2>This is an h2 heading</h2>
- <h3>This is an h3 heading</h3>
- <h4>This is an h4 heading</h4>
- <h5>This is an h5 heading</h5>
- <h6>This is an h6 heading</h6>
-
- <hr />
-
- <h1>This is an h1 heading. It's extremely long and will undoubtedly wrap on a line or two by the time it's completely and utterly finished in ultimate perpetuity.</h1>
- <p>And this is some text in a paragraph below it. Looks good. To understand what is really going on in a colony of ants or bees, Dr. Dornhaus, an assistant professor of ecology and evolutionary biology at the University of Arizona, tracks the little creatures individually — hence the paint and the numbers. Individual ants, she said, have “their own brains and legs, as well as complex and flexible behaviors.” She continues, “Each ant’s behavior and the rules under which it operates generate a pattern for the colony, so it’s crucial to discover its individual cognitive skill.”</p>
- <h2>This is an h2 heading. It's also far too long for a typical headline but we need to know what it will look like when it wraps. I'm sure you understand. Don't read too far in to it, if at all possible.</h2>
- <p>And this is some text in a paragraph below it. The study identifies that there are two scenarios in which a group can act as a unit. The first is when all the members are very closely related, and carry the same genes, so ensuring their genes are passed on to the next generation. The second is when the group's behaviour is controlled by a form of policing -in honey bee hives, for example, any egg not laid by the queen is destroyed by worker bees, to ensure only the queen's offspring survive. Both methods ensure that all the individuals involved are united in a common purpose.</p>
- <h3>This is an h3 heading that, as you can probably imagine, is going to be much too long than is typically desired but you have to understand there is a perfectly good reason.</h3>
- <p>And this is some text in a paragraph below it. Dr Andy Gardner, from the School of Biological Sciences at the University of Edinburgh, said: "We often see animals appearing to move in unison, such as bison or fish. However, what looks like a team effort is in fact each animal jostling to get to the middle of the group to evade predators.</p>
- <h4>This is an h4 heading</h4>
- <p>And this is some text in a paragraph below it. Looks good.Dr. Dornhaus is breaking new ground in her studies of whether the efficiency of ant society, based on a division of labor among ant specialists, is important to their success. To do that, she said, I briefly anesthetized 1,200 ants, one by one, and painted them using a single wire-size brush, with model airplane paint — Rally Green, Racing Red, Daytona Yellow.</p>
-
- <p>After recording their behavior with two video cameras aiming down on an insect-size stage, she analyzed 300 hours of videotape of the ants in action. She discovered behavior more worthy of Aesop’s grasshopper than the proverbial industrious ants.</p>
-
-
- <h2>List styles</h2>
-
- <ul>
- <li>Unordered list test</li>
- <li>Another list element. Lorem ipsum dolor sit amet, consectetur adipisicing elit.</li>
- <li>Yet another element in the list</li>
- <li>Some long text. Lorem ipsum dolor sit amet, consectetur adipisicing elit. Lorem ipsum dolor sit amet, consectetur adipisicing elit.</li>
- </ul>
- <ol>
- <li>Ordered list test</li>
- <li>Another list element</li>
- <li>Yet another element in the list</li>
- <li>How many things do you really need in a list</li>
- </ol>
-
- <ol>
- <li>Outer Ordered list item</li>
- <li>Outer Ordered list item
- <ul>
- <li>Nested Unordered list item</li>
- <li>Nested Unordered list item
- <ol>
- <li>Inner Nested Ordered list item</li>
- <li>Inner Nested Ordered list item</li>
- </ol>
- </li>
- </ul>
- </li>
- <li>Outer Ordered list item</li>
- <li>Outer Ordered list item
- <ol>
- <li>Nested Ordered list item</li>
- <li>Nested Ordered list item
- <ul>
- <li>Inner Nested Unordered list item</li>
- <li>Inner Nested Unordered list item</li>
- </ul>
- </li>
- </ol>
- </li>
- </ol>
-
- <dl>
- <dt>definition list dt</dt>
- <dd>definition list dd</dd>
- <dt>definition list dt</dt>
- <dd>definition list dd</dd>
- <dt>definition list dt</dt>
- <dd>definition list dd one</dd>
- <dd>definition list dd two</dd>
- </dl>
-
-
-
-
- <h2>Basic form styles</h2>
-
- <form id="dummy" action="" method="post">
- <fieldset class="inputs">
- <h5 class="legend">Simple sample form</h5>
-
- <ol>
- <li class="string required title" id="dummy0_input">
- <label for="dummy0">Text input<abbr title="required">*</abbr></label>
- <input id="dummy0" name="dummy0" type="text" maxlength="255" size="50" value="This is some text" />
- <p class="inline-hints">this is some hint text</p>
- </li>
- <li class="string required title" id="dummy1_input">
- <label for="dummy1">Disabled text input<abbr title="required">*</abbr></label>
- <input id="dummy1" name="dummy1" type="text" maxlength="255" size="50" disabled="disabled" value="You're not allowed to enter text here" />
- <p class="inline-hints">You need to be an admin to edit this</p>
- </li>
- <li class="string required" id="dummy2_input">
- <label for="dummy2">Another field<abbr title="required">*</abbr></label>
- <input id="dummy2" name="dummy2" type="text" maxlength="255" size="50" value="" />
- </li>
-
- <li class="string required error" id="dummy3_input">
- <label for="dummy3">Text with error<abbr title="required">*</abbr></label>
- <input id="dummy3" name="dummy3" type="text" maxlength="255" size="50" value="" />
- <p class="inline-errors">can't be blank</p>
- </li>
-
- <li class="text required" id="dummy4_input">
- <label for="dummy4">Textarea<abbr title="required">*</abbr></label>
- <textarea cols="40" id="dummy4" name="dummy4" rows="20"></textarea>
- </li>
-
- <li class="file optional" id="dummy5_input">
- <label for="dummy5">File</label>
- <input id="dummy5" name="dummy5" size="30" type="file" />
- </li>
-
- <li class="password required" id="dummy6_input">
- <label for="dummy6">Password<abbr title="required">*</abbr></label>
- <input id="dummy6" maxlength="255" name="dummy6" size="50" type="password" value="pass" />
- </li>
- </ol>
-
- </fieldset>
-
- <fieldset class="inputs">
- <h5 class="legend">Select, checkboxes, lists</h5>
-
- <ol>
- <li class="select optional" id="dummy7_input">
- <label for="dummy7">Name</label>
- <select id="dummy7" name="dummy7">
- <option value=""></option>
- <option value="1">Ottawa</option>
- <option value="2">Calgary</option>
- <option value="3">Moosejaw</option>
- </select>
- <p class="inline-hints">this is some hint text</p>
- </li>
-
- <li class="select optional" id="dummy8_input">
- <label for="dummy8">Select with groups</label>
- <select id="dummy8" name="dummy8">
- <optgroup label="mammals">
- <option>dog</option>
- <option>cat</option>
- <option>rabbit</option>
- <option>horse</option>
- </optgroup>
- <optgroup label="reptiles">
- <option>iguana</option>
- <option>snake</option>
- </optgroup>
- </select>
- </li>
-
- <li class="select optional error" id="dummy9_input">
- <label for="dummy9">Select with error</label>
- <select id="dummy9" name="dummy9">
- <option value=""></option>
- <option value="1">Ottawa</option>
- <option value="2">Calgary</option>
- <option value="3">Moosejaw</option>
- </select>
- <p class="inline-errors">can't be blank</p>
- </li>
-
- <li class="radio optional" id="dummy10_input">
- <fieldset>
- <h5 class="legend">
- <span class="label">Radio Buttons</span>
- </h5>
- <ol>
- <li>
- <label for="dummy10_mastercard">
- <input id="dummy10_mastercard" name="dummy10" type="radio" value="MasterCard" /> MasterCard
- </label>
- </li>
- <li>
- <label for="dummy11_discover">
- <input id="dummy11_discover" name="dummy11" type="radio" value="Discover" /> Discover
- </label>
- </li>
- <li>
- <label for="dummy12_visa">
- <input id="dummy12_visa" name="dummy12" type="radio" value="Visa" /> Visa
- </label>
- </li>
- <li>
- <label for="dummy13_american_express">
- <input id="dummy13_american_express" name="dummy13" type="radio" value="American Express" /> American Express
- </label>
- </li>
- </ol>
- </fieldset>
- <p class="inline-hints">this is some hint text</p>
- </li>
-
- <li class="check_boxes optional" id="dummy14_input">
- <fieldset>
- <h5 class="legend"><span class="label">Checkboxes</span></h5>
- <ol>
- <li>
- <label for="dummy14_mastercard">
- <input name="dummy14[]" type="hidden" value="" />
- <input id="dummy14_mastercard" name="dummy14[]" type="checkbox" value="MasterCard" /> MasterCard
- </label>
- </li>
- <li>
- <label for="dummy14_discover">
- <input name="dummy14[]" type="hidden" value="" />
- <input id="dummy14_discover" name="dummy14[]" type="checkbox" value="Discover" /> Discover
- </label>
- </li>
- <li>
- <label for="dummy14_visa">
- <input name="dummy14[]" type="hidden" value="" />
- <input id="dummy14_visa" name="dummy14[]" type="checkbox" value="Visa" /> Visa
- </label>
- </li>
- <li>
- <label for="dummy14_american_express">
- <input name="dummy14[]" type="hidden" value="" />
- <input id="dummy14_american_express" name="dummy14[]" type="checkbox" value="American Express" /> American Express
- </label>
- </li>
- </ol>
- </fieldset>
- </li>
-
- <li class="datetime optional" id="dummy15_input">
- <fieldset>
- <h5 class="legend"><span class="label">Date and Time Selector</span></h5>
- <ol>
- <li>
- <label for="dummy15_1i">Year</label>
- <select id="dummy15_1i" name="dummy15(1i)">
- <option value="2007">2007</option>
- <option value="2008">2008</option>
- <option selected="selected" value="2009">2009</option>
- <option value="2010">2010</option>
- </select>
- </li>
- <li>
- <label for="dummy15_2i">Month</label>
- <select id="dummy15_2i" name="dummy15(2i)">
- <option value="1">January</option>
- <option value="2">February</option>
- <option value="3">March</option>
- <option value="4">April</option>
- <option value="5">May</option>
- <option value="6">June</option>
- <option selected="selected" value="7">July</option>
- <option value="8">August</option>
- <option value="9">September</option>
- <option value="10">October</option>
- <option value="11">November</option>
- <option value="12">December</option>
- </select>
- </li>
- <li>
- <label for="dummy15_3i">Day</label>
- <select id="dummy15_3i" name="dummy15(3i)">
- <option value="1">1</option>
- <option value="2">2</option>
- <option value="3">3</option>
- <option value="4">4</option>
- <option value="5">5</option>
- <option value="6">6</option>
- <option value="7">7</option>
- <option value="8">8</option>
- <option value="9">9</option>
- <option selected="selected" value="10">10</option>
- <option value="11">11</option>
- <option value="12">12</option>
- <option value="13">13</option>
- <option value="14">14</option>
- <option value="15">15</option>
- <option value="16">16</option>
- <option value="17">17</option>
- <option value="18">18</option>
- <option value="19">19</option>
- <option value="20">20</option>
- <option value="21">21</option>
- <option value="22">22</option>
- <option value="23">23</option>
- <option value="24">24</option>
- <option value="25">25</option>
- <option value="26">26</option>
- <option value="27">27</option>
- <option value="28">28</option>
- <option value="29">29</option>
- <option value="30">30</option>
- <option value="31">31</option>
- </select>
- </li>
- <li>
- <label for="dummy15_4i">Hour</label>
- <select id="dummy15_4i" name="dummy15(4i)">
- <option value="00">00</option>
- <option value="01">01</option>
- <option value="02">02</option>
- <option value="03">03</option>
- <option value="04">04</option>
- <option value="05">05</option>
- <option value="06">06</option>
- <option value="07">07</option>
- <option value="08">08</option>
- <option value="09">09</option>
- <option value="10">10</option>
- <option value="11">11</option>
- <option selected="selected" value="12">12</option>
- <option value="13">13</option>
- <option value="14">14</option>
- <option value="15">15</option>
- <option value="16">16</option>
- <option value="17">17</option>
- <option value="18">18</option>
- <option value="19">19</option>
- <option value="20">20</option>
- <option value="21">21</option>
- <option value="22">22</option>
- <option value="23">23</option>
- </select>
- </li>
- <li>
- <label for="dummy15_5i">Minute</label>
- <select id="dummy15_5i" name="dummy15(5i)">
- <option value="00">00</option>
- <option value="01">01</option>
- <option value="02">02</option>
- <option value="03">03</option>
- <option value="04">04</option>
- <option value="05">05</option>
- <option value="06">06</option>
- <option value="07">07</option>
- <option value="08">08</option>
- <option value="09">09</option>
- <option value="10">10</option>
- <option value="11">11</option>
- <option value="12">12</option>
- <option value="13">13</option>
- <option value="14">14</option>
- <option value="15">15</option>
- <option value="16">16</option>
- <option value="17">17</option>
- <option value="18">18</option>
- <option value="19">19</option>
- <option value="20">20</option>
- <option value="21">21</option>
- <option value="22">22</option>
- <option value="23">23</option>
- <option value="24">24</option>
- <option value="25">25</option>
- <option value="26">26</option>
- <option value="27">27</option>
- <option value="28">28</option>
- <option value="29">29</option>
- <option value="30">30</option>
- <option value="31">31</option>
- <option value="32">32</option>
- <option value="33">33</option>
- <option value="34">34</option>
- <option value="35">35</option>
- <option value="36">36</option>
- <option value="37">37</option>
- <option value="38">38</option>
- <option value="39">39</option>
- <option value="40">40</option>
- <option value="41">41</option>
- <option value="42">42</option>
- <option value="43">43</option>
- <option value="44">44</option>
- <option value="45">45</option>
- <option value="46">46</option>
- <option value="47">47</option>
- <option value="48">48</option>
- <option value="49">49</option>
- <option selected="selected" value="50">50</option>
- <option value="51">51</option>
- <option value="52">52</option>
- <option value="53">53</option>
- <option value="54">54</option>
- <option value="55">55</option>
- <option value="56">56</option>
- <option value="57">57</option>
- <option value="58">58</option>
- <option value="59">59</option>
- </select>
- </li>
- </ol>
- </fieldset>
- </li>
-
- <li class="date optional" id="dummy16_input">
- <fieldset>
- <h5 class="legend"><span class="label">Date Selector</span></h5>
- <ol>
- <li>
- <label for="dummy16_1i">Year</label>
- <select id="dummy16_1i" name="dummy16(1i)">
- <option value="2007">2007</option>
- <option value="2008">2008</option>
- <option selected="selected" value="2009">2009</option>
- <option value="2010">2010</option>
- </select>
- </li>
- <li>
- <label for="dummy16_2i">Month</label>
- <select id="dummy16_2i" name="dummy16(2i)">
- <option value="1">January</option>
- <option value="2">February</option>
- <option value="3">March</option>
- <option value="4">April</option>
- <option value="5">May</option>
- <option value="6">June</option>
- <option selected="selected" value="7">July</option>
- <option value="8">August</option>
- <option value="9">September</option>
- <option value="10">October</option>
- <option value="11">November</option>
- <option value="12">December</option>
- </select>
- </li>
- <li>
- <label for="dummy16_3i">Day</label>
- <select id="dummy16_3i" name="dummy16(3i)">
- <option value="1">1</option>
- <option value="2">2</option>
- <option value="3">3</option>
- <option value="4">4</option>
- <option value="5">5</option>
- <option value="6">6</option>
- <option value="7">7</option>
- <option value="8">8</option>
- <option value="9">9</option>
- <option selected="selected" value="10">10</option>
- <option value="11">11</option>
- <option value="12">12</option>
- <option value="13">13</option>
- <option value="14">14</option>
- <option value="15">15</option>
- <option value="16">16</option>
- <option value="17">17</option>
- <option value="18">18</option>
- <option value="19">19</option>
- <option value="20">20</option>
- <option value="21">21</option>
- <option value="22">22</option>
- <option value="23">23</option>
- <option value="24">24</option>
- <option value="25">25</option>
- <option value="26">26</option>
- <option value="27">27</option>
- <option value="28">28</option>
- <option value="29">29</option>
- <option value="30">30</option>
- <option value="31">31</option>
- </select>
- </li>
- </ol>
- </fieldset>
- </li>
-
- <li class="time optional" id="dummy17_input">
- <fieldset>
- <h5 class="legend"><span class="label">Time Selector</span></h5>
- <ol>
- <li>
- <label for="dummy17_4i">Hour</label>
- <select id="dummy17_4i" name="dummy17(4i)">
- <option value="00">00</option>
- <option value="01">01</option>
- <option value="02">02</option>
- <option value="03">03</option>
- <option value="04">04</option>
- <option value="05">05</option>
- <option value="06">06</option>
- <option value="07">07</option>
- <option value="08">08</option>
- <option value="09">09</option>
- <option value="10">10</option>
- <option value="11">11</option>
- <option selected="selected" value="12">12</option>
- <option value="13">13</option>
- <option value="14">14</option>
- <option value="15">15</option>
- <option value="16">16</option>
- <option value="17">17</option>
- <option value="18">18</option>
- <option value="19">19</option>
- <option value="20">20</option>
- <option value="21">21</option>
- <option value="22">22</option>
- <option value="23">23</option>
- </select>
- </li>
- <li>
- <span>:</span>
- </li>
- <li>
- <label for="dummy17_5i">Minute</label>
- <select id="dummy17_5i" name="dummy17(5i)">
- <option value="00">00</option>
- <option value="01">01</option>
- <option value="02">02</option>
- <option value="03">03</option>
- <option value="04">04</option>
- <option value="05">05</option>
- <option value="06">06</option>
- <option value="07">07</option>
- <option value="08">08</option>
- <option value="09">09</option>
- <option value="10">10</option>
- <option value="11">11</option>
- <option value="12">12</option>
- <option value="13">13</option>
- <option value="14">14</option>
- <option value="15">15</option>
- <option value="16">16</option>
- <option value="17">17</option>
- <option value="18">18</option>
- <option value="19">19</option>
- <option value="20">20</option>
- <option value="21">21</option>
- <option value="22">22</option>
- <option value="23">23</option>
- <option value="24">24</option>
- <option value="25">25</option>
- <option value="26">26</option>
- <option value="27">27</option>
- <option value="28">28</option>
- <option value="29">29</option>
- <option value="30">30</option>
- <option value="31">31</option>
- <option value="32">32</option>
- <option value="33">33</option>
- <option value="34">34</option>
- <option value="35">35</option>
- <option value="36">36</option>
- <option value="37">37</option>
- <option value="38">38</option>
- <option value="39">39</option>
- <option value="40">40</option>
- <option value="41">41</option>
- <option value="42">42</option>
- <option value="43">43</option>
- <option value="44">44</option>
- <option value="45">45</option>
- <option value="46">46</option>
- <option value="47">47</option>
- <option value="48">48</option>
- <option value="49">49</option>
- <option selected="selected" value="50">50</option>
- <option value="51">51</option>
- <option value="52">52</option>
- <option value="53">53</option>
- <option value="54">54</option>
- <option value="55">55</option>
- <option value="56">56</option>
- <option value="57">57</option>
- <option value="58">58</option>
- <option value="59">59</option>
- </select>
- </li>
- </ol>
- </fieldset>
- </li>
-
- </ol>
- </fieldset>
-
- <fieldset class="buttons">
- <ol>
- <li class="commit">
- <input id="dummy_submit" name="commit" type="submit" value="Submit" />
- </li>
- <li>
- <a class="cancel" href="#">Cancel</a>
- </li>
- </ol>
- </fieldset>
-
- </form>
-
- <h2>Miscellaneous Styles</h2>
-
- <div class="error">
- This is a &lt;div&gt; with the class <strong>.error</strong>.
- </div>
- <div class="notice">
- This is a &lt;div&gt; with the class <strong>.notice</strong>.
- </div>
- <div class="success">
- This is a &lt;div&gt; with the class <strong>.success</strong>.
- </div>
-
- <p>
- <strong>&lt;strong&gt;</strong><br />
- <ins>&lt;ins&gt; inserted</ins><br />
- <del>&lt;del&gt; deleted</del><br />
- <dfn>&lt;dfn&gt; dfn</dfn><br />
- <em>&lt;em&gt; emphasis</em><br />
- </p>
- <p>
- <a>&lt;a&gt; anchor</a><br />
- <a href="http://www.google.com">&lt;a&gt; a + href</a><br />
- </p>
- <p>
- <abbr title="extended abbr text should show when mouse over">&lt;abbr&gt; abbr - extended text when mouseover.</abbr><br />
- <acronym title="extended acronym text should show when mouse over">&lt;acronym&gt; acronym - extended text when mouseover.</acronym><br />
- </p>
- <address>
- &lt;address&gt;<br />
- Donald Duck<br />
- Box 555<br />
- Disneyland
- </address>
-
- <h2>Table Styles</h2>
-
- <table summary="This is the summary text for this table." border="0" cellspacing="0" cellpadding="0">
- <tr>
- <th class="">Table Header One</th>
- <th class="last">Table Header Two</th>
- </tr>
- <tr>
- <td>TD One</td>
- <td>TD Two</td>
- </tr>
- <tr>
- <td colspan="2">TD colspan 2</td>
- </tr>
- </table>
-
- <table summary="This is the summary text for this table." border="0" cellspacing="0" cellpadding="0">
- <thead>
- <tr>
- <th>Table Header One</th>
- <th>Table Header Two</th>
- <th>Table Header One</th>
- <th>Table Header Two</th>
- </tr>
- </thead>
- <tfoot>
- <tr>
- <td colspan="4">tfoot footer</td>
- </tr>
- </tfoot>
- <tbody>
- <tr>
- <td>TD One</td>
- <td>TD Two</td>
- <td>TD One</td>
- <td>TD Two</td>
- </tr>
- <tr>
- <td>TD One</td>
- <td>TD Two</td>
- <td>TD One</td>
- <td>TD Two</td>
- </tr>
- </tbody>
- <tbody>
- <tr>
- <td>TD One</td>
- <td>TD Two</td>
- <td>TD One</td>
- <td>TD Two</td>
- </tr>
- <tr>
- <td>TD One</td>
- <td>TD Two</td>
- <td>TD One</td>
- <td>TD Two</td>
- </tr>
- </tbody>
- </table>
-
- <h2>Code Styles</h2>
-
- <pre>&lt;pre&gt;
-What light
- through yonder window breaks</pre>
-
-<code>&lt;code&gt;
-User.new</code>
-
-<pre class="code"><code>&lt;pre class="code"&gt;&lt;code&gt;
-class User &lt; ActiveRecord::Base
- has_many :groups
- belongs_to :account
-
- def name
- [first_name, last_name].join(' ')
- end
-end</code></pre>
-
- <tt>&lt;tt&gt;
- This tt text should be monospaced
- and
- wrap as if
- one line of text
- even though the code has newlines, spaces, and tabs.
- It should be the same size as &lt;p&gt; text.
- </tt>
-
-
-
-<% if @styleguides %>
- <hr />
- <h1>Additional Styleguides</h1>
- <hr />
-
- <% @styleguides.each do |styleguide| %>
- <%= render :file => styleguide %>
- <% end %>
-<% end %>
-
-</div>
View
47 app/views/layouts/flutie.erb
@@ -1,47 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
- <head>
- <meta charset="utf-8" />
- <%= stylesheet_link_tag :flutie %>
- <title>Flutie v1</title>
-
- <style type="text/css">
- /* Styleguide-specific styles */
- body {
- background-color: #dadada;
- }
-
- .switcher {
- margin: 30px auto 0;
- text-align: right;
- width: 880px;
- }
-
- .content {
- background: #fff;
- -webkit-border-radius: 10px;
- -moz-border-radius: 10px;
- border-radius: 10px;
- margin: 30px auto;
- padding: 40px;
- width: 880px;
- }
- </style>
-
- </head>
-
- <body>
-
- <div class="switcher">
- <% if params[:flutie] %>
- <a href="?flutie=false">Application Styles</a>
- <% else %>
- <a href="?flutie=true">Default Styles</a>
- <% end %>
- </div>
-
- <div class="content">
- <%= yield %>
- </div>
- </body>
-</html>
View
1  config/initializers/expansion.rb
@@ -1 +0,0 @@
-ActionView::Helpers::AssetTagHelper.register_stylesheet_expansion :flutie => [ '/flutie/stylesheets/flutie' ]
View
5 config/routes.rb
@@ -1,5 +0,0 @@
-Rails.application.routes.draw do
-
- resource :styleguides, :as => :styleguide, :controller => 'flutie/styleguides', :only => [:show]
-
-end
View
8 flutie.gemspec
@@ -8,17 +8,15 @@ Gem::Specification.new do |s|
s.authors = ['Matt Jankowski', 'Chad Pytel', 'Kevin Burg', 'Chad Mazzola', 'Phil LaPier', 'Dan Croak', 'Fred Yates', 'OZAWA Sakuro', 'Mike Burns', 'Greg Sterndale', 'Joe Ferris', 'J. Edward Dewyea', 'Emilien Taque', 'Aaron Suggs', 'Nick Quaranto']
s.email = ['support@thoughtbot.com']
s.homepage = 'http://github.com/thoughtbot/flutie'
- s.summary = 'Flutie adds default stylesheets to web apps'
+ s.summary = 'Flutie provides extra Rails view helpers'
s.description = 'Flutie is a starting point for personal discovery'
s.files = `git ls-files`.split("\n")
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
- s.require_paths = ["lib"]
+ s.require_paths = ['lib']
s.add_development_dependency('appraisal')
- s.add_development_dependency('rspec-rails')
- s.add_development_dependency('capybara', '>= 0.4.0')
s.add_development_dependency('sqlite3')
- s.add_development_dependency('sass')
+ s.add_development_dependency('rspec-rails')
end
View
2  lib/flutie/version.rb
@@ -1,3 +1,3 @@
module Flutie
- VERSION = '1.3.4'.freeze
+ VERSION = '2.0.0'.freeze
end
View
25 lib/tasks/flutie.rake
@@ -1,25 +0,0 @@
-require 'fileutils'
-
-def copy_files(source_path, destination_path, directory)
- source, destination = File.join(directory, source_path), File.join(Rails.root, destination_path)
- FileUtils.mkdir_p(destination, :verbose => true) unless File.exist?(destination)
- FileUtils.cp_r(Dir.glob(source), destination, :verbose => true)
-end
-
-directory = File.dirname(__FILE__)
-
-namespace :flutie do
- desc 'Install flutie stylesheets into the public/ directory'
- task :install => :environment do
- if Rails.application.config.respond_to?(:assets) && Rails.application.config.assets.enabled
- # No copy is needed when asset pipelining is enabled
- puts "Flutie stylesheets are provided via asset pipelining."
- else
- # Copy the flutie stylesheets into rails_root/public/stylesheets
- copy_files("../../public/stylesheets/*", "/public/stylesheets", directory)
-
- # Copy the flutie sass stylesheets into rails_root/public/stylesheets/sass/flutie
- copy_files("../../app/assets/stylesheets/*", "/public/stylesheets/sass/flutie", directory)
- end
- end
-end
View
556 public/stylesheets/flutie.css
@@ -1,556 +0,0 @@
-/*
-html5doctor.com Reset Stylesheet
-v1.6.1
-Last Updated: 2010-09-17
-Author: Richard Clark - http://richclarkdesign.com
-Twitter: @rich_clark
-*/
-html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote,
-pre, abbr, address, cite, code, del, dfn, em, img, ins, kbd, q, samp, small,
-strong, sub, sup, var, b, i, dl, dt, dd, ol, ul, li, fieldset, form, label,
-legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas,
-details, figcaption, figure, footer, header, hgroup, menu, nav, section,
-summary, time, mark, audio, video {
- margin: 0;
- padding: 0;
- border: 0;
- outline: 0;
- font-size: 100%;
- vertical-align: baseline;
- background: transparent; }
-
-body {
- line-height: 1; }
-
-article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav,
-section {
- display: block; }
-
-nav ul {
- list-style: none; }
-
-blockquote, q {
- quotes: none; }
-
-blockquote:before, blockquote:after, q:before, q:after {
- content: '';
- content: none; }
-
-a {
- margin: 0;
- padding: 0;
- font-size: 100%;
- vertical-align: baseline;
- background: transparent; }
-
-/* change colours to suit your needs */
-ins {
- background-color: #ff9;
- color: #000;
- text-decoration: none; }
-
-/* change colours to suit your needs */
-mark {
- background-color: #ff9;
- color: #000;
- font-style: italic;
- font-weight: bold; }
-
-del {
- text-decoration: line-through; }
-
-abbr[title], dfn[title] {
- border-bottom: 1px dotted;
- cursor: help; }
-
-table {
- border-collapse: collapse;
- border-spacing: 0; }
-
-/* change border colour to suit your needs */
-hr {
- display: block;
- height: 1px;
- border: 0;
- border-top: 1px solid #cccccc;
- margin: 1em 0;
- padding: 0; }
-
-input, select {
- vertical-align: middle; }
-
-body {
- color: #333;
- font-size: 13px;
- font-family: "helvetica neue", arial, helvetica, "lucida grande", sans-serif; }
-
-h1, h2, h3, h4, h5, h6 {
- color: #111;
- font-family: "helvetica neue", Helvetica, arial, sans-serif; }
-
-/* Misc classes and elements */
-/* Use a .box to create a padded box inside a column. */
-.box {
- background: #eee;
- margin-bottom: 16px;
- padding: 16px; }
-
-/* Use this to create a horizontal ruler across a column. */
-hr {
- background: #ddd;
- border: none;
- clear: both;
- color: #ddd;
- float: none;
- height: 1px;
- margin: 0 0 12px;
- width: 100%; }
-
-hr.space {
- background: #fff;
- color: #fff; }
-
-/* for image replacement */
-.ir {
- background-repeat: no-repeat;
- direction: ltr;
- display: block;
- overflow: hidden;
- text-align: left;
- text-indent: -9999px; }
-
-/* Hide for both screenreaders and browsers
-css-discuss.incutio.com/wiki/Screenreader_Visibility */
-.hidden {
- display: none;
- visibility: hidden; }
-
-/* Hide only visually, but have it available for screenreaders
-www.webaim.org/techniques/css/invisiblecontent/ & j.mp/visuallyhidden */
-.visuallyhidden {
- clip: rect(1px 1px 1px 1px);
- /* IE6, IE7 */
- clip: rect(1px, 1px, 1px, 1px);
- position: absolute !important; }
-
-/* Hide visually and from screenreaders, but maintain layout */
-.invisible {
- visibility: hidden; }
-
-/* >> The Magnificent CLEARFIX: Updated to prevent margin-collapsing on child elements << j.mp/bestclearfix */
-.clearfix:before, .clearfix:after {
- content: "\0020";
- display: block;
- height: 0;
- visibility: hidden; }
-
-.clearfix:after {
- clear: both; }
-
-/* Fix clearfix: blueprintcss.lighthouseapp.com/projects/15318/tickets/5-extra-margin-padding-bottom-of-page */
-.clearfix {
- zoom: 1; }
-
-.ie7 img {
- -ms-interpolation-mode: bicubic; }
-
-@media print {
- * {
- background: transparent !important;
- color: #444 !important;
- text-shadow: none !important; }
-
- a, a:visited {
- color: #444 !important;
- text-decoration: underline; }
-
- a:after {
- content: " (" attr(href) ")"; }
-
- abbr:after {
- content: " (" attr(title) ")"; }
-
- .ir a:after {
- content: ""; }
-
- /* Don't show links for images */
- pre, blockquote {
- border: 1px solid #999;
- page-break-inside: avoid; }
-
- thead {
- display: table-header-group; }
-
- /* css-discuss.incutio.com/wiki/Printing_Tables */
- tr, img {
- page-break-inside: avoid; }
-
- @page {
- margin: 0.5cm; }
-
- p, h2, h3 {
- orphans: 3;
- widows: 3; }
-
- h2, h3 {
- page-break-after: avoid; } }
-/* Success, error & notice boxes for messages and errors. */
-div.error, div.notice, div.success, #flash_failure, #flash_success, #flash_notice {
- border: 1px solid #ddd;
- -moz-border-radius: 8px;
- -webkit-border-radius: 8px;
- border-radius: 8px;
- margin-bottom: 12px;
- padding: 10px; }
-
-div.error, #flash_failure {
- background: #FBE3E4;
- border-color: #FBC2C4;
- color: #D12F19; }
-
-div.error a, #flash_failure a {
- color: #D12F19; }
-
-div.notice, #flash_notice {
- background: #FFF6BF;
- border-color: #FFD324;
- color: #817134; }
-
-div.notice a, #flash_notice a {
- color: #817134; }
-
-div.success, #flash_success {
- background: #E6EFC2;
- border-color: #C6D880;
- color: #529214; }
-
-div.success a, #flash_success a {
- color: #529214; }
-
-/* Headings */
-h1, h2, h3, h4, h5, h6 {
- font-weight: bold; }
-
-h1 {
- font-size: 28px;
- line-height: 1.2;
- margin-bottom: 12px; }
-
-h2 {
- font-size: 24px;
- line-height: 1.2;
- margin-bottom: 6px; }
-
-h3 {
- font-size: 18px;
- line-height: 1.2;
- margin-bottom: 4px; }
-
-h4 {
- font-size: 16px;
- line-height: 1.3;
- margin-bottom: 4px; }
-
-h5 {
- font-size: 14px;
- margin-bottom: 4px; }
-
-h6 {
- font-size: 12px;
- margin-bottom: 4px; }
-
-/* Text elements */
-p {
- line-height: 1.4;
- margin-bottom: 12px; }
-
-/* Use this if the image is at the top of the <p>. */
-p img.top {
- margin-top: 0; }
-
-img {
- margin: 0 0 12px; }
-
-abbr, acronym {
- border-bottom: 1px dotted #666;
- cursor: help; }
-
-address {
- font-style: italic;
- margin-top: 16px; }
-
-del {
- color: #666; }
-
-a, a:link {
- color: #1a4882;
- text-decoration: underline; }
-
-a:visited {
- color: #1a4882; }
-
-a:hover {
- color: #052246; }
-
-a:active, a:focus {
- color: #1a4882; }
-
-blockquote {
- border-left: 4px solid #d1d1d1;
- color: #666;
- font-style: italic;
- margin: 16px 0;
- padding-left: 12px; }
-
-strong {
- font-weight: bold; }
-
-em,
-dfn {
- font-style: italic; }
-
-dfn {
- font-weight: bold; }
-
-pre, code {
- margin: 12px 0;
- white-space: pre;
- /* CSS2 */
- white-space: pre-wrap;
- /* CSS 2.1 */
- word-wrap: break-word;
- /* IE */ }
-
-pre, code, tt {
- font: 12px 'andale mono', 'monotype.com', 'lucida console', monospace;
- line-height: 1.5; }
-
-pre.code {
- background: #000;
- color: #fff;
- padding: 20px; }
-
-tt {
- display: block;
- line-height: 1.5;
- margin: 16px 0; }
-
-/* Forms */
-/*
-* Remove inner padding and border in FF3/4
-* www.sitepen.com/blog/2008/05/14/the-devils-in-the-details-fixing-dojos-toolbar-buttons/
-*/
-input[type="submit"]::-moz-focus-inner {
- border: 0;
- padding: 0; }
-
-form ol {
- list-style: none;
- margin: 0 0 12px 0; }
-
-form ol ol {
- margin-left: 0; }
-
-form ol li {
- list-style-position: outside;
- margin: 0 0 12px 0; }
-
-/*list-style-position fixes IE label margin bug*/
-form ol ol li {
- list-style-position: outside;
- margin: 0 0 4px 0; }
-
-form ol li.error input {
- background: #FBE3E4; }
-
-p.inline-errors {
- color: #D12F19; }
-
-form ol li.file {
- background: #e1e1e1;
- border: 1px solid #c8c8c8;
- padding: 10px; }
-
-form abbr {
- border-bottom: 0; }
-
-label {
- display: block; }
-
-.required label {
- font-weight: bold; }
-
-.checkbox_field label,
-.radio_field label {
- font-weight: normal; }
-
-a.cancel {
- color: #7d0d0d; }
-
-.inline-hints {
- color: #666;
- font-size: 11px;
- margin-bottom: 4px; }
-
-/* Fieldsets */
-fieldset {
- background: #f1f1f1;
- border: 1px solid #e3e3e3;
- margin: 0 0 16px 0;
- padding: 16px 16px 12px 16px; }
-
-fieldset fieldset, fieldset fieldset fieldset {
- border: 0;
- padding: 0; }
-
-legend {
- font-weight: bold; }
-
-.ie6 legend, .ie7 legend {
- margin-left: -7px; }
-
-fieldset.buttons {
- background: inherit;
- border: 0;
- padding: 0; }
-
-fieldset.buttons li {
- display: inline; }
-
-.radio fieldset {
- margin: 0;
- padding: 0; }
-
-/* Text fields */
-input[type="color"],
-input[type="date"],
-input[type="datetime"],
-input[type="datetime-local"],
-input[type="email"],
-input[type="month"],
-input[type="number"],
-input[type="password"],
-input[type="range"],
-input[type="search"],
-input[type="tel"],
-input[type="text"],
-input[type="time"],
-input[type="url"],
-input[type="week"] {
- font-size: inherit;
- padding: 3px 2px;
- width: 300px; }
-