zurb-foundation 2.2.1.2 → 3.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (86) hide show
  1. data/.gitignore +17 -2
  2. data/Capfile +5 -0
  3. data/Gemfile +1 -1
  4. data/LICENSE +22 -0
  5. data/README.md +87 -0
  6. data/Rakefile +1 -0
  7. data/config/deploy.rb +42 -0
  8. data/foundation.gemspec +17 -21
  9. data/index.html +138 -0
  10. data/lib/foundation/engine.rb +2 -2
  11. data/lib/foundation/sass_script_functions.rb +29 -0
  12. data/lib/foundation/version.rb +1 -2
  13. data/lib/zurb-foundation.rb +6 -3
  14. data/stylesheets/_foundation.scss +14 -0
  15. data/stylesheets/foundation/_base.scss +6 -0
  16. data/stylesheets/foundation/_mixins.scss +46 -0
  17. data/stylesheets/foundation/_modular-scale.sass +332 -0
  18. data/stylesheets/foundation/_semantic-grid.scss +67 -0
  19. data/stylesheets/foundation/_settings.scss +71 -0
  20. data/stylesheets/foundation/app.scss +26 -0
  21. data/stylesheets/foundation/buttons.scss +175 -0
  22. data/stylesheets/foundation/forms.scss +130 -0
  23. data/stylesheets/foundation/globals.scss +34 -0
  24. data/stylesheets/foundation/grid.scss +132 -0
  25. data/stylesheets/foundation/ie.scss +16 -0
  26. data/stylesheets/foundation/mobile.scss +32 -0
  27. data/stylesheets/foundation/navbar.scss +107 -0
  28. data/stylesheets/foundation/offcanvas.scss +57 -0
  29. data/{vendor/assets/stylesheets/foundation/orbit.css.scss → stylesheets/foundation/orbit.scss} +68 -68
  30. data/stylesheets/foundation/reveal.scss +54 -0
  31. data/stylesheets/foundation/tabs.scss +89 -0
  32. data/stylesheets/foundation/typography.scss +83 -0
  33. data/stylesheets/foundation/ui.scss +352 -0
  34. data/templates/project/.gitignore +44 -0
  35. data/templates/project/MIT-LICENSE.txt +20 -0
  36. data/templates/project/humans.txt +8 -0
  37. data/templates/project/index.html +133 -0
  38. data/templates/project/manifest.rb +51 -0
  39. data/templates/project/robots.txt +4 -0
  40. data/templates/project/sass/_settings.scss +48 -0
  41. data/templates/project/sass/app.scss +20 -0
  42. data/templates/project/sass/ie.scss +4 -0
  43. data/templates/project/stylesheets/app.css +0 -0
  44. data/templates/project/stylesheets/ie.css +0 -0
  45. data/test.html +758 -0
  46. data/type.html +153 -0
  47. data/vendor/assets/images/foundation/orbit/left-arrow-small.png +0 -0
  48. data/vendor/assets/images/foundation/orbit/right-arrow-small.png +0 -0
  49. data/vendor/assets/images/foundation/orbit/right-arrow.png +0 -0
  50. data/vendor/assets/javascripts/foundation/app.js +92 -71
  51. data/vendor/assets/javascripts/foundation/index.js +8 -7
  52. data/vendor/assets/javascripts/foundation/jquery.customforms.js +74 -73
  53. data/vendor/assets/javascripts/foundation/jquery.min.js +4 -0
  54. data/vendor/assets/javascripts/foundation/jquery.offcanvas.js +50 -0
  55. data/vendor/assets/javascripts/foundation/jquery.orbit-1.4.0.js +103 -101
  56. data/vendor/assets/javascripts/foundation/jquery.placeholder.min.js +0 -1
  57. data/vendor/assets/javascripts/foundation/jquery.reveal.js +39 -15
  58. data/vendor/assets/javascripts/foundation/jquery.tooltips.js +96 -90
  59. data/vendor/assets/javascripts/foundation/modernizr.foundation.js +3 -4
  60. metadata +101 -46
  61. data/README.markdown +0 -163
  62. data/build.rb +0 -49
  63. data/lib/foundation/generators/USAGE +0 -15
  64. data/lib/foundation/generators/install_generator.rb +0 -27
  65. data/lib/foundation/generators/layout_generator.rb +0 -28
  66. data/lib/foundation/generators/templates/application.css +0 -5
  67. data/lib/foundation/generators/templates/application.html.erb +0 -31
  68. data/lib/foundation/generators/templates/application.html.haml +0 -30
  69. data/lib/foundation/generators/templates/application.html.slim +0 -30
  70. data/lib/foundation/generators/templates/application.js +0 -4
  71. data/vendor/assets/images/foundation/misc/button-gloss.png +0 -0
  72. data/vendor/assets/images/foundation/misc/button-overlay.png +0 -0
  73. data/vendor/assets/images/foundation/misc/custom-form-sprites.png +0 -0
  74. data/vendor/assets/images/foundation/misc/input-bg-outset.png +0 -0
  75. data/vendor/assets/images/foundation/misc/input-bg.png +0 -0
  76. data/vendor/assets/images/foundation/misc/modal-gloss.png +0 -0
  77. data/vendor/assets/images/foundation/misc/table-sorter.png +0 -0
  78. data/vendor/assets/stylesheets/foundation/forms.css.scss +0 -134
  79. data/vendor/assets/stylesheets/foundation/globals.css.scss +0 -139
  80. data/vendor/assets/stylesheets/foundation/grid.css.scss +0 -129
  81. data/vendor/assets/stylesheets/foundation/ie.css.scss +0 -13
  82. data/vendor/assets/stylesheets/foundation/index.css +0 -10
  83. data/vendor/assets/stylesheets/foundation/mobile.css.scss +0 -222
  84. data/vendor/assets/stylesheets/foundation/reveal.css.scss +0 -100
  85. data/vendor/assets/stylesheets/foundation/typography.css.scss +0 -63
  86. data/vendor/assets/stylesheets/foundation/ui.css.scss +0 -418
