archetype 0.0.1.pre.13 → 1.0.0.alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
// ==========
|
|
2
|
-
// FLYOUT MENUS
|
|
3
|
-
// ==========
|
|
4
|
-
$STYLEGUIDE_FLYOUTS_ID: flyout !default;
|
|
5
|
-
$STYLEGUIDE_FLYOUTS: () !default;
|
|
6
|
-
|
|
7
|
-
@if not styleguide-component-exists($STYLEGUIDE_FLYOUTS_ID, $CONFIG_THEME) {
|
|
8
|
-
$a-blackhole: styleguide-add-component($STYLEGUIDE_FLYOUTS_ID, $STYLEGUIDE_FLYOUTS, (
|
|
9
|
-
(default, (
|
|
10
|
-
display none, // hidden by default (use `visible flyout` if you want it shown by default)
|
|
11
|
-
position absolute, // position!
|
|
12
|
-
top 100%, // align it to the bottom of the context
|
|
13
|
-
left 0, // align left
|
|
14
|
-
z-index 1,
|
|
15
|
-
border ($CONFIG_DIM_GENERIC_BORDER solid nth($CONFIG_COLOR_BORDER_FLYOUT,1)),
|
|
16
|
-
background nth($CONFIG_TEXTURE_CONTAINER, 1),
|
|
17
|
-
box-shadow $CONFIG_SHADOW_FLYOUT,
|
|
18
|
-
padding $CONFIG_DIM_FLYOUT_SPACING,
|
|
19
|
-
min-width $CONFIG_DIM_FLYOUT_MIN_WIDTH,
|
|
20
|
-
cursor default,
|
|
21
|
-
float left,
|
|
22
|
-
list-style none // just incase its a list
|
|
23
|
-
)),
|
|
24
|
-
(visible, (
|
|
25
|
-
display block,
|
|
26
|
-
nil
|
|
27
|
-
)),
|
|
28
|
-
(in-button, (
|
|
29
|
-
// restore some things used for buttons
|
|
30
|
-
font-weight normal,
|
|
31
|
-
white-space normal,
|
|
32
|
-
text-shadow none,
|
|
33
|
-
// no box-shadow
|
|
34
|
-
box-shadow nil,
|
|
35
|
-
// thick borders!
|
|
36
|
-
border-width $CONFIG_DIM_GENERIC_BORDER_THICK,
|
|
37
|
-
border-radius $CONFIG_DIM_FLYOUT_RADIUS
|
|
38
|
-
)),
|
|
39
|
-
(in-button-group, (
|
|
40
|
-
inherit (in-button),
|
|
41
|
-
nil
|
|
42
|
-
)),
|
|
43
|
-
(upward, (
|
|
44
|
-
top nil,
|
|
45
|
-
bottom 100%
|
|
46
|
-
)),
|
|
47
|
-
(right aligned, (
|
|
48
|
-
left nil,
|
|
49
|
-
right 0
|
|
50
|
-
))
|
|
51
|
-
), $CONFIG_THEME);
|
|
52
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
// ==========
|
|
2
|
-
// HEADINGS
|
|
3
|
-
// ==========
|
|
4
|
-
$STYLEGUIDE_HEADINGS_ID: heading !default;
|
|
5
|
-
$STYLEGUIDE_HEADINGS: () !default;
|
|
6
|
-
|
|
7
|
-
@if not styleguide-component-exists($STYLEGUIDE_HEADINGS_ID, $CONFIG_THEME) {
|
|
8
|
-
$a-blackhole: styleguide-add-component($STYLEGUIDE_HEADINGS_ID, $STYLEGUIDE_HEADINGS, (
|
|
9
|
-
(default, (
|
|
10
|
-
nil
|
|
11
|
-
)),
|
|
12
|
-
(in-flyout in-in-button-group, (
|
|
13
|
-
margin $CONFIG_DIM_HEADING_SPACING_OUTER,
|
|
14
|
-
padding $CONFIG_DIM_HEADING_SPACING,
|
|
15
|
-
background-color $CONFIG_TEXTURE_HEADING,
|
|
16
|
-
border ($CONFIG_DIM_GENERIC_BORDER solid nth($CONFIG_COLOR_BORDER_SECTION,1)),
|
|
17
|
-
border-width ($CONFIG_DIM_GENERIC_BORDER 0),
|
|
18
|
-
color nth($CONFIG_COLOR_COPY_MUTED, 1)
|
|
19
|
-
)),
|
|
20
|
-
(first in-flyout in-in-button-group, (
|
|
21
|
-
margin-top 0,
|
|
22
|
-
border-top-width 0
|
|
23
|
-
)),
|
|
24
|
-
(in-flyout in-in-button, (
|
|
25
|
-
inherit (in-flyout in-in-button-group),
|
|
26
|
-
nil
|
|
27
|
-
)),
|
|
28
|
-
(first in-flyout in-in-button, (
|
|
29
|
-
inherit (first in-flyout in-in-button-group),
|
|
30
|
-
nil
|
|
31
|
-
))
|
|
32
|
-
), $CONFIG_THEME);
|
|
33
|
-
}
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
// ==========
|
|
2
|
-
// HEADLINES
|
|
3
|
-
// ==========
|
|
4
|
-
$STYLEGUIDE_HEADLINES_ID: headline !default;
|
|
5
|
-
$STYLEGUIDE_HEADLINES: () !default;
|
|
6
|
-
|
|
7
|
-
@if not styleguide-component-exists($STYLEGUIDE_HEADLINES_ID, $CONFIG_THEME) {
|
|
8
|
-
$a-blackhole: styleguide-add-component($STYLEGUIDE_HEADLINES_ID, $STYLEGUIDE_HEADLINES, (
|
|
9
|
-
(default, (
|
|
10
|
-
font-family headline,
|
|
11
|
-
font-size nth($CONFIG_FONT_HEADLINE_LARGE, 1),
|
|
12
|
-
font-weight bold,
|
|
13
|
-
line-height nth-cyclic($CONFIG_FONT_HEADLINE_LARGE, 2),
|
|
14
|
-
color nth($CONFIG_COLOR_STRONG, 1)
|
|
15
|
-
)),
|
|
16
|
-
(muted, (
|
|
17
|
-
font-weight normal,
|
|
18
|
-
nil
|
|
19
|
-
)),
|
|
20
|
-
(xlarge, (
|
|
21
|
-
font-size nth($CONFIG_FONT_HEADLINE_XLARGE, 1),
|
|
22
|
-
line-height nth-cyclic($CONFIG_FONT_HEADLINE_XLARGE, 2)
|
|
23
|
-
)),
|
|
24
|
-
(xxlarge, (
|
|
25
|
-
font-size nth($CONFIG_FONT_HEADLINE_XXLARGE, 1),
|
|
26
|
-
line-height nth-cyclic($CONFIG_FONT_HEADLINE_XXLARGE, 2)
|
|
27
|
-
)),
|
|
28
|
-
(large, (
|
|
29
|
-
nil
|
|
30
|
-
)),
|
|
31
|
-
(medium, (
|
|
32
|
-
font-size nth($CONFIG_FONT_HEADLINE_MEDIUM, 1),
|
|
33
|
-
line-height nth-cyclic($CONFIG_FONT_HEADLINE_MEDIUM, 2)
|
|
34
|
-
)),
|
|
35
|
-
(small, (
|
|
36
|
-
font-size nth($CONFIG_FONT_HEADLINE_SMALL, 1),
|
|
37
|
-
line-height nth-cyclic($CONFIG_FONT_HEADLINE_SMALL, 2)
|
|
38
|
-
)),
|
|
39
|
-
(xsmall, (
|
|
40
|
-
font-size nth($CONFIG_FONT_HEADLINE_XSMALL, 1),
|
|
41
|
-
line-height nth-cyclic($CONFIG_FONT_HEADLINE_XSMALL, 2)
|
|
42
|
-
)),
|
|
43
|
-
(in-dark, (
|
|
44
|
-
color nth-cyclic($CONFIG_COLOR_STRONG, 2),
|
|
45
|
-
nil
|
|
46
|
-
)),
|
|
47
|
-
(in-bristol, (
|
|
48
|
-
inherit (in-dark),
|
|
49
|
-
nil
|
|
50
|
-
)),
|
|
51
|
-
(in-tooltip, (
|
|
52
|
-
inherit (in-dark),
|
|
53
|
-
nil
|
|
54
|
-
)),
|
|
55
|
-
(in-alert, (
|
|
56
|
-
inherit (in-dark),
|
|
57
|
-
nil
|
|
58
|
-
)),
|
|
59
|
-
(in-punchcut, (
|
|
60
|
-
inherit (in-dark),
|
|
61
|
-
text-shadow nth-cyclic($CONFIG_SHADOW_COPY, 2)
|
|
62
|
-
))
|
|
63
|
-
), $CONFIG_THEME);
|
|
64
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
// ==========
|
|
2
|
-
// HOVERCARDS
|
|
3
|
-
// ==========
|
|
4
|
-
$STYLEGUIDE_HOVERCARDS_ID: hovercard !default;
|
|
5
|
-
$STYLEGUIDE_HOVERCARDS: () !default;
|
|
6
|
-
|
|
7
|
-
@if not styleguide-component-exists($STYLEGUIDE_HOVERCARDS_ID, $CONFIG_THEME) {
|
|
8
|
-
$a-blackhole: styleguide-add-component($STYLEGUIDE_HOVERCARDS_ID, $STYLEGUIDE_HOVERCARDS, (
|
|
9
|
-
(default, (
|
|
10
|
-
border-radius $CONFIG_DIM_HOVERCARD_RADIUS,
|
|
11
|
-
background nth($CONFIG_TEXTURE_CONTAINER, 1),
|
|
12
|
-
border-color nth($CONFIG_COLOR_BORDER_HOVERCARD, 1),
|
|
13
|
-
border-style solid,
|
|
14
|
-
border-width $CONFIG_DIM_GENERIC_BORDER,
|
|
15
|
-
box-shadow $CONFIG_SHADOW_HOVERCARD,
|
|
16
|
-
max-width $CONFIG_DIM_HOVERCARD_MAX_WIDTH,
|
|
17
|
-
padding $CONFIG_DIM_HOVERCARD_SPACING,
|
|
18
|
-
// structure
|
|
19
|
-
outline 0, // for accessibility purposes, we don't want to outline the hovercard if it has focus
|
|
20
|
-
display block,
|
|
21
|
-
position absolute,
|
|
22
|
-
visibility visible,
|
|
23
|
-
z-index 1
|
|
24
|
-
)),
|
|
25
|
-
nil
|
|
26
|
-
), $CONFIG_THEME);
|
|
27
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
// ==========
|
|
2
|
-
// ICONS
|
|
3
|
-
// ==========
|
|
4
|
-
$STYLEGUIDE_ICONS_ID: icon !default;
|
|
5
|
-
$STYLEGUIDE_ICONS: () !default;
|
|
6
|
-
|
|
7
|
-
@if not styleguide-component-exists($STYLEGUIDE_ICONS_ID, $CONFIG_THEME) {
|
|
8
|
-
$a-blackhole: styleguide-add-component($STYLEGUIDE_ICONS_ID, $STYLEGUIDE_ICONS, (
|
|
9
|
-
(default, (
|
|
10
|
-
inline-block true,
|
|
11
|
-
hide-text true,
|
|
12
|
-
content $CONTENT_PLACEHOLDER,
|
|
13
|
-
background (none no-repeat scroll 0 0 transparent)
|
|
14
|
-
)),
|
|
15
|
-
nil
|
|
16
|
-
), $CONFIG_THEME);
|
|
17
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
// ==========
|
|
2
|
-
// IDENTITIES
|
|
3
|
-
// ==========
|
|
4
|
-
$STYLEGUIDE_IDENTITY_ID: identity !default;
|
|
5
|
-
$STYLEGUIDE_IDENTITY: () !default;
|
|
6
|
-
|
|
7
|
-
@if not styleguide-component-exists($STYLEGUIDE_IDENTITY_ID, $CONFIG_THEME) {
|
|
8
|
-
$a-blackhole: styleguide-add-component($STYLEGUIDE_IDENTITY_ID, $STYLEGUIDE_IDENTITY, (
|
|
9
|
-
(default, (
|
|
10
|
-
color nth($CONFIG_COLOR_BRAND, 1),
|
|
11
|
-
font-weight bold,
|
|
12
|
-
text-decoration nth($CONFIG_DECORATION_IDENTITY, 1),
|
|
13
|
-
(states, (
|
|
14
|
-
(hover, (
|
|
15
|
-
text-decoration nth-cyclic($CONFIG_DECORATION_IDENTITY, 2),
|
|
16
|
-
nil
|
|
17
|
-
)),
|
|
18
|
-
nil
|
|
19
|
-
))
|
|
20
|
-
)),
|
|
21
|
-
(in-dark, (
|
|
22
|
-
color nth-cyclic($CONFIG_COLOR_BRAND, 2),
|
|
23
|
-
nil
|
|
24
|
-
)),
|
|
25
|
-
(in-punchcut, (
|
|
26
|
-
inherit (in-dark),
|
|
27
|
-
nil
|
|
28
|
-
)),
|
|
29
|
-
(in-bristol, (
|
|
30
|
-
inherit (in-dark),
|
|
31
|
-
nil
|
|
32
|
-
))
|
|
33
|
-
), $CONFIG_THEME);
|
|
34
|
-
}
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
// ==========
|
|
2
|
-
// LINKS
|
|
3
|
-
// ==========
|
|
4
|
-
$STYLEGUIDE_LINKS_ID: link !default;
|
|
5
|
-
$STYLEGUIDE_LINKS: () !default;
|
|
6
|
-
|
|
7
|
-
@if not styleguide-component-exists($STYLEGUIDE_LINKS_ID, $CONFIG_THEME) {
|
|
8
|
-
$a-blackhole: styleguide-add-component($STYLEGUIDE_LINKS_ID, $STYLEGUIDE_LINKS, (
|
|
9
|
-
(default, (
|
|
10
|
-
color nth($CONFIG_COLOR_BRAND, 1),
|
|
11
|
-
text-decoration nth($CONFIG_DECORATION_LINK, 1),
|
|
12
|
-
(states, (
|
|
13
|
-
(hover, (
|
|
14
|
-
text-decoration nth-cyclic($CONFIG_DECORATION_LINK, 2),
|
|
15
|
-
nil
|
|
16
|
-
)),
|
|
17
|
-
nil
|
|
18
|
-
))
|
|
19
|
-
)),
|
|
20
|
-
(without-underline, (
|
|
21
|
-
(states, (
|
|
22
|
-
(hover, (
|
|
23
|
-
text-decoration none,
|
|
24
|
-
nil
|
|
25
|
-
)),
|
|
26
|
-
nil
|
|
27
|
-
)),
|
|
28
|
-
nil
|
|
29
|
-
)),
|
|
30
|
-
(in-dark, (
|
|
31
|
-
color nth-cyclic($CONFIG_COLOR_BRAND, 2),
|
|
32
|
-
nil
|
|
33
|
-
)),
|
|
34
|
-
(in-punchcut, (
|
|
35
|
-
inherit (in-dark),
|
|
36
|
-
nil
|
|
37
|
-
)),
|
|
38
|
-
(in-bristol, (
|
|
39
|
-
inherit (in-dark),
|
|
40
|
-
nil
|
|
41
|
-
)),
|
|
42
|
-
(in-alert, (
|
|
43
|
-
color nth-cyclic($CONFIG_COLOR_COPY, 2),
|
|
44
|
-
font-weight bold,
|
|
45
|
-
(states, (
|
|
46
|
-
(hover, (
|
|
47
|
-
color nil,
|
|
48
|
-
nil
|
|
49
|
-
)),
|
|
50
|
-
nil
|
|
51
|
-
))
|
|
52
|
-
)),
|
|
53
|
-
(muted, (
|
|
54
|
-
// de-emphasized links have no color until you hover over them
|
|
55
|
-
color nil,
|
|
56
|
-
(states, (
|
|
57
|
-
(hover, (
|
|
58
|
-
color nth($CONFIG_COLOR_BRAND, 1),
|
|
59
|
-
cursor pointer,
|
|
60
|
-
target-browser (ie, cursor, hand),
|
|
61
|
-
text-decoration none
|
|
62
|
-
)),
|
|
63
|
-
nil
|
|
64
|
-
))
|
|
65
|
-
)),
|
|
66
|
-
nil
|
|
67
|
-
), $CONFIG_THEME);
|
|
68
|
-
}
|
|
@@ -1,154 +0,0 @@
|
|
|
1
|
-
// ==========
|
|
2
|
-
// LOADERS
|
|
3
|
-
// ==========
|
|
4
|
-
$STYLEGUIDE_LOADERS_ID: loader !default;
|
|
5
|
-
$STYLEGUIDE_LOADERS: () !default;
|
|
6
|
-
|
|
7
|
-
@if not styleguide-component-exists($STYLEGUIDE_LOADERS_ID, $CONFIG_THEME) {
|
|
8
|
-
$a-blackhole: styleguide-add-component($STYLEGUIDE_LOADERS_ID, $STYLEGUIDE_LOADERS, (
|
|
9
|
-
(default, (
|
|
10
|
-
display block,
|
|
11
|
-
content $CONTENT_PLACEHOLDER,
|
|
12
|
-
stretch true,
|
|
13
|
-
opacity 0.7,
|
|
14
|
-
overflow hidden,
|
|
15
|
-
hide-text true,
|
|
16
|
-
background-color _styleguideGetContextColor(nth($CONFIG_TEXTURE_CONTAINER, 1)),
|
|
17
|
-
ie-pseudo-after _styleguideGetLoaderExpression(medium),
|
|
18
|
-
(selectors, (
|
|
19
|
-
("&:after", (
|
|
20
|
-
position absolute,
|
|
21
|
-
top 50%,
|
|
22
|
-
left 50%,
|
|
23
|
-
content $CONTENT_PLACEHOLDER,
|
|
24
|
-
background-image styleguide-sprite-url($CONFIG_SPRITE_LOADERS),
|
|
25
|
-
background-repeat no-repeat,
|
|
26
|
-
background-position _styleguideGetLoaderPosition(medium, static),
|
|
27
|
-
width _styleguideGetLoaderDimension(medium, static, width),
|
|
28
|
-
height _styleguideGetLoaderDimension(medium, static, height),
|
|
29
|
-
margin-top _styleguideGetLoaderDimension(medium, static, height) / -2,
|
|
30
|
-
margin-left _styleguideGetLoaderDimension(medium, static, width) / -2,
|
|
31
|
-
animation _styleguideGetLoaderAnimation(medium)
|
|
32
|
-
)),
|
|
33
|
-
nil
|
|
34
|
-
))
|
|
35
|
-
)),
|
|
36
|
-
// sizes
|
|
37
|
-
(large, (
|
|
38
|
-
ie-pseudo-after _styleguideGetLoaderExpression(large),
|
|
39
|
-
(selectors, (
|
|
40
|
-
("&:after", (
|
|
41
|
-
background-position _styleguideGetLoaderPosition(large, static),
|
|
42
|
-
width _styleguideGetLoaderDimension(large, static, width),
|
|
43
|
-
height _styleguideGetLoaderDimension(large, static, height),
|
|
44
|
-
margin-top _styleguideGetLoaderDimension(large, static, height) / -2,
|
|
45
|
-
margin-left _styleguideGetLoaderDimension(large, static, width) / -2,
|
|
46
|
-
animation _styleguideGetLoaderAnimation(large)
|
|
47
|
-
)),
|
|
48
|
-
nil
|
|
49
|
-
))
|
|
50
|
-
// expression hack
|
|
51
|
-
)),
|
|
52
|
-
(small, (
|
|
53
|
-
ie-pseudo-after _styleguideGetLoaderExpression(small),
|
|
54
|
-
(selectors, (
|
|
55
|
-
("&:after", (
|
|
56
|
-
background-position _styleguideGetLoaderPosition(small, static),
|
|
57
|
-
width _styleguideGetLoaderDimension(small, static, width),
|
|
58
|
-
height _styleguideGetLoaderDimension(small, static, height),
|
|
59
|
-
margin-top _styleguideGetLoaderDimension(small, static, height) / -2,
|
|
60
|
-
margin-left _styleguideGetLoaderDimension(small, static, width) / -2,
|
|
61
|
-
animation _styleguideGetLoaderAnimation(small)
|
|
62
|
-
)),
|
|
63
|
-
nil
|
|
64
|
-
))
|
|
65
|
-
// expression hack
|
|
66
|
-
)),
|
|
67
|
-
// contexts
|
|
68
|
-
(in-dark, (
|
|
69
|
-
ie-pseudo-after _styleguideGetLoaderExpression(medium, 2),
|
|
70
|
-
(selectors, (
|
|
71
|
-
("&:after", (
|
|
72
|
-
background-position _styleguideGetLoaderPosition(medium, static, 2),
|
|
73
|
-
width _styleguideGetLoaderDimension(medium, static, width, 2),
|
|
74
|
-
height _styleguideGetLoaderDimension(medium, static, height, 2),
|
|
75
|
-
margin-top _styleguideGetLoaderDimension(medium, static, height, 2) / -2,
|
|
76
|
-
margin-left _styleguideGetLoaderDimension(medium, static, width, 2) / -2,
|
|
77
|
-
animation _styleguideGetLoaderAnimation(medium, 2)
|
|
78
|
-
)),
|
|
79
|
-
nil
|
|
80
|
-
))
|
|
81
|
-
)),
|
|
82
|
-
(large in-dark, (
|
|
83
|
-
ie-pseudo-after _styleguideGetLoaderExpression(large, 2),
|
|
84
|
-
(selectors, (
|
|
85
|
-
("&:after", (
|
|
86
|
-
background-position _styleguideGetLoaderPosition(large, static, 2),
|
|
87
|
-
width _styleguideGetLoaderDimension(large, static, width, 2),
|
|
88
|
-
height _styleguideGetLoaderDimension(large, static, height, 2),
|
|
89
|
-
margin-top _styleguideGetLoaderDimension(large, static, height, 2) / -2,
|
|
90
|
-
margin-left _styleguideGetLoaderDimension(large, static, width, 2) / -2,
|
|
91
|
-
animation _styleguideGetLoaderAnimation(large, 2)
|
|
92
|
-
)),
|
|
93
|
-
nil
|
|
94
|
-
))
|
|
95
|
-
)),
|
|
96
|
-
(small in-dark, (
|
|
97
|
-
ie-pseudo-after _styleguideGetLoaderExpression(small, 2),
|
|
98
|
-
(selectors, (
|
|
99
|
-
("&:after", (
|
|
100
|
-
background-position _styleguideGetLoaderPosition(small, static, 2),
|
|
101
|
-
width _styleguideGetLoaderDimension(small, static, width, 2),
|
|
102
|
-
height _styleguideGetLoaderDimension(small, static, height, 2),
|
|
103
|
-
margin-top _styleguideGetLoaderDimension(small, static, height, 2) / -2,
|
|
104
|
-
margin-left _styleguideGetLoaderDimension(small, static, width, 2) / -2,
|
|
105
|
-
animation _styleguideGetLoaderAnimation(small, 2)
|
|
106
|
-
)),
|
|
107
|
-
nil
|
|
108
|
-
))
|
|
109
|
-
)),
|
|
110
|
-
(in-canvas, (
|
|
111
|
-
background-color _styleguideGetContextColor($CONFIG_TEXTURE_CANVAS),
|
|
112
|
-
nil
|
|
113
|
-
)),
|
|
114
|
-
(in-module, (
|
|
115
|
-
background-color _styleguideGetContextColor($CONFIG_TEXTURE_MODULE),
|
|
116
|
-
nil
|
|
117
|
-
)),
|
|
118
|
-
(in-heading, (
|
|
119
|
-
background-color _styleguideGetContextColor($CONFIG_TEXTURE_HEADING),
|
|
120
|
-
nil
|
|
121
|
-
)),
|
|
122
|
-
(in-bristol, (
|
|
123
|
-
inherit (in-dark),
|
|
124
|
-
background-color _styleguideGetContextColor($CONFIG_TEXTURE_BRISTOL),
|
|
125
|
-
nil
|
|
126
|
-
)),
|
|
127
|
-
(in-punchcut, (
|
|
128
|
-
inherit (in-dark),
|
|
129
|
-
background-color _styleguideGetContextColor($CONFIG_TEXTURE_PUNCHCUT),
|
|
130
|
-
nil
|
|
131
|
-
)),
|
|
132
|
-
(small in-bristol, (
|
|
133
|
-
inherit (small in-dark),
|
|
134
|
-
nil
|
|
135
|
-
)),
|
|
136
|
-
(large in-bristol, (
|
|
137
|
-
inherit (large in-dark),
|
|
138
|
-
nil
|
|
139
|
-
)),
|
|
140
|
-
(small in-punchcut, (
|
|
141
|
-
inherit (small in-dark),
|
|
142
|
-
nil
|
|
143
|
-
)),
|
|
144
|
-
(large in-punchcut, (
|
|
145
|
-
inherit (large in-dark),
|
|
146
|
-
nil
|
|
147
|
-
)),
|
|
148
|
-
(without-mask, (
|
|
149
|
-
background-color nil,
|
|
150
|
-
opacity nil,
|
|
151
|
-
nil
|
|
152
|
-
))
|
|
153
|
-
), $CONFIG_THEME);
|
|
154
|
-
}
|