Skip to content

Commit c3f3543

Browse files
author
AJ Griffiths
committed
Finish styling work
1 parent 0bd4016 commit c3f3543

File tree

2 files changed

+23
-13
lines changed

2 files changed

+23
-13
lines changed

tbx/project_styleguide/templates/patterns/molecules/streamfield/blocks/sticky_call_to_action.html

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,22 @@
33

44
<!-- Sticky block -->
55
<div class="call-to-action__sticky">
6-
<div class="call-to-action__stickyinner">
6+
<div class="call-to-action__inner">
77
{% if value.get_button_link_block.block_type == "modal_iframe" %}
8-
<button class="call-to-action__button button" data-micromodal-trigger="iframe-embed-modal">
9-
{{ value.sticky_text }}
8+
<button class="call-to-action__stickybutton button" data-micromodal-trigger="iframe-embed-modal">
9+
<span class="call-to-action__stickyheading">{{ value.sticky_text }}</span>
1010
{% if value.sticky_subtext %}
11-
<br>
12-
{{ value.sticky_subtext }}
11+
<br><span class="call-to-action__stickysubtext">{{ value.sticky_subtext }}</span>
1312
{% endif %}
1413
</button>
1514
{% else %}
1615
<a href="{{ value.get_button_link }}" class="call-to-action__button button">
17-
{{ value.sticky_text }}
16+
<span class="call-to-action__stickyheading">{{ value.sticky_text }}</span>
1817
{% if value.get_button_link_block.block_type == "document_link" %}
1918
({{ value.get_button_file_size|filesizeformat }})
2019
{% endif %}
2120
{% if value.sticky_subtext %}
22-
<br>
23-
{{ value.sticky_subtext }}
21+
<br><span class="call-to-action__stickysubtext">{{ value.sticky_subtext }}</span>
2422
{% endif %}
2523
</a>
2624
{% endif %}

tbx/static_src/sass/components/_call-to-action.scss

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,22 @@
5555
padding: $spacer-mini;
5656
}
5757

58-
&__stickyinner {
59-
display: flex;
60-
align-items: flex-end;
61-
justify-content: space-between;
62-
gap: $spacer-mini;
58+
&__stickybutton {
59+
@include font-size('size-five');
60+
color: var(--color--white);
61+
border: 1px solid var(--color--white);
62+
margin-top: 0;
63+
64+
&:focus {
65+
@include focus-style($outline-color: var(--color--background));
66+
}
67+
}
68+
69+
&__stickyheading {
70+
font-weight: $weight--semibold;
6371
}
72+
&__stickysubtext {
73+
font-weight: $weight--extralight;
74+
}
75+
6476
}

0 commit comments

Comments
 (0)