toadstool 0.0.0.1 → 0.0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/bin/toadstool +80 -33
- data/lib/stylesheets/_toadstool-styleguide.scss +33 -0
- data/lib/stylesheets/toadstool/_buttons.scss +22 -0
- data/lib/stylesheets/toadstool/_config.scss +228 -0
- data/lib/stylesheets/toadstool/_design.scss +55 -0
- data/lib/stylesheets/toadstool/_forms.scss +18 -0
- data/lib/stylesheets/toadstool/_grids.scss +48 -0
- data/lib/stylesheets/toadstool/_modules.scss +3 -0
- data/{sass → lib/stylesheets/toadstool}/_typography.scss +43 -11
- data/lib/stylesheets/toadstool/_ui_patterns.scss +3 -0
- data/lib/stylesheets/toadstool/_web_fonts.scss +11 -0
- data/lib/stylesheets/toadstool/modules/_footer.scss +7 -0
- data/lib/stylesheets/toadstool/modules/_header.scss +41 -0
- data/lib/stylesheets/toadstool/modules/_main_nav.scss +49 -0
- data/lib/stylesheets/toadstool/ui_patterns/_color_grid.scss +220 -0
- data/lib/stylesheets/toadstool/ui_patterns/_emBox.scss +16 -0
- data/lib/stylesheets/toadstool/ui_patterns/_prettify.scss +136 -0
- data/lib/templates/module/sass/_example_module.scss +4 -0
- data/{sass/modules/example_module → lib/templates/module/sass}/_extends.scss +0 -0
- data/{sass/modules/example_module → lib/templates/module/sass}/_mixins.scss +0 -0
- data/{views/modules/example_module → lib/templates/module/views}/module.erb +0 -0
- data/{views/modules/example_module → lib/templates/module/views}/module.js +0 -0
- data/{views/modules/example_module → lib/templates/module/views}/view.erb +0 -0
- data/{Gemfile → lib/templates/project/Gemfile} +1 -3
- data/lib/templates/project/Rakefile +21 -0
- data/{config.rb → lib/templates/project/config.rb} +5 -3
- data/lib/templates/project/config.ru +8 -0
- data/{doc-src → lib/templates/project/doc-src}/SASS-Guidelines.md +0 -0
- data/lib/templates/project/doc-src/changelog.md +22 -0
- data/{doc-src → lib/templates/project/doc-src}/mit_license.md +0 -0
- data/{sass/modules/example_module/readme.md → lib/templates/project/doc-src/module-sass-readme.md} +0 -0
- data/{public → lib/templates/project/public}/images/toadstool-logo.png +0 -0
- data/{public → lib/templates/project/public}/javascripts/application.js +12 -1
- data/lib/templates/project/public/javascripts/jquery-1.8.3.min.js +2 -0
- data/{public → lib/templates/project/public}/javascripts/lang-css.js +0 -0
- data/{public → lib/templates/project/public}/javascripts/lang-yaml.js +0 -0
- data/lib/templates/project/public/javascripts/modernizr-2.6.1.js +1384 -0
- data/{public → lib/templates/project/public}/javascripts/modernizr.mods.js +0 -0
- data/{public → lib/templates/project/public}/javascripts/prettify.js +0 -0
- data/lib/templates/project/readme.md +79 -0
- data/lib/templates/project/sass/_buttons.scss +37 -0
- data/{sass → lib/templates/project/sass}/_config.scss +81 -74
- data/{sass → lib/templates/project/sass}/_design.scss +0 -0
- data/lib/templates/project/sass/_forms.scss +41 -0
- data/{sass → lib/templates/project/sass}/_reset.scss +0 -0
- data/lib/templates/project/sass/_typography.scss +98 -0
- data/lib/templates/project/sass/buttons/_extends.scss +3 -0
- data/lib/templates/project/sass/buttons/_mixins.scss +2 -0
- data/lib/templates/project/sass/color/_color_defaults.scss +98 -0
- data/{sass → lib/templates/project/sass}/color/_color_math.scss +1 -1
- data/lib/templates/project/sass/color/_extends.scss +109 -0
- data/{sass → lib/templates/project/sass}/color/_grayscale_math.scss +0 -0
- data/lib/templates/project/sass/color/readme.md +63 -0
- data/lib/templates/project/sass/forms/_extends.scss +3 -0
- data/lib/templates/project/sass/forms/_mixins.scss +3 -0
- data/{sass/_ui_patterns.scss → lib/templates/project/sass/layouts/_example_layout.scss} +0 -0
- data/lib/templates/project/sass/readme.md +142 -0
- data/{sass → lib/templates/project/sass}/style.scss +6 -10
- data/{sass → lib/templates/project/sass}/toadstool.scss +1 -1
- data/lib/templates/project/sass/typography/_extends.scss +13 -0
- data/lib/templates/project/sass/typography/_mixins.scss +2 -0
- data/{sass → lib/templates/project/sass/typography}/_web_fonts.scss +2 -5
- data/lib/templates/project/toadstool.rb +94 -0
- data/lib/templates/project/views/color_palettes.erb +371 -0
- data/lib/templates/project/views/forms.erb +40 -0
- data/lib/templates/project/views/forms/disabled_button.erb +18 -0
- data/lib/templates/project/views/forms/password_input.erb +22 -0
- data/lib/templates/project/views/forms/primary_button.erb +18 -0
- data/lib/templates/project/views/forms/readme.md +2 -0
- data/{views → lib/templates/project/views}/forms/username_input.erb +0 -0
- data/{views → lib/templates/project/views}/grid.erb +0 -0
- data/{views → lib/templates/project/views}/grid24.erb +0 -0
- data/{views → lib/templates/project/views}/grids/grid_arguments.erb +0 -0
- data/{views → lib/templates/project/views}/grids/use_definition.erb +0 -0
- data/{views → lib/templates/project/views}/layout.erb +2 -2
- data/{views/modules/example_module → lib/templates/project/views/modules}/readme.md +6 -4
- data/lib/templates/project/views/shared/_code_toggle.erb +10 -0
- data/lib/templates/project/views/shared/_html_example.erb +5 -0
- data/{views → lib/templates/project/views}/shared/_main_footer.erb +0 -0
- data/{views → lib/templates/project/views}/shared/_main_header.erb +0 -0
- data/{views → lib/templates/project/views}/shared/_main_nav.erb +0 -0
- data/{views → lib/templates/project/views}/shared/_toadstool_subheader.erb +0 -0
- data/lib/templates/project/views/typography.erb +35 -0
- data/lib/templates/project/views/typography/body_copy.erb +2 -0
- data/{views → lib/templates/project/views}/typography/body_links.erb +0 -0
- data/{sass/ui_patterns/_example.scss → lib/templates/project/views/typography/general_typography.erb} +0 -0
- data/{views → lib/templates/project/views}/typography/headings.erb +0 -0
- data/{views → lib/templates/project/views}/typography/vertical_rhythm.erb +0 -0
- data/{views → lib/templates/project/views}/typography/web_fonts.erb +0 -0
- data/lib/templates/project/views/ui_patterns/forms/primary_buttons.erb +8 -0
- data/lib/templates/project/views/ui_patterns/forms/text_input.erb +11 -0
- data/lib/templates/project/views/ui_patterns/forms/text_input_error.erb +11 -0
- data/{views → lib/templates/project/views}/ui_patterns/readme.md +4 -3
- data/lib/templates/project/views/ui_patterns/typography/_body_copy.erb +2 -0
- data/lib/templates/project/views/ui_patterns/typography/_headings.erb +6 -0
- data/lib/templates/ui_pattern/sass/_example_pattern.scss +4 -0
- data/lib/templates/ui_pattern/sass/_extends.scss +0 -0
- data/lib/templates/ui_pattern/sass/_mixins.scss +0 -0
- data/{views/ui_patterns → lib/templates/ui_pattern/views}/example.erb +0 -0
- data/lib/toadstool.rb +4 -0
- data/lib/toadstool/version.rb +3 -0
- metadata +120 -109
- data/Rakefile +0 -4
- data/config.ru +0 -6
- data/doc-src/What-Is-Toadstool.md +0 -44
- data/doc-src/changelog.md +0 -29
- data/doc-src/config.md +0 -18
- data/doc-src/mixin_directory.md +0 -17
- data/doc-src/sass.md +0 -4
- data/lib/RackServer.rb +0 -93
- data/public/fonts/fontawesome-webfont.eot +0 -0
- data/public/fonts/fontawesome-webfont.svg +0 -255
- data/public/fonts/fontawesome-webfont.ttf +0 -0
- data/public/fonts/fontawesome-webfont.woff +0 -0
- data/public/fonts/zocial-regular-webfont.eot +0 -0
- data/public/fonts/zocial-regular-webfont.svg +0 -138
- data/public/fonts/zocial-regular-webfont.ttf +0 -0
- data/public/fonts/zocial-regular-webfont.woff +0 -0
- data/public/javascripts/css_browser_selector.js +0 -8
- data/public/javascripts/lang-apollo.js +0 -2
- data/public/javascripts/lang-clj.js +0 -18
- data/public/javascripts/lang-go.js +0 -1
- data/public/javascripts/lang-hs.js +0 -2
- data/public/javascripts/lang-lisp.js +0 -3
- data/public/javascripts/lang-lua.js +0 -2
- data/public/javascripts/lang-ml.js +0 -2
- data/public/javascripts/lang-n.js +0 -4
- data/public/javascripts/lang-proto.js +0 -1
- data/public/javascripts/lang-scala.js +0 -2
- data/public/javascripts/lang-sql.js +0 -2
- data/public/javascripts/lang-tex.js +0 -1
- data/public/javascripts/lang-vb.js +0 -2
- data/public/javascripts/lang-vhdl.js +0 -3
- data/public/javascripts/lang-wiki.js +0 -2
- data/public/javascripts/lang-xq.js +0 -3
- data/public/javascripts/selectivizr-min.js +0 -5
- data/public/stylesheets/style.css +0 -615
- data/public/stylesheets/toadstool.css +0 -1643
- data/readme.md +0 -37
- data/sass/_buttons.scss +0 -20
- data/sass/_forms.scss +0 -18
- data/sass/_modules.scss +0 -12
- data/sass/buttons/_cupid_config.scss +0 -20
- data/sass/buttons/_minimal_config.scss +0 -15
- data/sass/color/_extends.scss +0 -291
- data/sass/ui_patterns/_color_grid.scss +0 -286
- data/toadstool.rb +0 -84
- data/views/abstract_colors.erb +0 -1
- data/views/alerts.erb +0 -1
- data/views/buttons.erb +0 -1
- data/views/color_palettes.erb +0 -221
- data/views/forms.erb +0 -24
- data/views/forms/disabled_button.erb +0 -18
- data/views/forms/password_input.erb +0 -22
- data/views/forms/primary_button.erb +0 -18
- data/views/modules/readme.md +0 -10
- data/views/semantic_colors.erb +0 -1
- data/views/shared/_html_example.erb +0 -31
- data/views/shared/_sass_example.erb +0 -10
- data/views/typography.erb +0 -17
- data/views/typography/body_copy.erb +0 -19
- data/views/typography/general_typography.erb +0 -19
- data/views/ui_patterns/forms/text_input.erb +0 -10
File without changes
|
File without changes
|
@@ -0,0 +1,79 @@
|
|
1
|
+
#Welcome to Toadstool
|
2
|
+
![toadstool logo](/Anotheruiguy/toadstool/raw/master/public/images/toadstool-logo.png "toadstool - put that in your styleguide")
|
3
|
+
|
4
|
+
VERSION 0.1.0 / STIPE gem dependency 0.0.5.7
|
5
|
+
|
6
|
+
Toadstool is a Style Guide framework. Concepts are simple, build in the abstract and apply to the semantic.
|
7
|
+
|
8
|
+
##Run the app
|
9
|
+
Toadstool is a Sinatra rack app. Simply clone the app into a new directory, `bundle install` and then `rake server`
|
10
|
+
|
11
|
+
To simulate "production" mode run `rake server production`. This task will compile your Sass with the compressed output style and closely simulates Heroku's environment. We use this mode to perform final QA prior to deployment to Heroku.
|
12
|
+
|
13
|
+
##Sass / Compass
|
14
|
+
Processing your Sass to CSS can happen a few ways.
|
15
|
+
|
16
|
+
By default Toadstool is set up to compile the Sass once via the following Rakefile command. This is the most efficient way to do this and ensures that a static version of the Sass is made available in production.
|
17
|
+
```ruby
|
18
|
+
desc "Compile the app's Sass"
|
19
|
+
task "assets:precompile" do
|
20
|
+
system("bundle exec compass compile")
|
21
|
+
end
|
22
|
+
```
|
23
|
+
This task is automatically invoked when you run `rake server`; there should be no need to run it manually.
|
24
|
+
|
25
|
+
###Toadstool and Sass
|
26
|
+
The Toadstool style guide framework makes heavy use of Sass as it's primary styling language [read more ...](http://goo.gl/72YhA)
|
27
|
+
|
28
|
+
###Developing Sass
|
29
|
+
Be sure to run the `compass watch` process in the background. This really is the best way to process edited Sass as in the terminal it will be easy to see the Sass error log if there are issues.
|
30
|
+
|
31
|
+
###Running Sass in memory
|
32
|
+
If you want run process Sass in memory, [uncomment these lines](http://goo.gl/HAKNR). Then comment out [this rake task](http://goo.gl/bvzEx).
|
33
|
+
|
34
|
+
*Note:* Running Sass in memory will not generate actual CSS files. If you have CSS files in public/stylesheets, those will be served instead. If you edit your Sass, but don't see your changes in the browser, delete any CSS files in public/stylesheets.
|
35
|
+
|
36
|
+
Running Sass in memory can also be quite slow, especially as your Sass library grows in size and complexity.
|
37
|
+
|
38
|
+
###Debug Sass
|
39
|
+
By default your Sass will be run in [debug mode](http://goo.gl/a0UKV). By simply [changing your output](http://goo.gl/VN7g7) to `compressed`, this will over-ride the debugging and compress all your CSS for production.
|
40
|
+
|
41
|
+
###Glob-based import support
|
42
|
+
A great feature supported in Rails 3.1+ projects is the ability to import files like so `@import "directory/*";`. In order to bring this capibility to other projects Toadstool requires the `sass-globbing` gem.
|
43
|
+
|
44
|
+
If you are using this in a Rails 3.1+ project, the gem is not required.
|
45
|
+
|
46
|
+
##What is a Style Guide Framework?
|
47
|
+
While bootstrap frameworks are all the rage, I feel that there are some things that they do very well and then some things that they do very poorly. What they do well is give a team/developer a quick spring board to get a new app up and running. For a team/developer that is light on UI skillz, that is a good thing. But what I have heard time and time again from one developer to the next is that as the app continues to mature this 'bootstrap' UI is now a burden to bear.
|
48
|
+
|
49
|
+
After all, it is a 'bootstrap' framework, not a 'production' framework. This is where Toadstool comes in, a real life production framework, a framework, a guideline, a process to make really awesome production ready code.
|
50
|
+
|
51
|
+
##Stipe
|
52
|
+
A core element of the Toadstool style guide framework is the [Stipe](https://github.com/Anotheruiguy/stipe) gem. A collection of commonly used Mixins and more-so a growing number of easily useable silent placeholder classes to make development quicker, easier and more flexible. [Stipe](https://github.com/Anotheruiguy/stipe) and Toadstool, when used correctly can quickly become the foundational framework for all your development projects. Making it more accessible to new developers on your teams and ensures that returning to a legacy project is not a daunting task of relearning the UI code.
|
53
|
+
|
54
|
+
##Toadstool is more, it's a process
|
55
|
+
In the countless projects I have been involved in, one constant is the lack of abstraction between the design element, HTML and CSS for the widget and the view.
|
56
|
+
|
57
|
+
Toadstool aims to give structure to the styleguide development process.
|
58
|
+
|
59
|
+
##Don't go chasing waterfalls
|
60
|
+
In the old waterfall days, it was common to think a project's problems all the way through. Specification documents and comps that encompassed almost the entire project before line one of code was ever written was the expectation. Oh, those were the days.
|
61
|
+
|
62
|
+
For developers, It was easier for them to see the future and write patterned code, but the expense was to great. All the upfront planning was very time consuming and when developers began to layout patterns in their code based on those assumptions, changes down the road were much harder to manage. Not to mention expensive and opportunities for broken code were to high. Anyone remember writing tests in those days?
|
63
|
+
|
64
|
+
With modern agile practices, the idea is to not solve the problem until it is an official problem. Sure we can speculate, but the idea is to not execute until it is appropriate. So, what does that mean for designers and developers? For developers that is pretty easy to answer, don't develop that feature until it is time. But for designers, this has been a harder problem to solve. After all, the designer's role has traditionally been to be the ones who think ahead. Developers have looked to them to be ready when the time comes.
|
65
|
+
|
66
|
+
##Designers get agile, the comp has failed you
|
67
|
+
Up till now the designer's deliverable has been, and in most cases, continues to be the comp. While most of the development world has moved on from waterfall, I see time and time again designers holding onto the same processes. Given a project I have seen design teams go overboard in trying to solve problems that don't yet exist. This leads them down a path of no return having thought so deep into solving a problem that the attachment to a solution becomes too great. When the times comes that there needs to be adjustments to the solution to fit the changing needs of the business, 'turning the boat' comes with great costs and is usually meet with frustrations, if not full out resistance.
|
68
|
+
|
69
|
+
Getting agile with code prototypes fills the gap where the comp fails. All to often when composing the comp, the designer feels the need to design the whole experience of a single view. This means a lot of time in Photoshop and duplicating screens again and again just to adjust subtle nuances. This means making changes comes at to great a cost. And too many times the designers become obsessed with minor pixel adjustments that take time, work, endless review cycles all for what? When we go from picture to code, we will be using `em` or `%` as our values. In a device driven world, these pixel measurements are abstracted to relationships and will adjust based on the viewport of the device.
|
70
|
+
|
71
|
+
Version control is another issue of great frustration. Many times the 'comp' from the designer will go through other experimental iterations that may accidentally get incorporated into a design delivered to a developer. This is a classic case of 'signal vs noise' issue. A developer will typically pick up on these inconsistent nuances and make the changes to the layout of the view. It is this simple issue that commonly leads to unnecessary work and frustrations.
|
72
|
+
|
73
|
+
Another common versioning issue is that there may be changes in the view that are not appropriately managed in the next series of comps that are coming down the line. In the waterfall comp design process, many of the screens are created way ahead of time and as the project progresses things change. It is very time consuming and expensive to go back and update all the comps with the changes that have happened in the UI since that view was designed. So again we find ourselves measuring final deliverables against an imperfect measuring stick that leads to confusion and frustration.
|
74
|
+
|
75
|
+
What if we were to bite this off into smaller chunks? What if at fist we we're to only decide things like color pallet, typography, forms and buttons? This is pretty cool and most will agree that this is a process that most designers go through. The breakdown is how to document these choices. Historically designers did this with the comp. Today I say do it with a style guide.
|
76
|
+
|
77
|
+
##Element, module, view
|
78
|
+
The process is simple, the ideas are basic and the process is tried and true. Toadstool is set up to support some basic concepts that help you build a solid UI foundation that will allow for greater team integration, promote quality code reuse and build solid consistency in your app. [Clean out your Sass Junk-Drawer](http://gist.io/4436524) is a post written that best details this process and Toadstool's file structure.
|
79
|
+
|
@@ -0,0 +1,37 @@
|
|
1
|
+
// Toadstool comes pre-loaded with a series of pre-developed buttons
|
2
|
+
// All style attributes are managed in the `_config.scss` file
|
3
|
+
// -----------------------------------------------------------------------------
|
4
|
+
// $button-color: $delta-color;
|
5
|
+
// $button-text-color: $white;
|
6
|
+
// $button-line-height: 32;
|
7
|
+
// $button-border-radius: 3;
|
8
|
+
// $button-padding: 20;
|
9
|
+
// $button-font-size: 18;
|
10
|
+
// $button-weight: bold;
|
11
|
+
// $button-text-shadow: true;
|
12
|
+
// $button-box-shadow: true;
|
13
|
+
// --------------------------------------------------------------------
|
14
|
+
|
15
|
+
// Custom button extends and mixins
|
16
|
+
// -----------------------------------------------------------------------
|
17
|
+
@import "buttons/mixins";
|
18
|
+
@import "buttons/extends";
|
19
|
+
|
20
|
+
// buttons
|
21
|
+
// --------------------------------------------------------------------
|
22
|
+
button, a.button {
|
23
|
+
@include gloss-default;
|
24
|
+
&:nth-child(2) {
|
25
|
+
@include shiny-default;
|
26
|
+
}
|
27
|
+
&:nth-child(3) {
|
28
|
+
@include flat-default;
|
29
|
+
}
|
30
|
+
&:nth-child(4) {
|
31
|
+
@include three-dee;
|
32
|
+
}
|
33
|
+
margin-left: 1em;
|
34
|
+
&:nth-child(1) {
|
35
|
+
margin-left: 0;
|
36
|
+
}
|
37
|
+
}
|
@@ -1,9 +1,9 @@
|
|
1
1
|
// The config file is intended to allow users to quickly redefine core elements of the design
|
2
2
|
// that will cascade throughout the css to get your design up and running FAST!
|
3
3
|
|
4
|
+
// For instruction, please see https://github.com/Anotheruiguy/toadstool/blob/master/sass/doc-src/config.md
|
4
5
|
|
5
|
-
|
6
|
-
///// Typography configuration /////
|
6
|
+
/////// Typography configuration///////
|
7
7
|
// -----------------------------------------------------------------------------
|
8
8
|
// $font_size: 12;
|
9
9
|
//
|
@@ -19,33 +19,26 @@
|
|
19
19
|
// $small_point_size: 10;
|
20
20
|
// $large_point_size: 14;
|
21
21
|
//
|
22
|
-
$primary_font_family: #{"Helvetica Neue", Arial, sans-serif};
|
22
|
+
// $primary_font_family: #{"Helvetica Neue", Arial, sans-serif};
|
23
23
|
// $secondary_font_family: #{"Helvetica Neue", Arial, sans-serif};
|
24
24
|
// $heading_font_family: #{"Helvetica Neue", Arial, sans-serif};
|
25
25
|
|
26
|
-
|
27
|
-
// $icon_font_bravo: #{'zocial'};
|
28
|
-
|
29
|
-
|
30
|
-
///// Default webfont directory /////
|
26
|
+
/////// Default webfont directory///////
|
31
27
|
// -----------------------------------------------------------------------------
|
32
28
|
// $webfont_directory: "/fonts/";
|
33
29
|
|
34
|
-
|
35
|
-
|
36
|
-
///// default image directory /////
|
30
|
+
/////// default image directory ///////
|
37
31
|
// -----------------------------------------------------------------------------
|
38
32
|
// In Sinatra, the images folder resides in the public directory. This directory is not made publically accessible,
|
39
33
|
// so simply referencing the images directory will be fine.
|
40
34
|
// $imgDir: "/images/";
|
41
35
|
|
42
|
-
|
43
|
-
|
44
|
-
/////// OOCSS generic base colors ////////
|
36
|
+
/////// OOCSS generic base colors///////
|
45
37
|
// -----------------------------------------------------------------------------
|
46
38
|
// Red, green, yellow, blue, accent and black is not law, but a common theme in most designs.
|
47
39
|
// Using Toadstool, all you need to do is edit these 6 hex values and everything else is created
|
48
40
|
// by magic, unicorns and fairy dust!
|
41
|
+
|
49
42
|
// $alpha_primary: #5a2e2e; // red
|
50
43
|
// $bravo_primary: #3e4147; // green
|
51
44
|
// $charlie_primary: #fffedf; // yellow
|
@@ -54,25 +47,20 @@ $primary_font_family: #{"Helvetica Neue", Arial, sans-serif};
|
|
54
47
|
|
55
48
|
// $alpha_gray: #333; //black
|
56
49
|
|
57
|
-
|
58
|
-
|
59
|
-
/////// Toadstool color math ////////
|
50
|
+
/////// Toadstool color math ///////
|
60
51
|
// -----------------------------------------------------------------------------
|
61
|
-
//
|
62
|
-
// @import "stipe/color/default_color_pallet";
|
63
|
-
|
64
|
-
// Don't like Stipe's color pallet, no worries. Uncomment these lines and go for it!
|
52
|
+
// Local color functions to create default color palette
|
65
53
|
@import "color/color_math";
|
66
54
|
@import "color/grayscale_math";
|
55
|
+
@import "color/color_defaults";
|
67
56
|
|
68
|
-
|
69
|
-
/////// Grid configuration ////////
|
57
|
+
/////// Grid configuration ///////
|
70
58
|
// -----------------------------------------------------------------------------
|
71
59
|
// setting default units of measurement for Toadstool grid solution
|
72
60
|
// $grid_type: 12; // sets default column grid
|
73
61
|
// $grid_uom: percent; // use either ``em`` or ``percent``
|
74
|
-
$grid_padding_l: 0
|
75
|
-
$grid_padding_r: 0
|
62
|
+
// $grid_padding_l: 0; // sets default left/right padding inside grid block
|
63
|
+
// $grid_padding_r: 0; // sets default left/right padding inside grid block
|
76
64
|
// $grid_padding_tb: 0; // sets default top/bottom padding inside grid block
|
77
65
|
// $grid_border: 0; // sets default border width on all grid blocks
|
78
66
|
// $grid_child: none; // sets parent child relationship between grid blocks
|
@@ -81,19 +69,13 @@ $grid_padding_r: 0 !default; // sets default left/right padding
|
|
81
69
|
// $col_gutter: $col_base * 2; // sets default grid gutter width
|
82
70
|
// $grid_960: 960 / 100%; // grid math for percentages
|
83
71
|
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
/////// Toadstool's semantic variables ////////
|
72
|
+
/////// Toadstool's semantic variables ///////
|
88
73
|
// Semantic variables should always be matched up with abstract values, never semantic to semantic
|
89
74
|
// -----------------------------------------------------------------------------
|
90
75
|
|
91
76
|
// abstract 'white' value to easily applied to semantic class objects
|
92
77
|
// $white: #fff;
|
93
78
|
|
94
|
-
// default shadow colors
|
95
|
-
// $shadow_color: fade-out($alpha_gray, 0.5);
|
96
|
-
|
97
79
|
// primary header font color
|
98
80
|
// $primary_header_color: $alpha_gray;
|
99
81
|
|
@@ -102,16 +84,27 @@ $grid_padding_r: 0 !default; // sets default left/right padding
|
|
102
84
|
|
103
85
|
// primary font color for the app
|
104
86
|
// $primary_text: $bravo_gray;
|
87
|
+
// $secondary_text: $bravo_gray;
|
105
88
|
|
106
|
-
// default
|
89
|
+
// default `href` link color
|
107
90
|
// $href_color: $delta_color;
|
108
91
|
// $href_color_alt: $delta_color_bravo;
|
109
92
|
|
110
|
-
//
|
93
|
+
// default shadow colors
|
94
|
+
// $shadow_color: fade-out($alpha_gray, 0.5);
|
95
|
+
|
96
|
+
// default border color
|
97
|
+
// $border_color: $charlie_gray;
|
98
|
+
|
99
|
+
|
100
|
+
|
101
|
+
/////// HTML 5 feature colors ///////
|
102
|
+
// -----------------------------------------------------------------------------
|
103
|
+
// used with the `ins` tag
|
111
104
|
// http://www.w3schools.com/tags/tag_ins.asp
|
112
105
|
// $ins_color: $charlie_color;
|
113
106
|
|
114
|
-
// used with the
|
107
|
+
// used with the `mark` tag
|
115
108
|
// http://www.w3schools.com/html5/tag_mark.asp
|
116
109
|
// $mark_color: $charlie_color;
|
117
110
|
|
@@ -122,12 +115,9 @@ $grid_padding_r: 0 !default; // sets default left/right padding
|
|
122
115
|
// $selection_color: $charlie_color;
|
123
116
|
// $selection_text_color: $primary_text;
|
124
117
|
|
125
|
-
// default border color
|
126
|
-
// $border_color: $charlie_gray;
|
127
118
|
|
128
119
|
|
129
|
-
|
130
|
-
// Config defaults for forms
|
120
|
+
/////// Config defaults for forms ///////
|
131
121
|
// -----------------------------------------------------------------------------
|
132
122
|
// $alert_background_color: $alpha_color;
|
133
123
|
|
@@ -138,59 +128,69 @@ $grid_padding_r: 0 !default; // sets default left/right padding
|
|
138
128
|
//
|
139
129
|
// $form_field_background_color: $white;
|
140
130
|
// $form_field_focus_color: $white;
|
141
|
-
// $form_field_fail_bkg: $
|
142
|
-
|
131
|
+
// $form_field_fail_bkg: $alpha_color_juliet;
|
132
|
+
|
143
133
|
// $form_field_border: $charlie_gray;
|
144
|
-
// $form_field_border_fail: $
|
134
|
+
// $form_field_border_fail: $alpha_color_echo;
|
145
135
|
// $form_field_focus_border_color: $charlie_gray;
|
146
|
-
|
147
|
-
// $
|
148
|
-
// $
|
149
|
-
// $
|
150
|
-
// $form_field_text_fail: $alpha_color;
|
136
|
+
|
137
|
+
// $form_field_text_fail: $alpha_color_echo;
|
138
|
+
// $form_label_color: $alpha_gray;
|
139
|
+
// $optional_field_text_color: $delta_gray;
|
151
140
|
// $instructional_text: $charlie_gray;
|
152
141
|
// $placeholder_text: $hotel_gray;
|
153
|
-
// $
|
154
|
-
|
155
|
-
|
142
|
+
// $inline_alert_bkg_color: $alpha_color_delta;
|
143
|
+
// $inline_alert_text_color: $white;
|
156
144
|
|
157
|
-
//
|
158
|
-
//
|
159
|
-
// $
|
160
|
-
// $
|
161
|
-
// $
|
145
|
+
// Non-color defaults (currently not represented in the SG view)
|
146
|
+
// ---------------------------------------------------------
|
147
|
+
// $form_field_border_radius: $standard_round_corner;
|
148
|
+
// $form_field_text: $primary_text;
|
149
|
+
// $form_field_height: 35;
|
150
|
+
// $form_field_padding: 6;
|
151
|
+
// $form_label_weight: bold;
|
152
|
+
// $form_label_lineheight: 20;
|
153
|
+
// $inline_alert_lineheight: 30;
|
154
|
+
// $inline_alert_left_padding: 12;
|
155
|
+
// $inline_alert_weight: bold;
|
156
|
+
// $inline_alert_top_margin: 12;
|
157
|
+
// $inline_alert_border_width: 1;
|
162
158
|
|
163
159
|
|
164
160
|
|
165
|
-
|
161
|
+
/////// Config defaults for buttons ///////
|
162
|
+
// -----------------------------------------------------------------------------
|
163
|
+
// $button-color: $delta-color;
|
164
|
+
// $button-text-color: $white;
|
165
|
+
// $button-line-height: 32;
|
166
|
+
// $button-border-radius: 3;
|
167
|
+
// $button-padding: 20;
|
168
|
+
// $button-font-size: 18;
|
169
|
+
// $button-weight: bold;
|
170
|
+
// $button-text-shadow: true;
|
171
|
+
// $button-box-shadow: true;
|
172
|
+
|
173
|
+
/////// Config defaults for ``standard_rounded_border`` mixin ///////
|
166
174
|
// -----------------------------------------------------------------------------
|
167
175
|
// $standard_round_corner: 3; // sets default border radius
|
168
176
|
// $standard_corner_width: 1px; // sets default border width
|
169
177
|
// $standard_border_color: $border_color; // sets default border color
|
170
178
|
|
171
|
-
|
172
|
-
|
173
|
-
// Config defaults for ``standard_block_spacing`` mixin
|
179
|
+
/////// Config defaults for ``standard_block_spacing`` mixin ///////
|
174
180
|
// -----------------------------------------------------------------------------
|
175
181
|
// $default_block_spacing: 20; // sets margin-bottom
|
176
182
|
|
177
|
-
|
178
|
-
|
179
|
-
// Config defaults for site border style
|
183
|
+
/////// Config defaults for site border style ///////
|
180
184
|
// -----------------------------------------------------------------------------
|
181
185
|
// $standard_border_style: solid;
|
182
186
|
|
183
|
-
|
184
|
-
|
185
|
-
// Config defaults for ``standard_hr`` mixin
|
187
|
+
/////// Config defaults for ``standard_hr`` mixin ///////
|
186
188
|
// -----------------------------------------------------------------------------
|
187
189
|
// $standard_hr_spacing: 40; // sets padding and margin bottom
|
188
190
|
// $standard_hr_color: $delta_gray;
|
189
191
|
// $standard_hr_width: 1px;
|
190
192
|
|
191
|
-
|
192
|
-
|
193
|
-
// Config values for all default shadows
|
193
|
+
/////// Config values for all default shadows ///////
|
194
194
|
// -----------------------------------------------------------------------------
|
195
195
|
// $h-shadow: 0; // horizontal shadow settings
|
196
196
|
// $v-shadow: 2; // vertical shaddow settings
|
@@ -202,15 +202,22 @@ $grid_padding_r: 0 !default; // sets default left/right padding
|
|
202
202
|
// $is-shadow: 2; // inset spread shaddow settings
|
203
203
|
// $iblur: 3; // inset blur settings
|
204
204
|
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
/////////////// UI @media breakpoint defaults ////////////////
|
205
|
+
/////// UI @media breakpoint defaults ///////
|
209
206
|
// -----------------------------------------------------------------------------
|
210
207
|
// $tablet: "screen and (max-width: 64em)";
|
211
208
|
// $tablet_portrait: "screen and (max-width: 50em) and (orientation: portrait)";
|
212
209
|
// $tablet_landscape: "screen and (max-width: 50em) and (orientation: landscape)";
|
213
210
|
//
|
214
211
|
// $mobile: "screen and (max-width: 30em)";
|
215
|
-
// $mobile_portrait:
|
216
|
-
// $mobile_landscape:
|
212
|
+
// $mobile_portrait: "screen and (max-width: 30em) and (orientation : portrait)";
|
213
|
+
// $mobile_landscape: "screen and (max-width: 30em) and (orientation : landscape)";
|
214
|
+
|
215
|
+
/////// Vendor prefix defaults ///////
|
216
|
+
// -----------------------------------------------------------------------------
|
217
|
+
// $prefix_defaults: -moz- -webkit- -o- -ms- '';
|
218
|
+
// $webkit_support: -webkit- '';
|
219
|
+
// $moz_support: -moz- '';
|
220
|
+
// $ms_support: -ms- '';
|
221
|
+
// $moz_webkit_support: -moz- -webkit- '';
|
222
|
+
// $moz_ms_support: -moz- -ms- '';
|
223
|
+
// $webkit_ms_support: -webkit- -ms- '';
|
File without changes
|
@@ -0,0 +1,41 @@
|
|
1
|
+
// Where does this code come from?
|
2
|
+
|
3
|
+
// Placeholder extends with the `stipe_` prefix come from the Stipe gem.
|
4
|
+
// TO DO: link to github forms/extends
|
5
|
+
// TO DO: link to github forms/mixins
|
6
|
+
|
7
|
+
// TO DO: breakout list of config options
|
8
|
+
|
9
|
+
// The variable UI parts of these placeholders are managed via your `_config.scss` file.
|
10
|
+
|
11
|
+
// Import custom extends and mixins
|
12
|
+
// -----------------------------------------------------------------------
|
13
|
+
@import "forms/mixins";
|
14
|
+
@import "forms/extends";
|
15
|
+
|
16
|
+
// Your styles
|
17
|
+
// -----------------------------------------------------------------------
|
18
|
+
input[type=email], input[type=password], input[type=text], input[type=number] {
|
19
|
+
@extend %stipe_input_fields;
|
20
|
+
}
|
21
|
+
|
22
|
+
// not represented in the style guide view
|
23
|
+
input[disabled], textarea[disabled], select[disabled], .disabled {
|
24
|
+
@extend %stipe_disabled_inputs;
|
25
|
+
}
|
26
|
+
|
27
|
+
label {
|
28
|
+
@extend %stipe_form_labels;
|
29
|
+
}
|
30
|
+
|
31
|
+
.instructional {
|
32
|
+
@extend %stipe_instructional;
|
33
|
+
}
|
34
|
+
|
35
|
+
.fail {
|
36
|
+
@extend %stipe_fail;
|
37
|
+
}
|
38
|
+
|
39
|
+
.inline_alert {
|
40
|
+
@extend %stipe_inline_alert;
|
41
|
+
}
|
File without changes
|
@@ -0,0 +1,98 @@
|
|
1
|
+
// Twitter's 'Font-Awesome' is installed in Toadstool, see http://goo.gl/4JkBd for list of icon options
|
2
|
+
// Stipe has all icon classes loaded as silent classes, to activate use the following example
|
3
|
+
// -----------------------------------------------------------------------
|
4
|
+
// .icon-glass {
|
5
|
+
// @extend %icon-glass;
|
6
|
+
// }
|
7
|
+
|
8
|
+
// Zocial's icon font is installed in Toadstool, see http://goo.gl/t92t5 for list of icon options
|
9
|
+
// Stipe has all icon classes loaded as silent classes, to activate use the following example
|
10
|
+
// -----------------------------------------------------------------------
|
11
|
+
// .zocial-amazon {
|
12
|
+
// @extend %zocial-amazon;
|
13
|
+
// }
|
14
|
+
|
15
|
+
// Import of default text bootstrap settings
|
16
|
+
// -----------------------------------------------------------------------
|
17
|
+
@import "stipe/typography/default"; // Comment out if unwanted
|
18
|
+
|
19
|
+
// Custom typography extends and mixins
|
20
|
+
// -----------------------------------------------------------------------
|
21
|
+
@import "typography/mixins";
|
22
|
+
@import "typography/extends";
|
23
|
+
|
24
|
+
// Customize the following to fit your specifications
|
25
|
+
// Commented out styles represent Toadstool's default bootstrap styles
|
26
|
+
// -----------------------------------------------------------------------
|
27
|
+
html {
|
28
|
+
// font: em($font_size, 16) $primary_font_family;
|
29
|
+
// line-height: baseline($font_size);
|
30
|
+
// color: $primary_text;
|
31
|
+
}
|
32
|
+
|
33
|
+
// Heading CSS rules
|
34
|
+
// -----------------------------------------------------------------------
|
35
|
+
// Before editing CSS rules in this document, be sure that you have address the configurable variables
|
36
|
+
// in the `_config.scss` file
|
37
|
+
|
38
|
+
// $heading_1, $heading_2, $heading_3, $heading_4, $heading_5, $heading_6
|
39
|
+
// $heading_font_family, $primary_header_color and $heading_font_weight
|
40
|
+
// Bottom margins and line-height are managed via the vertical rythem mixin in Stipe
|
41
|
+
|
42
|
+
h1 {
|
43
|
+
// font-size: 2em; // user agent default
|
44
|
+
// @extend %headings_1;
|
45
|
+
}
|
46
|
+
|
47
|
+
h2 {
|
48
|
+
// font-size: 1.5em; // user agent default
|
49
|
+
// @extend %headings_2;
|
50
|
+
}
|
51
|
+
|
52
|
+
h3 {
|
53
|
+
// font-size: 1.17em; // user agent default
|
54
|
+
// @extend %headings_3;
|
55
|
+
}
|
56
|
+
|
57
|
+
h4 {
|
58
|
+
// font-size: 1em; // user agent default
|
59
|
+
// @extend %headings_4;
|
60
|
+
}
|
61
|
+
|
62
|
+
h5 {
|
63
|
+
// font-size: 0.83em; // user agent default
|
64
|
+
// @extend %headings_5;
|
65
|
+
}
|
66
|
+
|
67
|
+
h6 {
|
68
|
+
// font-size: 0.75em; // user agent default
|
69
|
+
// @extend %headings_6;
|
70
|
+
}
|
71
|
+
|
72
|
+
// Standard body text support
|
73
|
+
// -----------------------------------------------------------------------
|
74
|
+
p {
|
75
|
+
// margin-bottom: baseline-margin($font_size);
|
76
|
+
// text-indent: 0;
|
77
|
+
}
|
78
|
+
|
79
|
+
b {
|
80
|
+
// &:after {
|
81
|
+
// content: " ";
|
82
|
+
// }
|
83
|
+
}
|
84
|
+
|
85
|
+
|
86
|
+
// :link Pseudo-class is totally not necessary, but in come cases needed
|
87
|
+
a {
|
88
|
+
// &:link {
|
89
|
+
// color: $href_color;
|
90
|
+
// text-decoration: none;
|
91
|
+
// }
|
92
|
+
// &:hover, &:active {
|
93
|
+
// text-decoration: underline;
|
94
|
+
// }
|
95
|
+
// &:visited {
|
96
|
+
// color: $href_color;
|
97
|
+
// }
|
98
|
+
}
|