Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Icon postcard block completed with approval from John on the design #104

Merged
merged 11 commits into from
Apr 30, 2018
169 changes: 130 additions & 39 deletions css/decanter.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes
14 changes: 14 additions & 0 deletions scss/components/molecules/_icon-block.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
@charset "UTF-8";

//
// Icon Block
//
// A postcard block with an icon (or images) and text.
//
// Markup: ../templates/components/molecules/icon-block/icon-block.html.twig
//
// Style guide: Molecules.IconBlock
//
.decanter-icon-block {
@include icon-block;
}
1 change: 1 addition & 0 deletions scss/components/molecules/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

@import
'alerts',
'icon-block',
'icon-grid',
'navigation',
'main-menu',
Expand Down
38 changes: 38 additions & 0 deletions scss/utilities/mixins/icon-block/_icon-block.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
@charset "UTF-8";

//
// @icon-block
//
// A postcard block with an icon (or images) and text.
//
// Style guide: Mixins.IconBlock.icon-block
//
@mixin icon-block {
@include padding(1em);
@include overflow;

display: block;

.decanter-icon-block__img {
@include media-block-img;

margin-right: modular-scale(2);
}

.decanter-icon-block__body {
.decanter-icon-block__heading {
font-size: 1.25em;
font-weight: 600;

@include margin(0);
}

.decanter-icon-block__detail {
@include margin(0.3em null);
}

.decanter-icon-block__link {
@include margin(0.25em null);
}
}
}
12 changes: 12 additions & 0 deletions scss/utilities/mixins/icon-block/index.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
@charset "UTF-8";

//
// Icon Grid
//
// Mixins for Icon Block
//
// Style guide: Mixins.IconBlock
//

@import
'icon-block';
1 change: 1 addition & 0 deletions scss/utilities/mixins/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
'buttons/index',
'display/index',
'grid/index',
'icon-block/index',
'icon-grid/index',
'links/index',
'lists/index',
Expand Down
Loading