survivalkit 0.2.1 → 0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (159) hide show
  1. data/lib/survivalkit.rb +2 -2
  2. data/stylesheets/survivalkit/extend/_helpers.sass +13 -9
  3. data/stylesheets/survivalkit/extend/_sticky-footer.sass +4 -4
  4. data/stylesheets/survivalkit/mixins/_all.sass +1 -0
  5. data/stylesheets/survivalkit/mixins/_breakpoint.sass +68 -0
  6. data/stylesheets/survivalkit/mixins/_helpers.sass +13 -0
  7. data/stylesheets/survivalkit/mixins/_pseudo.sass +0 -1
  8. data/stylesheets/survivalkit/mixins/_typography.sass +2 -2
  9. data/stylesheets/survivalkit/reset/_normalize.scss +506 -0
  10. data/stylesheets/survivalkit/style-tile/_all.sass +1 -0
  11. data/stylesheets/survivalkit/style-tile/_tile-layout.sass +143 -0
  12. data/stylesheets/survivalkit/survival_kit/_survival-kit.sass +35 -28
  13. data/stylesheets/survivalkit/variables/_color_names.sass +148 -148
  14. data/templates/project/files/html/survivalkit/elements-common.html +453 -453
  15. data/templates/project/files/html/survivalkit/elements-html5.html +2791 -2791
  16. data/templates/project/files/html/survivalkit/elements-typography.html +102 -102
  17. data/templates/project/files/html/survivalkit/elements-ui-patterns-drupal-css.html +1688 -1688
  18. data/templates/project/files/html/survivalkit/elements-ui-patterns-drupal.html +1688 -1688
  19. data/templates/project/files/html/survivalkit/elements-ui-patterns.html +57 -57
  20. data/templates/project/files/html/survivalkit/styletile/styletile.html +13 -5
  21. data/templates/project/ie.sass +1 -1
  22. data/templates/project/manifest.rb +13 -21
  23. data/templates/project/partials/01-variables/_all.sass +1 -2
  24. data/templates/project/partials/01-variables/_base.sass +124 -10
  25. data/templates/project/partials/01-variables/_fonts.sass +1 -1
  26. data/templates/project/partials/02-reset/_reset.sass +4 -5
  27. data/templates/project/partials/03-extend/_typography.sass +9 -9
  28. data/templates/project/partials/04-defaults/_all.sass +8 -9
  29. data/templates/project/partials/04-defaults/_common.sass +56 -3
  30. data/templates/project/partials/04-defaults/{markup/_edits.sass → _edits.sass} +0 -0
  31. data/templates/project/partials/04-defaults/{markup/_headers.sass → _headers.sass} +14 -14
  32. data/templates/project/partials/04-defaults/{markup/_images.sass → _images.sass} +1 -1
  33. data/templates/project/partials/04-defaults/{markup/_semantics.sass → _semantics.sass} +9 -9
  34. data/templates/project/partials/04-defaults/{markup/_tables.sass → _tables.sass} +1 -1
  35. data/templates/project/partials/04-defaults/{markup/forms → forms}/_form-defaults.sass +5 -5
  36. data/templates/project/partials/04-defaults/{markup/forms → forms}/_formalize.sass +0 -0
  37. data/templates/project/partials/05-grids/_grids-susy.sass +3 -13
  38. data/templates/project/partials/06-ui-patterns/{drupal/_ui-patterns.sass → _drupal-patterns.sass} +0 -0
  39. data/templates/project/partials/{08-layout-design → 08-your-design-here}/_design.sass +0 -0
  40. data/templates/project/partials/09-styletile/_tile-design.sass +22 -7
  41. data/templates/project/partials/{11-media → 10-media}/_print.sass +1 -1
  42. data/templates/project/partials/{12-browser-adjustments → 11-browser-adjustments}/_ie.sass +0 -0
  43. data/templates/project/partials/{12-browser-adjustments → 11-browser-adjustments}/_modernizr.sass +0 -0
  44. data/templates/project/partials/{12-browser-adjustments → 11-browser-adjustments}/_selectivizr.sass +0 -0
  45. data/templates/project/selectivizr.sass +1 -1
  46. data/templates/project/style.sass +7 -13
  47. data/templates/project/templates/old/survivalkit/partials/common/abbr.haml +2 -2
  48. data/templates/project/templates/old/survivalkit/partials/common/acronym.haml +2 -2
  49. data/templates/project/templates/old/survivalkit/partials/common/characters.haml +2 -2
  50. data/templates/project/templates/old/survivalkit/partials/common/cite.haml +2 -2
  51. data/templates/project/templates/old/survivalkit/partials/common/code.haml +2 -2
  52. data/templates/project/templates/old/survivalkit/partials/common/dfn.haml +2 -2
  53. data/templates/project/templates/old/survivalkit/partials/common/em.haml +3 -3
  54. data/templates/project/templates/old/survivalkit/partials/common/forms.haml +2 -2
  55. data/templates/project/templates/old/survivalkit/partials/common/headers.haml +2 -2
  56. data/templates/project/templates/old/survivalkit/partials/common/inline-images.haml +2 -2
  57. data/templates/project/templates/old/survivalkit/partials/common/kbd.haml +2 -2
  58. data/templates/project/templates/old/survivalkit/partials/common/links.haml +2 -2
  59. data/templates/project/templates/old/survivalkit/partials/common/lists.haml +2 -2
  60. data/templates/project/templates/old/survivalkit/partials/common/others.haml +2 -2
  61. data/templates/project/templates/old/survivalkit/partials/common/paragraphs.haml +2 -2
  62. data/templates/project/templates/old/survivalkit/partials/common/pre.haml +9 -9
  63. data/templates/project/templates/old/survivalkit/partials/common/q.haml +2 -2
  64. data/templates/project/templates/old/survivalkit/partials/common/samp.haml +2 -2
  65. data/templates/project/templates/old/survivalkit/partials/common/strong.haml +2 -2
  66. data/templates/project/templates/old/survivalkit/partials/common/tables.haml +2 -2
  67. data/templates/project/templates/old/survivalkit/partials/common/var.haml +2 -2
  68. data/templates/project/templates/old/survivalkit/partials/html5/a.haml +2 -2
  69. data/templates/project/templates/old/survivalkit/partials/html5/abbr.haml +2 -2
  70. data/templates/project/templates/old/survivalkit/partials/html5/address.haml +2 -2
  71. data/templates/project/templates/old/survivalkit/partials/html5/all-headings.haml +2 -2
  72. data/templates/project/templates/old/survivalkit/partials/html5/article.haml +2 -2
  73. data/templates/project/templates/old/survivalkit/partials/html5/aside.haml +2 -2
  74. data/templates/project/templates/old/survivalkit/partials/html5/b.haml +2 -2
  75. data/templates/project/templates/old/survivalkit/partials/html5/bdi.haml +2 -2
  76. data/templates/project/templates/old/survivalkit/partials/html5/blockquote.haml +2 -2
  77. data/templates/project/templates/old/survivalkit/partials/html5/cite.haml +2 -2
  78. data/templates/project/templates/old/survivalkit/partials/html5/code.haml +3 -3
  79. data/templates/project/templates/old/survivalkit/partials/html5/details.haml +2 -2
  80. data/templates/project/templates/old/survivalkit/partials/html5/dfn.haml +2 -2
  81. data/templates/project/templates/old/survivalkit/partials/html5/dl.haml +2 -2
  82. data/templates/project/templates/old/survivalkit/partials/html5/em.haml +2 -2
  83. data/templates/project/templates/old/survivalkit/partials/html5/fieldset.haml +2 -2
  84. data/templates/project/templates/old/survivalkit/partials/html5/figure.haml +2 -2
  85. data/templates/project/templates/old/survivalkit/partials/html5/footer.haml +2 -2
  86. data/templates/project/templates/old/survivalkit/partials/html5/header.haml +2 -2
  87. data/templates/project/templates/old/survivalkit/partials/html5/hgroup.haml +2 -2
  88. data/templates/project/templates/old/survivalkit/partials/html5/hr.haml +2 -2
  89. data/templates/project/templates/old/survivalkit/partials/html5/i.haml +2 -2
  90. data/templates/project/templates/old/survivalkit/partials/html5/kbd.haml +2 -2
  91. data/templates/project/templates/old/survivalkit/partials/html5/label.haml +2 -2
  92. data/templates/project/templates/old/survivalkit/partials/html5/li.haml +2 -2
  93. data/templates/project/templates/old/survivalkit/partials/html5/mark.haml +2 -2
  94. data/templates/project/templates/old/survivalkit/partials/html5/menu.haml +2 -2
  95. data/templates/project/templates/old/survivalkit/partials/html5/nav.haml +2 -2
  96. data/templates/project/templates/old/survivalkit/partials/html5/ol.haml +2 -2
  97. data/templates/project/templates/old/survivalkit/partials/html5/p.haml +2 -2
  98. data/templates/project/templates/old/survivalkit/partials/html5/pre.haml +11 -11
  99. data/templates/project/templates/old/survivalkit/partials/html5/q.haml +2 -2
  100. data/templates/project/templates/old/survivalkit/partials/html5/ruby.haml +2 -2
  101. data/templates/project/templates/old/survivalkit/partials/html5/s.haml +2 -2
  102. data/templates/project/templates/old/survivalkit/partials/html5/samp.haml +2 -2
  103. data/templates/project/templates/old/survivalkit/partials/html5/sample-forms.haml +2 -2
  104. data/templates/project/templates/old/survivalkit/partials/html5/sample-tables.haml +2 -2
  105. data/templates/project/templates/old/survivalkit/partials/html5/section.haml +2 -2
  106. data/templates/project/templates/old/survivalkit/partials/html5/small.haml +2 -2
  107. data/templates/project/templates/old/survivalkit/partials/html5/strong.haml +2 -2
  108. data/templates/project/templates/old/survivalkit/partials/html5/sub-sup.haml +2 -2
  109. data/templates/project/templates/old/survivalkit/partials/html5/table.haml +2 -2
  110. data/templates/project/templates/old/survivalkit/partials/html5/text-summary.haml +2 -2
  111. data/templates/project/templates/old/survivalkit/partials/html5/thead.haml +2 -2
  112. data/templates/project/templates/old/survivalkit/partials/html5/time.haml +2 -2
  113. data/templates/project/templates/old/survivalkit/partials/html5/ul.haml +2 -2
  114. data/templates/project/templates/old/survivalkit/partials/patterns-drupal/block.haml +2 -2
  115. data/templates/project/templates/old/survivalkit/partials/patterns-drupal/breadcrumbs.haml +2 -2
  116. data/templates/project/templates/old/survivalkit/partials/patterns-drupal/comments.haml +2 -2
  117. data/templates/project/templates/old/survivalkit/partials/patterns-drupal/field-image.haml +2 -2
  118. data/templates/project/templates/old/survivalkit/partials/patterns-drupal/form-comment.haml +2 -2
  119. data/templates/project/templates/old/survivalkit/partials/patterns-drupal/form-login.haml +2 -2
  120. data/templates/project/templates/old/survivalkit/partials/patterns-drupal/form-new-account.haml +2 -2
  121. data/templates/project/templates/old/survivalkit/partials/patterns-drupal/form-new-password.haml +2 -2
  122. data/templates/project/templates/old/survivalkit/partials/patterns-drupal/links.haml +2 -2
  123. data/templates/project/templates/old/survivalkit/partials/patterns-drupal/menu.haml +2 -2
  124. data/templates/project/templates/old/survivalkit/partials/patterns-drupal/messages.haml +2 -2
  125. data/templates/project/templates/old/survivalkit/partials/patterns-drupal/node.haml +2 -2
  126. data/templates/project/templates/old/survivalkit/partials/patterns-drupal/pager.haml +2 -2
  127. data/templates/project/templates/old/survivalkit/partials/patterns-drupal/rss-link.haml +1 -1
  128. data/templates/project/templates/old/survivalkit/partials/patterns-drupal/search.haml +2 -2
  129. data/templates/project/templates/old/survivalkit/partials/patterns-drupal/site-name.haml +2 -2
  130. data/templates/project/templates/old/survivalkit/partials/patterns-drupal/tabs.haml +2 -2
  131. data/templates/project/templates/old/survivalkit/partials/patterns-drupal/taxonomy.haml +2 -2
  132. data/templates/project/templates/old/survivalkit/partials/patterns-general/block.haml +2 -2
  133. data/templates/project/templates/old/survivalkit/partials/patterns-general/breadcrumbs.haml +2 -2
  134. data/templates/project/templates/old/survivalkit/partials/patterns-general/comments.haml +2 -2
  135. data/templates/project/templates/old/survivalkit/partials/patterns-general/field-image.haml +2 -2
  136. data/templates/project/templates/old/survivalkit/partials/patterns-general/form-comment.haml +2 -2
  137. data/templates/project/templates/old/survivalkit/partials/patterns-general/form-login.haml +2 -2
  138. data/templates/project/templates/old/survivalkit/partials/patterns-general/form-new-account.haml +2 -2
  139. data/templates/project/templates/old/survivalkit/partials/patterns-general/form-new-password.haml +2 -2
  140. data/templates/project/templates/old/survivalkit/partials/patterns-general/links.haml +2 -2
  141. data/templates/project/templates/old/survivalkit/partials/patterns-general/menu.haml +2 -2
  142. data/templates/project/templates/old/survivalkit/partials/patterns-general/messages.haml +2 -2
  143. data/templates/project/templates/old/survivalkit/partials/patterns-general/node.haml +2 -2
  144. data/templates/project/templates/old/survivalkit/partials/patterns-general/pager.haml +2 -2
  145. data/templates/project/templates/old/survivalkit/partials/patterns-general/rss-link.haml +1 -1
  146. data/templates/project/templates/old/survivalkit/partials/patterns-general/search.haml +2 -2
  147. data/templates/project/templates/old/survivalkit/partials/patterns-general/site-name.haml +2 -2
  148. data/templates/project/templates/old/survivalkit/partials/patterns-general/tabs.haml +2 -2
  149. data/templates/project/templates/old/survivalkit/partials/patterns-general/taxonomy.haml +2 -2
  150. metadata +25 -31
  151. data/stylesheets/survivalkit/reset/_normalize.sass +0 -342
  152. data/templates/project/partials/01-variables/_grids-all.sass +0 -11
  153. data/templates/project/partials/04-defaults/markup/_grouping.sass +0 -52
  154. data/templates/project/partials/05-grids/_grids-blueprint.sass +0 -20
  155. data/templates/project/partials/08-layout-design/_layout.sass +0 -8
  156. data/templates/project/partials/09-styletile/_tile-layout.sass +0 -80
  157. data/templates/project/partials/10-responsive/_mixins.sass +0 -27
  158. data/templates/project/partials/10-responsive/_responsive-blueprint.sass +0 -139
  159. data/templates/project/partials/10-responsive/_responsive-susy.sass +0 -112
