bootstrap_devise_base 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (137) hide show
  1. data/Gemfile +54 -0
  2. data/Gemfile.lock +237 -0
  3. data/Rakefile +7 -0
  4. data/app/.svn/all-wcprops +5 -0
  5. data/app/.svn/entries +31 -0
  6. data/app/assets/images/rails.png +0 -0
  7. data/app/assets/javascripts/application.js +16 -0
  8. data/app/assets/javascripts/registrations.js.coffee +3 -0
  9. data/app/assets/stylesheets/application.css +23 -0
  10. data/app/assets/stylesheets/bootstrap.scss +29 -0
  11. data/app/assets/stylesheets/forms.scss +481 -0
  12. data/app/assets/stylesheets/mixins.scss +220 -0
  13. data/app/assets/stylesheets/patterns.scss +1061 -0
  14. data/app/assets/stylesheets/registrations.css.scss +3 -0
  15. data/app/assets/stylesheets/reset.scss +144 -0
  16. data/app/assets/stylesheets/scaffolding.scss +144 -0
  17. data/app/assets/stylesheets/tables.scss +226 -0
  18. data/app/assets/stylesheets/type.scss +190 -0
  19. data/app/assets/stylesheets/variables.scss +60 -0
  20. data/app/controllers/.svn/all-wcprops +11 -0
  21. data/app/controllers/.svn/entries +62 -0
  22. data/app/controllers/.svn/text-base/assets_offline_controller.rb.svn-base +85 -0
  23. data/app/controllers/application_controller.rb +6 -0
  24. data/app/controllers/authentications_controller.rb +34 -0
  25. data/app/controllers/home_controller.rb +83 -0
  26. data/app/controllers/registrations_controller.rb +18 -0
  27. data/app/helpers/application_helper.rb +2 -0
  28. data/app/helpers/authentications_helper.rb +2 -0
  29. data/app/helpers/devise_helper.rb +29 -0
  30. data/app/helpers/home_helper.rb +2 -0
  31. data/app/helpers/registrations_helper.rb +2 -0
  32. data/app/mailers/.gitkeep +0 -0
  33. data/app/models/.gitkeep +0 -0
  34. data/app/models/authentication.rb +3 -0
  35. data/app/models/user.rb +20 -0
  36. data/app/views/authentications/_form.html.erb +16 -0
  37. data/app/views/authentications/edit.html.erb +8 -0
  38. data/app/views/authentications/index.html.erb +22 -0
  39. data/app/views/authentications/new.html.erb +5 -0
  40. data/app/views/authentications/show.html.erb +20 -0
  41. data/app/views/devise/confirmations/new.html.erb +12 -0
  42. data/app/views/devise/mailer/confirmation_instructions.html.erb +5 -0
  43. data/app/views/devise/mailer/reset_password_instructions.html.erb +8 -0
  44. data/app/views/devise/mailer/unlock_instructions.html.erb +7 -0
  45. data/app/views/devise/passwords/edit.html.erb +16 -0
  46. data/app/views/devise/passwords/new.html.erb +12 -0
  47. data/app/views/devise/sessions/new.html.erb +58 -0
  48. data/app/views/devise/shared/_links.erb +25 -0
  49. data/app/views/devise/unlocks/new.html.erb +12 -0
  50. data/app/views/home/_form.html.erb +17 -0
  51. data/app/views/home/edit.html.erb +6 -0
  52. data/app/views/home/index.html.erb +21 -0
  53. data/app/views/home/new.html.erb +5 -0
  54. data/app/views/home/show.html.erb +5 -0
  55. data/app/views/layouts/application.html.erb +112 -0
  56. data/app/views/registrations/edit.html.erb +25 -0
  57. data/app/views/registrations/new.html.erb +47 -0
  58. data/bootstrap_devise_base.gemspec +20 -0
  59. data/config.ru +4 -0
  60. data/config/.svn/all-wcprops +11 -0
  61. data/config/.svn/entries +62 -0
  62. data/config/.svn/text-base/routes.rb.svn-base +3 -0
  63. data/config/application.rb +48 -0
  64. data/config/boot.rb +6 -0
  65. data/config/cucumber.yml +8 -0
  66. data/config/database.yml +45 -0
  67. data/config/environment.rb +5 -0
  68. data/config/environments/development.rb +30 -0
  69. data/config/environments/production.rb +60 -0
  70. data/config/environments/test.rb +39 -0
  71. data/config/initializers/backtrace_silencers.rb +7 -0
  72. data/config/initializers/devise.rb +208 -0
  73. data/config/initializers/inflections.rb +10 -0
  74. data/config/initializers/mime_types.rb +5 -0
  75. data/config/initializers/omniauth.rb +3 -0
  76. data/config/initializers/secret_token.rb +7 -0
  77. data/config/initializers/session_store.rb +8 -0
  78. data/config/initializers/wrap_parameters.rb +14 -0
  79. data/config/locales/devise.en.yml +58 -0
  80. data/config/locales/en.yml +13 -0
  81. data/config/routes.rb +64 -0
  82. data/db/migrate/20111121201415_create_users.rb +8 -0
  83. data/db/migrate/20111121201511_add_devise_to_users.rb +31 -0
  84. data/db/migrate/20111127100158_create_authentications.rb +14 -0
  85. data/db/schema.rb +42 -0
  86. data/db/seeds.rb +7 -0
  87. data/doc/README_FOR_APP +2 -0
  88. data/features/manage_sign_ups.feature +28 -0
  89. data/features/step_definitions/sign_up_steps.rb +27 -0
  90. data/features/step_definitions/web_steps.rb +254 -0
  91. data/features/support/env.rb +56 -0
  92. data/features/support/paths.rb +39 -0
  93. data/features/support/selectors.rb +39 -0
  94. data/init.rb +1 -0
  95. data/lib/.svn/all-wcprops +11 -0
  96. data/lib/.svn/entries +65 -0
  97. data/lib/.svn/text-base/assets_offline.rb.svn-base +6 -0
  98. data/lib/assets/.gitkeep +0 -0
  99. data/lib/bootstap_devise_base.rb~ +6 -0
  100. data/lib/bootstrap_devise_base.rb +6 -0
  101. data/lib/bootstrap_devise_base/.svn/all-wcprops +11 -0
  102. data/lib/bootstrap_devise_base/.svn/entries +62 -0
  103. data/lib/bootstrap_devise_base/.svn/text-base/version.rb.svn-base +3 -0
  104. data/lib/bootstrap_devise_base/version.rb +3 -0
  105. data/lib/tasks/.gitkeep +0 -0
  106. data/lib/tasks/cucumber.rake +65 -0
  107. data/log/.gitkeep +0 -0
  108. data/log/development.log +977 -0
  109. data/log/production.log +44 -0
  110. data/log/test.log +799 -0
  111. data/public/404.html +26 -0
  112. data/public/422.html +26 -0
  113. data/public/500.html +26 -0
  114. data/public/assets/application-902e25928a309d43246c45cd2facd7d3.js +19 -0
  115. data/public/assets/application-902e25928a309d43246c45cd2facd7d3.js.gz +0 -0
  116. data/public/assets/application-a5e3fc47c863d5a64c7380ed33b187b6.css +1 -0
  117. data/public/assets/application-a5e3fc47c863d5a64c7380ed33b187b6.css.gz +0 -0
  118. data/public/assets/application.css +1 -0
  119. data/public/assets/application.css.gz +0 -0
  120. data/public/assets/application.js +19 -0
  121. data/public/assets/application.js.gz +0 -0
  122. data/public/assets/manifest.yml +4 -0
  123. data/public/assets/rails-e4b51606cd77fda2615e7439907bfc92.png +0 -0
  124. data/public/assets/rails.png +0 -0
  125. data/public/favicon.ico +0 -0
  126. data/public/robots.txt +5 -0
  127. data/script/cucumber +10 -0
  128. data/script/rails +6 -0
  129. data/test/fixtures/.gitkeep +0 -0
  130. data/test/functional/.gitkeep +0 -0
  131. data/test/integration/.gitkeep +0 -0
  132. data/test/performance/browsing_test.rb +12 -0
  133. data/test/test_helper.rb +13 -0
  134. data/test/unit/.gitkeep +0 -0
  135. data/vendor/assets/stylesheets/.gitkeep +0 -0
  136. data/vendor/plugins/.gitkeep +0 -0
  137. metadata +181 -0
