bootstrapped-rails 1.1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.DS_Store +0 -0
- data/.gitignore +4 -0
- data/Gemfile +4 -0
- data/Rakefile +1 -0
- data/bootstrapped-rails.gemspec +24 -0
- data/lib/.DS_Store +0 -0
- data/lib/bootstrapped-rails.rb +11 -0
- data/lib/bootstrapped-rails/.DS_Store +0 -0
- data/lib/bootstrapped-rails/engine.rb +6 -0
- data/lib/bootstrapped-rails/ie_hex_str.rb +16 -0
- data/lib/bootstrapped-rails/railtie.rb +6 -0
- data/lib/bootstrapped-rails/version.rb +5 -0
- data/vendor/.DS_Store +0 -0
- data/vendor/images/.DS_Store +0 -0
- data/vendor/images/glyphicons-halflings-white.png +0 -0
- data/vendor/images/glyphicons-halflings.png +0 -0
- data/vendor/javascripts/.DS_Store +0 -0
- data/vendor/javascripts/bootstrapped.js +1 -0
- data/vendor/javascripts/bootstrapped/.DS_Store +0 -0
- data/vendor/javascripts/bootstrapped/bootstrap-alert.js +91 -0
- data/vendor/javascripts/bootstrapped/bootstrap-button.js +98 -0
- data/vendor/javascripts/bootstrapped/bootstrap-carousel.js +154 -0
- data/vendor/javascripts/bootstrapped/bootstrap-collapse.js +136 -0
- data/vendor/javascripts/bootstrapped/bootstrap-dropdown.js +92 -0
- data/vendor/javascripts/bootstrapped/bootstrap-modal.js +209 -0
- data/vendor/javascripts/bootstrapped/bootstrap-popover.js +95 -0
- data/vendor/javascripts/bootstrapped/bootstrap-scrollspy.js +125 -0
- data/vendor/javascripts/bootstrapped/bootstrap-tab.js +130 -0
- data/vendor/javascripts/bootstrapped/bootstrap-tooltip.js +270 -0
- data/vendor/javascripts/bootstrapped/bootstrap-transition.js +51 -0
- data/vendor/javascripts/bootstrapped/bootstrap-typeahead.js +271 -0
- data/vendor/stylesheets/.DS_Store +0 -0
- data/vendor/stylesheets/bootstrapped-rails.css +3 -0
- data/vendor/stylesheets/bootstrapped/.DS_Store +0 -0
- data/vendor/stylesheets/bootstrapped/accordion.scss +28 -0
- data/vendor/stylesheets/bootstrapped/alerts.scss +70 -0
- data/vendor/stylesheets/bootstrapped/bootstrap.scss +62 -0
- data/vendor/stylesheets/bootstrapped/breadcrumbs.scss +22 -0
- data/vendor/stylesheets/bootstrapped/button-groups.scss +147 -0
- data/vendor/stylesheets/bootstrapped/buttons.scss +183 -0
- data/vendor/stylesheets/bootstrapped/carousel.scss +121 -0
- data/vendor/stylesheets/bootstrapped/close.scss +18 -0
- data/vendor/stylesheets/bootstrapped/code.scss +44 -0
- data/vendor/stylesheets/bootstrapped/component-animations.scss +18 -0
- data/vendor/stylesheets/bootstrapped/dropdowns.scss +131 -0
- data/vendor/stylesheets/bootstrapped/forms.scss +516 -0
- data/vendor/stylesheets/bootstrapped/grid.scss +8 -0
- data/vendor/stylesheets/bootstrapped/hero-unit.scss +20 -0
- data/vendor/stylesheets/bootstrapped/labels.scss +16 -0
- data/vendor/stylesheets/bootstrapped/layouts.scss +17 -0
- data/vendor/stylesheets/bootstrapped/mixins.scss +511 -0
- data/vendor/stylesheets/bootstrapped/modals.scss +72 -0
- data/vendor/stylesheets/bootstrapped/navbar.scss +292 -0
- data/vendor/stylesheets/bootstrapped/navs.scss +344 -0
- data/vendor/stylesheets/bootstrapped/pager.scss +30 -0
- data/vendor/stylesheets/bootstrapped/pagination.scss +55 -0
- data/vendor/stylesheets/bootstrapped/popovers.scss +49 -0
- data/vendor/stylesheets/bootstrapped/progress-bars.scss +95 -0
- data/vendor/stylesheets/bootstrapped/reset.scss +126 -0
- data/vendor/stylesheets/bootstrapped/responsive.scss +323 -0
- data/vendor/stylesheets/bootstrapped/scaffolding.scss +29 -0
- data/vendor/stylesheets/bootstrapped/sprites.scss +158 -0
- data/vendor/stylesheets/bootstrapped/tables.scss +130 -0
- data/vendor/stylesheets/bootstrapped/thumbnails.scss +35 -0
- data/vendor/stylesheets/bootstrapped/tooltip.scss +35 -0
- data/vendor/stylesheets/bootstrapped/type.scss +217 -0
- data/vendor/stylesheets/bootstrapped/utilities.scss +23 -0
- data/vendor/stylesheets/bootstrapped/variables.scss +99 -0
- data/vendor/stylesheets/bootstrapped/wells.scss +17 -0
- data/vendor/twitter/.gitignore +33 -0
- data/vendor/twitter/LICENSE +13 -0
- data/vendor/twitter/Makefile +59 -0
- data/vendor/twitter/README.md +94 -0
- data/vendor/twitter/docs/assets/bootstrap.zip +0 -0
- data/vendor/twitter/docs/assets/css/bootstrap-responsive.css +567 -0
- data/vendor/twitter/docs/assets/css/bootstrap.css +3365 -0
- data/vendor/twitter/docs/assets/css/docs.css +790 -0
- data/vendor/twitter/docs/assets/ico/bootstrap-apple-114x114.png +0 -0
- data/vendor/twitter/docs/assets/ico/bootstrap-apple-57x57.png +0 -0
- data/vendor/twitter/docs/assets/ico/bootstrap-apple-72x72.png +0 -0
- data/vendor/twitter/docs/assets/ico/favicon.ico +0 -0
- data/vendor/twitter/docs/assets/img/bird.png +0 -0
- data/vendor/twitter/docs/assets/img/bootstrap-mdo-sfmoma-01.jpg +0 -0
- data/vendor/twitter/docs/assets/img/bootstrap-mdo-sfmoma-02.jpg +0 -0
- data/vendor/twitter/docs/assets/img/bootstrap-mdo-sfmoma-03.jpg +0 -0
- data/vendor/twitter/docs/assets/img/browsers.png +0 -0
- data/vendor/twitter/docs/assets/img/example-diagram-01.png +0 -0
- data/vendor/twitter/docs/assets/img/example-diagram-02.png +0 -0
- data/vendor/twitter/docs/assets/img/example-diagram-03.png +0 -0
- data/vendor/twitter/docs/assets/img/example-sites/bartop.png +0 -0
- data/vendor/twitter/docs/assets/img/example-sites/fleetio.png +0 -0
- data/vendor/twitter/docs/assets/img/example-sites/jshint.png +0 -0
- data/vendor/twitter/docs/assets/img/example-sites/kippt.png +0 -0
- data/vendor/twitter/docs/assets/img/example-sites/railwayjs.png +0 -0
- data/vendor/twitter/docs/assets/img/example-sites/totalwireframe.png +0 -0
- data/vendor/twitter/docs/assets/img/examples/bootstrap-example-fluid.jpg +0 -0
- data/vendor/twitter/docs/assets/img/examples/bootstrap-example-hero.jpg +0 -0
- data/vendor/twitter/docs/assets/img/examples/bootstrap-example-starter.jpg +0 -0
- data/vendor/twitter/docs/assets/img/github-16px.png +0 -0
- data/vendor/twitter/docs/assets/img/glyphicons-halflings-white.png +0 -0
- data/vendor/twitter/docs/assets/img/glyphicons-halflings.png +0 -0
- data/vendor/twitter/docs/assets/img/glyphicons/glyphicons_009_magic.png +0 -0
- data/vendor/twitter/docs/assets/img/glyphicons/glyphicons_042_group.png +0 -0
- data/vendor/twitter/docs/assets/img/glyphicons/glyphicons_079_podium.png +0 -0
- data/vendor/twitter/docs/assets/img/glyphicons/glyphicons_082_roundabout.png +0 -0
- data/vendor/twitter/docs/assets/img/glyphicons/glyphicons_155_show_thumbnails.png +0 -0
- data/vendor/twitter/docs/assets/img/glyphicons/glyphicons_163_iphone.png +0 -0
- data/vendor/twitter/docs/assets/img/glyphicons/glyphicons_214_resize_small.png +0 -0
- data/vendor/twitter/docs/assets/img/glyphicons/glyphicons_266_book_open.png +0 -0
- data/vendor/twitter/docs/assets/img/grid-18px-masked.png +0 -0
- data/vendor/twitter/docs/assets/img/icon-css3.png +0 -0
- data/vendor/twitter/docs/assets/img/icon-github.png +0 -0
- data/vendor/twitter/docs/assets/img/icon-html5.png +0 -0
- data/vendor/twitter/docs/assets/img/icon-twitter.png +0 -0
- data/vendor/twitter/docs/assets/img/less-logo-large.png +0 -0
- data/vendor/twitter/docs/assets/img/less-small.png +0 -0
- data/vendor/twitter/docs/assets/img/responsive-illustrations.png +0 -0
- data/vendor/twitter/docs/assets/js/README.md +106 -0
- data/vendor/twitter/docs/assets/js/application.js +180 -0
- data/vendor/twitter/docs/assets/js/bootstrap-alert.js +91 -0
- data/vendor/twitter/docs/assets/js/bootstrap-button.js +98 -0
- data/vendor/twitter/docs/assets/js/bootstrap-carousel.js +154 -0
- data/vendor/twitter/docs/assets/js/bootstrap-collapse.js +136 -0
- data/vendor/twitter/docs/assets/js/bootstrap-dropdown.js +92 -0
- data/vendor/twitter/docs/assets/js/bootstrap-modal.js +209 -0
- data/vendor/twitter/docs/assets/js/bootstrap-popover.js +95 -0
- data/vendor/twitter/docs/assets/js/bootstrap-scrollspy.js +125 -0
- data/vendor/twitter/docs/assets/js/bootstrap-tab.js +130 -0
- data/vendor/twitter/docs/assets/js/bootstrap-tooltip.js +270 -0
- data/vendor/twitter/docs/assets/js/bootstrap-transition.js +51 -0
- data/vendor/twitter/docs/assets/js/bootstrap-typeahead.js +271 -0
- data/vendor/twitter/docs/assets/js/google-code-prettify/prettify.css +30 -0
- data/vendor/twitter/docs/assets/js/google-code-prettify/prettify.js +28 -0
- data/vendor/twitter/docs/assets/js/jquery.js +9252 -0
- data/vendor/twitter/docs/base-css.html +1582 -0
- data/vendor/twitter/docs/build/index.js +33 -0
- data/vendor/twitter/docs/build/node_modules/.bin/hulk +93 -0
- data/vendor/twitter/docs/build/node_modules/hogan.js/.git_ignore +1 -0
- data/vendor/twitter/docs/build/node_modules/hogan.js/.gitmodules +3 -0
- data/vendor/twitter/docs/build/node_modules/hogan.js/LICENSE +177 -0
- data/vendor/twitter/docs/build/node_modules/hogan.js/Makefile +62 -0
- data/vendor/twitter/docs/build/node_modules/hogan.js/README.md +93 -0
- data/vendor/twitter/docs/build/node_modules/hogan.js/bin/hulk +93 -0
- data/vendor/twitter/docs/build/node_modules/hogan.js/lib/compiler.js +348 -0
- data/vendor/twitter/docs/build/node_modules/hogan.js/lib/hogan.js +20 -0
- data/vendor/twitter/docs/build/node_modules/hogan.js/lib/template.js +233 -0
- data/vendor/twitter/docs/build/node_modules/hogan.js/package.json +20 -0
- data/vendor/twitter/docs/build/node_modules/hogan.js/test/html/list.html +8 -0
- data/vendor/twitter/docs/build/node_modules/hogan.js/test/index.html +13 -0
- data/vendor/twitter/docs/build/node_modules/hogan.js/test/index.js +848 -0
- data/vendor/twitter/docs/build/node_modules/hogan.js/test/mustache.js +90 -0
- data/vendor/twitter/docs/build/node_modules/hogan.js/test/spec.js +77 -0
- data/vendor/twitter/docs/build/node_modules/hogan.js/test/spec/Changes +31 -0
- data/vendor/twitter/docs/build/node_modules/hogan.js/test/spec/README.md +65 -0
- data/vendor/twitter/docs/build/node_modules/hogan.js/test/spec/Rakefile +27 -0
- data/vendor/twitter/docs/build/node_modules/hogan.js/test/spec/TESTING.md +46 -0
- data/vendor/twitter/docs/build/node_modules/hogan.js/test/spec/specs/comments.json +1 -0
- data/vendor/twitter/docs/build/node_modules/hogan.js/test/spec/specs/comments.yml +103 -0
- data/vendor/twitter/docs/build/node_modules/hogan.js/test/spec/specs/delimiters.json +1 -0
- data/vendor/twitter/docs/build/node_modules/hogan.js/test/spec/specs/delimiters.yml +158 -0
- data/vendor/twitter/docs/build/node_modules/hogan.js/test/spec/specs/interpolation.json +1 -0
- data/vendor/twitter/docs/build/node_modules/hogan.js/test/spec/specs/interpolation.yml +230 -0
- data/vendor/twitter/docs/build/node_modules/hogan.js/test/spec/specs/inverted.json +1 -0
- data/vendor/twitter/docs/build/node_modules/hogan.js/test/spec/specs/inverted.yml +193 -0
- data/vendor/twitter/docs/build/node_modules/hogan.js/test/spec/specs/partials.json +1 -0
- data/vendor/twitter/docs/build/node_modules/hogan.js/test/spec/specs/partials.yml +109 -0
- data/vendor/twitter/docs/build/node_modules/hogan.js/test/spec/specs/sections.json +1 -0
- data/vendor/twitter/docs/build/node_modules/hogan.js/test/spec/specs/sections.yml +256 -0
- data/vendor/twitter/docs/build/node_modules/hogan.js/test/spec/specs/~lambdas.json +1 -0
- data/vendor/twitter/docs/build/node_modules/hogan.js/test/spec/specs/~lambdas.yml +149 -0
- data/vendor/twitter/docs/build/node_modules/hogan.js/test/templates/list.mustache +8 -0
- data/vendor/twitter/docs/build/node_modules/hogan.js/tools/release.js +74 -0
- data/vendor/twitter/docs/build/node_modules/hogan.js/tools/web_templates.js +32 -0
- data/vendor/twitter/docs/build/node_modules/hogan.js/web/1.0.0/hogan.js +500 -0
- data/vendor/twitter/docs/build/node_modules/hogan.js/web/1.0.0/hogan.min.js +14 -0
- data/vendor/twitter/docs/build/node_modules/hogan.js/web/builds/1.0.0/hogan.js +500 -0
- data/vendor/twitter/docs/build/node_modules/hogan.js/web/builds/1.0.0/hogan.min.js +14 -0
- data/vendor/twitter/docs/build/node_modules/hogan.js/web/builds/1.0.3/hogan.js +545 -0
- data/vendor/twitter/docs/build/node_modules/hogan.js/web/builds/1.0.3/hogan.min.js +5 -0
- data/vendor/twitter/docs/build/node_modules/hogan.js/web/builds/1.0.5/hogan-1.0.5.amd.js +576 -0
- data/vendor/twitter/docs/build/node_modules/hogan.js/web/builds/1.0.5/hogan-1.0.5.common.js +576 -0
- data/vendor/twitter/docs/build/node_modules/hogan.js/web/builds/1.0.5/hogan-1.0.5.js +572 -0
- data/vendor/twitter/docs/build/node_modules/hogan.js/web/builds/1.0.5/hogan-1.0.5.min.amd.js +5 -0
- data/vendor/twitter/docs/build/node_modules/hogan.js/web/builds/1.0.5/hogan-1.0.5.min.common.js +5 -0
- data/vendor/twitter/docs/build/node_modules/hogan.js/web/builds/1.0.5/hogan-1.0.5.min.js +5 -0
- data/vendor/twitter/docs/build/node_modules/hogan.js/web/builds/1.0.5/hogan-1.0.5.min.mustache.js +5 -0
- data/vendor/twitter/docs/build/node_modules/hogan.js/web/builds/1.0.5/hogan-1.0.5.mustache.js +619 -0
- data/vendor/twitter/docs/build/node_modules/hogan.js/web/builds/1.0.5/template-1.0.5.js +233 -0
- data/vendor/twitter/docs/build/node_modules/hogan.js/web/builds/1.0.5/template-1.0.5.min.js +5 -0
- data/vendor/twitter/docs/build/node_modules/hogan.js/web/favicon.ico +0 -0
- data/vendor/twitter/docs/build/node_modules/hogan.js/web/images/logo.png +0 -0
- data/vendor/twitter/docs/build/node_modules/hogan.js/web/images/noise.png +0 -0
- data/vendor/twitter/docs/build/node_modules/hogan.js/web/images/small-hogan-icon.png +0 -0
- data/vendor/twitter/docs/build/node_modules/hogan.js/web/images/stripes.png +0 -0
- data/vendor/twitter/docs/build/node_modules/hogan.js/web/index.html.mustache +139 -0
- data/vendor/twitter/docs/build/node_modules/hogan.js/web/stylesheets/layout.css +206 -0
- data/vendor/twitter/docs/build/node_modules/hogan.js/web/stylesheets/skeleton.css +236 -0
- data/vendor/twitter/docs/build/node_modules/hogan.js/wrappers/amd.js.mustache +21 -0
- data/vendor/twitter/docs/build/node_modules/hogan.js/wrappers/common.js.mustache +21 -0
- data/vendor/twitter/docs/build/node_modules/hogan.js/wrappers/js.mustache +17 -0
- data/vendor/twitter/docs/build/node_modules/hogan.js/wrappers/mustache.js.mustache +64 -0
- data/vendor/twitter/docs/build/package.json +6 -0
- data/vendor/twitter/docs/components.html +1517 -0
- data/vendor/twitter/docs/download.html +362 -0
- data/vendor/twitter/docs/examples.html +145 -0
- data/vendor/twitter/docs/examples/fluid.html +150 -0
- data/vendor/twitter/docs/examples/hero.html +107 -0
- data/vendor/twitter/docs/examples/starter-template.html +77 -0
- data/vendor/twitter/docs/index.html +249 -0
- data/vendor/twitter/docs/javascript.html +1465 -0
- data/vendor/twitter/docs/less.html +795 -0
- data/vendor/twitter/docs/scaffolding.html +438 -0
- data/vendor/twitter/docs/templates/layout.mustache +132 -0
- data/vendor/twitter/docs/templates/pages/base-css.mustache +1468 -0
- data/vendor/twitter/docs/templates/pages/components.mustache +1403 -0
- data/vendor/twitter/docs/templates/pages/download.mustache +248 -0
- data/vendor/twitter/docs/templates/pages/examples.mustache +31 -0
- data/vendor/twitter/docs/templates/pages/index.mustache +136 -0
- data/vendor/twitter/docs/templates/pages/javascript.mustache +1352 -0
- data/vendor/twitter/docs/templates/pages/less.mustache +681 -0
- data/vendor/twitter/docs/templates/pages/scaffolding.mustache +324 -0
- data/vendor/twitter/docs/templates/pages/upgrading.mustache +183 -0
- data/vendor/twitter/docs/upgrading.html +297 -0
- data/vendor/twitter/img/glyphicons-halflings-white.png +0 -0
- data/vendor/twitter/img/glyphicons-halflings.png +0 -0
- data/vendor/twitter/js/README.md +106 -0
- data/vendor/twitter/js/bootstrap-alert.js +91 -0
- data/vendor/twitter/js/bootstrap-button.js +98 -0
- data/vendor/twitter/js/bootstrap-carousel.js +154 -0
- data/vendor/twitter/js/bootstrap-collapse.js +136 -0
- data/vendor/twitter/js/bootstrap-dropdown.js +92 -0
- data/vendor/twitter/js/bootstrap-modal.js +209 -0
- data/vendor/twitter/js/bootstrap-popover.js +95 -0
- data/vendor/twitter/js/bootstrap-scrollspy.js +125 -0
- data/vendor/twitter/js/bootstrap-tab.js +130 -0
- data/vendor/twitter/js/bootstrap-tooltip.js +270 -0
- data/vendor/twitter/js/bootstrap-transition.js +51 -0
- data/vendor/twitter/js/bootstrap-typeahead.js +271 -0
- data/vendor/twitter/js/tests/index.html +49 -0
- data/vendor/twitter/js/tests/unit/bootstrap-alert.js +41 -0
- data/vendor/twitter/js/tests/unit/bootstrap-button.js +54 -0
- data/vendor/twitter/js/tests/unit/bootstrap-collapse.js +25 -0
- data/vendor/twitter/js/tests/unit/bootstrap-dropdown.js +53 -0
- data/vendor/twitter/js/tests/unit/bootstrap-modal.js +85 -0
- data/vendor/twitter/js/tests/unit/bootstrap-popover.js +93 -0
- data/vendor/twitter/js/tests/unit/bootstrap-scrollspy.js +31 -0
- data/vendor/twitter/js/tests/unit/bootstrap-tab.js +45 -0
- data/vendor/twitter/js/tests/unit/bootstrap-tooltip.js +62 -0
- data/vendor/twitter/js/tests/unit/bootstrap-transition.js +13 -0
- data/vendor/twitter/js/tests/unit/bootstrap-typeahead.js +128 -0
- data/vendor/twitter/js/tests/vendor/jquery.js +9252 -0
- data/vendor/twitter/js/tests/vendor/qunit.css +232 -0
- data/vendor/twitter/js/tests/vendor/qunit.js +1510 -0
- data/vendor/twitter/scss/accordion.scss +28 -0
- data/vendor/twitter/scss/alerts.scss +70 -0
- data/vendor/twitter/scss/bootstrap.scss +62 -0
- data/vendor/twitter/scss/breadcrumbs.scss +22 -0
- data/vendor/twitter/scss/button-groups.scss +147 -0
- data/vendor/twitter/scss/buttons.scss +168 -0
- data/vendor/twitter/scss/carousel.scss +121 -0
- data/vendor/twitter/scss/close.scss +18 -0
- data/vendor/twitter/scss/code.scss +44 -0
- data/vendor/twitter/scss/component-animations.scss +18 -0
- data/vendor/twitter/scss/dropdowns.scss +131 -0
- data/vendor/twitter/scss/forms.scss +516 -0
- data/vendor/twitter/scss/grid.scss +8 -0
- data/vendor/twitter/scss/hero-unit.scss +20 -0
- data/vendor/twitter/scss/labels.scss +16 -0
- data/vendor/twitter/scss/layouts.scss +17 -0
- data/vendor/twitter/scss/mixins.scss +500 -0
- data/vendor/twitter/scss/modals.scss +72 -0
- data/vendor/twitter/scss/navbar.scss +292 -0
- data/vendor/twitter/scss/navs.scss +344 -0
- data/vendor/twitter/scss/pager.scss +30 -0
- data/vendor/twitter/scss/pagination.scss +55 -0
- data/vendor/twitter/scss/popovers.scss +49 -0
- data/vendor/twitter/scss/progress-bars.scss +95 -0
- data/vendor/twitter/scss/reset.scss +126 -0
- data/vendor/twitter/scss/responsive.scss +323 -0
- data/vendor/twitter/scss/scaffolding.scss +29 -0
- data/vendor/twitter/scss/sprites.scss +158 -0
- data/vendor/twitter/scss/tables.scss +130 -0
- data/vendor/twitter/scss/thumbnails.scss +35 -0
- data/vendor/twitter/scss/tooltip.scss +35 -0
- data/vendor/twitter/scss/type.scss +217 -0
- data/vendor/twitter/scss/utilities.scss +23 -0
- data/vendor/twitter/scss/variables.scss +99 -0
- data/vendor/twitter/scss/wells.scss +17 -0
- metadata +368 -0
@@ -0,0 +1,20 @@
|
|
1
|
+
// HERO UNIT
|
2
|
+
// ---------
|
3
|
+
|
4
|
+
.hero-unit {
|
5
|
+
padding: 60px;
|
6
|
+
margin-bottom: 30px;
|
7
|
+
background-color: #f5f5f5;
|
8
|
+
@include border-radius(6px);
|
9
|
+
h1 {
|
10
|
+
margin-bottom: 0;
|
11
|
+
font-size: 60px;
|
12
|
+
line-height: 1;
|
13
|
+
letter-spacing: -1px;
|
14
|
+
}
|
15
|
+
p {
|
16
|
+
font-size: 18px;
|
17
|
+
font-weight: 200;
|
18
|
+
line-height: $baseLineHeight * 1.5;
|
19
|
+
}
|
20
|
+
}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
// LABELS
|
2
|
+
// ------
|
3
|
+
|
4
|
+
.label {
|
5
|
+
padding: 1px 3px 2px;
|
6
|
+
font-size: $baseFontSize * .75;
|
7
|
+
font-weight: bold;
|
8
|
+
color: $white;
|
9
|
+
text-transform: uppercase;
|
10
|
+
background-color: $grayLight;
|
11
|
+
@include border-radius(3px);
|
12
|
+
}
|
13
|
+
.label-important { background-color: $errorText; }
|
14
|
+
.label-warning { background-color: $orange; }
|
15
|
+
.label-success { background-color: $successText; }
|
16
|
+
.label-info { background-color: $infoText; }
|
@@ -0,0 +1,17 @@
|
|
1
|
+
//
|
2
|
+
// Layouts
|
3
|
+
// Fixed-width and fluid (with sidebar) layouts
|
4
|
+
// --------------------------------------------
|
5
|
+
|
6
|
+
|
7
|
+
// Container (centered, fixed-width layouts)
|
8
|
+
.container {
|
9
|
+
@include container-fixed();
|
10
|
+
}
|
11
|
+
|
12
|
+
// Fluid layouts (left aligned, with sidebar, min- & max-width content)
|
13
|
+
.container-fluid {
|
14
|
+
padding-left: $gridGutterWidth;
|
15
|
+
padding-right: $gridGutterWidth;
|
16
|
+
@include clearfix();
|
17
|
+
}
|
@@ -0,0 +1,511 @@
|
|
1
|
+
// Mixins.less
|
2
|
+
// Snippets of reusable CSS to develop faster and keep code readable
|
3
|
+
// -----------------------------------------------------------------
|
4
|
+
|
5
|
+
|
6
|
+
// UTILITY MIXINS
|
7
|
+
// --------------------------------------------------
|
8
|
+
|
9
|
+
// Clearfix
|
10
|
+
// --------
|
11
|
+
// For clearing floats like a boss h5bp.com/q
|
12
|
+
@mixin clearfix() {
|
13
|
+
*zoom: 1;
|
14
|
+
&:before,
|
15
|
+
&:after {
|
16
|
+
display: table;
|
17
|
+
content: "";
|
18
|
+
}
|
19
|
+
&:after {
|
20
|
+
clear: both;
|
21
|
+
}
|
22
|
+
}
|
23
|
+
|
24
|
+
// Webkit-style focus
|
25
|
+
// ------------------
|
26
|
+
@mixin tab-focus() {
|
27
|
+
// Default
|
28
|
+
outline: thin dotted;
|
29
|
+
// Webkit
|
30
|
+
outline: 5px auto -webkit-focus-ring-color;
|
31
|
+
outline-offset: -2px;
|
32
|
+
}
|
33
|
+
|
34
|
+
// Center-align a block level element
|
35
|
+
// ----------------------------------
|
36
|
+
@mixin center-block() {
|
37
|
+
display: block;
|
38
|
+
margin-left: auto;
|
39
|
+
margin-right: auto;
|
40
|
+
}
|
41
|
+
|
42
|
+
// IE7 inline-block
|
43
|
+
// ----------------
|
44
|
+
@mixin ie7-inline-block() {
|
45
|
+
*display: inline; /* IE7 inline-block hack */
|
46
|
+
*zoom: 1;
|
47
|
+
}
|
48
|
+
|
49
|
+
// IE7 likes to collapse whitespace on either side of the inline-block elements.
|
50
|
+
// Ems because we're attempting to match the width of a space character. Left
|
51
|
+
// version is for form buttons, which typically come after other elements, and
|
52
|
+
// right version is for icons, which come before. Applying both is ok, but it will
|
53
|
+
// mean that space between those elements will be .6em (~2 space characters) in IE7,
|
54
|
+
// instead of the 1 space in other browsers.
|
55
|
+
@mixin ie7-restore-left-whitespace() {
|
56
|
+
*margin-left: .3em;
|
57
|
+
|
58
|
+
&:first-child {
|
59
|
+
*margin-left: 0;
|
60
|
+
}
|
61
|
+
}
|
62
|
+
|
63
|
+
@mixin ie7-restore-right-whitespace() {
|
64
|
+
*margin-right: .3em;
|
65
|
+
|
66
|
+
&:last-child {
|
67
|
+
*margin-left: 0;
|
68
|
+
}
|
69
|
+
}
|
70
|
+
|
71
|
+
// Sizing shortcuts
|
72
|
+
// -------------------------
|
73
|
+
@mixin size($height: 5px, $width: 5px) {
|
74
|
+
width: $width;
|
75
|
+
height: $height;
|
76
|
+
}
|
77
|
+
@mixin square($size: 5px) {
|
78
|
+
@include size($size, $size);
|
79
|
+
}
|
80
|
+
|
81
|
+
// Placeholder text
|
82
|
+
// -------------------------
|
83
|
+
@mixin placeholder($color: $placeholderText) {
|
84
|
+
:-moz-placeholder {
|
85
|
+
color: $color;
|
86
|
+
}
|
87
|
+
::-webkit-input-placeholder {
|
88
|
+
color: $color;
|
89
|
+
}
|
90
|
+
}
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
// FONTS
|
95
|
+
// --------------------------------------------------
|
96
|
+
|
97
|
+
@mixin font-family-serif() {
|
98
|
+
font-family: Georgia, "Times New Roman", Times, serif;
|
99
|
+
}
|
100
|
+
|
101
|
+
@mixin font-family-sans-serif() {
|
102
|
+
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
103
|
+
}
|
104
|
+
|
105
|
+
@mixin font-family-monospace() {
|
106
|
+
font-family: Menlo, Monaco, "Courier New", monospace;
|
107
|
+
}
|
108
|
+
|
109
|
+
@mixin font-shorthand($size: $baseFontSize, $weight: normal, $lineHeight: $baseLineHeight) {
|
110
|
+
font-size: $size;
|
111
|
+
font-weight: $weight;
|
112
|
+
line-height: $lineHeight;
|
113
|
+
}
|
114
|
+
|
115
|
+
@mixin font-serif($size: $baseFontSize, $weight: normal, $lineHeight: $baseLineHeight) {
|
116
|
+
@include font-family-serif;
|
117
|
+
@include font-shorthand($size, $weight, $lineHeight);
|
118
|
+
}
|
119
|
+
|
120
|
+
@mixin font-sans-serif($size: $baseFontSize, $weight: normal, $lineHeight: $baseLineHeight) {
|
121
|
+
@include font-family-sans-serif;
|
122
|
+
@include font-shorthand($size, $weight, $lineHeight);
|
123
|
+
}
|
124
|
+
|
125
|
+
@mixin font-monospace($size: $baseFontSize, $weight: normal, $lineHeight: $baseLineHeight) {
|
126
|
+
@include font-family-monospace;
|
127
|
+
@include font-shorthand($size, $weight, $lineHeight);
|
128
|
+
}
|
129
|
+
|
130
|
+
|
131
|
+
|
132
|
+
|
133
|
+
// GRID SYSTEM
|
134
|
+
// --------------------------------------------------
|
135
|
+
|
136
|
+
// Site container
|
137
|
+
// -------------------------
|
138
|
+
@mixin container-fixed() {
|
139
|
+
width: $gridRowWidth;
|
140
|
+
margin-left: auto;
|
141
|
+
margin-right: auto;
|
142
|
+
@include clearfix();
|
143
|
+
}
|
144
|
+
|
145
|
+
// Le grid system
|
146
|
+
// -------------------------
|
147
|
+
|
148
|
+
// Setup the mixins to be used
|
149
|
+
@mixin grid-system-columns($gridGutterWidth, $gridColumnWidth, $gridRowWidth, $columns) {
|
150
|
+
width: ($gridColumnWidth * $columns) + ($gridGutterWidth * ($columns - 1));
|
151
|
+
}
|
152
|
+
|
153
|
+
@mixin grid-system-offset($gridColumnWidth, $gridGutterWidth, $columns) {
|
154
|
+
margin-left: ($gridColumnWidth * $columns) + ($gridGutterWidth * ($columns - 1)) + ($gridGutterWidth * 2);
|
155
|
+
}
|
156
|
+
|
157
|
+
@mixin grid-system-grid-column($gridGutterWidth) {
|
158
|
+
float: left;
|
159
|
+
margin-left: $gridGutterWidth;
|
160
|
+
}
|
161
|
+
|
162
|
+
// Take these values and mixins, and make 'em do their thang
|
163
|
+
@mixin grid-system-generate($gridColumns, $gridColumnWidth, $gridGutterWidth) {
|
164
|
+
// Row surrounds the columns
|
165
|
+
.row {
|
166
|
+
margin-left: $gridGutterWidth * -1;
|
167
|
+
@include clearfix();
|
168
|
+
}
|
169
|
+
// Find all .span# classes within .row and give them the necessary properties for grid columns (supported by all browsers back to IE7, thanks @dhg)
|
170
|
+
[class*="span"] {
|
171
|
+
@include grid-system-grid-column($gridGutterWidth);
|
172
|
+
}
|
173
|
+
// Default columns
|
174
|
+
@for $i from 1 through 12 {
|
175
|
+
.span#{$i} { @include grid-system-columns($gridGutterWidth, $gridColumnWidth, $gridRowWidth, $i); }
|
176
|
+
}
|
177
|
+
.container { @include grid-system-columns($gridGutterWidth, $gridColumnWidth, $gridRowWidth, 12); }
|
178
|
+
// Offset column options
|
179
|
+
@for $i from 1 through 11 {
|
180
|
+
.offset#{$i} { @include grid-system-offset($gridColumnWidth, $gridGutterWidth, $i); }
|
181
|
+
}
|
182
|
+
}
|
183
|
+
|
184
|
+
// Fluid grid system
|
185
|
+
// -------------------------
|
186
|
+
|
187
|
+
// Setup the mixins to be used
|
188
|
+
@mixin fluid-grid-system-columns($fluidGridGutterWidth, $fluidGridColumnWidth, $columns) {
|
189
|
+
//TODO: check floid
|
190
|
+
width: ($fluidGridColumnWidth * $columns) + ($fluidGridGutterWidth * ($columns - 1));
|
191
|
+
}
|
192
|
+
@mixin fluid-grid-system-grid-column($fluidGridGutterWidth) {
|
193
|
+
float: left;
|
194
|
+
margin-left: $fluidGridGutterWidth;
|
195
|
+
}
|
196
|
+
// Take these values and mixins, and make 'em do their thang
|
197
|
+
@mixin fluid-grid-system-generate($gridColumns, $fluidGridColumnWidth, $fluidGridGutterWidth) {
|
198
|
+
// Row surrounds the columns
|
199
|
+
.row-fluid {
|
200
|
+
width: 100%;
|
201
|
+
@include clearfix();
|
202
|
+
|
203
|
+
// Find all .span# classes within .row and give them the necessary properties for grid columns (supported by all browsers back to IE7, thanks @dhg)
|
204
|
+
> [class*="span"] {
|
205
|
+
@include fluid-grid-system-grid-column($fluidGridGutterWidth);
|
206
|
+
}
|
207
|
+
> [class*="span"]:first-child {
|
208
|
+
margin-left: 0;
|
209
|
+
}
|
210
|
+
// Default columns
|
211
|
+
@for $i from 1 through 12 {
|
212
|
+
.span#{$i} { @include fluid-grid-system-columns($fluidGridGutterWidth, $fluidGridColumnWidth, $i); }
|
213
|
+
}
|
214
|
+
}
|
215
|
+
}
|
216
|
+
|
217
|
+
|
218
|
+
|
219
|
+
// Input grid system
|
220
|
+
// -------------------------
|
221
|
+
@mixin input-grid-system-input-columns($gridGutterWidth, $gridColumnWidth, $gridRowWidth, $columns) {
|
222
|
+
width: (($gridColumnWidth) * $columns) + ($gridGutterWidth * ($columns - 1)) - 10;
|
223
|
+
}
|
224
|
+
@mixin input-grid-system-generate($gridColumns, $gridColumnWidth, $gridGutterWidth) {
|
225
|
+
input,
|
226
|
+
textarea,
|
227
|
+
.uneditable-input {
|
228
|
+
@for $i from 1 through 12 {
|
229
|
+
&.span#{$i} { @include input-grid-system-input-columns($gridGutterWidth, $gridColumnWidth, $gridRowWidth, $i); }
|
230
|
+
}
|
231
|
+
}
|
232
|
+
}
|
233
|
+
|
234
|
+
|
235
|
+
|
236
|
+
// CSS3 PROPERTIES
|
237
|
+
// --------------------------------------------------
|
238
|
+
|
239
|
+
// Border Radius
|
240
|
+
@mixin border-radius($radius: 5px) {
|
241
|
+
-webkit-border-radius: $radius;
|
242
|
+
-moz-border-radius: $radius;
|
243
|
+
border-radius: $radius;
|
244
|
+
}
|
245
|
+
|
246
|
+
// Drop shadows
|
247
|
+
@mixin box-shadow($shadow: 0 1px 3px rgba(0,0,0,.25)) {
|
248
|
+
-webkit-box-shadow: $shadow;
|
249
|
+
-moz-box-shadow: $shadow;
|
250
|
+
box-shadow: $shadow;
|
251
|
+
}
|
252
|
+
|
253
|
+
// Transitions
|
254
|
+
@mixin transition($transition) {
|
255
|
+
-webkit-transition: $transition;
|
256
|
+
-moz-transition: $transition;
|
257
|
+
-ms-transition: $transition;
|
258
|
+
-o-transition: $transition;
|
259
|
+
transition: $transition;
|
260
|
+
}
|
261
|
+
|
262
|
+
// Transformations
|
263
|
+
@mixin rotate($degrees) {
|
264
|
+
-webkit-transform: rotate($degrees);
|
265
|
+
-moz-transform: rotate($degrees);
|
266
|
+
-ms-transform: rotate($degrees);
|
267
|
+
-o-transform: rotate($degrees);
|
268
|
+
transform: rotate($degrees);
|
269
|
+
}
|
270
|
+
@mixin scale($ratio) {
|
271
|
+
-webkit-transform: scale($ratio);
|
272
|
+
-moz-transform: scale($ratio);
|
273
|
+
-ms-transform: scale($ratio);
|
274
|
+
-o-transform: scale($ratio);
|
275
|
+
transform: scale($ratio);
|
276
|
+
}
|
277
|
+
@mixin translate($x: 0, $y: 0) {
|
278
|
+
-webkit-transform: translate($x, $y);
|
279
|
+
-moz-transform: translate($x, $y);
|
280
|
+
-ms-transform: translate($x, $y);
|
281
|
+
-o-transform: translate($x, $y);
|
282
|
+
transform: translate($x, $y);
|
283
|
+
}
|
284
|
+
@mixin skew($x: 0, $y: 0) {
|
285
|
+
-webkit-transform: skew($x, $y);
|
286
|
+
-moz-transform: skew($x, $y);
|
287
|
+
-ms-transform: skew($x, $y);
|
288
|
+
-o-transform: skew($x, $y);
|
289
|
+
transform: skew($x, $y);
|
290
|
+
}
|
291
|
+
|
292
|
+
// Background clipping
|
293
|
+
// Heads up: FF 3.6 and under need "padding" instead of "padding-box"
|
294
|
+
@mixin background-clip($clip) {
|
295
|
+
-webkit-background-clip: $clip;
|
296
|
+
-moz-background-clip: $clip;
|
297
|
+
background-clip: $clip;
|
298
|
+
}
|
299
|
+
|
300
|
+
// Background sizing
|
301
|
+
@mixin background-size($size){
|
302
|
+
-webkit-background-size: $size;
|
303
|
+
-moz-background-size: $size;
|
304
|
+
-o-background-size: $size;
|
305
|
+
background-size: $size;
|
306
|
+
}
|
307
|
+
|
308
|
+
|
309
|
+
// Box sizing
|
310
|
+
@mixin box-sizing($boxmodel) {
|
311
|
+
-webkit-box-sizing: $boxmodel;
|
312
|
+
-moz-box-sizing: $boxmodel;
|
313
|
+
box-sizing: $boxmodel;
|
314
|
+
}
|
315
|
+
|
316
|
+
// User select
|
317
|
+
// For selecting text on the page
|
318
|
+
@mixin user-select($select) {
|
319
|
+
-webkit-user-select: $select;
|
320
|
+
-moz-user-select: $select;
|
321
|
+
-o-user-select: $select;
|
322
|
+
user-select: $select;
|
323
|
+
}
|
324
|
+
|
325
|
+
// Resize anything
|
326
|
+
@mixin resizable($direction: both) {
|
327
|
+
resize: $direction; // Options: horizontal, vertical, both
|
328
|
+
overflow: auto; // Safari fix
|
329
|
+
}
|
330
|
+
|
331
|
+
// CSS3 Content Columns
|
332
|
+
@mixin content-columns($columnCount, $columnGap: $gridColumnGutter) {
|
333
|
+
-webkit-column-count: $columnCount;
|
334
|
+
-moz-column-count: $columnCount;
|
335
|
+
column-count: $columnCount;
|
336
|
+
-webkit-column-gap: $columnGap;
|
337
|
+
-moz-column-gap: $columnGap;
|
338
|
+
column-gap: $columnGap;
|
339
|
+
}
|
340
|
+
|
341
|
+
// Opacity
|
342
|
+
@mixin opacity($opacity: 100) {
|
343
|
+
opacity: $opacity / 100;
|
344
|
+
filter: alpha(opacity=#{$opacity});
|
345
|
+
}
|
346
|
+
|
347
|
+
|
348
|
+
|
349
|
+
// BACKGROUNDS
|
350
|
+
// --------------------------------------------------
|
351
|
+
|
352
|
+
// Add an alphatransparency value to any background or border color (via Elyse Holladay)
|
353
|
+
@mixin translucent-background($color: $white, $alpha: 1) {
|
354
|
+
background-color: hsla(hue($color), saturation($color), lightness($color), $alpha);
|
355
|
+
}
|
356
|
+
@mixin translucent-border($color: $white, $alpha: 1) {
|
357
|
+
border-color: hsla(hue($color), saturation($color), lightness($color), $alpha);
|
358
|
+
@include background-clip(padding-box);
|
359
|
+
}
|
360
|
+
|
361
|
+
// Gradients
|
362
|
+
@mixin gradient-horizontal($startColor: #555, $endColor: #333) {
|
363
|
+
background-color: $endColor;
|
364
|
+
background-image: -moz-linear-gradient(left, $startColor, $endColor); // FF 3.6+
|
365
|
+
background-image: -ms-linear-gradient(left, $startColor, $endColor); // IE10
|
366
|
+
background-image: -webkit-gradient(linear, 0 0, 100% 0, from($startColor), to($endColor)); // Safari 4+, Chrome 2+
|
367
|
+
background-image: -webkit-linear-gradient(left, $startColor, $endColor); // Safari 5.1+, Chrome 10+
|
368
|
+
background-image: -o-linear-gradient(left, $startColor, $endColor); // Opera 11.10
|
369
|
+
background-image: linear-gradient(left, $startColor, $endColor); // Le standard
|
370
|
+
background-repeat: repeat-x;
|
371
|
+
$ieStartColor: ie_hex_str($startColor);
|
372
|
+
$ieEndColor: ie_hex_str($endColor);
|
373
|
+
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{$ieStartColor}', endColorstr='#{$ieEndColor}', GradientType=1); // IE9 and down
|
374
|
+
}
|
375
|
+
@mixin gradient-vertical($startColor: #555, $endColor: #333) {
|
376
|
+
background-color: mix($startColor, $endColor, 60%);
|
377
|
+
background-image: -moz-linear-gradient(top, $startColor, $endColor); // FF 3.6+
|
378
|
+
background-image: -ms-linear-gradient(top, $startColor, $endColor); // IE10
|
379
|
+
background-image: -webkit-gradient(linear, 0 0, 0 100%, from($startColor), to($endColor)); // Safari 4+, Chrome 2+
|
380
|
+
background-image: -webkit-linear-gradient(top, $startColor, $endColor); // Safari 5.1+, Chrome 10+
|
381
|
+
background-image: -o-linear-gradient(top, $startColor, $endColor); // Opera 11.10
|
382
|
+
background-image: linear-gradient(top, $startColor, $endColor); // The standard
|
383
|
+
background-repeat: repeat-x;
|
384
|
+
$ieStartColor: ie_hex_str($startColor);
|
385
|
+
$ieEndColor: ie_hex_str($endColor);
|
386
|
+
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{$ieStartColor}', endColorstr='#{$ieEndColor}', GradientType=0); // IE9 and down
|
387
|
+
}
|
388
|
+
@mixin gradient-directional($startColor: #555, $endColor: #333, $deg: 45deg) {
|
389
|
+
background-color: $endColor;
|
390
|
+
background-repeat: repeat-x;
|
391
|
+
background-image: -moz-linear-gradient($deg, $startColor, $endColor); // FF 3.6+
|
392
|
+
background-image: -ms-linear-gradient($deg, $startColor, $endColor); // IE10
|
393
|
+
background-image: -webkit-linear-gradient($deg, $startColor, $endColor); // Safari 5.1+, Chrome 10+
|
394
|
+
background-image: -o-linear-gradient($deg, $startColor, $endColor); // Opera 11.10
|
395
|
+
background-image: linear-gradient($deg, $startColor, $endColor); // The standard
|
396
|
+
}
|
397
|
+
@mixin gradient-vertical-three-colors($startColor: #00b3ee, $midColor: #7a43b6, $colorStop: 50%, $endColor: #c3325f) {
|
398
|
+
background-color: mix($midColor, $endColor, 80%);
|
399
|
+
background-image: -webkit-gradient(linear, 0 0, 0 100%, from($startColor), color-stop($colorStop, $midColor), to($endColor));
|
400
|
+
background-image: -webkit-linear-gradient($startColor, $midColor $colorStop, $endColor);
|
401
|
+
background-image: -moz-linear-gradient(top, $startColor, $midColor $colorStop, $endColor);
|
402
|
+
background-image: -ms-linear-gradient($startColor, $midColor $colorStop, $endColor);
|
403
|
+
background-image: -o-linear-gradient($startColor, $midColor $colorStop, $endColor);
|
404
|
+
background-image: linear-gradient($startColor, $midColor $colorStop, $endColor);
|
405
|
+
background-repeat: no-repeat;
|
406
|
+
$ieStartColor: ie_hex_str($startColor);
|
407
|
+
$ieEndColor: ie_hex_str($endColor);
|
408
|
+
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{$ieStartColor}', endColorstr='#{$ieEndColor}', GradientType=0); // IE9 and down, gets no color-stop at all for proper fallback
|
409
|
+
}
|
410
|
+
@mixin gradient-radial($innerColor: #555, $outerColor: #333) {
|
411
|
+
background-color: $outerColor;
|
412
|
+
background-image: -webkit-gradient(radial, center center, 0, center center, 460, from($innerColor), to($outerColor));
|
413
|
+
background-image: -webkit-radial-gradient(circle, $innerColor, $outerColor);
|
414
|
+
background-image: -moz-radial-gradient(circle, $innerColor, $outerColor);
|
415
|
+
background-image: -ms-radial-gradient(circle, $innerColor, $outerColor);
|
416
|
+
background-repeat: no-repeat;
|
417
|
+
// Opera cannot do radial gradients yet
|
418
|
+
}
|
419
|
+
@mixin gradient-striped($color, $angle: -45deg) {
|
420
|
+
background-color: $color;
|
421
|
+
$transparent: rgba(0,0,0,0); // Workaround compass transparent color-stop bug https://github.com/chriseppstein/compass/issues/356
|
422
|
+
background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(.25, rgba(255,255,255,.15)), color-stop(.25, transparent), color-stop(.5, transparent), color-stop(.5, rgba(255,255,255,.15)), color-stop(.75, rgba(255,255,255,.15)), color-stop(.75, transparent), to(transparent));
|
423
|
+
background-image: -webkit-linear-gradient($angle, rgba(255,255,255,.15) 25%, $transparent 25%, transparent 50%, rgba(255,255,255,.15) 50%, rgba(255,255,255,.15) 75%, $transparent 75%, $transparent);
|
424
|
+
background-image: -moz-linear-gradient($angle, rgba(255,255,255,.15) 25%, $transparent 25%, $transparent 50%, rgba(255,255,255,.15) 50%, rgba(255,255,255,.15) 75%, $transparent 75%, $transparent);
|
425
|
+
background-image: -ms-linear-gradient($angle, rgba(255,255,255,.15) 25%, $transparent 25%, $transparent 50%, rgba(255,255,255,.15) 50%, rgba(255,255,255,.15) 75%, $transparent 75%, $transparent);
|
426
|
+
background-image: -o-linear-gradient($angle, rgba(255,255,255,.15) 25%, $transparent 25%, $transparent 50%, rgba(255,255,255,.15) 50%, rgba(255,255,255,.15) 75%, $transparent 75%, $transparent);
|
427
|
+
background-image: linear-gradient($angle, rgba(255,255,255,.15) 25%, $transparent 25%, $transparent 50%, rgba(255,255,255,.15) 50%, rgba(255,255,255,.15) 75%, $transparent 75%, $transparent);
|
428
|
+
}
|
429
|
+
|
430
|
+
// Gradient Bar Colors for buttons and alerts
|
431
|
+
@mixin gradient-bar($primaryColor, $secondaryColor) {
|
432
|
+
@include gradient-vertical($primaryColor, $secondaryColor);
|
433
|
+
border-color: $secondaryColor $secondaryColor darken($secondaryColor, 15%);
|
434
|
+
border-color: rgba(0,0,0,.1) rgba(0,0,0,.1) fadein(rgba(0,0,0,.1), 15%);
|
435
|
+
}
|
436
|
+
|
437
|
+
// Reset filters for IE
|
438
|
+
@mixin reset-filter() {
|
439
|
+
filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
|
440
|
+
}
|
441
|
+
|
442
|
+
|
443
|
+
// Mixin for generating button backgrounds
|
444
|
+
// ---------------------------------------
|
445
|
+
@mixin button-background($startColor, $endColor) {
|
446
|
+
// gradientBar will set the background to a pleasing blend of these, to support IE<=9
|
447
|
+
@include gradient-bar($startColor, $endColor);
|
448
|
+
@include reset-filter();
|
449
|
+
|
450
|
+
// in these cases the gradient won't cover the background, so we override
|
451
|
+
&:hover, &:active, &.active, &.disabled, &[disabled] {
|
452
|
+
@include button_background2($endColor, 6.2%);
|
453
|
+
}
|
454
|
+
|
455
|
+
// IE 7 + 8 can't handle box-shadow to show active, so we darken a bit ourselves
|
456
|
+
&:active,
|
457
|
+
&.active {
|
458
|
+
background-color: darken($endColor, 10%) \9;
|
459
|
+
}
|
460
|
+
}
|
461
|
+
@mixin button_background2($color, $percentage) {
|
462
|
+
background-color: darken($color, $percentage);
|
463
|
+
background-image: -khtml-gradient(linear, left top, right top, from($color), to(darken($color, $percentage))); // Konqueror
|
464
|
+
background-image: -moz-linear-gradient(left, $color, darken($color, $percentage)); // FF 3.6+
|
465
|
+
background-image: -ms-linear-gradient(left, $color, darken($color, $percentage)); // IE10
|
466
|
+
background-image: -webkit-gradient(linear, left top, right top, color-stop(0%, $color), color-stop(100%, darken($color, $percentage))); // Safari 4+, Chrome 2+
|
467
|
+
background-image: -webkit-linear-gradient(left, $color, darken($color, $percentage)); // Safari 5.1+, Chrome 10+
|
468
|
+
background-image: -o-linear-gradient(left, $color, darken($color, $percentage)); // Opera 11.10
|
469
|
+
background-image: linear-gradient(left, $color, darken($color, $percentage)); // Le standard
|
470
|
+
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{$color}', endColorstr='#{darken($color, $percentage)}', GradientType=1); // IE9 and down
|
471
|
+
|
472
|
+
}
|
473
|
+
|
474
|
+
// COMPONENT MIXINS
|
475
|
+
// --------------------------------------------------
|
476
|
+
|
477
|
+
// POPOVER ARROWS
|
478
|
+
// -------------------------
|
479
|
+
// For tipsies and popovers
|
480
|
+
@mixin popover-arrow-top($arrowWidth: 5px) {
|
481
|
+
bottom: 0;
|
482
|
+
left: 50%;
|
483
|
+
margin-left: -$arrowWidth;
|
484
|
+
border-left: $arrowWidth solid transparent;
|
485
|
+
border-right: $arrowWidth solid transparent;
|
486
|
+
border-top: $arrowWidth solid $black;
|
487
|
+
}
|
488
|
+
@mixin popover-arrow-left($arrowWidth: 5px) {
|
489
|
+
top: 50%;
|
490
|
+
right: 0;
|
491
|
+
margin-top: -$arrowWidth;
|
492
|
+
border-top: $arrowWidth solid transparent;
|
493
|
+
border-bottom: $arrowWidth solid transparent;
|
494
|
+
border-left: $arrowWidth solid $black;
|
495
|
+
}
|
496
|
+
@mixin popover-arrow-bottom($arrowWidth: 5px) {
|
497
|
+
top: 0;
|
498
|
+
left: 50%;
|
499
|
+
margin-left: -$arrowWidth;
|
500
|
+
border-left: $arrowWidth solid transparent;
|
501
|
+
border-right: $arrowWidth solid transparent;
|
502
|
+
border-bottom: $arrowWidth solid $black;
|
503
|
+
}
|
504
|
+
@mixin popover-arrow-right($arrowWidth: 5px) {
|
505
|
+
top: 50%;
|
506
|
+
left: 0;
|
507
|
+
margin-top: -$arrowWidth;
|
508
|
+
border-top: $arrowWidth solid transparent;
|
509
|
+
border-bottom: $arrowWidth solid transparent;
|
510
|
+
border-right: $arrowWidth solid $black;
|
511
|
+
}
|