archetype 0.0.1.pre.13 → 1.0.0.alpha.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +97 -24
- data/README.md +11 -5
- data/VERSION +1 -0
- data/lib/archetype.rb +30 -18
- data/lib/archetype/actions/migrate.rb +152 -0
- data/lib/archetype/actions/theme.rb +6 -7
- data/lib/archetype/executor.rb +21 -7
- data/lib/archetype/extensions.rb +57 -0
- data/lib/archetype/functions.rb +2 -3
- data/lib/archetype/functions/css.rb +70 -0
- data/lib/archetype/functions/css/constants.rb +247 -0
- data/lib/archetype/functions/css/helpers.rb +265 -0
- data/lib/archetype/functions/css/routers.rb +28 -0
- data/lib/archetype/functions/css/routers/animation.rb +55 -0
- data/lib/archetype/functions/css/routers/background.rb +38 -0
- data/lib/archetype/functions/css/routers/border.rb +151 -0
- data/lib/archetype/functions/css/routers/list.rb +63 -0
- data/lib/archetype/functions/css/routers/margin_padding.rb +40 -0
- data/lib/archetype/functions/css/routers/outline.rb +56 -0
- data/lib/archetype/functions/css/routers/overflow.rb +11 -0
- data/lib/archetype/functions/css/routers/target.rb +38 -0
- data/lib/archetype/functions/css/routers/transition.rb +48 -0
- data/lib/archetype/functions/css/shorthands.rb +43 -0
- data/lib/archetype/functions/css/shorthands/animation.rb +18 -0
- data/lib/archetype/functions/css/shorthands/background.rb +68 -0
- data/lib/archetype/functions/css/shorthands/border.rb +102 -0
- data/lib/archetype/functions/hash.rb +3 -149
- data/lib/archetype/functions/hash/extend.rb +74 -0
- data/lib/archetype/functions/hash/shim.rb +48 -0
- data/lib/archetype/functions/helpers.rb +231 -22
- data/lib/archetype/functions/styleguide_memoizer.rb +18 -1
- data/lib/archetype/sass_extensions.rb +1 -3
- data/lib/archetype/sass_extensions/functions.rb +15 -1
- data/lib/archetype/sass_extensions/functions/environment.rb +152 -1
- data/lib/archetype/sass_extensions/functions/lists.rb +95 -45
- data/lib/archetype/sass_extensions/functions/locale.rb +107 -28
- data/lib/archetype/sass_extensions/functions/numbers.rb +118 -4
- data/lib/archetype/sass_extensions/functions/strings.rb +53 -0
- data/lib/archetype/sass_extensions/functions/styleguide.rb +43 -375
- data/lib/archetype/sass_extensions/functions/styleguide/components.rb +25 -0
- data/lib/archetype/sass_extensions/functions/styleguide/constants.rb +27 -0
- data/lib/archetype/sass_extensions/functions/styleguide/grammar.rb +80 -0
- data/lib/archetype/sass_extensions/functions/styleguide/helpers.rb +36 -0
- data/lib/archetype/sass_extensions/functions/styleguide/resolve.rb +159 -0
- data/lib/archetype/sass_extensions/functions/styleguide/styles.rb +146 -0
- data/lib/archetype/sass_extensions/functions/styleguide/themes.rb +40 -0
- data/lib/archetype/sass_extensions/functions/ui.rb +7 -57
- data/lib/archetype/sass_extensions/functions/ui/glyphs.rb +118 -0
- data/lib/archetype/sass_extensions/functions/ui/scopes.rb +96 -0
- data/lib/archetype/sass_extensions/functions/util.rb +14 -0
- data/lib/archetype/sass_extensions/functions/util/debug.rb +22 -0
- data/lib/archetype/sass_extensions/functions/util/hacks.rb +44 -0
- data/lib/archetype/sass_extensions/functions/util/images.rb +132 -0
- data/lib/archetype/sass_extensions/functions/util/misc.rb +220 -0
- data/lib/archetype/sass_extensions/functions/util/spacing.rb +83 -0
- data/lib/archetype/sass_extensions/functions/version.rb +12 -17
- data/lib/archetype/version.rb +1 -1
- data/stylesheets/archetype/_config.scss +1 -389
- data/stylesheets/archetype/_core.scss +15 -0
- data/stylesheets/archetype/_hacks.scss +4 -120
- data/stylesheets/archetype/_init.scss +4 -22
- data/stylesheets/archetype/_required.scss +3 -0
- data/stylesheets/archetype/_reset.scss +3 -0
- data/stylesheets/archetype/_styleguide.scss +2 -6
- data/stylesheets/archetype/_ui.scss +2 -358
- data/stylesheets/archetype/_util.scss +3 -10
- data/stylesheets/archetype/config/_core.scss +14 -0
- data/stylesheets/archetype/config/_environment.scss +19 -0
- data/stylesheets/archetype/config/_formatting.scss +63 -0
- data/stylesheets/archetype/config/_glyphs.scss +252 -0
- data/stylesheets/archetype/config/_resets.scss +7 -0
- data/stylesheets/archetype/config/_resolution.scss +3 -0
- data/stylesheets/archetype/config/_spacing.scss +5 -0
- data/stylesheets/archetype/config/_targeting.scss +18 -0
- data/stylesheets/archetype/config/_theme.scss +3 -0
- data/stylesheets/archetype/config/_typography.scss +56 -0
- data/stylesheets/archetype/config/_units.scss +2 -0
- data/stylesheets/archetype/config/_vars.scss +10 -0
- data/stylesheets/archetype/hacks/_core.scss +4 -0
- data/stylesheets/archetype/hacks/_hacks.scss +160 -0
- data/stylesheets/archetype/hacks/_init.scss +2 -0
- data/stylesheets/archetype/styleguide/_core.scss +4 -0
- data/stylesheets/archetype/styleguide/_init.scss +1 -0
- data/stylesheets/archetype/styleguide/_styleguide.scss +41 -18
- data/stylesheets/archetype/ui/_accessibility.scss +41 -0
- data/stylesheets/archetype/ui/_breakpoints.scss +19 -0
- data/stylesheets/archetype/ui/_core.scss +10 -0
- data/stylesheets/archetype/ui/_elements.scss +98 -0
- data/stylesheets/archetype/ui/_glyphs.scss +244 -0
- data/stylesheets/archetype/ui/_init.scss +5 -0
- data/stylesheets/archetype/ui/_layout.scss +37 -0
- data/stylesheets/archetype/ui/_locale.scss +12 -0
- data/stylesheets/archetype/ui/_scopes.scss +42 -0
- data/stylesheets/archetype/util/_core.scss +8 -0
- data/stylesheets/archetype/util/_debug.scss +9 -21
- data/stylesheets/archetype/util/_init.scss +1 -0
- data/stylesheets/archetype/util/_misc.scss +21 -86
- data/stylesheets/archetype/util/_spacing.scss +9 -40
- data/stylesheets/archetype/util/_styles.scss +189 -178
- data/stylesheets/archetype/util/_targeting.scss +51 -68
- data/templates/example/manifest.rb +2 -2
- data/templates/example/screen.scss +0 -1
- data/templates/project/manifest.rb +3 -8
- metadata +93 -263
- data/bin/archetype +0 -3
- data/lib/archetype/sass_extensions/monkey_patches.rb +0 -3
- data/lib/archetype/sass_extensions/monkey_patches/handle_include_loop.rb +0 -13
- data/stylesheets/archetype/_base.scss +0 -54
- data/stylesheets/archetype/_grid.scss +0 -3
- data/stylesheets/archetype/base/_h5bp.scss +0 -307
- data/stylesheets/archetype/base/_hybrid.scss +0 -25
- data/stylesheets/archetype/base/_normalize.scss +0 -634
- data/stylesheets/archetype/base/_reset.scss +0 -72
- data/stylesheets/archetype/grid/_config.scss +0 -14
- data/stylesheets/archetype/grid/_grid.scss +0 -391
- data/stylesheets/archetype/styleguide/_components.scss +0 -25
- data/stylesheets/archetype/styleguide/_helpers.scss +0 -215
- data/stylesheets/archetype/styleguide/_primitives.scss +0 -10
- data/stylesheets/archetype/styleguide/components/_alerts.scss +0 -59
- data/stylesheets/archetype/styleguide/components/_annotations.scss +0 -27
- data/stylesheets/archetype/styleguide/components/_bristol.scss +0 -15
- data/stylesheets/archetype/styleguide/components/_button_groups.scss +0 -47
- data/stylesheets/archetype/styleguide/components/_button_toolbars.scss +0 -17
- data/stylesheets/archetype/styleguide/components/_buttons.scss +0 -339
- data/stylesheets/archetype/styleguide/components/_canvas.scss +0 -15
- data/stylesheets/archetype/styleguide/components/_carets.scss +0 -336
- data/stylesheets/archetype/styleguide/components/_closes.scss +0 -63
- data/stylesheets/archetype/styleguide/components/_container.scss +0 -27
- data/stylesheets/archetype/styleguide/components/_copy.scss +0 -85
- data/stylesheets/archetype/styleguide/components/_flyouts.scss +0 -52
- data/stylesheets/archetype/styleguide/components/_headings.scss +0 -33
- data/stylesheets/archetype/styleguide/components/_headlines.scss +0 -64
- data/stylesheets/archetype/styleguide/components/_hovercards.scss +0 -27
- data/stylesheets/archetype/styleguide/components/_icons.scss +0 -17
- data/stylesheets/archetype/styleguide/components/_identities.scss +0 -34
- data/stylesheets/archetype/styleguide/components/_links.scss +0 -68
- data/stylesheets/archetype/styleguide/components/_loaders.scss +0 -154
- data/stylesheets/archetype/styleguide/components/_menu_items.scss +0 -31
- data/stylesheets/archetype/styleguide/components/_module.scss +0 -15
- data/stylesheets/archetype/styleguide/components/_pullquotes.scss +0 -29
- data/stylesheets/archetype/styleguide/components/_punchcut.scss +0 -18
- data/stylesheets/archetype/styleguide/components/_tooltips.scss +0 -28
- data/stylesheets/archetype/styleguide/primitives/_animations.scss +0 -17
- data/stylesheets/archetype/styleguide/primitives/_dimensions.scss +0 -50
- data/stylesheets/archetype/styleguide/primitives/_glyphs.scss +0 -11
- data/stylesheets/archetype/styleguide/primitives/_misc.scss +0 -8
- data/stylesheets/archetype/styleguide/primitives/_palettes.scss +0 -94
- data/stylesheets/archetype/styleguide/primitives/_shadows.scss +0 -23
- data/stylesheets/archetype/styleguide/primitives/_sprites.scss +0 -46
- data/stylesheets/archetype/styleguide/primitives/_textures.scss +0 -10
- data/stylesheets/archetype/styleguide/primitives/_typography.scss +0 -56
- data/stylesheets/archetype/util/_lists.scss +0 -57
- data/stylesheets/archetype/util/_rtl.scss +0 -279
- data/stylesheets/archetype/util/_units.scss +0 -18
- data/templates/project/screen.scss +0 -1
- data/templates/project/vendor/archetype/animations/loaders/large/large.png +0 -0
- data/templates/project/vendor/archetype/animations/loaders/large/large_dark.png +0 -0
- data/templates/project/vendor/archetype/animations/loaders/large/large_dark_static.png +0 -0
- data/templates/project/vendor/archetype/animations/loaders/large/large_static.png +0 -0
- data/templates/project/vendor/archetype/animations/loaders/medium/medium.png +0 -0
- data/templates/project/vendor/archetype/animations/loaders/medium/medium_dark.png +0 -0
- data/templates/project/vendor/archetype/animations/loaders/medium/medium_dark_static.png +0 -0
- data/templates/project/vendor/archetype/animations/loaders/medium/medium_static.png +0 -0
- data/templates/project/vendor/archetype/animations/loaders/small/small.png +0 -0
- data/templates/project/vendor/archetype/animations/loaders/small/small_dark.png +0 -0
- data/templates/project/vendor/archetype/animations/loaders/small/small_dark_static.png +0 -0
- data/templates/project/vendor/archetype/animations/loaders/small/small_static.png +0 -0
- data/templates/project/vendor/archetype/fontawesome-webfont.eot +0 -0
- data/templates/project/vendor/archetype/fontawesome-webfont.svg +0 -255
- data/templates/project/vendor/archetype/fontawesome-webfont.ttf +0 -0
- data/templates/project/vendor/archetype/fontawesome-webfont.woff +0 -0
- data/test/fixtures/stylesheets/archetype/assets/fonts/fontawesome-webfont.eot +0 -0
- data/test/fixtures/stylesheets/archetype/assets/fonts/fontawesome-webfont.svg +0 -255
- data/test/fixtures/stylesheets/archetype/assets/fonts/fontawesome-webfont.ttf +0 -0
- data/test/fixtures/stylesheets/archetype/assets/fonts/fontawesome-webfont.woff +0 -0
- data/test/fixtures/stylesheets/archetype/assets/images/vendor/archetype/animations/loaders-s7889ccc8c1.png +0 -0
- data/test/fixtures/stylesheets/archetype/assets/images/vendor/archetype/animations/loaders/large/large.png +0 -0
- data/test/fixtures/stylesheets/archetype/assets/images/vendor/archetype/animations/loaders/large/large_dark.png +0 -0
- data/test/fixtures/stylesheets/archetype/assets/images/vendor/archetype/animations/loaders/large/large_dark_static.png +0 -0
- data/test/fixtures/stylesheets/archetype/assets/images/vendor/archetype/animations/loaders/large/large_static.png +0 -0
- data/test/fixtures/stylesheets/archetype/assets/images/vendor/archetype/animations/loaders/medium/medium.png +0 -0
- data/test/fixtures/stylesheets/archetype/assets/images/vendor/archetype/animations/loaders/medium/medium_dark.png +0 -0
- data/test/fixtures/stylesheets/archetype/assets/images/vendor/archetype/animations/loaders/medium/medium_dark_static.png +0 -0
- data/test/fixtures/stylesheets/archetype/assets/images/vendor/archetype/animations/loaders/medium/medium_static.png +0 -0
- data/test/fixtures/stylesheets/archetype/assets/images/vendor/archetype/animations/loaders/small/small.png +0 -0
- data/test/fixtures/stylesheets/archetype/assets/images/vendor/archetype/animations/loaders/small/small_dark.png +0 -0
- data/test/fixtures/stylesheets/archetype/assets/images/vendor/archetype/animations/loaders/small/small_dark_static.png +0 -0
- data/test/fixtures/stylesheets/archetype/assets/images/vendor/archetype/animations/loaders/small/small_static.png +0 -0
- data/test/fixtures/stylesheets/archetype/assets/images/vendor/archetype/sprites/hovercard_tip.png +0 -0
- data/test/fixtures/stylesheets/archetype/config.rb +0 -21
- data/test/fixtures/stylesheets/archetype/source/b.scss +0 -9
- data/test/fixtures/stylesheets/archetype/source/base.scss +0 -3
- data/test/fixtures/stylesheets/archetype/source/hacks/ie_pseudo.scss +0 -13
- data/test/fixtures/stylesheets/archetype/source/hacks/transparent_focusable.scss +0 -5
- data/test/fixtures/stylesheets/archetype/source/locale.scss +0 -43
- data/test/fixtures/stylesheets/archetype/source/styleguide/alerts.scss +0 -21
- data/test/fixtures/stylesheets/archetype/source/styleguide/buttons.scss +0 -18
- data/test/fixtures/stylesheets/archetype/source/styleguide/drop.scss +0 -101
- data/test/fixtures/stylesheets/archetype/source/styleguide/extend.scss +0 -24
- data/test/fixtures/stylesheets/archetype/source/styleguide/fallback_styles.scss +0 -23
- data/test/fixtures/stylesheets/archetype/source/styleguide/invalid_structures.scss +0 -85
- data/test/fixtures/stylesheets/archetype/source/styleguide/multi_value.scss +0 -18
- data/test/fixtures/stylesheets/archetype/source/styleguide/nested_styleguides.scss +0 -40
- data/test/fixtures/stylesheets/archetype/source/styleguide/selective_state.scss +0 -22
- data/test/fixtures/stylesheets/archetype/source/ui/glyph_icon.scss +0 -35
- data/test/fixtures/stylesheets/archetype/source/ui/hide_element.scss +0 -5
- data/test/fixtures/stylesheets/archetype/source/ui/stroke.scss +0 -13
- data/test/fixtures/stylesheets/archetype/source/ui/triangle.scss +0 -13
- data/test/fixtures/stylesheets/archetype/source/utilities/associative.scss +0 -24
- data/test/fixtures/stylesheets/archetype/source/utilities/custom_output_styler.scss +0 -22
- data/test/fixtures/stylesheets/archetype/source/utilities/if-set.scss +0 -16
- data/test/fixtures/stylesheets/archetype/source/utilities/spacing/horizontal-spacing.scss +0 -27
- data/test/fixtures/stylesheets/archetype/source/utilities/spacing/vertical-spacing.scss +0 -27
- data/test/fixtures/stylesheets/archetype/source/utilities/styles/filter.scss +0 -9
- data/test/fixtures/stylesheets/archetype/source/utilities/styles/font-family.scss +0 -9
- data/test/fixtures/stylesheets/archetype/source/utilities/styles/z-index.scss +0 -18
- data/test/fixtures/stylesheets/archetype/source/utilities/targeting/target-browser.scss +0 -77
- data/test/fixtures/stylesheets/archetype/source/utilities/targeting/target-os.scss +0 -42
- data/test/fixtures/stylesheets/archetype/tmp/b.css +0 -14
- data/test/fixtures/stylesheets/archetype/tmp/base.css +0 -349
- data/test/fixtures/stylesheets/archetype/tmp/hacks/ie_pseudo.css +0 -11
- data/test/fixtures/stylesheets/archetype/tmp/hacks/transparent_focusable.css +0 -4
- data/test/fixtures/stylesheets/archetype/tmp/locale.css +0 -23
- data/test/fixtures/stylesheets/archetype/tmp/styleguide/alerts.css +0 -711
- data/test/fixtures/stylesheets/archetype/tmp/styleguide/buttons.css +0 -2119
- data/test/fixtures/stylesheets/archetype/tmp/styleguide/drop.css +0 -63
- data/test/fixtures/stylesheets/archetype/tmp/styleguide/extend.css +0 -11
- data/test/fixtures/stylesheets/archetype/tmp/styleguide/fallback_styles.css +0 -10
- data/test/fixtures/stylesheets/archetype/tmp/styleguide/invalid_structures.css +0 -21
- data/test/fixtures/stylesheets/archetype/tmp/styleguide/multi_value.css +0 -13
- data/test/fixtures/stylesheets/archetype/tmp/styleguide/nested_styleguides.css +0 -28
- data/test/fixtures/stylesheets/archetype/tmp/styleguide/selective_state.css +0 -177
- data/test/fixtures/stylesheets/archetype/tmp/ui/glyph_icon.css +0 -127
- data/test/fixtures/stylesheets/archetype/tmp/ui/hide_element.css +0 -8
- data/test/fixtures/stylesheets/archetype/tmp/ui/stroke.css +0 -17
- data/test/fixtures/stylesheets/archetype/tmp/ui/triangle.css +0 -35
- data/test/fixtures/stylesheets/archetype/tmp/utilities/associative.css +0 -9
- data/test/fixtures/stylesheets/archetype/tmp/utilities/custom_output_styler.css +0 -8
- data/test/fixtures/stylesheets/archetype/tmp/utilities/if-set.css +0 -9
- data/test/fixtures/stylesheets/archetype/tmp/utilities/spacing/horizontal-spacing.css +0 -29
- data/test/fixtures/stylesheets/archetype/tmp/utilities/spacing/vertical-spacing.css +0 -29
- data/test/fixtures/stylesheets/archetype/tmp/utilities/styles/filter.css +0 -11
- data/test/fixtures/stylesheets/archetype/tmp/utilities/styles/font-family.css +0 -16
- data/test/fixtures/stylesheets/archetype/tmp/utilities/styles/z-index.css +0 -15
- data/test/fixtures/stylesheets/archetype/tmp/utilities/targeting/target-browser.css +0 -105
- data/test/fixtures/stylesheets/archetype/tmp/utilities/targeting/target-os.css +0 -55
- data/test/helpers/diff.rb +0 -49
- data/test/helpers/io.rb +0 -36
- data/test/helpers/test_case.rb +0 -62
- data/test/integrations/archetype_test.rb +0 -126
- data/test/test_helper.rb +0 -26
- data/test/units/sass_extensions_test.rb +0 -200
data/bin/archetype
DELETED
@@ -1,54 +0,0 @@
|
|
1
|
-
@import "hacks";
|
2
|
-
@import "base/normalize";
|
3
|
-
@import "base/reset";
|
4
|
-
@import "base/hybrid";
|
5
|
-
@import "base/h5bp";
|
6
|
-
|
7
|
-
// protect against multiple resets
|
8
|
-
$RESET_INIT: false !default;
|
9
|
-
|
10
|
-
// @category base
|
11
|
-
|
12
|
-
// sets the base styles for the page (e.g. reset or normalize)
|
13
|
-
// @mixin base
|
14
|
-
// @param $exclude {List} the list of styles to exclude @see _normalize.scss and _reset.scss
|
15
|
-
// @param $method {String} reset method [reset|normalize|h5bp|hybrid]
|
16
|
-
// @param $force {Boolean} force reset to invoke; by default base() can only be invoked once, to re-invoke must pass in $force: true
|
17
|
-
@mixin base($exclude: $CONFIG_RESET_EXCLUDES, $method: $CONFIG_RESET_METHOD, $force: false) {
|
18
|
-
@if not $RESET_INIT or $force {
|
19
|
-
$RESET_INIT: true;
|
20
|
-
// normalize
|
21
|
-
@if $method == normalize {
|
22
|
-
@include base-normalize($exclude: $exclude);
|
23
|
-
}
|
24
|
-
// html5 boiler plate
|
25
|
-
@else if $method == h5bp {
|
26
|
-
@include base-h5bp($exclude: $exclude);
|
27
|
-
}
|
28
|
-
// hyrbid reset (reset + some normalize)
|
29
|
-
@else if $method == hybrid {
|
30
|
-
@include base-hybrid($exclude: $exclude);
|
31
|
-
}
|
32
|
-
// default to reset
|
33
|
-
@else {
|
34
|
-
@include base-reset($exclude: $exclude);
|
35
|
-
}
|
36
|
-
}
|
37
|
-
@if $CONFIG_GLYPHS_AUTO and do-once("archetype/base#glyph") {
|
38
|
-
@include base-glyph();
|
39
|
-
}
|
40
|
-
}
|
41
|
-
|
42
|
-
@mixin base-glyph() {
|
43
|
-
// the font-face mixin will likely change in a future version, keep an eye on this
|
44
|
-
// https://github.com/chriseppstein/compass/issues/867
|
45
|
-
@include font-face($CONFIG_GLYPHS_NAME, $CONFIG_GLYPHS_FILES, $CONFIG_GLYPHS_EOT, $CONFIG_GLYPHS_WEIGHT, $CONFIG_GLYPHS_STYLE);
|
46
|
-
// output a second @font-face set with a versioned family name
|
47
|
-
// this will help avoid collisions when multi-app CSS is loaded on a single page
|
48
|
-
@include font-face('#{$CONFIG_GLYPHS_NAME}-#{$CONFIG_GLYPHS_VERSION}', $CONFIG_GLYPHS_FILES, $CONFIG_GLYPHS_EOT, $CONFIG_GLYPHS_WEIGHT, $CONFIG_GLYPHS_STYLE);
|
49
|
-
}
|
50
|
-
|
51
|
-
// auto invoke base reset
|
52
|
-
@if $CONFIG_RESET_AUTO and do-once('archetype/base') {
|
53
|
-
@include base($CONFIG_RESET_EXCLUDES);
|
54
|
-
}
|
@@ -1,307 +0,0 @@
|
|
1
|
-
// HTML5 Boilerplate
|
2
|
-
|
3
|
-
// @category base
|
4
|
-
|
5
|
-
@mixin base-h5bp-base() {
|
6
|
-
/* ==========================================================================
|
7
|
-
Base styles: opinionated defaults
|
8
|
-
========================================================================== */
|
9
|
-
|
10
|
-
html,
|
11
|
-
button,
|
12
|
-
input,
|
13
|
-
select,
|
14
|
-
textarea {
|
15
|
-
color: #222;
|
16
|
-
}
|
17
|
-
|
18
|
-
body {
|
19
|
-
font-size: 1em;
|
20
|
-
line-height: 1.4;
|
21
|
-
}
|
22
|
-
|
23
|
-
/*
|
24
|
-
* Remove text-shadow in selection highlight: h5bp.com/i
|
25
|
-
* These selection declarations have to be separate.
|
26
|
-
* Customize the background color to match your design.
|
27
|
-
*/
|
28
|
-
|
29
|
-
::-moz-selection {
|
30
|
-
background: #b3d4fc;
|
31
|
-
text-shadow: none;
|
32
|
-
}
|
33
|
-
|
34
|
-
::selection {
|
35
|
-
background: #b3d4fc;
|
36
|
-
text-shadow: none;
|
37
|
-
}
|
38
|
-
|
39
|
-
/*
|
40
|
-
* A better looking default horizontal rule
|
41
|
-
*/
|
42
|
-
|
43
|
-
hr {
|
44
|
-
display: block;
|
45
|
-
height: 1px;
|
46
|
-
border: 0;
|
47
|
-
border-top: 1px solid #ccc;
|
48
|
-
margin: 1em 0;
|
49
|
-
padding: 0;
|
50
|
-
}
|
51
|
-
}
|
52
|
-
|
53
|
-
@mixin base-h5bp-images() {
|
54
|
-
/*
|
55
|
-
* Remove the gap between images and the bottom of their containers: h5bp.com/i/440
|
56
|
-
*/
|
57
|
-
|
58
|
-
img {
|
59
|
-
vertical-align: middle;
|
60
|
-
}
|
61
|
-
}
|
62
|
-
|
63
|
-
|
64
|
-
@mixin base-h5bp-fieldset() {
|
65
|
-
/*
|
66
|
-
* Remove default fieldset styles.
|
67
|
-
*/
|
68
|
-
|
69
|
-
fieldset {
|
70
|
-
border: 0;
|
71
|
-
margin: 0;
|
72
|
-
padding: 0;
|
73
|
-
}
|
74
|
-
}
|
75
|
-
|
76
|
-
@mixin base-h5bp-forms() {
|
77
|
-
/*
|
78
|
-
* Allow only vertical resizing of textareas.
|
79
|
-
*/
|
80
|
-
|
81
|
-
textarea {
|
82
|
-
resize: vertical;
|
83
|
-
}
|
84
|
-
}
|
85
|
-
|
86
|
-
@mixin base-h5bp-chromeframe() {
|
87
|
-
/* ==========================================================================
|
88
|
-
Chrome Frame prompt
|
89
|
-
========================================================================== */
|
90
|
-
|
91
|
-
.chromeframe {
|
92
|
-
margin: 0.2em 0;
|
93
|
-
background: #ccc;
|
94
|
-
color: #000;
|
95
|
-
padding: 0.2em 0;
|
96
|
-
}
|
97
|
-
}
|
98
|
-
|
99
|
-
@mixin base-h5bp-helpers() {
|
100
|
-
/* ==========================================================================
|
101
|
-
Helper classes
|
102
|
-
========================================================================== */
|
103
|
-
|
104
|
-
/*
|
105
|
-
* Image replacement
|
106
|
-
*/
|
107
|
-
|
108
|
-
.ir {
|
109
|
-
background-color: transparent;
|
110
|
-
border: 0;
|
111
|
-
overflow: hidden;
|
112
|
-
/* IE 6/7 fallback */
|
113
|
-
*text-indent: -9999px;
|
114
|
-
}
|
115
|
-
|
116
|
-
.ir:before {
|
117
|
-
content: "";
|
118
|
-
display: block;
|
119
|
-
width: 0;
|
120
|
-
height: 150%;
|
121
|
-
}
|
122
|
-
|
123
|
-
/*
|
124
|
-
* Hide from both screenreaders and browsers: h5bp.com/u
|
125
|
-
*/
|
126
|
-
|
127
|
-
.hidden {
|
128
|
-
display: none !important;
|
129
|
-
visibility: hidden;
|
130
|
-
}
|
131
|
-
|
132
|
-
/*
|
133
|
-
* Hide only visually, but have it available for screenreaders: h5bp.com/v
|
134
|
-
*/
|
135
|
-
|
136
|
-
.visuallyhidden {
|
137
|
-
border: 0;
|
138
|
-
clip: rect(0 0 0 0);
|
139
|
-
height: 1px;
|
140
|
-
margin: -1px;
|
141
|
-
overflow: hidden;
|
142
|
-
padding: 0;
|
143
|
-
position: absolute;
|
144
|
-
width: 1px;
|
145
|
-
}
|
146
|
-
|
147
|
-
/*
|
148
|
-
* Extends the .visuallyhidden class to allow the element to be focusable
|
149
|
-
* when navigated to via the keyboard: h5bp.com/p
|
150
|
-
*/
|
151
|
-
|
152
|
-
.visuallyhidden.focusable:active,
|
153
|
-
.visuallyhidden.focusable:focus {
|
154
|
-
clip: auto;
|
155
|
-
height: auto;
|
156
|
-
margin: 0;
|
157
|
-
overflow: visible;
|
158
|
-
position: static;
|
159
|
-
width: auto;
|
160
|
-
}
|
161
|
-
|
162
|
-
/*
|
163
|
-
* Hide visually and from screenreaders, but maintain layout
|
164
|
-
*/
|
165
|
-
|
166
|
-
.invisible {
|
167
|
-
visibility: hidden;
|
168
|
-
}
|
169
|
-
|
170
|
-
/*
|
171
|
-
* Clearfix: contain floats
|
172
|
-
*
|
173
|
-
* For modern browsers
|
174
|
-
* 1. The space content is one way to avoid an Opera bug when the
|
175
|
-
* `contenteditable` attribute is included anywhere else in the document.
|
176
|
-
* Otherwise it causes space to appear at the top and bottom of elements
|
177
|
-
* that receive the `clearfix` class.
|
178
|
-
* 2. The use of `table` rather than `block` is only necessary if using
|
179
|
-
* `:before` to contain the top-margins of child elements.
|
180
|
-
*/
|
181
|
-
|
182
|
-
.clearfix:before,
|
183
|
-
.clearfix:after {
|
184
|
-
content: " "; /* 1 */
|
185
|
-
display: table; /* 2 */
|
186
|
-
}
|
187
|
-
|
188
|
-
.clearfix:after {
|
189
|
-
clear: both;
|
190
|
-
}
|
191
|
-
|
192
|
-
/*
|
193
|
-
* For IE 6/7 only
|
194
|
-
* Include this rule to trigger hasLayout and contain floats.
|
195
|
-
*/
|
196
|
-
|
197
|
-
.clearfix {
|
198
|
-
*zoom: 1;
|
199
|
-
}
|
200
|
-
}
|
201
|
-
|
202
|
-
@mixin base-h5bp-print() {
|
203
|
-
/* ==========================================================================
|
204
|
-
Print styles.
|
205
|
-
Inlined to avoid required HTTP connection: h5bp.com/r
|
206
|
-
========================================================================== */
|
207
|
-
@media print {
|
208
|
-
* {
|
209
|
-
background: transparent !important;
|
210
|
-
color: #000 !important; /* Black prints faster: h5bp.com/s */
|
211
|
-
box-shadow: none !important;
|
212
|
-
text-shadow: none !important;
|
213
|
-
}
|
214
|
-
|
215
|
-
a,
|
216
|
-
a:visited {
|
217
|
-
text-decoration: underline;
|
218
|
-
}
|
219
|
-
|
220
|
-
a[href]:after {
|
221
|
-
content: " (" attr(href) ")";
|
222
|
-
}
|
223
|
-
|
224
|
-
abbr[title]:after {
|
225
|
-
content: " (" attr(title) ")";
|
226
|
-
}
|
227
|
-
|
228
|
-
/*
|
229
|
-
* Don't show links for images, or javascript/internal links
|
230
|
-
*/
|
231
|
-
|
232
|
-
.ir a:after,
|
233
|
-
a[href^="javascript:"]:after,
|
234
|
-
a[href^="#"]:after {
|
235
|
-
content: "";
|
236
|
-
}
|
237
|
-
|
238
|
-
pre,
|
239
|
-
blockquote {
|
240
|
-
border: 1px solid #999;
|
241
|
-
page-break-inside: avoid;
|
242
|
-
}
|
243
|
-
|
244
|
-
thead {
|
245
|
-
display: table-header-group; /* h5bp.com/t */
|
246
|
-
}
|
247
|
-
|
248
|
-
tr,
|
249
|
-
img {
|
250
|
-
page-break-inside: avoid;
|
251
|
-
}
|
252
|
-
|
253
|
-
img {
|
254
|
-
max-width: 100% !important;
|
255
|
-
}
|
256
|
-
|
257
|
-
@page {
|
258
|
-
margin: 0.5cm;
|
259
|
-
}
|
260
|
-
|
261
|
-
p,
|
262
|
-
h2,
|
263
|
-
h3 {
|
264
|
-
orphans: 3;
|
265
|
-
widows: 3;
|
266
|
-
}
|
267
|
-
|
268
|
-
h2,
|
269
|
-
h3 {
|
270
|
-
page-break-after: avoid;
|
271
|
-
}
|
272
|
-
}
|
273
|
-
}
|
274
|
-
|
275
|
-
// HTML5 Boilerplate reset
|
276
|
-
// @mixin base-h5bp
|
277
|
-
// @param $exclude {List} the list of features to exclude from the reset
|
278
|
-
// @link https://github.com/h5bp/html5-boilerplate/
|
279
|
-
@mixin base-h5bp($exclude: ()) {
|
280
|
-
/*! HTML5 Boilerplate | MIT License | @9ec546569b */
|
281
|
-
/*
|
282
|
-
* HTML5 Boilerplate
|
283
|
-
*
|
284
|
-
* What follows is the result of much research on cross-browser styling.
|
285
|
-
* Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
|
286
|
-
* Kroc Camen, and the H5BP dev community and team.
|
287
|
-
*/
|
288
|
-
$exclude: -compass-list($exclude);
|
289
|
-
@if(not index($exclude, h5bp-base)) {
|
290
|
-
@include base-h5bp-base();
|
291
|
-
}
|
292
|
-
@if(not index($exclude, h5bp-images)) {
|
293
|
-
@include base-h5bp-images();
|
294
|
-
}
|
295
|
-
@if(not index($exclude, h5bp-forms)) {
|
296
|
-
@include base-h5bp-forms();
|
297
|
-
}
|
298
|
-
@if(not index($exclude, h5bp-chromeframe)) {
|
299
|
-
@include base-h5bp-chromeframe();
|
300
|
-
}
|
301
|
-
@if(not index($exclude, h5bp-helpers)) {
|
302
|
-
@include base-h5bp-helpers();
|
303
|
-
}
|
304
|
-
@if(not index($exclude, h5bp-print)) {
|
305
|
-
@include base-h5bp-print();
|
306
|
-
}
|
307
|
-
}
|
@@ -1,25 +0,0 @@
|
|
1
|
-
// @category base
|
2
|
-
@import "normalize";
|
3
|
-
@import "reset";
|
4
|
-
@import "h5bp";
|
5
|
-
|
6
|
-
// hybrid method for reset using both a global reset as well as some normalize features
|
7
|
-
// @mixin base-hybrid
|
8
|
-
// @param $exclude {List} the list of features to exclude from the reset
|
9
|
-
@mixin base-hybrid($exclude: ()) {
|
10
|
-
$exclude: -compass-list($exclude);
|
11
|
-
// start with a reset
|
12
|
-
@if not index($exclude, reset) {
|
13
|
-
@include base-reset($exclude: $exclude);
|
14
|
-
}
|
15
|
-
|
16
|
-
// add in some good stuff from normalize
|
17
|
-
@if not index($exclude, normalize) {
|
18
|
-
@include base-normalize($exclude: join(normalize-html5 normalize-page normalize-typography normalize-quotes normalize-lists normalize-embeds normalize-figures normalize-tables normalize-ime, $exclude));
|
19
|
-
}
|
20
|
-
|
21
|
-
// and some boilerplate
|
22
|
-
@if not index($exclude, h5bp) {
|
23
|
-
@include base-h5bp($exclude: $exclude);
|
24
|
-
}
|
25
|
-
}
|
@@ -1,634 +0,0 @@
|
|
1
|
-
// normalize.css v2.1.2 | MIT License | git.io/normalize
|
2
|
-
|
3
|
-
// @category base
|
4
|
-
@mixin base-normalize-html5() {
|
5
|
-
/* ==========================================================================
|
6
|
-
HTML5 display definitions
|
7
|
-
========================================================================== */
|
8
|
-
|
9
|
-
/**
|
10
|
-
* Corrects `block` display not defined in IE 8/9.
|
11
|
-
*/
|
12
|
-
|
13
|
-
article,
|
14
|
-
aside,
|
15
|
-
details,
|
16
|
-
figcaption,
|
17
|
-
figure,
|
18
|
-
footer,
|
19
|
-
header,
|
20
|
-
hgroup,
|
21
|
-
main,
|
22
|
-
nav,
|
23
|
-
section,
|
24
|
-
summary {
|
25
|
-
display: block;
|
26
|
-
}
|
27
|
-
|
28
|
-
/**
|
29
|
-
* Corrects `inline-block` display not defined in IE 8/9.
|
30
|
-
*/
|
31
|
-
|
32
|
-
audio,
|
33
|
-
canvas,
|
34
|
-
video {
|
35
|
-
@include inline-block();
|
36
|
-
}
|
37
|
-
|
38
|
-
/**
|
39
|
-
* Prevents modern browsers from displaying `audio` without controls.
|
40
|
-
* Remove excess height in iOS 5 devices.
|
41
|
-
*/
|
42
|
-
|
43
|
-
audio:not([controls]) {
|
44
|
-
display: none;
|
45
|
-
height: 0;
|
46
|
-
}
|
47
|
-
|
48
|
-
/**
|
49
|
-
* Addresses styling for `hidden` attribute not present in IE 8/9.
|
50
|
-
* Hide the `template` element in IE, Safari, and Firefox < 22.
|
51
|
-
*/
|
52
|
-
|
53
|
-
[hidden],
|
54
|
-
template {
|
55
|
-
display: none;
|
56
|
-
}
|
57
|
-
}
|
58
|
-
|
59
|
-
@mixin base-normalize-text-adjust() {
|
60
|
-
/**
|
61
|
-
* 0. Corrects text resizing oddly in IE6/7 when body font-size is set using em units
|
62
|
-
* http://clagnut.com/blog/348/#c790
|
63
|
-
* 1. Sets default font family to sans-serif.
|
64
|
-
* 2. Prevents iOS text size adjust after orientation change, without disabling user zoom
|
65
|
-
* www.456bereastreet.com/archive/201012/controlling_text_size_in_safari_for_ios_without_disabling_user_zoom/
|
66
|
-
*/
|
67
|
-
html {
|
68
|
-
// legacy
|
69
|
-
@if $legacy-support-for-ie7 or $legacy-support-for-ie6 {
|
70
|
-
font-size: 100%; /* 0 */
|
71
|
-
}
|
72
|
-
font-family: sans-serif; /* 1 */
|
73
|
-
-ms-text-size-adjust: 100%; /* 2 */
|
74
|
-
-webkit-text-size-adjust: 100%; /* 2 */
|
75
|
-
}
|
76
|
-
|
77
|
-
}
|
78
|
-
|
79
|
-
@mixin base-normalize-page() {
|
80
|
-
/* =============================================================================
|
81
|
-
Base
|
82
|
-
========================================================================== */
|
83
|
-
|
84
|
-
/**
|
85
|
-
* Removes default margin.
|
86
|
-
*/
|
87
|
-
|
88
|
-
body {
|
89
|
-
margin: 0;
|
90
|
-
}
|
91
|
-
}
|
92
|
-
|
93
|
-
@mixin base-normalize-links() {
|
94
|
-
/* ==========================================================================
|
95
|
-
Links
|
96
|
-
========================================================================== */
|
97
|
-
|
98
|
-
// TODO: need to evaluate this change given the issue known issue with
|
99
|
-
// transparent background elements not gaining :focus state
|
100
|
-
// so disabling this change for now :(
|
101
|
-
// @see transparent-focusable
|
102
|
-
///**
|
103
|
-
// * Remove the gray background color from active links in IE 10.
|
104
|
-
// */
|
105
|
-
//
|
106
|
-
//a {
|
107
|
-
// background: transparent;
|
108
|
-
//}
|
109
|
-
|
110
|
-
/**
|
111
|
-
* Addresses `outline` inconsistency between Chrome and other browsers.
|
112
|
-
*/
|
113
|
-
|
114
|
-
a:focus {
|
115
|
-
outline: thin dotted;
|
116
|
-
}
|
117
|
-
|
118
|
-
/**
|
119
|
-
* Improves readability when focused and also mouse hovered in all browsers.
|
120
|
-
*/
|
121
|
-
|
122
|
-
a:active,
|
123
|
-
a:hover {
|
124
|
-
outline: 0;
|
125
|
-
}
|
126
|
-
}
|
127
|
-
|
128
|
-
@mixin base-normalize-typogrpahy-core() {
|
129
|
-
/**
|
130
|
-
* Corrects font family set oddly in Safari 5 and Chrome.
|
131
|
-
*/
|
132
|
-
|
133
|
-
code,
|
134
|
-
kbd,
|
135
|
-
pre,
|
136
|
-
samp {
|
137
|
-
font-family: monospace, serif;
|
138
|
-
font-size: 1em;
|
139
|
-
}
|
140
|
-
|
141
|
-
/**
|
142
|
-
* Improves readability of pre-formatted text in all browsers.
|
143
|
-
*/
|
144
|
-
|
145
|
-
pre {
|
146
|
-
white-space: pre;
|
147
|
-
white-space: pre-wrap;
|
148
|
-
word-wrap: break-word;
|
149
|
-
}
|
150
|
-
|
151
|
-
|
152
|
-
/**
|
153
|
-
* Addresses inconsistent and variable font size in all browsers.
|
154
|
-
*/
|
155
|
-
|
156
|
-
small {
|
157
|
-
font-size: 80%;
|
158
|
-
}
|
159
|
-
|
160
|
-
/**
|
161
|
-
* Prevents `sub` and `sup` affecting `line-height` in all browsers.
|
162
|
-
*/
|
163
|
-
|
164
|
-
sub,
|
165
|
-
sup {
|
166
|
-
font-size: 75%;
|
167
|
-
line-height: 0;
|
168
|
-
position: relative;
|
169
|
-
vertical-align: baseline;
|
170
|
-
}
|
171
|
-
|
172
|
-
sup {
|
173
|
-
top: -0.5em;
|
174
|
-
}
|
175
|
-
|
176
|
-
sub {
|
177
|
-
bottom: -0.25em;
|
178
|
-
}
|
179
|
-
}
|
180
|
-
|
181
|
-
@mixin base-normalize-typography() {
|
182
|
-
/* =============================================================================
|
183
|
-
Typography
|
184
|
-
========================================================================== */
|
185
|
-
|
186
|
-
/**
|
187
|
-
* Addresses font sizes and margins set differently in IE6/7
|
188
|
-
* Addresses font sizes within 'section' and 'article' in FF4+, Chrome, S5
|
189
|
-
*/
|
190
|
-
|
191
|
-
h1 {
|
192
|
-
font-size: 2em;
|
193
|
-
margin: 0.67em 0;
|
194
|
-
}
|
195
|
-
|
196
|
-
h2 {
|
197
|
-
font-size: 1.5em;
|
198
|
-
margin: 0.83em 0;
|
199
|
-
}
|
200
|
-
|
201
|
-
h3 {
|
202
|
-
font-size: 1.17em;
|
203
|
-
margin: 1em 0;
|
204
|
-
}
|
205
|
-
|
206
|
-
h4 {
|
207
|
-
font-size: 1em;
|
208
|
-
margin: 1.33em 0;
|
209
|
-
}
|
210
|
-
|
211
|
-
h5 {
|
212
|
-
font-size: 0.83em;
|
213
|
-
margin: 1.67em 0;
|
214
|
-
}
|
215
|
-
|
216
|
-
h6 {
|
217
|
-
font-size: 0.75em;
|
218
|
-
margin: 2.33em 0;
|
219
|
-
}
|
220
|
-
|
221
|
-
/**
|
222
|
-
* Addresses styling not present in IE 8/9, Safari 5, and Chrome.
|
223
|
-
*/
|
224
|
-
|
225
|
-
abbr[title] {
|
226
|
-
border-bottom: 1px dotted;
|
227
|
-
}
|
228
|
-
|
229
|
-
/**
|
230
|
-
* Addresses style set to `bolder` in Firefox 4+, Safari 5, and Chrome.
|
231
|
-
*/
|
232
|
-
|
233
|
-
b,
|
234
|
-
strong {
|
235
|
-
font-weight: bold;
|
236
|
-
}
|
237
|
-
|
238
|
-
/**
|
239
|
-
* Addresses styling not present in Safari 5 and Chrome.
|
240
|
-
*/
|
241
|
-
|
242
|
-
dfn {
|
243
|
-
font-style: italic;
|
244
|
-
}
|
245
|
-
|
246
|
-
/**
|
247
|
-
* Address differences between Firefox and other browsers.
|
248
|
-
*/
|
249
|
-
|
250
|
-
hr {
|
251
|
-
-moz-box-sizing: content-box;
|
252
|
-
box-sizing: content-box;
|
253
|
-
height: 0;
|
254
|
-
}
|
255
|
-
|
256
|
-
|
257
|
-
/**
|
258
|
-
* Addresses styling not present in IE 8/9.
|
259
|
-
*/
|
260
|
-
|
261
|
-
mark {
|
262
|
-
background: #ff0;
|
263
|
-
color: #000;
|
264
|
-
}
|
265
|
-
|
266
|
-
blockquote {
|
267
|
-
margin: 1em 40px;
|
268
|
-
}
|
269
|
-
|
270
|
-
/**
|
271
|
-
* Addresses margins set differently in IE6/7
|
272
|
-
*/
|
273
|
-
|
274
|
-
p,
|
275
|
-
pre {
|
276
|
-
margin: 1em 0;
|
277
|
-
}
|
278
|
-
}
|
279
|
-
|
280
|
-
@mixin base-normalize-quotes() {
|
281
|
-
/**
|
282
|
-
* Sets consistent quote types.
|
283
|
-
*/
|
284
|
-
q {
|
285
|
-
quotes: "\201C" "\201D" "\2018" "\2019";
|
286
|
-
}
|
287
|
-
}
|
288
|
-
|
289
|
-
@mixin base-normalize-lists() {
|
290
|
-
// legacy
|
291
|
-
@if $legacy-support-for-ie7 or $legacy-support-for-ie6 {
|
292
|
-
/* =============================================================================
|
293
|
-
Lists
|
294
|
-
========================================================================== */
|
295
|
-
|
296
|
-
/**
|
297
|
-
* Addresses margins set differently in IE6/7
|
298
|
-
*/
|
299
|
-
|
300
|
-
dl,
|
301
|
-
menu,
|
302
|
-
ol,
|
303
|
-
ul {
|
304
|
-
margin: 1em 0;
|
305
|
-
}
|
306
|
-
|
307
|
-
dd {
|
308
|
-
margin: 0 0 0 40px;
|
309
|
-
}
|
310
|
-
|
311
|
-
/**
|
312
|
-
* Addresses paddings set differently in IE6/7
|
313
|
-
*/
|
314
|
-
|
315
|
-
menu,
|
316
|
-
ol,
|
317
|
-
ul {
|
318
|
-
padding: 0 0 0 40px;
|
319
|
-
}
|
320
|
-
|
321
|
-
/**
|
322
|
-
* Corrects list images handled incorrectly in IE7
|
323
|
-
*/
|
324
|
-
|
325
|
-
nav ul,
|
326
|
-
nav ol {
|
327
|
-
list-style: none;
|
328
|
-
list-style-image: none;
|
329
|
-
}
|
330
|
-
}
|
331
|
-
}
|
332
|
-
|
333
|
-
@mixin base-normalize-image() {
|
334
|
-
/**
|
335
|
-
* 1. Removes border when inside 'a' element in IE6/7/8/9, FF3
|
336
|
-
* 2. Improves image quality when scaled in IE7
|
337
|
-
* code.flickr.com/blog/2008/11/12/on-ui-quality-the-little-things-client-side-image-resizing/
|
338
|
-
*/
|
339
|
-
|
340
|
-
img {
|
341
|
-
border: 0; /* 1 */
|
342
|
-
// legacy
|
343
|
-
@if $legacy-support-for-ie7 or $legacy-support-for-ie6 {
|
344
|
-
-ms-interpolation-mode: bicubic; /* 2 */
|
345
|
-
}
|
346
|
-
}
|
347
|
-
}
|
348
|
-
|
349
|
-
@mixin base-normalize-embed() {
|
350
|
-
/* =============================================================================
|
351
|
-
Embedded content
|
352
|
-
========================================================================== */
|
353
|
-
@include base-normalize-image();
|
354
|
-
|
355
|
-
/**
|
356
|
-
* Corrects overflow displayed oddly in IE9
|
357
|
-
*/
|
358
|
-
|
359
|
-
svg:not(:root) {
|
360
|
-
overflow: hidden;
|
361
|
-
}
|
362
|
-
}
|
363
|
-
|
364
|
-
@mixin base-normalize-figures() {
|
365
|
-
/* =============================================================================
|
366
|
-
Figures
|
367
|
-
========================================================================== */
|
368
|
-
|
369
|
-
/**
|
370
|
-
* Addresses margin not present in IE6/7/8/9, S5, O11
|
371
|
-
*/
|
372
|
-
|
373
|
-
figure {
|
374
|
-
margin: 0;
|
375
|
-
}
|
376
|
-
}
|
377
|
-
|
378
|
-
@mixin base-normalize-fieldset() {
|
379
|
-
/**
|
380
|
-
* Define consistent border, margin, and padding.
|
381
|
-
*/
|
382
|
-
|
383
|
-
fieldset {
|
384
|
-
border: 1px solid #c0c0c0;
|
385
|
-
margin: 0 2px;
|
386
|
-
padding: 0.35em 0.625em 0.75em;
|
387
|
-
}
|
388
|
-
}
|
389
|
-
|
390
|
-
@mixin base-normalize-forms() {
|
391
|
-
/* =============================================================================
|
392
|
-
Forms
|
393
|
-
========================================================================== */
|
394
|
-
|
395
|
-
/**
|
396
|
-
* Corrects margin displayed oddly in IE6/7
|
397
|
-
*/
|
398
|
-
|
399
|
-
form {
|
400
|
-
margin: 0;
|
401
|
-
}
|
402
|
-
|
403
|
-
/**
|
404
|
-
* 1. Corrects color not being inherited in IE6/7/8/9
|
405
|
-
* 2. Corrects text not wrapping in FF3
|
406
|
-
* 3. Corrects alignment displayed oddly in IE6/7
|
407
|
-
*/
|
408
|
-
|
409
|
-
legend {
|
410
|
-
border: 0; /* 1 */
|
411
|
-
padding: 0;
|
412
|
-
white-space: normal; /* 2 */
|
413
|
-
// legacy
|
414
|
-
@if $legacy-support-for-ie7 or $legacy-support-for-ie6 {
|
415
|
-
*margin-left: -7px; /* 3 */
|
416
|
-
}
|
417
|
-
}
|
418
|
-
|
419
|
-
/**
|
420
|
-
* 1. Corrects font family not being inherited in all browsers.
|
421
|
-
* 2. Corrects font size not being inherited in all browsers.
|
422
|
-
* 3. Addresses margins set differently in Firefox 4+, Safari 5, and Chrome
|
423
|
-
* 4. Improves appearance and consistency in all browsers
|
424
|
-
*/
|
425
|
-
|
426
|
-
button,
|
427
|
-
input,
|
428
|
-
select,
|
429
|
-
textarea {
|
430
|
-
font-family: inherit; /* 1 */
|
431
|
-
font-size: 100%; /* 2 */
|
432
|
-
margin: 0; /* 3 */
|
433
|
-
vertical-align: baseline; /* 4 */
|
434
|
-
// legacy
|
435
|
-
@if $legacy-support-for-ie7 or $legacy-support-for-ie6 {
|
436
|
-
*vertical-align: middle; /* 4 */
|
437
|
-
}
|
438
|
-
}
|
439
|
-
|
440
|
-
/**
|
441
|
-
* Addresses FF3/4 setting line-height on 'input' using !important in the UA stylesheet
|
442
|
-
*/
|
443
|
-
|
444
|
-
button,
|
445
|
-
input {
|
446
|
-
line-height: normal; /* 1 */
|
447
|
-
}
|
448
|
-
|
449
|
-
/**
|
450
|
-
* Address inconsistent `text-transform` inheritance for `button` and `select`.
|
451
|
-
* All other form control elements do not inherit `text-transform` values.
|
452
|
-
* Correct `button` style inheritance in Chrome, Safari 5+, and IE 8+.
|
453
|
-
* Correct `select` style inheritance in Firefox 4+ and Opera.
|
454
|
-
*/
|
455
|
-
|
456
|
-
button,
|
457
|
-
select {
|
458
|
-
text-transform: none;
|
459
|
-
}
|
460
|
-
|
461
|
-
/**
|
462
|
-
* 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
|
463
|
-
* and `video` controls.
|
464
|
-
* 2. Correct inability to style clickable `input` types in iOS.
|
465
|
-
* 3. Improve usability and consistency of cursor style between image-type
|
466
|
-
* `input` and others.
|
467
|
-
* 4. Removes inner spacing in IE7 without affecting normal text inputs
|
468
|
-
*/
|
469
|
-
|
470
|
-
button,
|
471
|
-
html input[type="button"], /* 1 */
|
472
|
-
input[type="reset"],
|
473
|
-
input[type="submit"] {
|
474
|
-
-webkit-appearance: button; /* 2 */
|
475
|
-
cursor: pointer; /* 3 */
|
476
|
-
// legacy
|
477
|
-
@if $legacy-support-for-ie7 or $legacy-support-for-ie6 {
|
478
|
-
*overflow: visible; /* 4 */
|
479
|
-
}
|
480
|
-
}
|
481
|
-
|
482
|
-
/**
|
483
|
-
* Re-set default cursor for disabled elements.
|
484
|
-
*/
|
485
|
-
|
486
|
-
button[disabled],
|
487
|
-
html input[disabled] {
|
488
|
-
cursor: default;
|
489
|
-
}
|
490
|
-
|
491
|
-
/**
|
492
|
-
* 1. Addresses box sizing set to `content-box` in IE 8/9.
|
493
|
-
* 2. Removes excess padding in IE 8/9.
|
494
|
-
* 3. Removes excess padding in IE7
|
495
|
-
Known issue: excess padding remains in IE6
|
496
|
-
*/
|
497
|
-
|
498
|
-
input[type="checkbox"],
|
499
|
-
input[type="radio"] {
|
500
|
-
box-sizing: border-box; /* 1 */
|
501
|
-
padding: 0; /* 2 */
|
502
|
-
// legacy
|
503
|
-
@if $legacy-support-for-ie7 or $legacy-support-for-ie6 {
|
504
|
-
*height: 13px; /* 3 */
|
505
|
-
*width: 13px; /* 3 */
|
506
|
-
}
|
507
|
-
}
|
508
|
-
|
509
|
-
/**
|
510
|
-
* 1. Addresses `appearance` set to `searchfield` in Safari 5 and Chrome.
|
511
|
-
* 2. Addresses `box-sizing` set to `border-box` in Safari 5 and Chrome
|
512
|
-
* (include `-moz` to future-proof).
|
513
|
-
*/
|
514
|
-
|
515
|
-
input[type="search"] {
|
516
|
-
-webkit-appearance: textfield; /* 1 */
|
517
|
-
-moz-box-sizing: content-box;
|
518
|
-
-webkit-box-sizing: content-box; /* 2 */
|
519
|
-
box-sizing: content-box;
|
520
|
-
}
|
521
|
-
|
522
|
-
|
523
|
-
/**
|
524
|
-
* Removes inner padding and search cancel button in Safari 5 and Chrome
|
525
|
-
* on OS X.
|
526
|
-
*/
|
527
|
-
|
528
|
-
input[type="search"]::-webkit-search-cancel-button,
|
529
|
-
input[type="search"]::-webkit-search-decoration {
|
530
|
-
-webkit-appearance: none;
|
531
|
-
}
|
532
|
-
|
533
|
-
|
534
|
-
/**
|
535
|
-
* Removes inner padding and border in Firefox 4+.
|
536
|
-
*/
|
537
|
-
|
538
|
-
button::-moz-focus-inner,
|
539
|
-
input::-moz-focus-inner {
|
540
|
-
border: 0;
|
541
|
-
padding: 0;
|
542
|
-
}
|
543
|
-
|
544
|
-
/**
|
545
|
-
* 1. Removes default vertical scrollbar in IE6/7/8/9
|
546
|
-
* 2. Improves readability and alignment in all browsers
|
547
|
-
*/
|
548
|
-
|
549
|
-
textarea {
|
550
|
-
overflow: auto; /* 1 */
|
551
|
-
vertical-align: top; /* 2 */
|
552
|
-
}
|
553
|
-
|
554
|
-
}
|
555
|
-
|
556
|
-
@mixin base-normalize-ime() {
|
557
|
-
/* =============================================================================
|
558
|
-
IME mode
|
559
|
-
========================================================================== */
|
560
|
-
input[data-ime-mode-disabled],
|
561
|
-
input[type=file] {
|
562
|
-
ime-mode: disabled !important;
|
563
|
-
}
|
564
|
-
}
|
565
|
-
|
566
|
-
@mixin base-normalize-table() {
|
567
|
-
/* ==========================================================================
|
568
|
-
Tables
|
569
|
-
========================================================================== */
|
570
|
-
|
571
|
-
/**
|
572
|
-
* Remove most spacing between table cells.
|
573
|
-
*/
|
574
|
-
|
575
|
-
table {
|
576
|
-
border-collapse: collapse;
|
577
|
-
border-spacing: 0;
|
578
|
-
}
|
579
|
-
}
|
580
|
-
|
581
|
-
// -------------------------
|
582
|
-
// base-normalize() provides the main entry point to incorporate the behaviors of normalize.css onto the page.
|
583
|
-
// @mixin base-normalize
|
584
|
-
// @param $exclude {List} the list of features to exclude from the reset
|
585
|
-
// @link http://github.com/necolas/normalize.css
|
586
|
-
@mixin base-normalize($exclude: ()) {
|
587
|
-
/*! normalize.css v2.1.2 | MIT License | git.io/normalize */
|
588
|
-
$exclude: -compass-list($exclude);
|
589
|
-
@if(not index($exclude, normalize-html5)) {
|
590
|
-
@include base-normalize-html5();
|
591
|
-
}
|
592
|
-
@if(not index($exclude, normalize-text-adjust)) {
|
593
|
-
@include base-normalize-text-adjust();
|
594
|
-
}
|
595
|
-
@if(not index($exclude, normalize-page)) {
|
596
|
-
@include base-normalize-page();
|
597
|
-
}
|
598
|
-
@if(not index($exclude, normalize-links)) {
|
599
|
-
@include base-normalize-links();
|
600
|
-
}
|
601
|
-
@if(not index($exclude, normalize-typography)) {
|
602
|
-
@include base-normalize-typography();
|
603
|
-
}
|
604
|
-
@if(not index($exclude, normalize-typography-core)) {
|
605
|
-
@include base-normalize-typogrpahy-core();
|
606
|
-
}
|
607
|
-
@if(not index($exclude, normalize-quotes)) {
|
608
|
-
@include base-normalize-quotes();
|
609
|
-
}
|
610
|
-
@if(not index($exclude, normalize-lists)) {
|
611
|
-
@include base-normalize-lists();
|
612
|
-
}
|
613
|
-
@if(not index($exclude, normalize-image)) {
|
614
|
-
@include base-normalize-image();
|
615
|
-
}
|
616
|
-
@if(not index($exclude, normalize-embeds)) {
|
617
|
-
@include base-normalize-embed();
|
618
|
-
}
|
619
|
-
@if(not index($exclude, normalize-figures)) {
|
620
|
-
@include base-normalize-figures();
|
621
|
-
}
|
622
|
-
@if(not index($exclude, normalize-forms)) {
|
623
|
-
@include base-normalize-forms();
|
624
|
-
}
|
625
|
-
@if(not index($exclude, normalize-fieldset)) {
|
626
|
-
@include base-normalize-fieldset();
|
627
|
-
}
|
628
|
-
@if(not index($exclude, normalize-tables)) {
|
629
|
-
@include base-normalize-table();
|
630
|
-
}
|
631
|
-
@if(not index($exclude, normalize-ime)) {
|
632
|
-
@include base-normalize-ime();
|
633
|
-
}
|
634
|
-
}
|