Skip to content
Browse files

add config options for html5, ui, drupal ui, and styletiles

  • Loading branch information...
1 parent 9efd5e5 commit cff53cfa7b257288175933036eb2bea909ed0f05 @codingdesigner committed
View
2 build/views/setup/html5-elements.haml
@@ -39,7 +39,7 @@
- @mark = true
- @ruby = true
- @bdi = true
-- @text-summary = true
+- @text_summary = true
-# Tabular Data
- @table = true
- @thead = true
View
9 build/views/setup/style-tile.haml
@@ -0,0 +1,9 @@
+-# Choose which ui patterns to render
+-# Simple markup Patterns
+- @logos = true
+- @headers = true
+- @quote = true
+- @type_sans = true
+- @type_serifs = true
+- @number_of_colors = 6
+- @number_of_images = 6
View
31 build/views/setup/ui-patterns-drupal.haml
@@ -0,0 +1,31 @@
+-# Choose which ui patterns to render
+-# Drupal Patterns
+- @site_name = true
+- @search = true
+- @messages = true
+- @block = true
+- @tables = true
+- @rss_link = true
+- @links = true
+- @taxonomy = true
+- @field_image = true
+- @node = true
+- @comments = true
+- @form_comment = true
+-# Drupal Navigation
+- @menu = true
+- @menu_tree = true
+- @tabs = true
+- @breadcrumbs = true
+- @pager = true
+-# Drupal Forms
+- @form_basic = true
+- @form_submit = true
+- @form_button = true
+- @form_image_button = true
+- @form_markup = true
+- @form_fieldsets = true
+- @form_vertical_tabs = true
+- @form_new_account = true
+- @form_login = true
+- @form_new_password = true
View
8 build/views/setup/ui-patterns.haml
@@ -0,0 +1,8 @@
+-# Choose which ui patterns to render
+-# Simple markup Patterns
+- @inline_images = true
+- @tables = true
+- @forms = true
+- @nested_menu = true
+- @messages = true
+- @pager = true
View
140 build/views/survivalkit/html5.html.haml
@@ -2,66 +2,114 @@
- @headertext = "Based on examples from <a href='http://developers.whatwg.org/'>developers.whatwg.org</a>"
- @subnav = "<nav class='section-nav'></nav> "
+= render :template => "/setup/html5-elements.haml"
+
%section#sections.element-group
%h1.section-title Sections
- = render :template => "/survivalkit/partials/html5/_section.haml"
- = render :template => "/survivalkit/partials/html5/_nav.haml"
- = render :template => "/survivalkit/partials/html5/_article.haml"
- = render :template => "/survivalkit/partials/html5/_aside.haml"
- = render :template => "/survivalkit/partials/html5/_all-headings.haml"
- = render :template => "/survivalkit/partials/html5/_hgroup.haml"
- = render :template => "/survivalkit/partials/html5/_header.haml"
- = render :template => "/survivalkit/partials/html5/_footer.haml"
- = render :template => "/survivalkit/partials/html5/_address.haml"
+ -if @section
+ = render :template => "/survivalkit/partials/html5/_section.haml"
+ -if @nav
+ = render :template => "/survivalkit/partials/html5/_nav.haml"
+ -if @article
+ = render :template => "/survivalkit/partials/html5/_article.haml"
+ -if @aside
+ = render :template => "/survivalkit/partials/html5/_aside.haml"
+ -if @all_headings
+ = render :template => "/survivalkit/partials/html5/_all-headings.haml"
+ -if @hgroup
+ = render :template => "/survivalkit/partials/html5/_hgroup.haml"
+ -if @header
+ = render :template => "/survivalkit/partials/html5/_header.haml"
+ -if @footer
+ = render :template => "/survivalkit/partials/html5/_footer.haml"
+ -if @address
+ = render :template => "/survivalkit/partials/html5/_address.haml"
%section#grouping.element-group
%h1.section-title Grouping
- = render :template => "/survivalkit/partials/html5/_p.haml"
- = render :template => "/survivalkit/partials/html5/_hr.haml"
- = render :template => "/survivalkit/partials/html5/_pre.haml"
- = render :template => "/survivalkit/partials/html5/_blockquote.haml"
- = render :template => "/survivalkit/partials/html5/_ol.haml"
- = render :template => "/survivalkit/partials/html5/_ul.haml"
- = render :template => "/survivalkit/partials/html5/_li.haml"
- = render :template => "/survivalkit/partials/html5/_dl.haml"
- = render :template => "/survivalkit/partials/html5/_figure.haml"
+ -if @p
+ = render :template => "/survivalkit/partials/html5/_p.haml"
+ -if @hr
+ = render :template => "/survivalkit/partials/html5/_hr.haml"
+ -if @pre
+ = render :template => "/survivalkit/partials/html5/_pre.haml"
+ -if @blockquote
+ = render :template => "/survivalkit/partials/html5/_blockquote.haml"
+ -if @ol
+ = render :template => "/survivalkit/partials/html5/_ol.haml"
+ -if @ul
+ = render :template => "/survivalkit/partials/html5/_ul.haml"
+ -if @li
+ = render :template => "/survivalkit/partials/html5/_li.haml"
+ -if @dl
+ = render :template => "/survivalkit/partials/html5/_dl.haml"
+ -if @figure
+ = render :template => "/survivalkit/partials/html5/_figure.haml"
%section#text.element-group
%h1.section-title Text-level semantics
- = render :template => "/survivalkit/partials/html5/_a.haml"
- = render :template => "/survivalkit/partials/html5/_em.haml"
- = render :template => "/survivalkit/partials/html5/_strong.haml"
- = render :template => "/survivalkit/partials/html5/_small.haml"
- = render :template => "/survivalkit/partials/html5/_s.haml"
- = render :template => "/survivalkit/partials/html5/_cite.haml"
- = render :template => "/survivalkit/partials/html5/_q.haml"
- = render :template => "/survivalkit/partials/html5/_dfn.haml"
- = render :template => "/survivalkit/partials/html5/_abbr.haml"
- = render :template => "/survivalkit/partials/html5/_time.haml"
- = render :template => "/survivalkit/partials/html5/_code.haml"
- = render :template => "/survivalkit/partials/html5/_samp.haml"
- = render :template => "/survivalkit/partials/html5/_kbd.haml"
- = render :template => "/survivalkit/partials/html5/_sub-sup.haml"
- = render :template => "/survivalkit/partials/html5/_i.haml"
- = render :template => "/survivalkit/partials/html5/_b.haml"
- = render :template => "/survivalkit/partials/html5/_mark.haml"
- = render :template => "/survivalkit/partials/html5/_ruby.haml"
- = render :template => "/survivalkit/partials/html5/_bdi.haml"
- = render :template => "/survivalkit/partials/html5/_text-summary.haml"
+ -if @a
+ = render :template => "/survivalkit/partials/html5/_a.haml"
+ -if @em
+ = render :template => "/survivalkit/partials/html5/_em.haml"
+ -if @strong
+ = render :template => "/survivalkit/partials/html5/_strong.haml"
+ -if @small
+ = render :template => "/survivalkit/partials/html5/_small.haml"
+ -if @s
+ = render :template => "/survivalkit/partials/html5/_s.haml"
+ -if @cite
+ = render :template => "/survivalkit/partials/html5/_cite.haml"
+ -if @q
+ = render :template => "/survivalkit/partials/html5/_q.haml"
+ -if @dfn
+ = render :template => "/survivalkit/partials/html5/_dfn.haml"
+ -if @abbr
+ = render :template => "/survivalkit/partials/html5/_abbr.haml"
+ -if @time
+ = render :template => "/survivalkit/partials/html5/_time.haml"
+ -if @code
+ = render :template => "/survivalkit/partials/html5/_code.haml"
+ -if @samp
+ = render :template => "/survivalkit/partials/html5/_samp.haml"
+ -if @kbd
+ = render :template => "/survivalkit/partials/html5/_kbd.haml"
+ -if @sub_sup
+ = render :template => "/survivalkit/partials/html5/_sub-sup.haml"
+ -if @i
+ = render :template => "/survivalkit/partials/html5/_i.haml"
+ -if @b
+ = render :template => "/survivalkit/partials/html5/_b.haml"
+ -if @mark
+ = render :template => "/survivalkit/partials/html5/_mark.haml"
+ -if @ruby
+ = render :template => "/survivalkit/partials/html5/_ruby.haml"
+ -if @bdi
+ = render :template => "/survivalkit/partials/html5/_bdi.haml"
+ -if @text_summary
+ = render :template => "/survivalkit/partials/html5/_text-summary.haml"
%section#tabular.element-group
%h1.section-title Tabular Data
- = render :template => "/survivalkit/partials/html5/_table.haml"
- = render :template => "/survivalkit/partials/html5/_thead.haml"
- = render :template => "/survivalkit/partials/html5/_sample-tables.haml"
+ -if @table
+ = render :template => "/survivalkit/partials/html5/_table.haml"
+ -if @thead
+ = render :template => "/survivalkit/partials/html5/_thead.haml"
+ -if @sample_tables
+ = render :template => "/survivalkit/partials/html5/_sample-tables.haml"
%section#forms.element-group
%h1.section-title Forms
- = render :template => "/survivalkit/partials/html5/_sample-forms.haml"
- = render :template => "/survivalkit/partials/html5/_fieldset.haml"
- = render :template => "/survivalkit/partials/html5/_label.haml"
+ -if @sample_forms
+ = render :template => "/survivalkit/partials/html5/_sample-forms.haml"
+ -if @fieldset
+ = render :template => "/survivalkit/partials/html5/_fieldset.haml"
+ -if @label
+ = render :template => "/survivalkit/partials/html5/_label.haml"
%section#interactive.element-group
%h1.section-title Interactive
- = render :template => "/survivalkit/partials/html5/_details.haml"
- = render :template => "/survivalkit/partials/html5/_menu.haml"
+ -if @details
+ = render :template => "/survivalkit/partials/html5/_details.haml"
+ -if @menu
+ = render :template => "/survivalkit/partials/html5/_menu.haml"
View
83 build/views/survivalkit/partials/_patterns-drupal.haml
@@ -1,33 +1,62 @@
+= render :template => "/setup/ui-patterns-drupal.haml"
+
%section#drupal-patterns.element-group
%h1.section-title Drupal Patterns
- = render :template => "/survivalkit/partials/patterns-drupal/_site-name.haml"
- = render :template => "/survivalkit/partials/patterns-drupal/_search.haml"
- = render :template => "/survivalkit/partials/patterns-drupal/_messages.haml"
- = render :template => "/survivalkit/partials/patterns-drupal/_block.haml"
- = render :template => "/survivalkit/partials/patterns-drupal/_tables.haml"
- = render :template => "/survivalkit/partials/patterns-drupal/_rss-link.haml"
- = render :template => "/survivalkit/partials/patterns-drupal/_links.haml"
- = render :template => "/survivalkit/partials/patterns-drupal/_taxonomy.haml"
- = render :template => "/survivalkit/partials/patterns-drupal/_field-image.haml"
- = render :template => "/survivalkit/partials/patterns-drupal/_node.haml"
- = render :template => "/survivalkit/partials/patterns-drupal/_comments.haml"
- = render :template => "/survivalkit/partials/patterns-drupal/_form-comment.haml"
+ -if @site_name
+ = render :template => "/survivalkit/partials/patterns-drupal/_site-name.haml"
+ -if @search
+ = render :template => "/survivalkit/partials/patterns-drupal/_search.haml"
+ -if @messages
+ = render :template => "/survivalkit/partials/patterns-drupal/_messages.haml"
+ -if @block
+ = render :template => "/survivalkit/partials/patterns-drupal/_block.haml"
+ -if @tables
+ = render :template => "/survivalkit/partials/patterns-drupal/_tables.haml"
+ -if @rss_link
+ = render :template => "/survivalkit/partials/patterns-drupal/_rss-link.haml"
+ -if @links
+ = render :template => "/survivalkit/partials/patterns-drupal/_links.haml"
+ -if @taxonomy
+ = render :template => "/survivalkit/partials/patterns-drupal/_taxonomy.haml"
+ -if @field_image
+ = render :template => "/survivalkit/partials/patterns-drupal/_field-image.haml"
+ -if @node
+ = render :template => "/survivalkit/partials/patterns-drupal/_node.haml"
+ -if @comments
+ = render :template => "/survivalkit/partials/patterns-drupal/_comments.haml"
+ -if @form_comment
+ = render :template => "/survivalkit/partials/patterns-drupal/_form-comment.haml"
%section#drupal-navigation.element-group
%h1.section-title Drupal Navigation
- = render :template => "/survivalkit/partials/patterns-drupal/_menu.haml"
- = render :template => "/survivalkit/partials/patterns-drupal/_menu-tree.haml"
- = render :template => "/survivalkit/partials/patterns-drupal/_tabs.haml"
- = render :template => "/survivalkit/partials/patterns-drupal/_breadcrumbs.haml"
- = render :template => "/survivalkit/partials/patterns-drupal/_pager.haml"
+ -if @menu
+ = render :template => "/survivalkit/partials/patterns-drupal/_menu.haml"
+ -if @menu_tree
+ = render :template => "/survivalkit/partials/patterns-drupal/_menu-tree.haml"
+ -if @tabs
+ = render :template => "/survivalkit/partials/patterns-drupal/_tabs.haml"
+ -if @breadcrumbs
+ = render :template => "/survivalkit/partials/patterns-drupal/_breadcrumbs.haml"
+ -if @pager
+ = render :template => "/survivalkit/partials/patterns-drupal/_pager.haml"
%section#drupal-forms.element-group
%h1.section-title Drupal Forms
- = render :template => "/survivalkit/partials/patterns-drupal/_form-basic.haml"
- = render :template => "/survivalkit/partials/patterns-drupal/_form-submit.haml"
- = render :template => "/survivalkit/partials/patterns-drupal/_form-button.haml"
- = render :template => "/survivalkit/partials/patterns-drupal/_form-image-button.haml"
- = render :template => "/survivalkit/partials/patterns-drupal/_form-markup.haml"
- = render :template => "/survivalkit/partials/patterns-drupal/_form-fieldsets.haml"
- = render :template => "/survivalkit/partials/patterns-drupal/_form-vertical-tabs.haml"
- = render :template => "/survivalkit/partials/patterns-drupal/_form-new-account.haml"
- = render :template => "/survivalkit/partials/patterns-drupal/_form-login.haml"
- = render :template => "/survivalkit/partials/patterns-drupal/_form-new-password.haml"
+ -if @form_basic
+ = render :template => "/survivalkit/partials/patterns-drupal/_form-basic.haml"
+ -if @form_submit
+ = render :template => "/survivalkit/partials/patterns-drupal/_form-submit.haml"
+ -if @form_button
+ = render :template => "/survivalkit/partials/patterns-drupal/_form-button.haml"
+ -if @form_image_button
+ = render :template => "/survivalkit/partials/patterns-drupal/_form-image-button.haml"
+ -if @form_markup
+ = render :template => "/survivalkit/partials/patterns-drupal/_form-markup.haml"
+ -if @form_fieldsets
+ = render :template => "/survivalkit/partials/patterns-drupal/_form-fieldsets.haml"
+ -if @form_vertical_tabs
+ = render :template => "/survivalkit/partials/patterns-drupal/_form-vertical-tabs.haml"
+ -if @form_new_account
+ = render :template => "/survivalkit/partials/patterns-drupal/_form-new-account.haml"
+ -if @form_login
+ = render :template => "/survivalkit/partials/patterns-drupal/_form-login.haml"
+ -if @form_new_password
+ = render :template => "/survivalkit/partials/patterns-drupal/_form-new-password.haml"
View
113 build/views/survivalkit/styletile/styletile.html.haml
@@ -1,66 +1,61 @@
- @version = "1"
= render :template => "/setup/client.haml"
+= render :template => "/setup/style-tile.haml"
%article.text-examples
- .logos.group
- %h5.label Header text options
- %h1.logo.opt-1 INSERT CLIENT NAME
- .headers.group
- %h5.label Header text options
- %h1 This is a Page Title
- %h2 This is a Header
- %h3 This is a Sub Header
- %a{:href => ""} Link Text
- .quotes.group
- %figure.quote
- %span.quote-mark.left-quote-mark &ldquo;
- An Exceptional Quote
- %span.quote-mark.right-quote-mark &rdquo;
- %figcaption.source
- %span.publication
- The Paper
- %span.comma ,
- %span.year 2011
- .serif.group
- %h5.label Body Text Option
- %h2 This is a Header
- %p.serif
- Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
- = succeed "." do
- %a{:href => ""} Donec odio
- Quisque volutpat mattis eros. Nullam malesuada erat ut turpis. Suspendisse urna nibh, viverra non, semper suscipit, posuere a, pede.
- .sans.group
- %h5.label Body Text Option
- %h2 This is a Header
- %p.sans
- Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
- = succeed "." do
- %a{:href => ""} Donec odio
- Quisque volutpat mattis eros. Nullam malesuada erat ut turpis. Suspendisse urna nibh, viverra non, semper suscipit, posuere a, pede.
+ -if @logos
+ .logos.group
+ %h5.label Header text options
+ %h1.logo.opt-1 INSERT CLIENT NAME
+ -if @headers
+ .headers.group
+ %h5.label Header text options
+ %h1 This is a Page Title
+ %h2 This is a Header
+ %h3 This is a Sub Header
+ %a{:href => ""} Link Text
+ -if @quote
+ .quotes.group
+ %figure.quote
+ %span.quote-mark.left-quote-mark &ldquo;
+ An Exceptional Quote
+ %span.quote-mark.right-quote-mark &rdquo;
+ %figcaption.source
+ %span.publication
+ The Paper
+ %span.comma ,
+ %span.year 2011
+ -if @type_serifs
+ .serif.group
+ %h5.label Body Text Option
+ %h2 This is a Header
+ %p.serif
+ Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
+ = succeed "." do
+ %a{:href => ""} Donec odio
+ Quisque volutpat mattis eros. Nullam malesuada erat ut turpis. Suspendisse urna nibh, viverra non, semper suscipit, posuere a, pede.
+ -if @type_sans
+ .sans.group
+ %h5.label Body Text Option
+ %h2 This is a Header
+ %p.sans
+ Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
+ = succeed "." do
+ %a{:href => ""} Donec odio
+ Quisque volutpat mattis eros. Nullam malesuada erat ut turpis. Suspendisse urna nibh, viverra non, semper suscipit, posuere a, pede.
%article.graphic-examples
- .colors.group
- %h5.label Color Options
- %ul
- %li.color-1
- %li.color-2
- %li.color-3
- %li.color-4
- %li.color-5
- %li.color-6
- .images.group
- %h5.label Style and Pattern Swatches
- %ul
- %li.image-1
- %img{:alt => "placeholder image", :src => "http://dummyimage.com/400x300/ccc/fff"}/
- %li.image-2
- %img{:alt => "placeholder image", :src => "http://dummyimage.com/400x300/ccc/fff"}/
- %li.image-3
- %img{:alt => "placeholder image", :src => "http://dummyimage.com/400x300/ccc/fff"}/
- %li.image-4
- %img{:alt => "placeholder image", :src => "http://dummyimage.com/400x300/ccc/fff"}/
- %li.image-5
- %img{:alt => "placeholder image", :src => "http://dummyimage.com/400x300/ccc/fff"}/
- %li.image-5
- %img{:alt => "placeholder image", :src => "http://dummyimage.com/400x300/ccc/fff"}/
+ -if @number_of_colors > 0
+ .colors.group
+ %h5.label Color Options
+ %ul
+ -(1..@number_of_colors).each do |i|
+ %li(class="color-#{i}")
+ -if @number_of_images > 0
+ .images.group
+ %h5.label Style and Pattern Swatches
+ %ul
+ -(1..@number_of_images).each do |i|
+ %li(class="image-#{i}")
+ %img{:alt => "placeholder image", :src => "http://lorempixel.com/g/400/300/abstract/#{i}"}/
View
21 build/views/survivalkit/ui-patterns.html.haml
@@ -1,18 +1,23 @@
- @title = "UI Patterns"
- @subnav = "<nav class='section-nav'></nav> "
+= render :template => "/setup/ui-patterns.haml"
/ Simple markup Patterns
%section#simple-patterns.element-group
%h1.section-title Common Patterns
- = render :template => "/survivalkit/partials/patterns-general/_inline-images.haml"
- = render :template => "/survivalkit/partials/patterns-general/_tables.haml"
- = render :template => "/survivalkit/partials/patterns-general/_forms.haml"
-%section#simple-patterns.element-group
- %h1.section-title Common Patterns
- = render :template => "/survivalkit/partials/patterns-general/_nested-menu.haml"
- = render :template => "/survivalkit/partials/patterns-drupal/_messages.haml"
- = render :template => "/survivalkit/partials/patterns-drupal/_pager.haml"
+ -if @inline_images
+ = render :template => "/survivalkit/partials/patterns-general/_inline-images.haml"
+ -if @tables
+ = render :template => "/survivalkit/partials/patterns-general/_tables.haml"
+ -if @forms
+ = render :template => "/survivalkit/partials/patterns-general/_forms.haml"
+ -if @nested_menu
+ = render :template => "/survivalkit/partials/patterns-general/_nested-menu.haml"
+ -if @messages
+ = render :template => "/survivalkit/partials/patterns-drupal/_messages.haml"
+ -if @pager
+ = render :template => "/survivalkit/partials/patterns-drupal/_pager.haml"

0 comments on commit cff53cf

Please sign in to comment.
Something went wrong with that request. Please try again.