380
800
1
2
3
4
5
6
7
8
9
10
<a href="javascript:void(0);" class="m-detail-inline-recirculation" aria-label="Related Content Module: Nibh suscipit vitae in eu eget tortor leo facilisis semper. Magna tempor, quam varius eget scelerisque arcu magna at.">
    <article class="m-detail-inline-recirculation__inner">
        <span class="m-detail-inline-recirculation__kicker">Related Content Module</span>


        <div class="m-detail-inline-recirculation__main">
            <h2 class="m-detail-inline-recirculation__title">Nibh suscipit vitae in eu eget tortor leo facilisis semper. Magna tempor, quam varius eget scelerisque arcu magna at.</h2>
        </div>
    </article>
</a>
1
2
3
4
{
  "title": "Nibh suscipit vitae in eu eget tortor leo facilisis semper. Magna tempor, quam varius eget scelerisque arcu magna at.",
  "kicker": "Related Content Module"
}
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
<a href="{{ href | default("javascript:void(0);") }}" class="m-detail-inline-recirculation" aria-label="{{ kicker }}: {{ title }}">
	<article class="m-detail-inline-recirculation__inner">
		<span class="m-detail-inline-recirculation__kicker">{{ kicker }}</span>

		{% if image %}
			<figure class="m-detail-inline-recirculation__media">
				<div class="m-detail-inline-recirculation__media-image">
					{% include 'components/atoms/image/image' with image only %}
					{% if icon %}
						{% include 'components/atoms/icon/icon' with icon %}
					{% endif %}
				</div>
				{% if caption %}
					<figcaption class="m-detail-inline-recirculation__media-caption">
						{{caption}}
					</figcaption>
				{% endif %}
			</figure>
		{% endif %}

		<div class="m-detail-inline-recirculation__main">
			<h2 class="m-detail-inline-recirculation__title">{{ title }}</h2>
		</div>
	</article>
</a>
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
136
137
138
139
140
141
142
.m-detail-inline-recirculation {
  display: block;
  @include link-focus;

  @include width-multi(
    (
      xsmall: 6,
      small: 6,
      medium: 4,
      large: 6,
      xlarge: 9,
      xxlarge: 9,
      xxxlarge: 9
    )
  );

  &__inner {
    @include columns-container;
    @include spacing(
      (
        "xsmall": 12px,
        "medium+": 16px
      )
    );
    @include breakpoint("xlarge+") {
      display: block;
      overflow: hidden;
    }
  }

  &__kicker {
    @include f-heading-1;

    @include column(
      (
        xsmall: 6,
        small: 6,
        medium: 4,
        large: 6,
        xlarge: 6,
        xxlarge: 6,
        xxxlarge: 6
      )
    );
  }

  &__main {
    @include column(
      (
        xsmall: 6,
        small: 6,
        medium: 4,
        large: 6,
        xlarge: 6,
        xxlarge: 6,
        xxxlarge: 6
      )
    );

    // &:only-child {
    //   @include column(
    //     (
    //       xsmall: 6,
    //       small: 6,
    //       medium: 4,
    //       large: 6,
    //       xlarge: 9,
    //       xxlarge: 9,
    //       xxxlarge: 9
    //     )
    //   );
    // }
  }

  &__media {
    @include column(
      (
        xsmall: 6,
        small: 6,
        medium: 4,
        large: 6,
        xlarge: 3,
        xxlarge: 3,
        xxxlarge: 3
      )
    );

    @include spacing(
      (
        xsmall: 24px,
        "medium+": 20px,
        "xlarge+": 0px
      )
    );

    @include breakpoint("xlarge+") {
      float: right;
    }
  }

  &__media-image {
    position: relative;

    svg {
      position: absolute;
      bottom: 16px;
      left: 20px;
      transition: color $timing--short $bezier--standard;
    }
  }

  &:hover &__media-image svg {
    color: var(--color--action);
  }

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

  &__kicker + &__main {
    padding-top: 16px;
  }

  &__media + &__main {
    @include spacing(
      (
        xsmall: 16px,
        "medium+": 20px,
        "xlarge+": 16px
      )
    );
  }

  &__meta {
    padding-top: 20px;
  }

  &__media-caption {
    @include f-caption-1;
    padding-top: 12px;
  }
}