@@ -0,0 +1,54 @@
1
+ /* CSS for jQuery Reveal Plugin
2
+ * Maintained for Foundation. foundation.zurb.com
3
+ * Free to use under the MIT license.
4
+ * http://www.opensource.org/licenses/mit-license.php
5
+ */
6
+
7
+ @import "base";
8
+
9
+ /* Reveal Modals ---------------------- */
10
+
11
+ .reveal-modal-bg { position: fixed; height: 100%; width: 100%; background: #000; background: rgba(#000, .45); z-index: 40; display: none; top: 0; left: 0; }
12
+
13
+ .reveal-modal { background: $white; visibility: hidden; display: none; top: 100px; left: 50%; margin-left: -260px; width: 520px; position: absolute; z-index: 41; padding: 30px; @include box-shadow(0 0 10px rgba(#000,.4));
14
+ *:first-child { margin-top: 0; }
15
+ *:last-child { margin-bottom: 0; }
16
+ .close-reveal-modal {
17
+ @include font-size(22);
18
+ line-height: .5;
19
+ position: absolute;
20
+ top: 8px;
21
+ right: 11px;
22
+ color: #aaa;
23
+ text-shadow: 0 -1px 1px rbga(0,0,0,.6);
24
+ font-weight: bold;
25
+ cursor: pointer;
26
+ }
27
+ &.small { width: 30%; margin-left: -10%; }
28
+ &.medium { width: 40%; margin-left: -20%; }
29
+ &.large { width: 60%; margin-left: -30%; }
30
+ &.expand { width: 90%; margin-left: -45%; }
31
+ .row { min-width: 0; }
32
+ }
33
+
34
+ /* Mobile */
35
+ @media only screen and (max-width: $screenSmall - 1) {
36
+ .reveal-modal-bg { position: absolute; }
37
+
38
+ .reveal-modal,
39
+ .reveal-modal.small,
40
+ .reveal-modal.medium,
41
+ .reveal-modal.large,
42
+ .reveal-modal.xlarge { width: 80%; top: 15px; left: 50%; margin-left: -40%; padding: 20px; height: auto; }
43
+ }
44
+
45
+ /* NOTES
46
+ Close button entity is ×
47
+
48
+ Example markup
49
+ <div id="myModal" class="reveal-modal">
50
+ <h2>Awesome. I have it.</h2>
51
+ <p class="lead">Your couch. I it's mine.</p>
52
+ <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. In ultrices aliquet placerat. Duis pulvinar orci et nisi euismod vitae tempus lorem consectetur. Duis at magna quis turpis mattis venenatis eget id diam. </p>
53
+ <a class="close-reveal-modal">&#215;</a>
54
+ </div> */
@@ -0,0 +1,89 @@
1
+ /* Requires
2
+ globals.css
3
+ app.js */
4
+
5
+ @import "base";
6
+
7
+ /* Tabs ---------------------- */
8
+
9
+ dl.tabs { border-bottom: solid 1px darken($white, 10%); display: block; height: $tabHeight; padding: 0; margin-bottom: 20px;
10
+ &.contained { margin-bottom: 0; }
11
+
12
+ dt { color: darken($white, 30%); cursor: default; display: block; float: left; font-size: ms(0) - 2px; height: $tabHeight; line-height: $tabHeight; padding: 0 9px 0 20px; width: auto; text-transform: uppercase;
13
+ &:first-child { padding: 0 9px 0 0; }
14
+ }
15
+
16
+ dd { display: block; float: left; padding: 0; margin: 0;
17
+ a { color: lighten($txtColor, 30%); display: block; font-size: ms(0); height: $tabHeight; line-height: $tabHeight; padding: 0px ms(1) * 1.4; }
18
+ &.active { border-top: 3px solid $mainColor; margin-top: -3px;
19
+ a { cursor: default; color: lighten($txtColor, 10%); background: #fff; border-left: 1px solid darken($white, 10%); border-right: 1px solid darken($white, 10%); font-weight: bold; }
20
+ }
21
+ &:first-child { margin-left: 0; }
22
+ }
23
+
24
+ &.vertical { height: auto; border-bottom: 1px solid darken($white, 10%);
25
+ dt, dd { float: none; height: auto; }
26
+
27
+ dd { border-left: 3px solid darken($white, 20%);
28
+ a { background: darken($white, 5%); border: none; border: 1px solid darken($white, 10%); border-width: 1px 1px 0 0; color: #555; display: block; font-size: ms(0); height: auto; line-height: 1; padding: 15px 20px; @include box-shadow(0 1px 0 $shinyEdge inset);
29
+ }
30
+ &.active { margin-top: 0; border-top: 1px solid lighten($black, 30%); border-left: 4px solid lighten($black, 10%);
31
+ a { background: lighten($black, 30%); border: none; color: #fff; height: auto; margin: 0; position: static; top: 0; @include box-shadow(0 0 0); }
32
+ }
33
+ &:first-child a.active { margin: 0; }
34
+ }
35
+ }
36
+
37
+ &.pill { border-bottom: none; margin-bottom: 10px;
38
+ dd { margin-right: 10px;
39
+ &:last-child { margin-right: 0; }
40
+ a { @include border-radius(1000px); background: darken($white, 10%); height: $tabHeight - 14; line-height: $tabHeight - 14; color: #666; }
41
+
42
+ &.active { border: none; margin-top: 0;
43
+ a { background-color: $mainColor; border: none; color: #fff; }
44
+ }
45
+ }
46
+ &.contained { border-bottom: solid 1px #eee; margin-bottom: 0; }
47
+ }
48
+
49
+ &.two-up, &.three-up, &.four-up, &.five-up {
50
+ dt a, dd a { padding: 0 ms(1); text-align: center; overflow: hidden; }
51
+ }
52
+ &.two-up dt, &.two-up dd { width: 50%; }
53
+ &.three-up dt, &.three-up dd { width: 33.33%; }
54
+ &.four-up dt, &.four-up dd { width: 25%; }
55
+ &.five-up dt, &.five-up dd { width: 20%; }
56
+ }
57
+
58
+ ul.tabs-content { display: block; margin: 0 0 20px; padding: 0;
59
+ &>li { display: none;
60
+ &.active { display: block; }
61
+ }
62
+ &.contained { padding: 0;
63
+ &>li { border: solid 0 darken($white, 10%); border-width: 0 1px 1px 1px; padding: 20px; }
64
+ &.vertical>li { border-width: 1px 1px 1px 1px; }
65
+ }
66
+ }
67
+
68
+ .no-js ul.tabs-content>li { display: block; }
69
+
70
+ @media only screen and (max-width: $screenSmall - 1) {
71
+ dl.tabs.mobile, dl.nice.tabs.mobile { width: auto; margin: 20px -20px 40px; height: auto; }
72
+ dl.tabs.mobile dt, dl.tabs.mobile dd, dl.nice.tabs.mobile dt, dl.nice.tabs.mobile dd { float: none; height: auto; }
73
+
74
+ dl.tabs.mobile dd a { display: block; width: auto; height: auto; padding: 18px 20px; line-height: 1; border: solid 0 #ccc; border-width: 1px 0 0; margin: 0; color: #555; background: #eee; @include font-size(15); }
75
+ dl.tabs.mobile dd a.active { height: auto; margin: 0; border-width: 1px 0 0; }
76
+
77
+
78
+ .tabs.mobile { border-bottom: solid 1px #ccc; height: auto;
79
+
80
+ dd a { padding: 18px 20px; border: none; border-left: none; border-right: none; border-top: 1px solid #ccc; background: #fff; }
81
+ dd a.active { border: none; background: $mainColor; color: #fff; margin: 0; position: static; top: 0; height: auto; }
82
+ dd:first-child a.active { margin: 0; }
83
+ }
84
+
85
+ dl.contained.mobile, dl.nice.contained.mobile { margin-bottom: 0; }
86
+ dl.contained.tabs.mobile dd a { padding: 18px 20px; }
87
+
88
+ dl.tabs.mobile + ul.contained { margin-left: -20px; margin-right: -20px; border-width: 0 0 1px 0; }
89
+ }
@@ -0,0 +1,83 @@
1
+ @import "base";
2
+
3
+ /* Base Type Styles Using Modular Scale ---------------------- */
4
+
5
+ body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,p,blockquote,th,td {
6
+ margin:0;
7
+ padding:0;
8
+ font-size: ms(0);
9
+ }
10
+
11
+ p { font-size: ms(0); line-height: 1.6; margin-bottom: ms(1);
12
+ &.lead { font-size: ms(0) * 1.25; line-height: 1.6; margin-bottom: ms(1); }
13
+ img.left, img { margin: ms(1); margin-left: 0; }
14
+ img.right { margin: ms(1); margin-right: 0; }
15
+ }
16
+ aside p { font-size: ms(0) - 1; line-height: 1.35; font-style: italic; }
17
+
18
+ h1, h2, h3, h4, h5, h6 {
19
+ text-rendering: optimizeLegibility;
20
+ line-height: 1.1;
21
+ margin-bottom: ms(0);
22
+ margin-top: ms(0);
23
+ small { font-size: 60%; color: #888; line-height: 0; }
24
+ }
25
+
26
+ h1 { font-size: ms(5); }
27
+ h2 { font-size: ms(4); }
28
+ h3 { font-size: ms(3); }
29
+ h4 { font-size: ms(2); }
30
+ h5 { font-size: ms(1); }
31
+ h6 { font-size: ms(0); }
32
+
33
+ hr { border: solid #ddd; border-width: 1px 0 0; clear: both; margin: 22px 0 21px; height: 0; }
34
+
35
+ .subheader { line-height: 1.3; color: #777; font-weight: 300; margin-bottom: ms(1); }
36
+
37
+ em, i { font-style: italic; line-height: inherit; }
38
+ strong, b { font-weight: bold; line-height: inherit; }
39
+ small { font-size: 60%; line-height: inherit; }
40
+ code { font-weight: bold; background: $highlightColor; }
41
+
42
+ /* Lists ---------------------- */
43
+ ul, ol { font-size: ms(0); line-height: 1.6; margin-bottom: ms(1); list-style-position: inside; }
44
+ ul.square, ul.circle, ul.disc { margin-left: ms(1); }
45
+ ul.square { list-style-type: square; }
46
+ ul.circle { list-style-type: circle ; }
47
+ ul.disc { list-style-type: disc; }
48
+ ul.no-bullet { list-style: none; }
49
+ ul.large li { line-height: 21px; }
50
+
51
+ /* Blockquotes ---------------------- */
52
+ blockquote, blockquote p { line-height: 1.5; color: #777; }
53
+ blockquote { margin: 0 0 ms(1); padding: 9px 20px 0 19px; border-left: 1px solid #ddd; }
54
+ blockquote cite { display: block; font-size: ms(0) - 1; color: #555; }
55
+ blockquote cite:before { content: "\2014 \0020"; }
56
+ blockquote cite a, blockquote cite a:visited { color: #555; }
57
+
58
+ abbr, acronym { text-transform: uppercase; font-size: 90%; color: #222; border-bottom: 1px solid #ddd; cursor: help; }
59
+ abbr { text-transform: none; }
60
+
61
+ /*
62
+ * Print styles.
63
+ *
64
+ * Inlined to avoid required HTTP connection: www.phpied.com/delay-loading-your-print-css/
65
+ * Credit to Paul Irish and HTML5 Boilerplate (html5boilerplate.com)
66
+ */
67
+ .print-only { display: none !important; }
68
+ @media print {
69
+ * { background: transparent !important; color: black !important; box-shadow:none !important; text-shadow: none !important; filter:none !important; -ms-filter: none !important; } /* Black prints faster: h5bp.com/s */
70
+ a, a:visited { text-decoration: underline; }
71
+ a[href]:after { content: " (" attr(href) ")"; }
72
+ abbr[title]:after { content: " (" attr(title) ")"; }
73
+ .ir a:after, a[href^="javascript:"]:after, a[href^="#"]:after { content: ""; } /* Don't show links for images, or javascript/internal links */
74
+ pre, blockquote { border: 1px solid #999; page-break-inside: avoid; }
75
+ thead { display: table-header-group; } /* h5bp.com/t */
76
+ tr, img { page-break-inside: avoid; }
77
+ img { max-width: 100% !important; }
78
+ @page { margin: 0.5cm; }
79
+ p, h2, h3 { orphans: 3; widows: 3; }
80
+ h2, h3 { page-break-after: avoid; }
81
+ .hide-on-print { display: none !important; }
82
+ .print-only { display: block !important; }
83
+ }
@@ -0,0 +1,352 @@
1
+ /* Requires:
2
+ globals.css */
3
+
4
+ /* Table of Contents
5
+
6
+ :: Visibility
7
+ :: Alerts
8
+ :: Labels
9
+ :: Tooltips
10
+ :: Panels
11
+ :: Side Nav
12
+ :: Sub Nav
13
+ :: Pagination
14
+ :: Breadcrumbs
15
+ :: Lists
16
+ :: Link Lists
17
+ :: Keystroke Chars
18
+ :: Video
19
+ :: Tables
20
+ :: Microformats
21
+
22
+ */
23
+
24
+ @import "base";
25
+
26
+ /* Visibility Classes ---------------------- */
27
+
28
+ /* Standard visibility targeting */
29
+ .show-for-small,
30
+ .show-for-medium,
31
+ .hide-for-large,
32
+ .show-for-xlarge { display: none !important; }
33
+
34
+ .hide-for-xlarge,
35
+ .show-for-large,
36
+ .hide-for-small,
37
+ .hide-for-medium { display: block !important; }
38
+
39
+ /* Very large display targeting */
40
+ @media only screen and (min-width: $screenXlarge) {
41
+ .hide-for-small,
42
+ .hide-for-medium,
43
+ .hide-for-large,
44
+ .show-for-xlarge { display: block !important; }
45
+
46
+ .show-for-small,
47
+ .show-for-medium,
48
+ .show-for-large,
49
+ .hide-for-xlarge { display: none !important; }
50
+ }
51
+
52
+ /* Medium display targeting */
53
+ @media only screen and (max-width: $screenMedium) and (min-width: $screenSmall) {
54
+ .hide-for-small,
55
+ .show-for-medium,
56
+ .hide-for-large,
57
+ .hide-for-xlarge { display: block !important; }
58
+
59
+ .show-for-small,
60
+ .hide-for-medium,
61
+ .show-for-large,
62
+ .show-for-xlarge { display: none !important; }
63
+ }
64
+
65
+ /* Small display targeting */
66
+ @media only screen and (max-width: $screenSmall - 1) {
67
+ .show-for-small,
68
+ .hide-for-medium,
69
+ .hide-for-large,
70
+ .hide-for-xlarge { display: block !important; }
71
+
72
+ .hide-for-small,
73
+ .show-for-medium,
74
+ .show-for-large,
75
+ .show-for-xlarge { display: none !important; }
76
+ }
77
+
78
+ /* Orientation targeting */
79
+ .show-for-landscape,
80
+ .hide-for-portrait { display: block !important; }
81
+ .hide-for-landscape,
82
+ .show-for-portrait { display: none !important; }
83
+
84
+ @media screen and (orientation: landscape) {
85
+ .show-for-landscape,
86
+ .hide-for-portrait { display: block !important; }
87
+ .hide-for-landscape,
88
+ .show-for-portrait { display: none !important; }
89
+ }
90
+
91
+ @media screen and (orientation: portrait) {
92
+ .show-for-portrait,
93
+ .hide-for-landscape { display: block !important; }
94
+ .hide-for-portrait,
95
+ .show-for-landscape { display: none !important; }
96
+ }
97
+
98
+ /* Touch-enabled device targeting */
99
+ .show-for-touch { display: none !important; }
100
+ .hide-for-touch { display: block !important; }
101
+ .touch .show-for-touch { display: block !important; }
102
+ .touch .hide-for-touch { display: none !important; }
103
+
104
+ /* Specific overrides for elements that require something other than display: block */
105
+
106
+ table.show-for-xlarge,
107
+ table.show-for-large,
108
+ table.hide-for-small,
109
+ table.hide-for-medium { display: table !important; }
110
+
111
+ @media only screen and (max-width: $screenMedium) and (min-width: $screenSmall) {
112
+ .touch table.hide-for-xlarge,
113
+ .touch table.hide-for-large,
114
+ .touch table.hide-for-small,
115
+ .touch table.show-for-medium { display: table !important; }
116
+ }
117
+
118
+ @media only screen and (max-width: $screenSmall - 1) {
119
+ table.hide-for-xlarge,
120
+ table.hide-for-large,
121
+ table.hide-for-medium,
122
+ table.show-for-small { display: table !important; }
123
+ }
124
+
125
+ /* Alerts ---------------------- */
126
+
127
+ div.alert-box { display: block; padding: 6px 7px 7px; font-weight: bold; font-size: ms(0); color: $white; background-color: $mainColor; border: 1px solid rgba(#000,.1); margin-bottom: 12px; @include border-radius(3px); text-shadow: 0 -1px rgba(#000,.3); position: relative;
128
+
129
+ &.success { background-color: $successColor; color: #fff; text-shadow: 0 -1px rgba(#000,.3); }
130
+ &.alert { background-color: $alertColor; color: #fff; text-shadow: 0 -1px rgba(#000,.3); }
131
+ &.secondary { background-color: $secondaryColor; color: darken($secondaryColor, 60%); text-shadow: 0 1px rgba(#fff,.3); }
132
+
133
+ a.close { color: #333; position: absolute; right: 4px; top: -1px; font-size: ms(1); opacity: 0.2; padding: 4px; }
134
+ a.close:hover, a.close:focus { opacity: 0.4; }
135
+
136
+ }
137
+
138
+
139
+ /* Labels ---------------------- */
140
+
141
+ .label { padding: 1px 4px 2px; font-size: ms(0) - 2; font-weight: bold; text-align: center; text-decoration: none; line-height: 1; white-space: nowrap; display: inline; position: relative; bottom: 1px; color: #fff; background: $mainColor;
142
+
143
+ &.radius { @include border-radius($buttonRadius); }
144
+ &.round { padding: 1px 7px 2px; @include border-radius(1000px); }
145
+
146
+ &.alert { background-color: $alertColor; }
147
+ &.success { background-color: $successColor; }
148
+ &.secondary { background-color: $secondaryColor; color: darken($secondaryColor, 60%); }
149
+
150
+ }
151
+
152
+ /* Tooltips ---------------------- */
153
+
154
+ .has-tip { border-bottom: dotted 1px #ccc; cursor: help; font-weight: bold; color: #333;
155
+
156
+ &:hover { border-bottom: dotted 1px #0593dc; color: #0192dd; }
157
+ &.tip-left, &.tip-right { float: none !important; }
158
+
159
+ }
160
+
161
+ .tooltip { display: none; background: rgb(0,0,0); background: rgba(0,0,0,0.8); position: absolute; color: #fff; font-weight: bold; @include font-size(12); padding: 5px; z-index: 999; -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px; line-height: normal;
162
+
163
+ &>.nub { display: block; width: 0; height: 0; border: solid 5px; border-color: transparent transparent rgb(0,0,0) transparent; border-color: transparent transparent rgba(0,0,0,0.8) transparent; position: absolute; top: -10px; left: 10px; }
164
+ &.tip-override>.nub { border-color: transparent transparent rgb(0,0,0) transparent !important; border-color: transparent transparent rgba(0,0,0,0.8) transparent !important; top: -10px !important; }
165
+ &.tip-top>.nub { border-color: rgb(0,0,0) transparent transparent transparent; border-color: rgba(0,0,0,0.8) transparent transparent transparent; top: auto; bottom: -10px; }
166
+
167
+ &.tip-left, &.tip-right { float: none !important; }
168
+
169
+ &.tip-left>.nub { border-color: transparent transparent transparent rgb(0,0,0); border-color: transparent transparent transparent rgba(0,0,0,0.8); right: -10px; left: auto; }
170
+ &.tip-right>.nub { border-color: transparent rgb(0,0,0) transparent transparent; border-color: transparent rgba(0,0,0,0.8) transparent transparent; right: auto; left: -10px; }
171
+
172
+ &.noradius { @include border-radius(0); }
173
+ &.opened { color: #0192DD !important; border-bottom: dotted 1px #0593DC !important; }
174
+
175
+ }
176
+
177
+ .tap-to-close { display: block; @include font-size(10); color: #888; font-weight: normal; }
178
+
179
+ @media only screen and (max-width: $screenSmall - 1) {
180
+ .tooltip {
181
+ @include font-size(14);
182
+ line-height: 1.4;
183
+ padding: 7px 10px 9px 10px;
184
+ }
185
+ .tooltip > .nub, .tooltip.top > .nub, .tooltip.left > .nub, .tooltip.right > .nub {
186
+ border-color: transparent transparent rgb(0,0,0) transparent;
187
+ border-color: transparent transparent rgba(0,0,0,0.85) transparent;
188
+ top: -12px;
189
+ left: 10px;
190
+ }
191
+ }
192
+
193
+ /* Panels ---------------------- */
194
+
195
+ div.panel { background: darken($white, 5%); border: solid 1px darken($white, 10%); margin: 0 0 22px 0; padding: 20px;
196
+
197
+ *:first-child { margin-top: 0; }
198
+ *:last-child { margin-bottom: 0; }
199
+
200
+ &.callout { background: $mainColor; color: #fff; border-color: darken($mainColor, 10%); @include box-shadow(inset 0px 1px 0px rgba(255,255,255,0.5));
201
+ a { color: #fff; }
202
+ .button { background: $white; border: none; color: $mainColor; @include text-shadow(none);
203
+
204
+ &:hover { background: rgba(255,255,255,0.8); }
205
+ }
206
+ }
207
+
208
+ &.radius { @include border-radius($buttonRadius); }
209
+
210
+ }
211
+
212
+ /* Side Nav ---------------------- */
213
+
214
+ ul.side-nav { display: block; list-style: none; margin: 0; padding: ms(1) 0;
215
+
216
+ li { display: block; list-style: none; margin: 0 0 (ms(0)/2) 0;
217
+
218
+ a { display: block; }
219
+ &.active a { color: lighten($black, 30%); font-weight: bold; }
220
+ &.divider { border-top: 1px solid darken($white, 10%); height: 0; padding: 0; }
221
+ }
222
+ }
223
+
224
+ /* Sub Navs http://www.zurb.com/article/292/how-to-create-simple-and-effective-sub-na ---------------------- */
225
+
226
+ dl.sub-nav { display: block; width: auto; overflow: hidden; margin: -4px 0 18px -9px; padding-top: 4px;
227
+
228
+ dt, dd { float: left; display: inline; margin-left: 9px; margin-bottom: 4px; }
229
+ dt { color: #999; font-weight: normal; }
230
+ dd a { text-decoration: none; @include border-radius(1000px); }
231
+ dd.active a { font-weight: bold; background: $mainColor; color: #fff; padding: 3px 9px; cursor: default; }
232
+
233
+ }
234
+
235
+ /* Pagination ---------------------- */
236
+
237
+ ul.pagination { display: block; height: 24px; margin-left: -5px;
238
+
239
+ li { float: left; display: block; height: 24px; color: #999; font-size: ms(0); margin-left: 5px;
240
+
241
+ a { display: block; padding: 1px 7px 1px; color: #555; }
242
+ &:hover a, a:focus { background: darken($white, 10%); }
243
+ &.unavailable a { cursor: default; color: #999; }
244
+ &.unavailable:hover a, &.unavailable a:focus { background: transparent; }
245
+ &.current a { background: $mainColor; color: $white; font-weight: bold; cursor: default;
246
+ &:hover { background: $mainColor; }
247
+ }
248
+ }
249
+
250
+ }
251
+
252
+ /* Breadcrums ---------------------- */
253
+
254
+ ul.breadcrumbs { display: block; background: lighten($secondaryColor, 5%); padding: 6px 10px 7px; border: 1px solid $secondaryColor; @include border-radius(2px); overflow: hidden;
255
+
256
+ li { margin: 0; padding: 0 12px 0 0; float: left; list-style: none;
257
+
258
+ a, span { text-transform: uppercase; @include font-size(11); padding-left: 12px; }
259
+ &:first-child a, &:first-child span { padding-left: 0; }
260
+ }
261
+
262
+ li:before { content: "/"; color: #aaa; }
263
+ li:first-child:before { content: " "; }
264
+ li.current a { cursor: default; color: #333; }
265
+ li:hover a, li a:focus { text-decoration: underline; }
266
+ li.current:hover a, li.current a:focus { text-decoration: none; }
267
+ li.unavailable {
268
+ a { color: #999; }
269
+ &:hover a, a:focus { text-decoration: none; color: #999; cursor: default; }
270
+ }
271
+
272
+ }
273
+
274
+ /* Lists ---------------------- */
275
+
276
+ ul.nice, ol.nice { list-style: none; margin: 0;
277
+
278
+ li { padding-left: 13px; position: relative;
279
+ span.bullet, span.number { position: absolute; left: 0; top: 0; color: #ccc; }
280
+ }
281
+ }
282
+
283
+ /* Link List */
284
+ ul.link-list { margin: 0 0 ms(1) -22px; padding: 0; list-style: none; overflow: hidden;
285
+
286
+ li { list-style: none; float: left; margin-left: 22px; display: block;
287
+
288
+ a { display: block; }
289
+ }
290
+ }
291
+
292
+
293
+ /* Keytroke Characters ---------------------- */
294
+
295
+ .keystroke, kbd { font-family: "Consolas", "Menlo", "Courier", monospace; font-size: ms(0) - 1; padding: 2px 4px 0px; margin: 0; background: darken($white, 7%); border: solid 1px darken($white, 14%); @include border-radius($buttonRadius); }
296
+
297
+
298
+ /* Video - Mad props to http://www.alistapart.com/articles/creating-intrinsic-ratios-for-video/ ---------------------- */
299
+
300
+ .flex-video {
301
+ position: relative;
302
+ padding-top: 25px;
303
+ padding-bottom: 67.5%;
304
+ height: 0;
305
+ margin-bottom: 16px;
306
+ overflow: hidden;
307
+
308
+ &.widescreen { padding-bottom: 57.25%; }
309
+ &.vimeo { padding-top: 0; }
310
+
311
+ iframe, object, embed, video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
312
+
313
+ }
314
+
315
+ @media only screen and (max-device-width: 800px), only screen and (device-width: 1024px) and (device-height: 600px), only screen and (width: 1280px) and (orientation: landscape), only screen and (device-width: 800px), only screen and (max-width: 767px) {
316
+ .flex-video { padding-top: 0; }
317
+ }
318
+
319
+ /* Tables ---------------------- */
320
+
321
+ table { background: #fff; -moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px; margin: 0 0 18px; border: 1px solid #ddd; }
322
+
323
+ table thead, table tfoot { background: #f5f5f5; }
324
+ table thead tr th,
325
+ table tfoot tr th,
326
+ table tbody tr td,
327
+ table tr td,
328
+ table tfoot tr td { @include font-size(12); line-height: 18px; text-align: left; }
329
+ table thead tr th,
330
+ table tfoot tr td { padding: 8px 10px 9px; @include font-size(14); font-weight: bold; color: #222; }
331
+ table thead tr th:first-child, table tfoot tr td:first-child { border-left: none; }
332
+ table thead tr th:last-child, table tfoot tr td:last-child { border-right: none; }
333
+
334
+ table tbody tr.even,
335
+ table tbody tr.alt { background: #f9f9f9; }
336
+ table tbody tr:nth-child(even) { background: #f9f9f9; }
337
+ table tbody tr td { color: #333; padding: 9px 10px; vertical-align: top; border: none; }
338
+
339
+ /* Microformats ---------------------- */
340
+
341
+ ul.vcard { display: inline-block; margin: 0 0 12px 0; border: 1px solid #ddd; padding: 10px;
342
+
343
+ li { margin: 0; display: block; }
344
+ li.fn { font-weight: bold; @include font-size(15); }
345
+
346
+ }
347
+
348
+ p.vevent {
349
+ span.summary { font-weight: bold; }
350
+ abbr { cursor: default; text-decoration: none; font-weight: bold; border: none; padding: 0 1px; }
351
+ }
352
+