<commit_before>/*doc
---
title: Floating Action
name: floatingAction
category: UI Components
---
If a page has a single important action, you can use a `floatingAction` wrapper to
call it out. At small screen sizes, the element with the `floatingAction` class
will fix to the bottom of the viewport.

__Note:__ A class of `hasFloatingAction` is available if extra space is needed at the bottom
of a page for the floating action to "land" in. Apply to the `body` tag.

```html_example
	<div class="bounds">
		<p class="chunk">The button below will fix to the bottom of the viewport at small sizes</p>
		<div class="floatingAction">
			<a href="#" class="button button--primary button--fullWidth">Floating Action</a>
		</div>
	</div>
```
*/

$_buttonHeight: 40px;
$_containerHeight: $space*2 + $_buttonHeight;

.floatingAction {
	box-sizing: border-box;
	padding: $space;
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 1;
	background-color: $C_contentBG;
}

// for `body` tag
.hasFloatingAction {
	background-color: $C_contentBGInverted;
	padding-bottom: $_containerHeight;
}

@include atMediaUp(medium) {
	.floatingAction {
		padding: initial;
		position: static;
		background-color: transparent;
	}
	.hasFloatingAction {
		background-color: transparent;<commit_msg>add shadow to floatingAction on small screens<commit_after>/*doc
---
title: Floating Action
name: floatingAction
category: UI Components
---
If a page has a single important action, you can use a `floatingAction` wrapper to
call it out. At small screen sizes, the element with the `floatingAction` class
will fix to the bottom of the viewport.

__Note:__ A class of `hasFloatingAction` is available if extra space is needed at the bottom
of a page for the floating action to "land" in. Apply to the `body` tag.

```html_example
	<div class="bounds">
		<p class="chunk">The button below will fix to the bottom of the viewport at small sizes</p>
		<div class="floatingAction">
			<a href="#" class="button button--primary button--fullWidth">Floating Action</a>
		</div>
	</div>
```
*/

$_buttonHeight: 40px;
$_containerHeight: $space*2 + $_buttonHeight;

.floatingAction {
	box-sizing: border-box;
	padding: $space;
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 1;
	background-color: $C_contentBG;
}

// for `body` tag
.hasFloatingAction {
	background-color: $C_contentBGInverted;
	padding-bottom: $_containerHeight;
}

@include atMediaUp(medium) {
	.floatingAction {
		@extend %shadow;
		padding: initial;
		position: static;
		background-color: transparent;
	}
	.hasFloatingAction {
		background-color: transparent;
{'fraction_non_alphanumeric': 0.11460329628210042, 'fraction_numerical': 0.005366040628593331, 'mean_word_length': 4.54140127388535, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5436764', 'n_tokens_mistral': 888, 'n_tokens_neox': 841, 'n_words': 297}