archetype-theme 1.0.0.alpha.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE +16 -0
- data/Users/eoneill/workspace/archetype/extensions/archetype-theme/CHANGELOG.md +0 -0
- data/Users/eoneill/workspace/archetype/extensions/archetype-theme/README.md +0 -0
- data/Users/eoneill/workspace/archetype/extensions/archetype-theme/VERSION +0 -0
- data/Users/eoneill/workspace/archetype/extensions/archetype-theme/lib/archetype-theme.rb +9 -0
- data/Users/eoneill/workspace/archetype/extensions/archetype-theme/lib/archetype-theme/version.rb +3 -0
- data/Users/eoneill/workspace/archetype/extensions/archetype-theme/stylesheets/archetype/_theme.scss +2 -0
- data/Users/eoneill/workspace/archetype/extensions/archetype-theme/stylesheets/archetype/theme/_components.scss +28 -0
- data/Users/eoneill/workspace/archetype/extensions/archetype-theme/stylesheets/archetype/theme/_core.scss +10 -0
- data/Users/eoneill/workspace/archetype/extensions/archetype-theme/stylesheets/archetype/theme/_helpers.scss +209 -0
- data/Users/eoneill/workspace/archetype/extensions/archetype-theme/stylesheets/archetype/theme/_identifiers.scss +25 -0
- data/Users/eoneill/workspace/archetype/extensions/archetype-theme/stylesheets/archetype/theme/_init.scss +5 -0
- data/Users/eoneill/workspace/archetype/extensions/archetype-theme/stylesheets/archetype/theme/_keyframes.scss +64 -0
- data/Users/eoneill/workspace/archetype/extensions/archetype-theme/stylesheets/archetype/theme/_primitives.scss +10 -0
- data/Users/eoneill/workspace/archetype/extensions/archetype-theme/stylesheets/archetype/theme/components/_alerts.scss +54 -0
- data/Users/eoneill/workspace/archetype/extensions/archetype-theme/stylesheets/archetype/theme/components/_annotations.scss +25 -0
- data/Users/eoneill/workspace/archetype/extensions/archetype-theme/stylesheets/archetype/theme/components/_bristol.scss +13 -0
- data/Users/eoneill/workspace/archetype/extensions/archetype-theme/stylesheets/archetype/theme/components/_button_groups.scss +40 -0
- data/Users/eoneill/workspace/archetype/extensions/archetype-theme/stylesheets/archetype/theme/components/_button_toolbars.scss +15 -0
- data/Users/eoneill/workspace/archetype/extensions/archetype-theme/stylesheets/archetype/theme/components/_buttons.scss +299 -0
- data/Users/eoneill/workspace/archetype/extensions/archetype-theme/stylesheets/archetype/theme/components/_canvas.scss +13 -0
- data/Users/eoneill/workspace/archetype/extensions/archetype-theme/stylesheets/archetype/theme/components/_carets.scss +292 -0
- data/Users/eoneill/workspace/archetype/extensions/archetype-theme/stylesheets/archetype/theme/components/_closes.scss +56 -0
- data/Users/eoneill/workspace/archetype/extensions/archetype-theme/stylesheets/archetype/theme/components/_container.scss +23 -0
- data/Users/eoneill/workspace/archetype/extensions/archetype-theme/stylesheets/archetype/theme/components/_copy.scss +72 -0
- data/Users/eoneill/workspace/archetype/extensions/archetype-theme/stylesheets/archetype/theme/components/_flyouts.scss +50 -0
- data/Users/eoneill/workspace/archetype/extensions/archetype-theme/stylesheets/archetype/theme/components/_headings.scss +29 -0
- data/Users/eoneill/workspace/archetype/extensions/archetype-theme/stylesheets/archetype/theme/components/_headlines.scss +57 -0
- data/Users/eoneill/workspace/archetype/extensions/archetype-theme/stylesheets/archetype/theme/components/_hovercards.scss +26 -0
- data/Users/eoneill/workspace/archetype/extensions/archetype-theme/stylesheets/archetype/theme/components/_icons.scss +16 -0
- data/Users/eoneill/workspace/archetype/extensions/archetype-theme/stylesheets/archetype/theme/components/_identities.scss +29 -0
- data/Users/eoneill/workspace/archetype/extensions/archetype-theme/stylesheets/archetype/theme/components/_links.scss +54 -0
- data/Users/eoneill/workspace/archetype/extensions/archetype-theme/stylesheets/archetype/theme/components/_loaders.scss +138 -0
- data/Users/eoneill/workspace/archetype/extensions/archetype-theme/stylesheets/archetype/theme/components/_menu_items.scss +27 -0
- data/Users/eoneill/workspace/archetype/extensions/archetype-theme/stylesheets/archetype/theme/components/_module.scss +13 -0
- data/Users/eoneill/workspace/archetype/extensions/archetype-theme/stylesheets/archetype/theme/components/_pullquotes.scss +27 -0
- data/Users/eoneill/workspace/archetype/extensions/archetype-theme/stylesheets/archetype/theme/components/_punchcut.scss +17 -0
- data/Users/eoneill/workspace/archetype/extensions/archetype-theme/stylesheets/archetype/theme/components/_tooltips.scss +27 -0
- data/Users/eoneill/workspace/archetype/extensions/archetype-theme/stylesheets/archetype/theme/primitives/_animations.scss +17 -0
- data/Users/eoneill/workspace/archetype/extensions/archetype-theme/stylesheets/archetype/theme/primitives/_dimensions.scss +50 -0
- data/Users/eoneill/workspace/archetype/extensions/archetype-theme/stylesheets/archetype/theme/primitives/_glyphs.scss +11 -0
- data/Users/eoneill/workspace/archetype/extensions/archetype-theme/stylesheets/archetype/theme/primitives/_misc.scss +8 -0
- data/Users/eoneill/workspace/archetype/extensions/archetype-theme/stylesheets/archetype/theme/primitives/_palettes.scss +94 -0
- data/Users/eoneill/workspace/archetype/extensions/archetype-theme/stylesheets/archetype/theme/primitives/_shadows.scss +23 -0
- data/Users/eoneill/workspace/archetype/extensions/archetype-theme/stylesheets/archetype/theme/primitives/_sprites.scss +41 -0
- data/Users/eoneill/workspace/archetype/extensions/archetype-theme/stylesheets/archetype/theme/primitives/_textures.scss +10 -0
- data/Users/eoneill/workspace/archetype/extensions/archetype-theme/stylesheets/archetype/theme/primitives/_typography.scss +56 -0
- data/Users/eoneill/workspace/archetype/extensions/archetype-theme/templates/project/manifest.rb +6 -0
- data/Users/eoneill/workspace/archetype/extensions/archetype-theme/templates/project/vendor/archetype/animations/loaders/large/large.png +0 -0
- data/Users/eoneill/workspace/archetype/extensions/archetype-theme/templates/project/vendor/archetype/animations/loaders/large/large_dark.png +0 -0
- data/Users/eoneill/workspace/archetype/extensions/archetype-theme/templates/project/vendor/archetype/animations/loaders/large/large_dark_static.png +0 -0
- data/Users/eoneill/workspace/archetype/extensions/archetype-theme/templates/project/vendor/archetype/animations/loaders/large/large_static.png +0 -0
- data/Users/eoneill/workspace/archetype/extensions/archetype-theme/templates/project/vendor/archetype/animations/loaders/medium/medium.png +0 -0
- data/Users/eoneill/workspace/archetype/extensions/archetype-theme/templates/project/vendor/archetype/animations/loaders/medium/medium_dark.png +0 -0
- data/Users/eoneill/workspace/archetype/extensions/archetype-theme/templates/project/vendor/archetype/animations/loaders/medium/medium_dark_static.png +0 -0
- data/Users/eoneill/workspace/archetype/extensions/archetype-theme/templates/project/vendor/archetype/animations/loaders/medium/medium_static.png +0 -0
- data/Users/eoneill/workspace/archetype/extensions/archetype-theme/templates/project/vendor/archetype/animations/loaders/small/small.png +0 -0
- data/Users/eoneill/workspace/archetype/extensions/archetype-theme/templates/project/vendor/archetype/animations/loaders/small/small_dark.png +0 -0
- data/Users/eoneill/workspace/archetype/extensions/archetype-theme/templates/project/vendor/archetype/animations/loaders/small/small_dark_static.png +0 -0
- data/Users/eoneill/workspace/archetype/extensions/archetype-theme/templates/project/vendor/archetype/animations/loaders/small/small_static.png +0 -0
- metadata +119 -0
@@ -0,0 +1,56 @@
|
|
1
|
+
// ==========
|
2
|
+
// CLOSES
|
3
|
+
// ==========
|
4
|
+
$STYLEGUIDE_CLOSES_ID: close !default;
|
5
|
+
$STYLEGUIDE_CLOSES: () !default;
|
6
|
+
|
7
|
+
@if should-register-component($STYLEGUIDE_CLOSES_ID) {
|
8
|
+
$a-blackhole: styleguide-add-component($STYLEGUIDE_CLOSES_ID, $STYLEGUIDE_CLOSES, (
|
9
|
+
default: (
|
10
|
+
color: inherit,
|
11
|
+
background: transparent none,
|
12
|
+
padding: 0 1px 0 0,
|
13
|
+
border: 0,
|
14
|
+
margin: 0,
|
15
|
+
cursor: pointer,
|
16
|
+
text-decoration: none,
|
17
|
+
position: absolute,
|
18
|
+
overflow: hidden,
|
19
|
+
top: vertical-spacing(2),
|
20
|
+
right: horizontal-spacing(2),
|
21
|
+
width: nth($CONFIG_GLYPH_CLOSE, 4),
|
22
|
+
height: nth($CONFIG_GLYPH_CLOSE, 4),
|
23
|
+
text-indent: nth($CONFIG_GLYPH_CLOSE, 4) + 1px,
|
24
|
+
glyph-icon: (nth($CONFIG_GLYPH_CLOSE, 1), nth($CONFIG_GLYPH_CLOSE, 2), nth($CONFIG_GLYPH_CLOSE, 3), before),
|
25
|
+
selectors: (
|
26
|
+
$CORE_GLYPH_SELECTOR_VAR: (
|
27
|
+
vertical-align: top,
|
28
|
+
line-height: 1,
|
29
|
+
position: absolute,
|
30
|
+
top: 0,
|
31
|
+
right: 0,
|
32
|
+
text-decoration: none,
|
33
|
+
cursor: pointer
|
34
|
+
)
|
35
|
+
),
|
36
|
+
states: (
|
37
|
+
hover: (
|
38
|
+
text-shadow: $CONFIG_SHADOW_CLOSES
|
39
|
+
)
|
40
|
+
)
|
41
|
+
),
|
42
|
+
in a $STYLEGUIDE_ALERTS_ID: (
|
43
|
+
color: nth($CONFIG_COLOR_COPY, 2)
|
44
|
+
),
|
45
|
+
in dialog: (
|
46
|
+
color: nth($CONFIG_COLOR_COPY, 2),
|
47
|
+
opacity: 0.7,
|
48
|
+
top: vertical-spacing(2.6, $abuse: true),
|
49
|
+
states: (
|
50
|
+
hover: (
|
51
|
+
opacity: 1
|
52
|
+
)
|
53
|
+
)
|
54
|
+
)
|
55
|
+
)) !global;
|
56
|
+
}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
// ==========
|
2
|
+
// CONTAINER
|
3
|
+
// ==========
|
4
|
+
$STYLEGUIDE_CONTAINERS_ID: container !default;
|
5
|
+
$STYLEGUIDE_CONTAINERS: () !default;
|
6
|
+
|
7
|
+
@if should-register-component($STYLEGUIDE_CONTAINERS_ID) {
|
8
|
+
$a-blackhole: styleguide-add-component($STYLEGUIDE_CONTAINERS_ID, $STYLEGUIDE_CONTAINERS, (
|
9
|
+
default: (
|
10
|
+
background: nth($CONFIG_TEXTURE_CONTAINER, 1),
|
11
|
+
box-shadow: $CONFIG_SHADOW_CONTAINER,
|
12
|
+
target-browser: $CONFIG_SHADOW_CONTAINER_ALT // simulate the shadow in IE<9
|
13
|
+
),
|
14
|
+
light: null, // inherit the default
|
15
|
+
dark: (
|
16
|
+
background: nth($CONFIG_TEXTURE_CONTAINER, 2)
|
17
|
+
),
|
18
|
+
without shadow: (
|
19
|
+
box-shadow: null,
|
20
|
+
target-browser: null
|
21
|
+
)
|
22
|
+
)) !global;
|
23
|
+
}
|
@@ -0,0 +1,72 @@
|
|
1
|
+
// ==========
|
2
|
+
// COPY
|
3
|
+
// ==========
|
4
|
+
$STYLEGUIDE_COPY_ID: copy !default;
|
5
|
+
$STYLEGUIDE_COPY: () !default;
|
6
|
+
|
7
|
+
@if should-register-component($STYLEGUIDE_COPY_ID) {
|
8
|
+
$a-blackhole: styleguide-add-component($STYLEGUIDE_COPY_ID, $STYLEGUIDE_COPY, (
|
9
|
+
default: (
|
10
|
+
font-size: nth($CONFIG_FONT_COPY_MEDIUM, 1),
|
11
|
+
line-height: nth-cyclic($CONFIG_FONT_COPY_MEDIUM, 2),
|
12
|
+
color: nth($CONFIG_COLOR_COPY, 1),
|
13
|
+
font-weight: normal
|
14
|
+
),
|
15
|
+
// sizes
|
16
|
+
medium: null, // inherit the default
|
17
|
+
large: (
|
18
|
+
font-size: nth($CONFIG_FONT_COPY_LARGE, 1),
|
19
|
+
line-height: nth-cyclic($CONFIG_FONT_COPY_LARGE, 2)
|
20
|
+
),
|
21
|
+
small: (
|
22
|
+
font-size: nth($CONFIG_FONT_COPY_SMALL, 1),
|
23
|
+
line-height: nth-cyclic($CONFIG_FONT_COPY_SMALL, 2)
|
24
|
+
),
|
25
|
+
// contexts
|
26
|
+
in dark: (
|
27
|
+
color: nth-cyclic($CONFIG_COLOR_COPY, 2)
|
28
|
+
),
|
29
|
+
in $STYLEGUIDE_MODULES_ID: (
|
30
|
+
color: nth($CONFIG_COLOR_COPY, 1)
|
31
|
+
),
|
32
|
+
in $STYLEGUIDE_BRISTOLS_ID: (
|
33
|
+
inherit: in dark
|
34
|
+
),
|
35
|
+
in a $STYLEGUIDE_TOOLTIPS_ID: (
|
36
|
+
inherit: in dark
|
37
|
+
),
|
38
|
+
in a $STYLEGUIDE_ALERTS_ID: (
|
39
|
+
inherit: in dark
|
40
|
+
),
|
41
|
+
in $STYLEGUIDE_PUNCHCUTS_ID: (
|
42
|
+
inherit: in dark,
|
43
|
+
text-shadow: nth-cyclic($CONFIG_SHADOW_COPY, 2)
|
44
|
+
),
|
45
|
+
breadcrumb: (
|
46
|
+
color: nth($CONFIG_COLOR_BREADCRUMB, 1),
|
47
|
+
font-size: nth($CONFIG_FONT_BREADCRUMB, 1),
|
48
|
+
font-weight: $CONFIG_FONT_WEIGHT_BREADCRUMB,
|
49
|
+
text-decoration: nth($CONFIG_DECORATION_LINK, 1),
|
50
|
+
text-shadow: $CONFIG_SHADOW_BREADCRUMB
|
51
|
+
),
|
52
|
+
active breadcrumb: (
|
53
|
+
color: nth($CONFIG_COLOR_BREADCRUMB_ACTIVE, 1),
|
54
|
+
font-size: nth($CONFIG_FONT_BREADCRUMB, 1),
|
55
|
+
font-weight: $CONFIG_FONT_WEIGHT_BREADCRUMB,
|
56
|
+
text-shadow: $CONFIG_SHADOW_BREADCRUMB,
|
57
|
+
border-left: ($CONFIG_DIM_GENERIC_BORDER solid $CONFIG_COLOR_BREADCRUMB),
|
58
|
+
margin: $CONFIG_DIM_BREADCRUMB_SPACING_OUTER,
|
59
|
+
padding: $CONFIG_DIM_BREADCRUMB_SPACING
|
60
|
+
),
|
61
|
+
emphasized: (
|
62
|
+
font-style: italic
|
63
|
+
),
|
64
|
+
strong: (
|
65
|
+
font-weight: bold
|
66
|
+
),
|
67
|
+
// muted colors
|
68
|
+
muted: (
|
69
|
+
color: nth($CONFIG_COLOR_COPY_MUTED, 1)
|
70
|
+
)
|
71
|
+
)) !global;
|
72
|
+
}
|
@@ -0,0 +1,50 @@
|
|
1
|
+
// ==========
|
2
|
+
// FLYOUT MENUS
|
3
|
+
// ==========
|
4
|
+
$STYLEGUIDE_FLYOUTS_ID: flyout !default;
|
5
|
+
$STYLEGUIDE_FLYOUTS: () !default;
|
6
|
+
|
7
|
+
@if should-register-component($STYLEGUIDE_FLYOUTS_ID) {
|
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
|
+
),
|
27
|
+
in $STYLEGUIDE_BUTTONS_ID: (
|
28
|
+
// restore some things used for buttons
|
29
|
+
font-weight: normal,
|
30
|
+
white-space: normal,
|
31
|
+
text-shadow: none,
|
32
|
+
// no box-shadow
|
33
|
+
box-shadow: null,
|
34
|
+
// thick borders!
|
35
|
+
border-width: $CONFIG_DIM_GENERIC_BORDER_THICK,
|
36
|
+
border-radius: $CONFIG_DIM_FLYOUT_RADIUS
|
37
|
+
),
|
38
|
+
in $STYLEGUIDE_BUTTON_GROUPS_ID: (
|
39
|
+
inherit: in $STYLEGUIDE_BUTTONS_ID
|
40
|
+
),
|
41
|
+
upward: (
|
42
|
+
top: null,
|
43
|
+
bottom: 100%
|
44
|
+
),
|
45
|
+
right aligned: (
|
46
|
+
left: null,
|
47
|
+
right: 0
|
48
|
+
)
|
49
|
+
)) !global;
|
50
|
+
}
|
@@ -0,0 +1,29 @@
|
|
1
|
+
// ==========
|
2
|
+
// HEADINGS
|
3
|
+
// ==========
|
4
|
+
$STYLEGUIDE_HEADINGS_ID: heading !default;
|
5
|
+
$STYLEGUIDE_HEADINGS: () !default;
|
6
|
+
|
7
|
+
@if should-register-component($STYLEGUIDE_HEADINGS_ID) {
|
8
|
+
$a-blackhole: styleguide-add-component($STYLEGUIDE_HEADINGS_ID, $STYLEGUIDE_HEADINGS, (
|
9
|
+
default: null,
|
10
|
+
in $STYLEGUIDE_FLYOUTS_ID in $STYLEGUIDE_BUTTON_GROUPS_ID: (
|
11
|
+
margin: $CONFIG_DIM_HEADING_SPACING_OUTER,
|
12
|
+
padding: $CONFIG_DIM_HEADING_SPACING,
|
13
|
+
background-color: $CONFIG_TEXTURE_HEADING,
|
14
|
+
border: $CONFIG_DIM_GENERIC_BORDER solid nth($CONFIG_COLOR_BORDER_SECTION,1),
|
15
|
+
border-width: $CONFIG_DIM_GENERIC_BORDER 0,
|
16
|
+
color: nth($CONFIG_COLOR_COPY_MUTED, 1)
|
17
|
+
),
|
18
|
+
first in $STYLEGUIDE_FLYOUTS_ID in $STYLEGUIDE_BUTTON_GROUPS_ID: (
|
19
|
+
margin-top: 0,
|
20
|
+
border-top-width: 0
|
21
|
+
),
|
22
|
+
in $STYLEGUIDE_FLYOUTS_ID in $STYLEGUIDE_BUTTONS_ID: (
|
23
|
+
inherit: in $STYLEGUIDE_FLYOUTS_ID in $STYLEGUIDE_BUTTON_GROUPS_ID
|
24
|
+
),
|
25
|
+
first in $STYLEGUIDE_FLYOUTS_ID in $STYLEGUIDE_BUTTONS_ID: (
|
26
|
+
inherit: first in $STYLEGUIDE_FLYOUTS_ID in $STYLEGUIDE_BUTTON_GROUPS_ID
|
27
|
+
)
|
28
|
+
)) !global;
|
29
|
+
}
|
@@ -0,0 +1,57 @@
|
|
1
|
+
// ==========
|
2
|
+
// HEADLINES
|
3
|
+
// ==========
|
4
|
+
$STYLEGUIDE_HEADLINES_ID: headline !default;
|
5
|
+
$STYLEGUIDE_HEADLINES: () !default;
|
6
|
+
|
7
|
+
@if should-register-component($STYLEGUIDE_HEADLINES_ID) {
|
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
|
+
),
|
19
|
+
xlarge: (
|
20
|
+
font-size: nth($CONFIG_FONT_HEADLINE_XLARGE, 1),
|
21
|
+
line-height: nth-cyclic($CONFIG_FONT_HEADLINE_XLARGE, 2)
|
22
|
+
),
|
23
|
+
xxlarge: (
|
24
|
+
font-size: nth($CONFIG_FONT_HEADLINE_XXLARGE, 1),
|
25
|
+
line-height: nth-cyclic($CONFIG_FONT_HEADLINE_XXLARGE, 2)
|
26
|
+
),
|
27
|
+
large: null,
|
28
|
+
medium: (
|
29
|
+
font-size: nth($CONFIG_FONT_HEADLINE_MEDIUM, 1),
|
30
|
+
line-height: nth-cyclic($CONFIG_FONT_HEADLINE_MEDIUM, 2)
|
31
|
+
),
|
32
|
+
small: (
|
33
|
+
font-size: nth($CONFIG_FONT_HEADLINE_SMALL, 1),
|
34
|
+
line-height: nth-cyclic($CONFIG_FONT_HEADLINE_SMALL, 2)
|
35
|
+
),
|
36
|
+
xsmall: (
|
37
|
+
font-size: nth($CONFIG_FONT_HEADLINE_XSMALL, 1),
|
38
|
+
line-height: nth-cyclic($CONFIG_FONT_HEADLINE_XSMALL, 2)
|
39
|
+
),
|
40
|
+
in dark: (
|
41
|
+
color: nth-cyclic($CONFIG_COLOR_STRONG, 2)
|
42
|
+
),
|
43
|
+
in $STYLEGUIDE_BRISTOLS_ID: (
|
44
|
+
inherit: in dark
|
45
|
+
),
|
46
|
+
in a $STYLEGUIDE_TOOLTIPS_ID: (
|
47
|
+
inherit: in dark
|
48
|
+
),
|
49
|
+
in a $STYLEGUIDE_ALERTS_ID: (
|
50
|
+
inherit: in dark
|
51
|
+
),
|
52
|
+
in $STYLEGUIDE_PUNCHCUTS_ID: (
|
53
|
+
inherit: in dark,
|
54
|
+
text-shadow: nth-cyclic($CONFIG_SHADOW_COPY, 2)
|
55
|
+
)
|
56
|
+
)) !global;
|
57
|
+
}
|
@@ -0,0 +1,26 @@
|
|
1
|
+
// ==========
|
2
|
+
// HOVERCARDS
|
3
|
+
// ==========
|
4
|
+
$STYLEGUIDE_HOVERCARDS_ID: hovercard !default;
|
5
|
+
$STYLEGUIDE_HOVERCARDS: () !default;
|
6
|
+
|
7
|
+
@if should-register-component($STYLEGUIDE_HOVERCARDS_ID) {
|
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
|
+
)) !global;
|
26
|
+
}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
// ==========
|
2
|
+
// ICONS
|
3
|
+
// ==========
|
4
|
+
$STYLEGUIDE_ICONS_ID: icon !default;
|
5
|
+
$STYLEGUIDE_ICONS: () !default;
|
6
|
+
|
7
|
+
@if should-register-component($STYLEGUIDE_ICONS_ID) {
|
8
|
+
$a-blackhole: styleguide-add-component($STYLEGUIDE_ICONS_ID, $STYLEGUIDE_ICONS, (
|
9
|
+
default: (
|
10
|
+
inline-block: middle,
|
11
|
+
hide-text: true,
|
12
|
+
content: $CONTENT_PLACEHOLDER,
|
13
|
+
background: none no-repeat scroll 0 0 transparent
|
14
|
+
)
|
15
|
+
)) !global;
|
16
|
+
}
|
@@ -0,0 +1,29 @@
|
|
1
|
+
// ==========
|
2
|
+
// IDENTITIES
|
3
|
+
// ==========
|
4
|
+
$STYLEGUIDE_IDENTITY_ID: identity !default;
|
5
|
+
$STYLEGUIDE_IDENTITY: () !default;
|
6
|
+
|
7
|
+
@if should-register-component($STYLEGUIDE_IDENTITY_ID) {
|
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
|
+
)
|
17
|
+
)
|
18
|
+
),
|
19
|
+
in dark: (
|
20
|
+
color: nth-cyclic($CONFIG_COLOR_BRAND, 2)
|
21
|
+
),
|
22
|
+
in $STYLEGUIDE_PUNCHCUTS_ID: (
|
23
|
+
inherit: in dark
|
24
|
+
),
|
25
|
+
in $STYLEGUIDE_BRISTOLS_ID: (
|
26
|
+
inherit: in dark
|
27
|
+
)
|
28
|
+
)) !global;
|
29
|
+
}
|
@@ -0,0 +1,54 @@
|
|
1
|
+
// ==========
|
2
|
+
// LINKS
|
3
|
+
// ==========
|
4
|
+
$STYLEGUIDE_LINKS_ID: link !default;
|
5
|
+
$STYLEGUIDE_LINKS: () !default;
|
6
|
+
|
7
|
+
@if should-register-component($STYLEGUIDE_LINKS_ID) {
|
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
|
+
)
|
16
|
+
)
|
17
|
+
),
|
18
|
+
without underline: (
|
19
|
+
states: (
|
20
|
+
hover: (
|
21
|
+
text-decoration: none
|
22
|
+
)
|
23
|
+
)
|
24
|
+
),
|
25
|
+
in dark: (
|
26
|
+
color: nth-cyclic($CONFIG_COLOR_BRAND, 2)
|
27
|
+
),
|
28
|
+
in $STYLEGUIDE_PUNCHCUTS_ID: (
|
29
|
+
inherit: in dark
|
30
|
+
),
|
31
|
+
in $STYLEGUIDE_BRISTOLS_ID: (
|
32
|
+
inherit: in dark
|
33
|
+
),
|
34
|
+
in a $STYLEGUIDE_ALERTS_ID: (
|
35
|
+
color: nth-cyclic($CONFIG_COLOR_COPY, 2),
|
36
|
+
font-weight: bold,
|
37
|
+
states: (
|
38
|
+
hover: (
|
39
|
+
color: null
|
40
|
+
)
|
41
|
+
)
|
42
|
+
),
|
43
|
+
muted: (
|
44
|
+
// de-emphasized links have no color until you hover over them
|
45
|
+
color: null,
|
46
|
+
states: (
|
47
|
+
hover: (
|
48
|
+
color: nth($CONFIG_COLOR_BRAND, 1),
|
49
|
+
text-decoration: none
|
50
|
+
)
|
51
|
+
)
|
52
|
+
)
|
53
|
+
)) !global;
|
54
|
+
}
|
@@ -0,0 +1,138 @@
|
|
1
|
+
// ==========
|
2
|
+
// LOADERS
|
3
|
+
// ==========
|
4
|
+
$STYLEGUIDE_LOADERS_ID: loader !default;
|
5
|
+
$STYLEGUIDE_LOADERS: () !default;
|
6
|
+
|
7
|
+
@if should-register-component($STYLEGUIDE_LOADERS_ID) {
|
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: -archetype-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
|
+
)
|
34
|
+
),
|
35
|
+
// sizes
|
36
|
+
large: (
|
37
|
+
ie-pseudo-after: _styleguideGetLoaderExpression(large),
|
38
|
+
selectors: (
|
39
|
+
"&:after": (
|
40
|
+
background-position: _styleguideGetLoaderPosition(large, static),
|
41
|
+
width: _styleguideGetLoaderDimension(large, static, width),
|
42
|
+
height: _styleguideGetLoaderDimension(large, static, height),
|
43
|
+
margin-top: _styleguideGetLoaderDimension(large, static, height) / -2,
|
44
|
+
margin-left: _styleguideGetLoaderDimension(large, static, width) / -2,
|
45
|
+
animation: _styleguideGetLoaderAnimation(large)
|
46
|
+
)
|
47
|
+
)
|
48
|
+
// expression hack
|
49
|
+
),
|
50
|
+
small: (
|
51
|
+
ie-pseudo-after: _styleguideGetLoaderExpression(small),
|
52
|
+
selectors: (
|
53
|
+
"&:after": (
|
54
|
+
background-position: _styleguideGetLoaderPosition(small, static),
|
55
|
+
width: _styleguideGetLoaderDimension(small, static, width),
|
56
|
+
height: _styleguideGetLoaderDimension(small, static, height),
|
57
|
+
margin-top: _styleguideGetLoaderDimension(small, static, height) / -2,
|
58
|
+
margin-left: _styleguideGetLoaderDimension(small, static, width) / -2,
|
59
|
+
animation: _styleguideGetLoaderAnimation(small)
|
60
|
+
)
|
61
|
+
)
|
62
|
+
// expression hack
|
63
|
+
),
|
64
|
+
// contexts
|
65
|
+
in dark: (
|
66
|
+
ie-pseudo-after: _styleguideGetLoaderExpression(medium, 2),
|
67
|
+
selectors: (
|
68
|
+
"&:after": (
|
69
|
+
background-position: _styleguideGetLoaderPosition(medium, static, 2),
|
70
|
+
width: _styleguideGetLoaderDimension(medium, static, width, 2),
|
71
|
+
height: _styleguideGetLoaderDimension(medium, static, height, 2),
|
72
|
+
margin-top: _styleguideGetLoaderDimension(medium, static, height, 2) / -2,
|
73
|
+
margin-left: _styleguideGetLoaderDimension(medium, static, width, 2) / -2,
|
74
|
+
animation: _styleguideGetLoaderAnimation(medium, 2)
|
75
|
+
)
|
76
|
+
)
|
77
|
+
),
|
78
|
+
large in dark: (
|
79
|
+
ie-pseudo-after: _styleguideGetLoaderExpression(large, 2),
|
80
|
+
selectors: (
|
81
|
+
"&:after": (
|
82
|
+
background-position: _styleguideGetLoaderPosition(large, static, 2),
|
83
|
+
width: _styleguideGetLoaderDimension(large, static, width, 2),
|
84
|
+
height: _styleguideGetLoaderDimension(large, static, height, 2),
|
85
|
+
margin-top: _styleguideGetLoaderDimension(large, static, height, 2) / -2,
|
86
|
+
margin-left: _styleguideGetLoaderDimension(large, static, width, 2) / -2,
|
87
|
+
animation: _styleguideGetLoaderAnimation(large, 2)
|
88
|
+
)
|
89
|
+
)
|
90
|
+
),
|
91
|
+
small in dark: (
|
92
|
+
ie-pseudo-after: _styleguideGetLoaderExpression(small, 2),
|
93
|
+
selectors: (
|
94
|
+
"&:after": (
|
95
|
+
background-position: _styleguideGetLoaderPosition(small, static, 2),
|
96
|
+
width: _styleguideGetLoaderDimension(small, static, width, 2),
|
97
|
+
height: _styleguideGetLoaderDimension(small, static, height, 2),
|
98
|
+
margin-top: _styleguideGetLoaderDimension(small, static, height, 2) / -2,
|
99
|
+
margin-left: _styleguideGetLoaderDimension(small, static, width, 2) / -2,
|
100
|
+
animation: _styleguideGetLoaderAnimation(small, 2)
|
101
|
+
)
|
102
|
+
)
|
103
|
+
),
|
104
|
+
in $STYLEGUIDE_CANVAS_ID: (
|
105
|
+
background-color: _styleguideGetContextColor($CONFIG_TEXTURE_CANVAS)
|
106
|
+
),
|
107
|
+
in $STYLEGUIDE_MODULES_ID: (
|
108
|
+
background-color: _styleguideGetContextColor($CONFIG_TEXTURE_MODULE)
|
109
|
+
),
|
110
|
+
in $STYLEGUIDE_HEADINGS_ID: (
|
111
|
+
background-color: _styleguideGetContextColor($CONFIG_TEXTURE_HEADING)
|
112
|
+
),
|
113
|
+
in $STYLEGUIDE_BRISTOLS_ID: (
|
114
|
+
inherit: in dark,
|
115
|
+
background-color: _styleguideGetContextColor($CONFIG_TEXTURE_BRISTOL)
|
116
|
+
),
|
117
|
+
in $STYLEGUIDE_PUNCHCUTS_ID: (
|
118
|
+
inherit: in dark,
|
119
|
+
background-color: _styleguideGetContextColor($CONFIG_TEXTURE_PUNCHCUT)
|
120
|
+
),
|
121
|
+
small in $STYLEGUIDE_BRISTOLS_ID: (
|
122
|
+
inherit: small in dark
|
123
|
+
),
|
124
|
+
large in $STYLEGUIDE_BRISTOLS_ID: (
|
125
|
+
inherit: large in dark
|
126
|
+
),
|
127
|
+
small in $STYLEGUIDE_PUNCHCUTS_ID: (
|
128
|
+
inherit: small in dark
|
129
|
+
),
|
130
|
+
large in $STYLEGUIDE_PUNCHCUTS_ID: (
|
131
|
+
inherit: large in dark
|
132
|
+
),
|
133
|
+
without mask: (
|
134
|
+
background-color: null,
|
135
|
+
opacity: null
|
136
|
+
)
|
137
|
+
)) !global;
|
138
|
+
}
|