Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Remove stylesheet related functionality from flutie

* Remove provided stylesheets
* Remove files related to installing stylesheets
* Remove styleguides preview
* Remove capybara config from spec_helper
* Remove no longer relevant spec coverage
  • Loading branch information...
commit e41273490ed96c9e558f388ca125b16efe8ccf8b 1 parent 67ff58f
@mjankowski mjankowski authored
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
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; }
-
-.ie6 input {
- vertical-align: text-bottom; }
-
-input[disabled='disabled'] {
- background-color: #fcfcfc;
- cursor: default; }
-
-input[type="checkbox"] {
- margin: 0 3px 0 0;
- position: relative;
- top: -2px;
- vertical-align: middle; }
-
-.ie7 input[type="checkbox"] {
- vertical-align: baseline; }
-
-input[type="radio"] {
- margin: 0 3px 0 0;
- position: relative;
- top: -2px;
- vertical-align: middle; }
-
-.check_boxes label {
- display: inline;
- padding: 0;
- vertical-align: middle; }
-
-.radio label {
- padding: 0; }
-
-/* Textareas */
-textarea {
- font-size: inherit;
- height: 200px;
- margin: 0 6px 6px 0;
- padding: 5px;
- width: 440px;
- overflow: auto; }
-
-/* Select fields */
-fieldset .select select {
- width: 200px;
- font-size: 11px; }
-
-optgroup {
- margin: 0 0 6px 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; }
-
-/* Tables */
-table {
- margin-bottom: 24px;
- width: 100%; }
-
-th {
- border-bottom: 2px solid #ccc;
- font-weight: bold;
- text-align: left; }
-
-td {
- border-bottom: 1px solid #ddd; }
-
-caption, th, td {
- padding: 4px 10px 4px 0; }
-
-caption {
- background: #f1f1f1;
- margin-bottom: 12px;
- padding: 10px 0; }
-
-tr, td, th {
- vertical-align: middle; }
-
-/* Use this if you use span-x classes on th/td. */
-table .last {
- padding-right: 0; }
-
-/* Lists */
-ul, ol {
- list-style-position: inside;
- margin-bottom: 16px; }
-
-ul {
- list-style-type: disc; }
-
-ol {
- list-style-type: decimal; }
-
-dl {
- line-height: 1.4;
- margin-bottom: 16px; }
-
-dl dt {
- font-weight: bold;
- margin-top: 6px; }
-
-dl dd {
- margin-bottom: 0em; }
-
-dd {
- margin-left: 6px; }
-
-li {
- line-height: 1.4; }
-
-ol ol, ol ul, ul ul, ul ol {
- margin-left: 12px; }
View
21 server.rb
@@ -1,21 +0,0 @@
-require 'rubygems'
-require 'sinatra'
-require 'sass'
-
-set :views, ['app/views']
-set :static, true
-
-helpers do
- def stylesheet_link_tag(name)
- "<link href='/stylesheets/#{name}.css' media='all' rel='Stylesheet' type='text/css' />"
- end
-end
-
-get '/' do
- erb :"flutie/styleguides/show", :layout => :"layouts/flutie"
-end
-
-get '/stylesheets/flutie.css' do
- content_type 'text/css', :charset => 'utf-8'
- scss :_flutie, :views => 'app/assets/stylesheets'
-end
View
62 spec/controllers/styleguides_controller_spec.rb
@@ -1,62 +0,0 @@
-require 'spec_helper'
-
-ActionController::Base.prepend_view_path File.join(File.dirname(__FILE__), '..', '..', 'app', 'views')
-ActionController::Base.prepend_view_path File.join(File.dirname(__FILE__), '..', 'fixtures', 'app', 'views')
-
-shared_examples_for "Renders valid XML" do
- it "should render valid xml" do
- lambda { REXML::Document.new(response.body) }.should_not raise_error
- end
-end
-
-shared_examples_for "Renders styleguide partials" do
- it "should render styleguide partials" do
- response.body.should =~ %r{fixture partial 1}
- response.body.should =~ %r{fixture partial 2}
- end
-end
-
-shared_examples_for "Renders application layout" do
- it "should use application layout" do
- response.should render_template('layouts/application')
- end
-end
-
-shared_examples_for "Responds with success and renders show template" do
- it "should respond with success and render show template" do
- response.should be_success
- response.should render_template(:show)
- end
-end
-
-describe Flutie::StyleguidesController do
-
- render_views
-
- describe "GET to /styleguides/show" do
- before { get :show }
- it_should_behave_like "Responds with success and renders show template"
- it_should_behave_like "Renders valid XML"
- it_should_behave_like "Renders styleguide partials"
- it_should_behave_like "Renders application layout"
- end
-
- describe "GET to /styleguides/show with flutie=false" do
- before { get :show, :flutie => "false" }
- it_should_behave_like "Responds with success and renders show template"
- it_should_behave_like "Renders valid XML"
- it_should_behave_like "Renders styleguide partials"
- it_should_behave_like "Renders application layout"
- end
-
- describe "GET to /styleguides/show with flutie=true" do
- before { get :show, :flutie => "true" }
- it_should_behave_like "Responds with success and renders show template"
- it_should_behave_like "Renders valid XML"
- it_should_behave_like "Renders styleguide partials"
- it "should use flutie layout" do
- response.should render_template('layouts/flutie')
- end
- end
-
-end
View
1  spec/fixtures/app/views/styleguides/_one.erb
@@ -1 +0,0 @@
-fixture partial 1
View
1  spec/fixtures/app/views/styleguides/_two.erb
@@ -1 +0,0 @@
-fixture partial 2
View
7 spec/flutie_spec.rb
@@ -1,7 +0,0 @@
-require 'spec_helper'
-
-describe Flutie do
- it "should be valid" do
- Flutie.should be_a(Module)
- end
-end
View
16 spec/initialization_spec.rb
@@ -1,16 +0,0 @@
-require 'spec_helper'
-
-describe "initialize the rails app" do
- let(:expected) { { :flutie => ['/flutie/stylesheets/flutie'] } }
- if defined?(ActionView::Helpers::AssetTagHelper::StylesheetIncludeTag)
- it "should add flutie directory to the stylesheet include tag expansions" do
- ActionView::Helpers::AssetTagHelper::StylesheetIncludeTag.expansions.should == expected
- end
- else
- it "should add flutie directory to stylesheet expansion" do
- expected = { :flutie => ['/flutie/stylesheets/flutie'] }
- ActionView::Helpers::AssetTagHelper.send(:class_variable_get, :@@stylesheet_expansions).should == expected
- end
- end
-end
-
View
9 spec/integration/navigation_spec.rb
@@ -1,9 +0,0 @@
-require 'spec_helper'