@@ -0,0 +1,220 @@
1
+ /* Mixins.scss
2
+ * Snippets of reusable CSS to develop faster and keep code readable
3
+ * ----------------------------------------------------------------- */
4
+ @import "variables.scss";
5
+ // Clearfix for clearing floats like a boss h5bp.com/q
6
+ @mixin clearfix {
7
+ zoom: 1;
8
+ &:before,
9
+ &:after {
10
+ display: table;
11
+ content: "";
12
+ zoom: 1;
13
+ }
14
+ &:after {
15
+ clear: both;
16
+ }
17
+ }
18
+ .clearfix { @include clearfix; }
19
+
20
+ // Center-align a block level element
21
+ @mixin center-block {
22
+ display: block;
23
+ margin-left: auto;
24
+ margin-right: auto;
25
+ }
26
+
27
+ // Sizing shortcuts
28
+ @mixin size($height: 5px, $width: 5px) {
29
+ height: $height;
30
+ width: $width;
31
+ }
32
+ @mixin square($size: 5px) {
33
+ @include size($size, $size);
34
+ }
35
+
36
+ // Input placeholder text
37
+ @mixin placeholder($color: $grayLight) {
38
+ :-moz-placeholder {
39
+ color: $color;
40
+ }
41
+ ::-webkit-input-placeholder {
42
+ color: $color;
43
+ }
44
+ }
45
+
46
+ // Font Stacks
47
+ @mixin shorthand-font($weight: normal, $size: 14px, $lineHeight: 20px) {
48
+ font-size: $size;
49
+ font-weight: $weight;
50
+ line-height: $lineHeight;
51
+ }
52
+ @mixin sans-serif-font($weight: normal, $size: 14px, $lineHeight: 20px) {
53
+ font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
54
+ font-size: $size;
55
+ font-weight: $weight;
56
+ line-height: $lineHeight;
57
+ }
58
+ @mixin serif-font($weight: normal, $size: 14px, $lineHeight: 20px) {
59
+ font-family: "Georgia", Times New Roman, Times, serif;
60
+ font-size: $size;
61
+ font-weight: $weight;
62
+ line-height: $lineHeight;
63
+ }
64
+ @mixin monospace-font($weight: normal, $size: 12px, $lineHeight: 20px) {
65
+ font-family: "Monaco", Courier New, monospace;
66
+ font-size: $size;
67
+ font-weight: $weight;
68
+ line-height: $lineHeight;
69
+ }
70
+
71
+ // Grid System
72
+ @mixin fixed-container {
73
+ width: $siteWidth;
74
+ margin-left: auto;
75
+ margin-right: auto;
76
+ @include clearfix();
77
+ }
78
+ .fixed-container { @include fixed-container; }
79
+ @mixin columns($columnSpan: 1) {
80
+ width: ($gridColumnWidth * $columnSpan) + ($gridGutterWidth * ($columnSpan - 1));
81
+ }
82
+ @mixin offset($columnOffset: 1) {
83
+ margin-left: ($gridColumnWidth * $columnOffset) + ($gridGutterWidth * ($columnOffset - 1)) + $extraSpace;
84
+ }
85
+ // Necessary grid styles for every column to make them appear next to each other horizontally
86
+ @mixin gridColumn() {
87
+ display: inline;
88
+ float: left;
89
+ margin-left: $gridGutterWidth;
90
+ }
91
+ // makeColumn can be used to mark any element (e.g., .content-primary) as a column without changing markup to .span something
92
+ @mixin makeColumn($columnSpan: 1) {
93
+ @include gridColumn();
94
+ @include columns($columnSpan);
95
+ }
96
+
97
+ // Border Radius
98
+ @mixin border-radius($radius: 5px) {
99
+ -webkit-border-radius: $radius;
100
+ -moz-border-radius: $radius;
101
+ border-radius: $radius;
102
+ }
103
+
104
+ // Drop shadows
105
+ @mixin box-shadow($shadow: 0 1px 3px rgba(0,0,0,.25)) {
106
+ -webkit-box-shadow: $shadow;
107
+ -moz-box-shadow: $shadow;
108
+ box-shadow: $shadow;
109
+ }
110
+
111
+ // Transitions
112
+ @mixin transition($transition) {
113
+ -webkit-transition: $transition;
114
+ -moz-transition: $transition;
115
+ -ms-transition: $transition;
116
+ -o-transition: $transition;
117
+ transition: $transition;
118
+ }
119
+
120
+ // Background clipping
121
+ @mixin background-clip($clip) {
122
+ -webkit-background-clip: $clip;
123
+ -moz-background-clip: $clip;
124
+ background-clip: $clip;
125
+ }
126
+
127
+ // CSS3 Content Columns
128
+ @mixin content-columns($columnCount, $columnGap: 20px) {
129
+ -webkit-column-count: $columnCount;
130
+ -moz-column-count: $columnCount;
131
+ column-count: $columnCount;
132
+ -webkit-column-gap: $columnGap;
133
+ -moz-column-gap: $columnGap;
134
+ column-gap: $columnGap;
135
+ }
136
+
137
+ // Make any element resizable for prototyping
138
+ @mixin resizable($direction: both) {
139
+ resize: $direction; // Options are horizontal, vertical, both
140
+ overflow: auto; // Safari fix
141
+ }
142
+
143
+ // Add an alphatransparency value to any background or border color (via Elyse Holladay)
144
+ @mixin translucent-background($color: $white, $alpha: 1) {
145
+ background-color: hsla(hue($color), saturation($color), lightness($color), $alpha);
146
+ }
147
+ @mixin translucent-border($color: $white, $alpha: 1) {
148
+ border-color: hsla(hue($color), saturation($color), lightness($color), $alpha);
149
+ background-clip: padding-box;
150
+ }
151
+
152
+ // Gradients
153
+ @mixin horizontal-gradient ($startColor: #555, $endColor: #333) {
154
+ background-color: $endColor;
155
+ background-repeat: repeat-x;
156
+ background-image: -khtml-gradient(linear, left top, right top, from($startColor), to($endColor)); // Konqueror
157
+ background-image: -moz-linear-gradient(left, $startColor, $endColor); // FF 3.6+
158
+ background-image: -ms-linear-gradient(left, $startColor, $endColor); // IE10
159
+ background-image: -webkit-gradient(linear, left top, right top, color-stop(0%, $startColor), color-stop(100%, $endColor)); // Safari 4+, Chrome 2+
160
+ background-image: -webkit-linear-gradient(left, $startColor, $endColor); // Safari 5.1+, Chrome 10+
161
+ background-image: -o-linear-gradient(left, $startColor, $endColor); // Opera 11.10
162
+ background-image: linear-gradient(left, $startColor, $endColor); // Le standard
163
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{$startColor}', endColorstr='#{$endColor}', GradientType=1); // IE9 and down
164
+ }
165
+
166
+ @mixin vertical-gradient ($startColor: #555, $endColor: #333) {
167
+ background-color: $endColor;
168
+ background-repeat: repeat-x;
169
+ background-image: -khtml-gradient(linear, left top, left bottom, from($startColor), to($endColor)); // Konqueror
170
+ background-image: -moz-linear-gradient(top, $startColor, $endColor); // FF 3.6+
171
+ background-image: -ms-linear-gradient(top, $startColor, $endColor); // IE10
172
+ background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, $startColor), color-stop(100%, $endColor)); // Safari 4+, Chrome 2+
173
+ background-image: -webkit-linear-gradient(top, $startColor, $endColor); // Safari 5.1+, Chrome 10+
174
+ background-image: -o-linear-gradient(top, $startColor, $endColor); // Opera 11.10
175
+ background-image: linear-gradient(top, $startColor, $endColor); // The standard
176
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{$startColor}', endColorstr='#{$endColor}', GradientType=0); // IE9 and down
177
+ }
178
+
179
+ @mixin directional-gradient ($startColor: #555, $endColor: #333, $deg: 45deg) {
180
+ background-color: $endColor;
181
+ background-repeat: repeat-x;
182
+ background-image: -moz-linear-gradient($deg, $startColor, $endColor); // FF 3.6+
183
+ background-image: -ms-linear-gradient($deg, $startColor, $endColor); // IE10
184
+ background-image: -webkit-linear-gradient($deg, $startColor, $endColor); // Safari 5.1+, Chrome 10+
185
+ background-image: -o-linear-gradient($deg, $startColor, $endColor); // Opera 11.10
186
+ background-image: linear-gradient($deg, $startColor, $endColor); // The standard
187
+ }
188
+
189
+ @mixin vertical-three-colors-gradient($startColor: #00b3ee, $midColor: #7a43b6, $colorStop: 50%, $endColor: #c3325f) {
190
+ background-color: $endColor;
191
+ background-repeat: no-repeat;
192
+ background-image: -webkit-gradient(linear, 0 0, 0 100%, from($startColor), color-stop($colorStop, $midColor), to($endColor));
193
+ background-image: -webkit-linear-gradient($startColor, $midColor $colorStop, $endColor);
194
+ background-image: -moz-linear-gradient($startColor, $midColor $colorStop, $endColor);
195
+ background-image: -ms-linear-gradient($startColor, $midColor $colorStop, $endColor);
196
+ background-image: -o-linear-gradient($startColor, $midColor $colorStop, $endColor);
197
+ background-image: linear-gradient($startColor, $midColor $colorStop, $endColor);
198
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{$startColor}', endColorstr='#{$endColor}', GradientType=0); // IE9 and down, gets no color-stop at all the proper fallback
199
+ }
200
+
201
+ // Gradient Bar Colors for buttons and allerts
202
+ @mixin gradientBar($primaryColor, $secondaryColor) {
203
+ @include vertical-gradient($primaryColor, $secondaryColor);
204
+ text-shadow: 0 -1px 0 rgba(0,0,0,.25);
205
+ border-color: $secondaryColor $secondaryColor darken($secondaryColor, 15%);
206
+ border-color: rgba(0,0,0,.1) rgba(0,0,0,.1) opacify(rgba(0,0,0,.1), .15);
207
+ }
208
+
209
+ // Reset filters for IE
210
+ @mixin reset-filter() {
211
+ filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
212
+ }
213
+
214
+ // Opacity
215
+ @mixin opacity($opacity: 100) {
216
+ filter: alpha(opacity=$opacity);
217
+ -khtml-opacity: $opacity / 100;
218
+ -moz-opacity: $opacity / 100;
219
+ opacity: $opacity / 100;
220
+ }
@@ -0,0 +1,1061 @@
1
+ /* Patterns.scss
2
+ * Repeatable UI elements outside the base styles provided from the scaffolding
3
+ * ---------------------------------------------------------------------------- */
4
+
5
+ // Core
6
+ @import "variables.scss";
7
+ @import "mixins.scss";
8
+ // TOPBAR
9
+ // ------
10
+
11
+ // Topbar for Branding and Nav
12
+ .topbar {
13
+ height: 40px;
14
+ position: fixed;
15
+ top: 0;
16
+ left: 0;
17
+ right: 0;
18
+ z-index: 10000;
19
+ overflow: visible;
20
+
21
+ // Links get text shadow
22
+ a {
23
+ color: $grayLight;
24
+ text-shadow: 0 -1px 0 rgba(0,0,0,.25);
25
+ }
26
+
27
+ // Hover and active states
28
+ // h3 for backwards compatibility
29
+ h3 a:hover,
30
+ .brand:hover,
31
+ ul .active > a {
32
+ background-color: #333;
33
+ background-color: rgba(255,255,255,.05);
34
+ color: $white;
35
+ text-decoration: none;
36
+ }
37
+
38
+ // Website name
39
+ // h3 left for backwards compatibility
40
+ h3 {
41
+ position: relative;
42
+ }
43
+ h3 a,
44
+ .brand {
45
+ float: left;
46
+ display: block;
47
+ padding: 8px 20px 12px;
48
+ margin-left: -20px; // negative indent to left-align the text down the page
49
+ color: $white;
50
+ font-size: 20px;
51
+ font-weight: 200;
52
+ line-height: 1;
53
+ }
54
+
55
+ // Plain text in topbar
56
+ p {
57
+ margin: 0;
58
+ line-height: 40px;
59
+ a:hover {
60
+ background-color: transparent;
61
+ color: $white;
62
+ }
63
+ }
64
+
65
+ // Search Form
66
+ form {
67
+ float: left;
68
+ margin: 5px 0 0 0;
69
+ position: relative;
70
+ @include opacity(100);
71
+ }
72
+ // Todo: remove from v2.0 when ready, added for legacy
73
+ form.pull-right {
74
+ float: right;
75
+ }
76
+ input {
77
+ background-color: #444;
78
+ background-color: rgba(255,255,255,.3);
79
+ @include sans-serif-font(13px, normal, 1);
80
+ padding: 4px 9px;
81
+ color: $white;
82
+ color: rgba(255,255,255,.75);
83
+ border: 1px solid #111;
84
+ @include border-radius(4px);
85
+ $shadow: inset 0 1px 2px rgba(0,0,0,.1), 0 1px 0px rgba(255,255,255,.25);
86
+ @include box-shadow($shadow);
87
+ @include transition(none);
88
+
89
+ // Placeholder text gets special styles; can't be bundled together though for some reason
90
+ &:-moz-placeholder {
91
+ color: $grayLighter;
92
+ }
93
+ &::-webkit-input-placeholder {
94
+ color: $grayLighter;
95
+ }
96
+ // Hover states
97
+ &:hover {
98
+ background-color: $grayLight;
99
+ background-color: rgba(255,255,255,.5);
100
+ color: $white;
101
+ }
102
+ // Focus states (we use .focused since IE8 and down doesn't support :focus)
103
+ &:focus,
104
+ &.focused {
105
+ outline: 0;
106
+ background-color: $white;
107
+ color: $grayDark;
108
+ text-shadow: 0 1px 0 $white;
109
+ border: 0;
110
+ padding: 5px 10px;
111
+ @include box-shadow(0 0 3px rgba(0,0,0,.15));
112
+ }
113
+ }
114
+ }
115
+
116
+ // gradient is applied to it's own element because overflow visible is not honored by ie when filter is present
117
+ // For backwards compatibility, include .topbar .fill
118
+ .topbar-inner,
119
+ .topbar .fill {
120
+ background-color: #222;
121
+ @include vertical-gradient(#333, #222);
122
+ $shadow: 0 1px 3px rgba(0,0,0,.25), inset 0 -1px 0 rgba(0,0,0,.1);
123
+ @include box-shadow($shadow);
124
+ }
125
+
126
+
127
+ // NAVIGATION
128
+ // ----------
129
+
130
+ // Topbar Nav
131
+ // ul.nav for all topbar based navigation to avoid inheritance issues and over-specificity
132
+ // For backwards compatibility, leave in .topbar div > ul
133
+ .topbar div > ul,
134
+ .nav {
135
+ display: block;
136
+ float: left;
137
+ margin: 0 10px 0 0;
138
+ position: relative;
139
+ left: 0;
140
+ > li {
141
+ display: block;
142
+ float: left;
143
+ }
144
+ a {
145
+ display: block;
146
+ float: none;
147
+ padding: 10px 10px 11px;
148
+ line-height: 19px;
149
+ text-decoration: none;
150
+ &:hover {
151
+ color: $white;
152
+ text-decoration: none;
153
+ }
154
+ }
155
+ .active > a {
156
+ background-color: #222;
157
+ background-color: rgba(0,0,0,.5);
158
+ }
159
+
160
+ // Secondary (floated right) nav in topbar
161
+ &.secondary-nav {
162
+ float: right;
163
+ margin-left: 10px;
164
+ margin-right: 0;
165
+ // backwards compatibility
166
+ .menu-dropdown,
167
+ .dropdown-menu {
168
+ right: 0;
169
+ border: 0;
170
+ }
171
+ }
172
+ // Dropdowns within the .nav
173
+ // a.menu:hover and li.open .menu for backwards compatibility
174
+ a.menu:hover,
175
+ li.open .menu,
176
+ .dropdown-toggle:hover,
177
+ .dropdown.open .dropdown-toggle {
178
+ background: #444;
179
+ background: rgba(255,255,255,.05);
180
+ }
181
+ // .menu-dropdown for backwards compatibility
182
+ .menu-dropdown,
183
+ .dropdown-menu {
184
+ background-color: #333;
185
+ // a.menu for backwards compatibility
186
+ a.menu,
187
+ .dropdown-toggle {
188
+ color: $white;
189
+ &.open {
190
+ background: #444;
191
+ background: rgba(255,255,255,.05);
192
+ }
193
+ }
194
+ li a {
195
+ color: #999;
196
+ text-shadow: 0 1px 0 rgba(0,0,0,.5);
197
+ &:hover {
198
+ @include vertical-gradient(#292929,#191919);
199
+ color: $white;
200
+ }
201
+ }
202
+ .active a {
203
+ color: $white;
204
+ }
205
+ .divider {
206
+ background-color: #222;
207
+ border-color: #444;
208
+ }
209
+ }
210
+ }
211
+
212
+ // For backwards compatibility with new dropdowns, redeclare dropdown link padding
213
+ .topbar ul .menu-dropdown li a,
214
+ .topbar ul .dropdown-menu li a {
215
+ padding: 4px 15px;
216
+ }
217
+
218
+ // Dropdown Menus
219
+ // Use the .menu class on any <li> element within the topbar or ul.tabs and you'll get some superfancy dropdowns
220
+ // li.menu for backwards compatibility
221
+ li.menu,
222
+ .dropdown {
223
+ position: relative;
224
+ }
225
+ // The link that is clicked to toggle the dropdown
226
+ // a.menu for backwards compatibility
227
+ a.menu:after,
228
+ .dropdown-toggle:after {
229
+ width: 0;
230
+ height: 0;
231
+ display: inline-block;
232
+ content: "&darr;";
233
+ text-indent: -99999px;
234
+ vertical-align: top;
235
+ margin-top: 8px;
236
+ margin-left: 4px;
237
+ border-left: 4px solid transparent;
238
+ border-right: 4px solid transparent;
239
+ border-top: 4px solid $white;
240
+ @include opacity(50);
241
+ }
242
+ // The dropdown menu (ul)
243
+ // .menu-dropdown for backwards compatibility
244
+ .menu-dropdown,
245
+ .dropdown-menu {
246
+ background-color: $white;
247
+ float: left;
248
+ display: none; // None by default, but block on "open" of the menu
249
+ position: absolute;
250
+ top: 40px;
251
+ z-index: 900;
252
+ min-width: 160px;
253
+ max-width: 220px;
254
+ _width: 160px;
255
+ margin-left: 0; // override default ul styles
256
+ margin-right: 0;
257
+ padding: 6px 0;
258
+ zoom: 1; // do we need this?
259
+ border-color: #999;
260
+ border-color: rgba(0,0,0,.2);
261
+ border-style: solid;
262
+ border-width: 0 1px 1px;
263
+ @include border-radius(0 0 6px 6px);
264
+ @include box-shadow(0 2px 4px rgba(0,0,0,.2));
265
+ @include background-clip(padding-box);
266
+
267
+ // Unfloat any li's to make them stack
268
+ li {
269
+ float: none;
270
+ display: block;
271
+ background-color: none;
272
+ }
273
+ // Dividers (basically an hr) within the dropdown
274
+ .divider {
275
+ height: 1px;
276
+ margin: 5px 0;
277
+ overflow: hidden;
278
+ background-color: #eee;
279
+ border-bottom: 1px solid $white;
280
+ }
281
+ }
282
+
283
+ .topbar .dropdown-menu,
284
+ .dropdown-menu {
285
+ // Links within the dropdown menu
286
+ a {
287
+ display: block;
288
+ padding: 4px 15px;
289
+ clear: both;
290
+ font-weight: normal;
291
+ line-height: 18px;
292
+ color: $gray;
293
+ text-shadow: 0 1px 0 $white;
294
+ // Hover state
295
+ &:hover,
296
+ &.hover {
297
+ @include vertical-gradient(#eeeeee, #dddddd);
298
+ color: $grayDark;
299
+ text-decoration: none;
300
+ $shadow: inset 0 1px 0 rgba(0,0,0,.025), inset 0 -1px rgba(0,0,0,.025);
301
+ @include box-shadow($shadow);
302
+ }
303
+ }
304
+ }
305
+
306
+ // Open state for the dropdown
307
+ // .open for backwards compatibility
308
+ .open,
309
+ .dropdown.open {
310
+ // .menu for backwards compatibility
311
+ .menu,
312
+ .dropdown-toggle {
313
+ color: $white;
314
+ background: #ccc;
315
+ background: rgba(0,0,0,.3);
316
+ }
317
+ // .menu-dropdown for backwards compatibility
318
+ .menu-dropdown,
319
+ .dropdown-menu {
320
+ display: block;
321
+ }
322
+ }
323
+
324
+
325
+ // TABS AND PILLS
326
+ //---------------
327
+
328
+ // Common styles
329
+ .tabs,
330
+ .pills {
331
+ margin: 0 0 $baseline;
332
+ padding: 0;
333
+ list-style: none;
334
+ @include clearfix();
335
+ > li {
336
+ float: left;
337
+ > a {
338
+ display: block;
339
+ }
340
+ }
341
+ }
342
+
343
+ // Tabs
344
+ .tabs {
345
+ border-color: #ddd;
346
+ border-style: solid;
347
+ border-width: 0 0 1px;
348
+ > li {
349
+ position: relative; // For the dropdowns mostly
350
+ margin-bottom: -1px;
351
+ > a {
352
+ padding: 0 15px;
353
+ margin-right: 2px;
354
+ line-height: ($baseline * 2) - 2;
355
+ border: 1px solid transparent;
356
+ @include border-radius(4px 4px 0 0);
357
+ &:hover {
358
+ text-decoration: none;
359
+ background-color: #eee;
360
+ border-color: #eee #eee #ddd;
361
+ }
362
+ }
363
+ }
364
+ // Active state, and it's :hover to override normal :hover
365
+ .active > a,
366
+ .active > a:hover {
367
+ color: $gray;
368
+ background-color: $white;
369
+ border: 1px solid #ddd;
370
+ border-bottom-color: transparent;
371
+ cursor: default;
372
+ }
373
+ }
374
+
375
+ // Dropdowns in tabs
376
+ .tabs {
377
+ // first one for backwards compatibility
378
+ .menu-dropdown,
379
+ .dropdown-menu {
380
+ top: 35px;
381
+ border-width: 1px;
382
+ @include border-radius(0 6px 6px 6px);
383
+ }
384
+ // first one for backwards compatibility
385
+ a.menu:after,
386
+ .dropdown-toggle:after {
387
+ border-top-color: #999;
388
+ margin-top: 15px;
389
+ margin-left: 5px;
390
+ }
391
+ // first one for backwards compatibility
392
+ li.open.menu .menu,
393
+ .open.dropdown .dropdown-toggle {
394
+ border-color: #999;
395
+ }
396
+ // first one for backwards compatibility
397
+ li.open a.menu:after,
398
+ .dropdown.open .dropdown-toggle:after {
399
+ border-top-color: #555;
400
+ }
401
+ }
402
+
403
+ // Pills
404
+ .pills {
405
+ a {
406
+ margin: 5px 3px 5px 0;
407
+ padding: 0 15px;
408
+ line-height: 30px;
409
+ text-shadow: 0 1px 1px $white;
410
+ @include border-radius(15px);
411
+ &:hover {
412
+ color: $white;
413
+ text-decoration: none;
414
+ text-shadow: 0 1px 1px rgba(0,0,0,.25);
415
+ background-color: $linkColorHover;
416
+ }
417
+ }
418
+ .active a {
419
+ color: $white;
420
+ text-shadow: 0 1px 1px rgba(0,0,0,.25);
421
+ background-color: $linkColor;
422
+ }
423
+ }
424
+
425
+ // Stacked pills
426
+ .pills-vertical > li {
427
+ float: none;
428
+ }
429
+
430
+ // Tabbable areas
431
+ .tab-content,
432
+ .pill-content {
433
+ }
434
+ .tab-content > .tab-pane,
435
+ .pill-content > .pill-pane,
436
+ .tab-content > div,
437
+ .pill-content > div {
438
+ display: none;
439
+ }
440
+ .tab-content > .active,
441
+ .pill-content > .active {
442
+ display: block;
443
+ }
444
+
445
+
446
+ // BREADCRUMBS
447
+ // -----------
448
+
449
+ .breadcrumb {
450
+ padding: 7px 14px;
451
+ margin: 0 0 $baseline;
452
+ @include vertical-gradient(#ffffff, #f5f5f5);
453
+ border: 1px solid #ddd;
454
+ @include border-radius(3px);
455
+ @include box-shadow(inset 0 1px 0 $white);
456
+ li {
457
+ display: inline;
458
+ text-shadow: 0 1px 0 $white;
459
+ }
460
+ .divider {
461
+ padding: 0 5px;
462
+ color: $grayLight;
463
+ }
464
+ .active a {
465
+ color: $grayDark;
466
+ }
467
+ }
468
+
469
+
470
+ // PAGE HEADERS
471
+ // ------------
472
+
473
+ .hero-unit {
474
+ background-color: #f5f5f5;
475
+ margin-top: 60px;
476
+ margin-bottom: 30px;
477
+ padding: 60px;
478
+ @include border-radius(6px);
479
+ h1 {
480
+ margin-bottom: 0;
481
+ font-size: 60px;
482
+ line-height: 1;
483
+ letter-spacing: -1px;
484
+ }
485
+ p {
486
+ font-size: 18px;
487
+ font-weight: 200;
488
+ line-height: $baseline * 1.5;
489
+ }
490
+ }
491
+ footer {
492
+ margin-top: $baseline - 1;
493
+ padding-top: $baseline - 1;
494
+ border-top: 1px solid #eee;
495
+ }
496
+
497
+ // PAGE HEADERS
498
+ // ------------
499
+
500
+ .page-header {
501
+ margin-bottom: $baseline - 1;
502
+ border-bottom: 1px solid #ddd;
503
+ @include box-shadow(0 1px 0 rgba(255,255,255,.5));
504
+ h1 {
505
+ margin-bottom: ($baseline / 2) - 1px;
506
+ }
507
+ }
508
+
509
+
510
+ // BUTTON STYLES
511
+ // -------------
512
+
513
+ // Shared colors for buttons and alerts
514
+ .btn,
515
+ .alert-message {
516
+ // Set text color
517
+ &.danger,
518
+ &.danger:hover,
519
+ &.error,
520
+ &.error:hover,
521
+ &.success,
522
+ &.success:hover,
523
+ &.info,
524
+ &.info:hover {
525
+ color: $white;
526
+ }
527
+ // Sets the close button to the middle of message
528
+ .close {
529
+ font-family: Arial, sans-serif;
530
+ line-height: 18px;
531
+ }
532
+ // Danger and error appear as red
533
+ &.danger,
534
+ &.error {
535
+ @include gradientBar(#ee5f5b, #c43c35);
536
+ }
537
+ // Success appears as green
538
+ &.success {
539
+ @include gradientBar(#62c462, #57a957);
540
+ }
541
+ // Info appears as a neutral blue
542
+ &.info {
543
+ @include gradientBar(#5bc0de, #339bb9);
544
+ }
545
+ }
546
+
547
+ // Base .btn styles
548
+ .btn {
549
+ // Button Base
550
+ cursor: pointer;
551
+ display: inline-block;
552
+ @include vertical-three-colors-gradient(#fff, #fff, 25%, darken(#fff, 10%));
553
+ padding: 5px 14px 6px;
554
+ text-shadow: 0 1px 1px rgba(255,255,255,.75);
555
+ color: #333;
556
+ font-size: $basefont;
557
+ line-height: normal;
558
+ border: 1px solid #ccc;
559
+ border-bottom-color: #bbb;
560
+ @include border-radius(4px);
561
+ $shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05);
562
+ @include box-shadow($shadow);
563
+
564
+ &:hover {
565
+ background-position: 0 -15px;
566
+ color: #333;
567
+ text-decoration: none;
568
+ }
569
+
570
+ // Focus state for keyboard and accessibility
571
+ &:focus {
572
+ outline: 1px dotted #666;
573
+ }
574
+
575
+ // Primary Button Type
576
+ &.primary {
577
+ color: $white;
578
+ @include gradientBar($blue, $blueDark);
579
+ }
580
+
581
+ // Transitions
582
+ @include transition(.1s linear all);
583
+
584
+ // Active and Disabled states
585
+ &.active,
586
+ &:active {
587
+ $shadow: inset 0 2px 4px rgba(0,0,0,.25), 0 1px 2px rgba(0,0,0,.05);
588
+ @include box-shadow($shadow);
589
+ }
590
+ &.disabled {
591
+ cursor: default;
592
+ background-image: none;
593
+ @include reset-filter();
594
+ @include opacity(65);
595
+ @include box-shadow(none);
596
+ }
597
+ &[disabled] {
598
+ // disabled pseudo can't be included with .disabled
599
+ // def because IE8 and below will drop it ;_;
600
+ cursor: default;
601
+ background-image: none;
602
+ @include reset-filter();
603
+ @include opacity(65);
604
+ @include box-shadow(none);
605
+ }
606
+
607
+ // Button Sizes
608
+ &.large {
609
+ font-size: $basefont + 2px;
610
+ line-height: normal;
611
+ padding: 9px 14px 9px;
612
+ @include border-radius(6px);
613
+ }
614
+ &.small {
615
+ padding: 7px 9px 7px;
616
+ font-size: $basefont - 2px;
617
+ }
618
+ }
619
+ // Super jank hack for removing border-radius from IE9 so we can keep filter gradients on alerts and buttons
620
+ :root .alert-message,
621
+ :root .btn {
622
+ border-radius: 0 \0;
623
+ }
624
+
625
+ // Help Firefox not be a jerk about adding extra padding to buttons
626
+ button.btn,
627
+ input[type=submit].btn {
628
+ &::-moz-focus-inner {
629
+ padding: 0;
630
+ border: 0;
631
+ }
632
+ }
633
+
634
+
635
+ // CLOSE ICONS
636
+ // -----------
637
+ .close {
638
+ float: right;
639
+ color: $black;
640
+ font-size: 20px;
641
+ font-weight: bold;
642
+ line-height: $baseline * .75;
643
+ text-shadow: 0 1px 0 rgba(255,255,255,1);
644
+ @include opacity(25);
645
+ &:hover {
646
+ color: $black;
647
+ text-decoration: none;
648
+ @include opacity(40);
649
+ }
650
+ }
651
+
652
+
653
+ // ERROR STYLES
654
+ // ------------
655
+
656
+ // Base alert styles
657
+ .alert-message {
658
+ position: relative;
659
+ padding: 7px 15px;
660
+ margin-bottom: $baseline;
661
+ color: $grayDark;
662
+ @include gradientBar(#fceec1, #eedc94);
663
+ text-shadow: 0 1px 0 rgba(255,255,255,.5);
664
+ border-width: 1px;
665
+ border-style: solid;
666
+ @include border-radius(4px);
667
+ @include box-shadow(inset 0 1px 0 rgba(255,255,255,.25));
668
+
669
+ // Adjust close icon
670
+ .close {
671
+ margin-top: 1px;
672
+ *margin-top: 0; // For IE7
673
+ }
674
+
675
+ // Make links same color as text and stand out more
676
+ a {
677
+ font-weight: bold;
678
+ color: $grayDark;
679
+ }
680
+ &.danger p a,
681
+ &.error p a,
682
+ &.success p a,
683
+ &.info p a {
684
+ color: $white;
685
+ }
686
+
687
+ // Remove extra margin from content
688
+ h5 {
689
+ line-height: $baseline;
690
+ }
691
+ p {
692
+ margin-bottom: 0;
693
+ }
694
+ div {
695
+ margin-top: 5px;
696
+ margin-bottom: 2px;
697
+ line-height: 28px;
698
+ }
699
+ .btn {
700
+ // Provide actions with buttons
701
+ @include box-shadow(0 1px 0 rgba(255,255,255,.25));
702
+ }
703
+
704
+ &.block-message {
705
+ background-image: none;
706
+ background-color: lighten(#fceec1, 5%);
707
+ @include reset-filter();
708
+ padding: 14px;
709
+ border-color: #fceec1;
710
+ @include box-shadow(none);
711
+ ul, p {
712
+ margin-right: 30px;
713
+ }
714
+ ul {
715
+ margin-bottom: 0;
716
+ }
717
+ li {
718
+ color: $grayDark;
719
+ }
720
+ .alert-actions {
721
+ margin-top: 5px;
722
+ }
723
+ &.error,
724
+ &.success,
725
+ &.info {
726
+ color: $grayDark;
727
+ text-shadow: 0 1px 0 rgba(255,255,255,.5);
728
+ }
729
+ &.error {
730
+ background-color: lighten(#f56a66, 25%);
731
+ border-color: lighten(#f56a66, 20%);
732
+ }
733
+ &.success {
734
+ background-color: lighten(#62c462, 30%);
735
+ border-color: lighten(#62c462, 25%);
736
+ }
737
+ &.info {
738
+ background-color: lighten(#6bd0ee, 25%);
739
+ border-color: lighten(#6bd0ee, 20%);
740
+ }
741
+ // Change link color back
742
+ &.danger p a,
743
+ &.error p a,
744
+ &.success p a,
745
+ &.info p a {
746
+ color: $grayDark;
747
+ }
748
+
749
+ }
750
+ }
751
+
752
+
753
+ // PAGINATION
754
+ // ----------
755
+
756
+ .pagination {
757
+ height: $baseline * 2;
758
+ margin: $baseline 0;
759
+ ul {
760
+ float: left;
761
+ margin: 0;
762
+ border: 1px solid #ddd;
763
+ border: 1px solid rgba(0,0,0,.15);
764
+ @include border-radius(3px);
765
+ @include box-shadow(0 1px 2px rgba(0,0,0,.05));
766
+ }
767
+ li {
768
+ display: inline;
769
+ }
770
+ a {
771
+ float: left;
772
+ padding: 0 14px;
773
+ line-height: ($baseline * 2) - 2;
774
+ border-right: 1px solid;
775
+ border-right-color: #ddd;
776
+ border-right-color: rgba(0,0,0,.15);
777
+ *border-right-color: #ddd; /* IE6-7 */
778
+ text-decoration: none;
779
+ }
780
+ a:hover,
781
+ .active a {
782
+ background-color: lighten($blue, 45%);
783
+ }
784
+ .disabled a,
785
+ .disabled a:hover {
786
+ background-color: transparent;
787
+ color: $grayLight;
788
+ }
789
+ .next a {
790
+ border: 0;
791
+ }
792
+ }
793
+
794
+
795
+ // WELLS
796
+ // -----
797
+
798
+ .well {
799
+ background-color: #f5f5f5;
800
+ margin-bottom: 20px;
801
+ padding: 19px;
802
+ min-height: 20px;
803
+ border: 1px solid #eee;
804
+ border: 1px solid rgba(0,0,0,.05);
805
+ @include border-radius(4px);
806
+ @include box-shadow(inset 0 1px 1px rgba(0,0,0,.05));
807
+ blockquote {
808
+ border-color: #ddd;
809
+ border-color: rgba(0,0,0,.15);
810
+ }
811
+ }
812
+
813
+
814
+ // MODALS
815
+ // ------
816
+
817
+ .modal-backdrop {
818
+ background-color: $black;
819
+ position: fixed;
820
+ top: 0;
821
+ left: 0;
822
+ right: 0;
823
+ bottom: 0;
824
+ z-index: 10000;
825
+ // Fade for backdrop
826
+ &.fade { opacity: 0; }
827
+ }
828
+
829
+ .modal-backdrop,
830
+ .modal-backdrop.fade.in {
831
+ @include opacity(80);
832
+ }
833
+
834
+ .modal {
835
+ position: fixed;
836
+ top: 50%;
837
+ left: 50%;
838
+ z-index: 11000;
839
+ width: 560px;
840
+ margin: -250px 0 0 -280px;
841
+ background-color: $white;
842
+ border: 1px solid #999;
843
+ border: 1px solid rgba(0,0,0,.3);
844
+ *border: 1px solid #999; /* IE6-7 */
845
+ @include border-radius(6px);
846
+ @include box-shadow(0 3px 7px rgba(0,0,0,0.3));
847
+ @include background-clip(padding-box);
848
+ .close { margin-top: 7px; }
849
+ &.fade {
850
+ @include transition("opacity .3s linear, top .3s ease-out");
851
+ top: -25%;
852
+ }
853
+ &.fade.in{ top: 50%; }
854
+ }
855
+ .modal-header {
856
+ border-bottom: 1px solid #eee;
857
+ padding: 5px 15px;
858
+ }
859
+ .modal-body {
860
+ padding: 15px;
861
+ }
862
+ .modal-body form {
863
+ margin-bottom: 0;
864
+ }
865
+ .modal-footer {
866
+ background-color: #f5f5f5;
867
+ padding: 14px 15px 15px;
868
+ border-top: 1px solid #ddd;
869
+ @include border-radius(0 0 6px 6px);
870
+ @include box-shadow(inset 0 1px 0 $white);
871
+ @include clearfix();
872
+ margin-bottom: 0;
873
+ .btn {
874
+ float: right;
875
+ margin-left: 5px;
876
+ }
877
+ }
878
+
879
+ // Fix the stacking of these components when in modals
880
+ .modal .popover,
881
+ .modal .twipsy {
882
+ z-index: 12000;
883
+ }
884
+
885
+
886
+ // POPOVER ARROWS
887
+ // --------------
888
+
889
+
890
+ @mixin popover-arrow-above($arrowWidth: 5px) {
891
+ bottom: 0;
892
+ left: 50%;
893
+ margin-left: -$arrowWidth;
894
+ border-left: $arrowWidth solid transparent;
895
+ border-right: $arrowWidth solid transparent;
896
+ border-top: $arrowWidth solid $black;
897
+ }
898
+ @mixin popover-arrow-left($arrowWidth: 5px) {
899
+ top: 50%;
900
+ right: 0;
901
+ margin-top: -$arrowWidth;
902
+ border-top: $arrowWidth solid transparent;
903
+ border-bottom: $arrowWidth solid transparent;
904
+ border-left: $arrowWidth solid $black;
905
+ }
906
+ @mixin popover-arrow-below($arrowWidth: 5px) {
907
+ top: 0;
908
+ left: 50%;
909
+ margin-left: -$arrowWidth;
910
+ border-left: $arrowWidth solid transparent;
911
+ border-right: $arrowWidth solid transparent;
912
+ border-bottom: $arrowWidth solid $black;
913
+ }
914
+ @mixin popover-arrow-right($arrowWidth: 5px) {
915
+ top: 50%;
916
+ left: 0;
917
+ margin-top: -$arrowWidth;
918
+ border-top: $arrowWidth solid transparent;
919
+ border-bottom: $arrowWidth solid transparent;
920
+ border-right: $arrowWidth solid $black;
921
+ }
922
+
923
+
924
+ // TWIPSY
925
+ // ------
926
+
927
+ .twipsy {
928
+ display: block;
929
+ position: absolute;
930
+ visibility: visible;
931
+ padding: 5px;
932
+ font-size: 11px;
933
+ z-index: 1000;
934
+ @include opacity(80);
935
+ &.fade.in {
936
+ @include opacity(80);
937
+ }
938
+ &.above .twipsy-arrow { @include popover-arrow-above(); }
939
+ &.left .twipsy-arrow { @include popover-arrow-left(); }
940
+ &.below .twipsy-arrow { @include popover-arrow-below(); }
941
+ &.right .twipsy-arrow { @include popover-arrow-right(); }
942
+ }
943
+ .twipsy-inner {
944
+ padding: 3px 8px;
945
+ background-color: $black;
946
+ color: white;
947
+ text-align: center;
948
+ max-width: 200px;
949
+ text-decoration: none;
950
+ @include border-radius(4px);
951
+ }
952
+ .twipsy-arrow {
953
+ position: absolute;
954
+ width: 0;
955
+ height: 0;
956
+ }
957
+
958
+
959
+ // POPOVERS
960
+ // --------
961
+
962
+ .popover {
963
+ position: absolute;
964
+ top: 0;
965
+ left: 0;
966
+ z-index: 1000;
967
+ padding: 5px;
968
+ display: none;
969
+ &.above .arrow { @include popover-arrow-above(); }
970
+ &.right .arrow { @include popover-arrow-right(); }
971
+ &.below .arrow { @include popover-arrow-below(); }
972
+ &.left .arrow { @include popover-arrow-left(); }
973
+ .arrow {
974
+ position: absolute;
975
+ width: 0;
976
+ height: 0;
977
+ }
978
+ .inner {
979
+ background: $black;
980
+ background: rgba(0,0,0,.8);
981
+ padding: 3px;
982
+ overflow: hidden;
983
+ width: 280px;
984
+ @include border-radius(6px);
985
+ @include box-shadow(0 3px 7px rgba(0,0,0,0.3));
986
+ }
987
+ .title {
988
+ background-color: #f5f5f5;
989
+ padding: 9px 15px;
990
+ line-height: 1;
991
+ @include border-radius(3px 3px 0 0);
992
+ border-bottom:1px solid #eee;
993
+ }
994
+ .content {
995
+ background-color: $white;
996
+ padding: 14px;
997
+ @include border-radius(0 0 3px 3px);
998
+ @include background-clip(padding-box);
999
+ p, ul, ol {
1000
+ margin-bottom: 0;
1001
+ }
1002
+ }
1003
+ }
1004
+
1005
+ // PATTERN ANIMATIONS
1006
+ // ------------------
1007
+
1008
+ .fade {
1009
+ @include transition(opacity .15s linear);
1010
+ opacity: 0;
1011
+ &.in {
1012
+ opacity: 1;
1013
+ }
1014
+ }
1015
+
1016
+
1017
+ // LABELS
1018
+ // ------
1019
+
1020
+ .label {
1021
+ padding: 1px 3px 2px;
1022
+ font-size: $basefont * .75;
1023
+ font-weight: bold;
1024
+ color: $white;
1025
+ text-transform: uppercase;
1026
+ white-space: nowrap;
1027
+ background-color: $grayLight;
1028
+ @include border-radius(3px);
1029
+ &.important { background-color: #c43c35; }
1030
+ &.warning { background-color: $orange; }
1031
+ &.success { background-color: $green; }
1032
+ &.notice { background-color: lighten($blue, 25%); }
1033
+ }
1034
+
1035
+
1036
+ // MEDIA GRIDS
1037
+ // -----------
1038
+
1039
+ .media-grid {
1040
+ margin-left: -$gridGutterWidth;
1041
+ margin-bottom: 0;
1042
+ @include clearfix();
1043
+ li {
1044
+ display: inline;
1045
+ }
1046
+ a {
1047
+ float: left;
1048
+ padding: 4px;
1049
+ margin: 0 0 $baseline $gridGutterWidth;
1050
+ border: 1px solid #ddd;
1051
+ @include border-radius(4px);
1052
+ @include box-shadow(0 1px 1px rgba(0,0,0,.075));
1053
+ img {
1054
+ display: block;
1055
+ }
1056
+ &:hover {
1057
+ border-color: $linkColor;
1058
+ @include box-shadow(0 1px 4px rgba(0,105,214,.25));
1059
+ }
1060
+ }
1061
+ }