380
800
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<article class="m-article-item    ">
    <div class="m-article-item__inner">

        <div class="m-article-item__main">

            <h3 class="m-article-item__title">Create KPIs That Reflect Your Strategic Priorities</h3>

            <p class="m-article-item__deck">Vitae, at porta pretium aliquet pellentesque.</p>

            <div class="m-article-item__actions">
                <div>
                    <a href="javascript:void(0)" class=" a-link-strong  a-link-strong--secondary ">
                        <span>Read More</span>
                        <span class="a-icon  a-link-strong__icon">
                            <svg class="icon--arrow--md-right icon" role="img">
                                <use role="presentation" xlink:href="#icon--arrow--md-right" />
                            </svg>
                        </span>
                    </a>
                </div>
            </div>
        </div>
</article>
1
2
3
4
5
6
7
8
9
10
{
  "title": "Create KPIs That Reflect Your Strategic Priorities",
  "deck": "Vitae, at porta pretium aliquet pellentesque.",
  "actions": [
    {
      "text": "Read More",
      "href": "javascript:void(0)"
    }
  ]
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<article class="m-article-item {{ external ? 'm-article-item--external' }} {{ wide ? 'm-article-item--wide' }} {{ large ? 'm-article-item--large' }} {{ hover ? 'm-article-item--hover' }}">
	<div class="m-article-item__inner">
		{% if image %}
			<div class="m-article-item__image">
				<div class="m-article-item__image-inner">
					{% include 'components/atoms/image/image' with image only %}
					{% if icon %}
						<div class="m-article-item__icon">
							{% include 'components/atoms/icon/icon' with icon only %}
						</div>
					{% endif %}
				</div>
			</div>
		{% endif %}

		<div class="m-article-item__main">
			{% if eyebrow %}
				<span class="m-article-item__eyebrow">{{ eyebrow }}</span>
			{% endif %}

			<{{headingLevel|default('h3')}} class="m-article-item__title">{{ title }}</{{headingLevel|default('h3')}}>

			{% if deck %}
				<p class="m-article-item__deck">{{ deck }}</p>
			{% endif %}

			{% if actions %}
				<div class="m-article-item__actions">
					{% set action_icon = external ? { icon: { icon: "action--link-out" }, style: 'secondary' } : { style: 'secondary' } %}
					{% for action in actions %}
						<div>
							{% include 'components/atoms/link-strong/link-strong' with action_icon|merge(action) only %}
						</div>
					{% endfor %}
				</div>
			{% endif %}
		</div>
	</article>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
$m-article-item: (
  xsmall: 6,
  small: 6,
  medium: 4,
  large: 3,
  xlarge: 3,
  xxlarge: 3,
  xxxlarge: 3,
);

$m-article-item--wide: (
  large: 6,
);

$m-article-item--large: (
  large: 6,
  xlarge: 6,
  xxlarge: 6,
  xxxlarge: 6,
);

.m-article-item {
  position: relative;

  @include width-multi($m-article-item);

  &--wide {
    @include width-multi($m-article-item--wide);
  }

  &--large {
    @include width-multi($m-article-item--large);
  }

  &__inner {
    @include child-spacing-x($inner-gutters);
    @include child-spacing-y(
      (
        "xsmall": 12px,
        "medium+": 16px,
        "xlarge+": 20px,
      ),
      "margin"
    );
  }

  &__image-inner {
    position: relative;
  }

  &__icon {
    position: absolute;
    bottom: 12px;
    left: 12px;
    transition: color $timing--short $bezier--standard;
  }

  &:focus-within &__icon,
  &:hover &__icon {
    color: var(--color--action);
  }

  &__eyebrow {
    display: block;
    @include f-ui-1;
    color: var(--color--text--aux);
  }

  &__eyebrow + &__title {
    padding-top: 4px;
  }

  &__title {
    @include f-heading-4;
  }

  &__deck {
    @include spacing(
      (
        xsmall: 8px,
        "xlarge+": 12px,
      )
    );
  }

  &__actions {
    padding-top: 24px;

    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    flex: 1;
    margin-left: -24px;
    margin-top: -24px;
    & > * {
      padding-top: 24px;
      padding-left: 24px;
    }

    @media print {
      display: none;
    }

    & > :only-child a {
      position: static;
      &:before {
        content: "";
        @include stretch;
      }
    }
  }

  @media (hover: hover) {
    &--hover &__actions {
      transition: opacity $timing--short $bezier--standard;
      opacity: 0;
    }

    &--hover:focus-within &__actions,
    &--hover:hover &__actions {
      opacity: 1;
    }
  }

  @include breakpoint("large") {
    &--wide &__inner {
      display: flex;
    }

    &--wide &__image,
    &--wide &__main {
      flex: 1;
    }
  }
}