data/lib/survivalkit.rb CHANGED
@@ -3,7 +3,7 @@ Compass::Frameworks.register("survivalkit", :path => "#{File.dirname(__FILE__)}/
3
3
 
4
4
  module SurvivalKit
5
5
 
6
- VERSION = "0.2.1"
7
- DATE = "2012-03-03"
6
+ VERSION = "0.3"
7
+ DATE = "2012-05-22"
8
8
 
9
9
  end
@@ -1,28 +1,32 @@
1
1
  @import ../mixins/helpers
2
2
 
3
- .clearfix
3
+ %clearfix
4
4
  +kit-clearfix
5
+ .clearfix
6
+ @extend %clearfix
5
7
 
6
- .hidden
8
+ %hidden
7
9
  +hidden
10
+ .hidden
11
+ @extend %hidden
8
12
 
9
- .visuallyhidden
13
+ %visuallyhidden
10
14
  +visuallyhidden
11
15
 
12
- .visuallyhidden.focusable
16
+ %visuallyhidden.focusable
13
17
  +visuallyhidden(true)
14
18
 
15
- .invisible
19
+ %invisible
16
20
  +invisible
17
21
 
18
- .constrain-to-parent
22
+ %constrain-to-parent
19
23
  max-width: 100%
20
24
 
21
- .italic
25
+ %italic
22
26
  font-style: italic
23
27
 
24
- .bold
28
+ %bold
25
29
  font-weight: bold
26
30
 
27
- .wireframe
31
+ %wireframe
28
32
  outline: 1px dashed $red
@@ -2,17 +2,17 @@
2
2
  // FLEXIBLE STICKY FOOTERS
3
3
  // http://pixelsvsbytes.com/blog/2011/09/sticky-css-footers-the-flexible-way/
4
4
  ////////////////////////////
5
- .html-frame
5
+ %html-frame
6
6
  // apply to <html> and <body>
7
7
  height: 100%
8
8
  margin: 0pt
9
- .frame
9
+ %frame
10
10
  // aplly to <body>
11
11
  display: table
12
12
  height: 100%
13
13
  width: 100%
14
- .row
14
+ %row
15
15
  display: table-row
16
- .row-expand
16
+ %row-expand
17
17
  @extend .row
18
18
  height: 100%
@@ -1,5 +1,6 @@
1
1
  @import helpers
2
2
  @import typography
3
3
  @import layout
4
+ @import breakpoint
4
5
  @import ui
5
6
  @import pseudo
@@ -0,0 +1,68 @@
1
+ // experimental - depends on Sass 3.2 or higher
2
+ define your own breakpoints
3
+ styles nested in the mixin will pass thru in @content
4
+ resist the urge to settle on common device sizes
5
+ http://marcdrummond.com/responsive-web-design/2011/12/29/default-breakpoints-are-dead
6
+
7
+
8
+ ////////////////////////////
9
+ // SURVIVAL KIT - BREAKPOINT
10
+ // breakpoint($breakpoint, $media: 'screen')
11
+ //
12
+ // // create $breakpoint variables like so
13
+ // // assume $breakpoint-default-feature if only a number
14
+ // $breakpoint1: 500px
15
+ // $breakpoint2: 30em
16
+ // // set min-width/max-width if both values are numbers
17
+ // $breakpoint3: 500px 700px
18
+ // // if one value is a string, assume a feature/value pair
19
+ // $breakpoint4: min-width 700px
20
+ // $breakpoint5: max-width 700px
21
+ // // for multidimensional lists, assume each item is a feature/value pair
22
+ // $breakpoint6: max-width 700px, orientation portrait
23
+ // // handle one-sided features (ie. monochrome)
24
+ // $breakpoint7: max-width 700px, orientation portrait, monochrome
25
+ // $breakpoint8: monochrome
26
+ ////////////////////////////
27
+
28
+ $breakpoint-default-feature: min-width !default
29
+
30
+ @function breakpoint-concatenate($query-string, $new-value, $feature: $breakpoint-default-feature)
31
+ $new-string: ''
32
+ @if $feature != false
33
+ $new-string: #{$query-string}unquote("and (#{$feature}: #{$new-value}) ")
34
+ @else
35
+ $new-string: #{$query-string}unquote("and (#{$new-value}) ")
36
+ @return $new-string
37
+
38
+ =breakpoint($breakpoint, $media: 'screen')
39
+ // initialize string
40
+ $query-string: '#{$media} '
41
+ @if type-of($breakpoint) == number
42
+ // assume max-width if only a number
43
+ $query-string: breakpoint-concatenate($query-string, $breakpoint)
44
+ @if type-of($breakpoint) == string
45
+ // handle one-sided features (ie. monochrome)
46
+ $query-string: breakpoint-concatenate($query-string, $breakpoint, false)
47
+ @else if type-of($breakpoint) == list
48
+ @if (type-of(nth($breakpoint, 1)) == number) and (type-of(nth($breakpoint, 2)) == number)
49
+ // set min/max if both values are numbers
50
+ @if $modular-scale-loaded == true
51
+ $breakpoint: sort-list($breakpoint)
52
+ $query-string: breakpoint-concatenate($query-string, nth($breakpoint, 1), 'min-width')
53
+ $query-string: breakpoint-concatenate($query-string, nth($breakpoint, 2), 'max-width')
54
+ @else if (type-of(nth($breakpoint, 1)) == string)
55
+ // if one value is a string, assume a feature/value pair
56
+ $query-string: breakpoint-concatenate($query-string, nth($breakpoint, 2), nth($breakpoint, 1))
57
+ @else if (type-of(nth($breakpoint, 1)) == list)
58
+ // for multidimensional lists, assume each item is a feature value pair
59
+ @each $item in $breakpoint
60
+ @if type-of($item) == list
61
+ // $query-string: #{$query-string}unquote("and (#{nth($item, 1)}: #{nth($item, 2)}) ")
62
+ $query-string: breakpoint-concatenate($query-string, nth($item, 2), nth($item, 1))
63
+ @else
64
+ // handle one-sided features (ie. monochrome)
65
+ $query-string: breakpoint-concatenate($query-string, $item, false)
66
+ // write out the media query
67
+ @media #{$query-string}
68
+ @content
@@ -44,3 +44,16 @@
44
44
  +no-bullets
45
45
  margin-left: 0
46
46
  padding-left: 0
47
+
48
+ =susy-grid-backgrounds
49
+ @if $show-grid and $show-baseline
50
+ +susy-grid-background-baseline
51
+ @else if $show-grid
52
+ +susy-grid-background
53
+ @else if $show-baseline
54
+ +baseline-grid-background
55
+
56
+ =susy-grid-background-baseline()
57
+ +grid-background($total-columns, $column-width, $gutter-width, $base-line-height, $column-width*0, $grid-background-column-color, $grid-background-gutter-color, $grid-background-baseline-color, $force-fluid: true)
58
+ +background-origin(content-box)
59
+ +background-clip(content-box)
@@ -2,7 +2,6 @@
2
2
  // ABSOLUTE PSEUDO ELEMENTS
3
3
  ////////////////////////////
4
4
 
5
-
6
5
  // $side: can be 'before', 'after', or 'both'
7
6
  =pseudo($side: 'before')
8
7
  position: relative
@@ -1,6 +1,6 @@
1
1
  // Links --------------------------------------------------------------
2
2
  // replace underlines on links with bottom borders
3
- =better-links($normal, $hover: false, $active: false, $visited: false, $focus: false)
3
+ =underline-links($normal, $hover: false, $active: false, $visited: false, $focus: false)
4
4
  &
5
5
  text-decoration: none
6
6
  border-bottom: 1px solid $normal
@@ -17,7 +17,7 @@
17
17
  &:active
18
18
  border-bottom-color: $active
19
19
 
20
- =undo-better-links
20
+ =undo-underline-links
21
21
  &
22
22
  text-decoration: none
23
23
  // border-bottom: inherit
@@ -0,0 +1,506 @@
1
+ @mixin normalize {
2
+ /*! normalize.css 2012-03-11T12:53 UTC - http://github.com/necolas/normalize.css */
3
+
4
+ /* =============================================================================
5
+ HTML5 display definitions
6
+ ========================================================================== */
7
+
8
+ /*
9
+ * Corrects block display not defined in IE6/7/8/9 & FF3
10
+ */
11
+
12
+ article,
13
+ aside,
14
+ details,
15
+ figcaption,
16
+ figure,
17
+ footer,
18
+ header,
19
+ hgroup,
20
+ nav,
21
+ section,
22
+ summary {
23
+ display: block;
24
+ }
25
+
26
+ /*
27
+ * Corrects inline-block display not defined in IE6/7/8/9 & FF3
28
+ */
29
+
30
+ audio,
31
+ canvas,
32
+ video {
33
+ display: inline-block;
34
+ *display: inline;
35
+ *zoom: 1;
36
+ }
37
+
38
+ /*
39
+ * Prevents modern browsers from displaying 'audio' without controls
40
+ * Remove excess height in iOS5 devices
41
+ */
42
+
43
+ audio:not([controls]) {
44
+ display: none;
45
+ height: 0;
46
+ }
47
+
48
+ /*
49
+ * Addresses styling for 'hidden' attribute not present in IE7/8/9, FF3, S4
50
+ * Known issue: no IE6 support
51
+ */
52
+
53
+ [hidden] {
54
+ display: none;
55
+ }
56
+
57
+
58
+ /* =============================================================================
59
+ Base
60
+ ========================================================================== */
61
+
62
+ /*
63
+ * 1. Corrects text resizing oddly in IE6/7 when body font-size is set using em units
64
+ * http://clagnut.com/blog/348/#c790
65
+ * 2. Prevents iOS text size adjust after orientation change, without disabling user zoom
66
+ * www.456bereastreet.com/archive/201012/controlling_text_size_in_safari_for_ios_without_disabling_user_zoom/
67
+ */
68
+
69
+ html {
70
+ font-size: 100%; /* 1 */
71
+ -webkit-text-size-adjust: 100%; /* 2 */
72
+ -ms-text-size-adjust: 100%; /* 2 */
73
+ }
74
+
75
+ /*
76
+ * Addresses font-family inconsistency between 'textarea' and other form elements.
77
+ */
78
+
79
+ html,
80
+ button,
81
+ input,
82
+ select,
83
+ textarea {
84
+ font-family: sans-serif;
85
+ }
86
+
87
+ /*
88
+ * Addresses margins handled incorrectly in IE6/7
89
+ */
90
+
91
+ body {
92
+ margin: 0;
93
+ }
94
+
95
+
96
+ /* =============================================================================
97
+ Links
98
+ ========================================================================== */
99
+
100
+ /*
101
+ * Addresses outline displayed oddly in Chrome
102
+ */
103
+
104
+ a:focus {
105
+ outline: thin dotted;
106
+ }
107
+
108
+ /*
109
+ * Improves readability when focused and also mouse hovered in all browsers
110
+ * people.opera.com/patrickl/experiments/keyboard/test
111
+ */
112
+
113
+ a:hover,
114
+ a:active {
115
+ outline: 0;
116
+ }
117
+
118
+
119
+ /* =============================================================================
120
+ Typography
121
+ ========================================================================== */
122
+
123
+ /*
124
+ * Addresses font sizes and margins set differently in IE6/7
125
+ * Addresses font sizes within 'section' and 'article' in FF4+, Chrome, S5
126
+ */
127
+
128
+ h1 {
129
+ font-size: 2em;
130
+ margin: 0.67em 0;
131
+ }
132
+
133
+ h2 {
134
+ font-size: 1.5em;
135
+ margin: 0.83em 0;
136
+ }
137
+
138
+ h3 {
139
+ font-size: 1.17em;
140
+ margin: 1em 0;
141
+ }
142
+
143
+ h4 {
144
+ font-size: 1em;
145
+ margin: 1.33em 0;
146
+ }
147
+
148
+ h5 {
149
+ font-size: 0.83em;
150
+ margin: 1.67em 0;
151
+ }
152
+
153
+ h6 {
154
+ font-size: 0.75em;
155
+ margin: 2.33em 0;
156
+ }
157
+
158
+ /*
159
+ * Addresses styling not present in IE7/8/9, S5, Chrome
160
+ */
161
+
162
+ abbr[title] {
163
+ border-bottom: 1px dotted;
164
+ }
165
+
166
+ /*
167
+ * Addresses style set to 'bolder' in FF3+, S4/5, Chrome
168
+ */
169
+
170
+ b,
171
+ strong {
172
+ font-weight: bold;
173
+ }
174
+
175
+ blockquote {
176
+ margin: 1em 40px;
177
+ }
178
+
179
+ /*
180
+ * Addresses styling not present in S5, Chrome
181
+ */
182
+
183
+ dfn {
184
+ font-style: italic;
185
+ }
186
+
187
+ /*
188
+ * Addresses styling not present in IE6/7/8/9
189
+ */
190
+
191
+ mark {
192
+ background: #ff0;
193
+ color: #000;
194
+ }
195
+
196
+ /*
197
+ * Addresses margins set differently in IE6/7
198
+ */
199
+
200
+ p,
201
+ pre {
202
+ margin: 1em 0;
203
+ }
204
+
205
+ /*
206
+ * Corrects font family set oddly in IE6, S4/5, Chrome
207
+ * en.wikipedia.org/wiki/User:Davidgothberg/Test59
208
+ */
209
+
210
+ pre,
211
+ code,
212
+ kbd,
213
+ samp {
214
+ font-family: monospace, serif;
215
+ _font-family: 'courier new', monospace;
216
+ font-size: 1em;
217
+ }
218
+
219
+ /*
220
+ * Improves readability of pre-formatted text in all browsers
221
+ */
222
+
223
+ pre {
224
+ white-space: pre;
225
+ white-space: pre-wrap;
226
+ word-wrap: break-word;
227
+ }
228
+
229
+ /*
230
+ * 1. Addresses CSS quotes not supported in IE6/7
231
+ * 2. Addresses quote property not supported in S4
232
+ */
233
+
234
+ /* 1 */
235
+
236
+ q {
237
+ quotes: none;
238
+ }
239
+
240
+ /* 2 */
241
+
242
+ q:before,
243
+ q:after {
244
+ content: '';
245
+ content: none;
246
+ }
247
+
248
+ small {
249
+ font-size: 75%;
250
+ }
251
+
252
+ /*
253
+ * Prevents sub and sup affecting line-height in all browsers
254
+ * gist.github.com/413930
255
+ */
256
+
257
+ sub,
258
+ sup {
259
+ font-size: 75%;
260
+ line-height: 0;
261
+ position: relative;
262
+ vertical-align: baseline;
263
+ }
264
+
265
+ sup {
266
+ top: -0.5em;
267
+ }
268
+
269
+ sub {
270
+ bottom: -0.25em;
271
+ }
272
+
273
+
274
+ /* =============================================================================
275
+ Lists
276
+ ========================================================================== */
277
+
278
+ /*
279
+ * Addresses margins set differently in IE6/7
280
+ */
281
+
282
+ dl,
283
+ menu,
284
+ ol,
285
+ ul {
286
+ margin: 1em 0;
287
+ }
288
+
289
+ dd {
290
+ margin: 0 0 0 40px;
291
+ }
292
+
293
+ /*
294
+ * Addresses paddings set differently in IE6/7
295
+ */
296
+
297
+ menu,
298
+ ol,
299
+ ul {
300
+ padding: 0 0 0 40px;
301
+ }
302
+
303
+ /*
304
+ * Corrects list images handled incorrectly in IE7
305
+ */
306
+
307
+ nav ul,
308
+ nav ol {
309
+ list-style: none;
310
+ list-style-image: none;
311
+ }
312
+
313
+
314
+ /* =============================================================================
315
+ Embedded content
316
+ ========================================================================== */
317
+
318
+ /*
319
+ * 1. Removes border when inside 'a' element in IE6/7/8/9, FF3
320
+ * 2. Improves image quality when scaled in IE7
321
+ * code.flickr.com/blog/2008/11/12/on-ui-quality-the-little-things-client-side-image-resizing/
322
+ */
323
+
324
+ img {
325
+ border: 0; /* 1 */
326
+ -ms-interpolation-mode: bicubic; /* 2 */
327
+ }
328
+
329
+ /*
330
+ * Corrects overflow displayed oddly in IE9
331
+ */
332
+
333
+ svg:not(:root) {
334
+ overflow: hidden;
335
+ }
336
+
337
+
338
+ /* =============================================================================
339
+ Figures
340
+ ========================================================================== */
341
+
342
+ /*
343
+ * Addresses margin not present in IE6/7/8/9, S5, O11
344
+ */
345
+
346
+ figure {
347
+ margin: 0;
348
+ }
349
+
350
+
351
+ /* =============================================================================
352
+ Forms
353
+ ========================================================================== */
354
+
355
+ /*
356
+ * Corrects margin displayed oddly in IE6/7
357
+ */
358
+
359
+ form {
360
+ margin: 0;
361
+ }
362
+
363
+ /*
364
+ * Define consistent border, margin, and padding
365
+ */
366
+
367
+ fieldset {
368
+ border: 1px solid #c0c0c0;
369
+ margin: 0 2px;
370
+ padding: 0.35em 0.625em 0.75em;
371
+ }
372
+
373
+ /*
374
+ * 1. Corrects color not being inherited in IE6/7/8/9
375
+ * 2. Corrects text not wrapping in FF3
376
+ * 3. Corrects alignment displayed oddly in IE6/7
377
+ */
378
+
379
+ legend {
380
+ border: 0; /* 1 */
381
+ padding: 0;
382
+ white-space: normal; /* 2 */
383
+ *margin-left: -7px; /* 3 */
384
+ }
385
+
386
+ /*
387
+ * 1. Corrects font size not being inherited in all browsers
388
+ * 2. Addresses margins set differently in IE6/7, FF3+, S5, Chrome
389
+ * 3. Improves appearance and consistency in all browsers
390
+ */
391
+
392
+ button,
393
+ input,
394
+ select,
395
+ textarea {
396
+ font-size: 100%; /* 1 */
397
+ margin: 0; /* 2 */
398
+ vertical-align: baseline; /* 3 */
399
+ *vertical-align: middle; /* 3 */
400
+ }
401
+
402
+ /*
403
+ * Addresses FF3/4 setting line-height on 'input' using !important in the UA stylesheet
404
+ */
405
+
406
+ button,
407
+ input {
408
+ line-height: normal; /* 1 */
409
+ }
410
+
411
+ /*
412
+ * 1. Improves usability and consistency of cursor style between image-type 'input' and others
413
+ * 2. Corrects inability to style clickable 'input' types in iOS
414
+ * 3. Removes inner spacing in IE7 without affecting normal text inputs
415
+ * Known issue: inner spacing remains in IE6
416
+ */
417
+
418
+ button,
419
+ input[type="button"],
420
+ input[type="reset"],
421
+ input[type="submit"] {
422
+ cursor: pointer; /* 1 */
423
+ -webkit-appearance: button; /* 2 */
424
+ *overflow: visible; /* 3 */
425
+ }
426
+
427
+ /*
428
+ * Re-set default cursor for disabled elements
429
+ */
430
+
431
+ button[disabled],
432
+ input[disabled] {
433
+ cursor: default;
434
+ }
435
+
436
+ /*
437
+ * 1. Addresses box sizing set to content-box in IE8/9
438
+ * 2. Removes excess padding in IE8/9
439
+ * 3. Removes excess padding in IE7
440
+ Known issue: excess padding remains in IE6
441
+ */
442
+
443
+ input[type="checkbox"],
444
+ input[type="radio"] {
445
+ box-sizing: border-box; /* 1 */
446
+ padding: 0; /* 2 */
447
+ *height: 13px; /* 3 */
448
+ *width: 13px; /* 3 */
449
+ }
450
+
451
+ /*
452
+ * 1. Addresses appearance set to searchfield in S5, Chrome
453
+ * 2. Addresses box-sizing set to border-box in S5, Chrome (include -moz to future-proof)
454
+ */
455
+
456
+ input[type="search"] {
457
+ -webkit-appearance: textfield; /* 1 */
458
+ -moz-box-sizing: content-box;
459
+ -webkit-box-sizing: content-box; /* 2 */
460
+ box-sizing: content-box;
461
+ }
462
+
463
+ /*
464
+ * Removes inner padding and search cancel button in S5, Chrome on OS X
465
+ */
466
+
467
+ input[type="search"]::-webkit-search-decoration,
468
+ input[type="search"]::-webkit-search-cancel-button {
469
+ -webkit-appearance: none;
470
+ }
471
+
472
+ /*
473
+ * Removes inner padding and border in FF3+
474
+ * www.sitepen.com/blog/2008/05/14/the-devils-in-the-details-fixing-dojos-toolbar-buttons/
475
+ */
476
+
477
+ button::-moz-focus-inner,
478
+ input::-moz-focus-inner {
479
+ border: 0;
480
+ padding: 0;
481
+ }
482
+
483
+ /*
484
+ * 1. Removes default vertical scrollbar in IE6/7/8/9
485
+ * 2. Improves readability and alignment in all browsers
486
+ */
487
+
488
+ textarea {
489
+ overflow: auto; /* 1 */
490
+ vertical-align: top; /* 2 */
491
+ }
492
+
493
+
494
+ /* =============================================================================
495
+ Tables
496
+ ========================================================================== */
497
+
498
+ /*
499
+ * Remove most spacing between table cells
500
+ */
501
+
502
+ table {
503
+ border-collapse: collapse;
504
+ border-spacing: 0;
505
+ }
506
+ }
@@ -0,0 +1 @@
1
+ @import tile-layout