Alerts

variables

alert-close-font-size

Deprecated!

as of v2.12.0 use the Sass map $alert-close instead

$alert-close-font-size: 0.875rem !default;

alert-close-height

Deprecated!

as of v2.12.0 use the Sass map $alert-close instead

$alert-close-height: 2rem !default;

alert-close-line-height

Deprecated!

as of v2.12.0 use the Sass map $alert-close instead

$alert-close-line-height: null !default;

alert-close-opacity

Deprecated!

as of v2.12.0 use the Sass map $alert-close instead

$alert-close-opacity: null !default;

alert-close-margin-left

Deprecated!

as of v2.12.0 use the Sass map $alert-close instead

$alert-close-margin-left: null !default;

alert-close-padding-bottom

Deprecated!

as of v2.12.0 use the Sass map $alert-close instead

$alert-close-padding-bottom: 0 !default;

alert-close-padding-left

Deprecated!

as of v2.12.0 use the Sass map $alert-close instead

$alert-close-padding-left: 0 !default;

alert-close-padding-right

Deprecated!

as of v2.12.0 use the Sass map $alert-close instead

$alert-close-padding-right: 0 !default;

alert-close-padding-top

Deprecated!

as of v2.12.0 use the Sass map $alert-close instead

$alert-close-padding-top: 0 !default;

alert-close-position-right

Deprecated!

as of v2.12.0 use the Sass map $alert-close instead

$alert-close-position-right: 0.5rem !default;

alert-close-position-top

Deprecated!

as of v2.12.0 use the Sass map $alert-close instead

$alert-close-position-top: 0.75rem !default;

alert-close-width

Deprecated!

as of v2.12.0 use the Sass map $alert-close instead

$alert-close-width: $alert-close-height !default;

Aspect Ratio

mixins

clay-aspect-ratio

@mixin clay-aspect-ratio($width: 1, $height: 1) { ... }

Description

A mixin that sets the width to height ratio of an element using padding-bottom. This element must be position: relative and items nested inside this element must use position: absolute.

Parameters

parameter Nameparameter Descriptionparameter Typeparameter Default value
$width

The ratio width (e.g., 16)

Number1
$height

The ratio height (e.g., 9)

Number1

Used by

TODO's

    • Add @example
    • Add @link to documentation

clay-aspect-ratio-item-variant

@mixin clay-aspect-ratio-item-variant($map) { ... }

Description

A mixin that helps style a custom aspect-ratio-item component.

Parameters

parameter Nameparameter Descriptionparameter Typeparameter Default value
$map

A map of key: value pairs. The keys and value types are listed below:

Map none

Map Keys and Value Types

enabled: {Bool}, // Set to false to prevent mixin styles from being output. Default: true
bottom: {Number | String | Null},
color: {Color | String | Null},
display: {String | Null},
height: {Number | String | Null},
left: {Number | String | Null},
max-height: {Number | String | Null},
max-width: {Number | String | Null},
overflow: {String | Null},
position: {String | Null},
right: {Number | String | Null},
top: {Number | String | Null},
width: {Number | String | Null},
word-wrap: {String | Null},

Requires

Used by

TODO's

    • Add @example
    • Add @link to documentation

clay-aspect-ratio-variant

@mixin clay-aspect-ratio-variant($map) { ... }

Description

A mixin that styles an aspect ratio container.

Parameters

parameter Nameparameter Descriptionparameter Typeparameter Default value
$map

A map of key: value pairs. The keys and value types are listed below:

Map none

Map Keys and Value Types

enabled: {Bool}, // Set to false to prevent mixin styles from being output. Default: true
border-color: {Color | String | Null},
border-style: {String | Null},
border-width: {Number | List | Null},
color: {Color | String | Null},
font-size: {Number | String | Null},
horizontal: {Number | Null}, // Sets the `clay-aspect-ratio` `$width` (e.g., 16)
text-align: {String | Null},
vertical: {Number | Null}, // Sets the `clay-aspect-ratio` `$height` (e.g., 9)
lexicon-icon-height: {Number | String | Null},
lexicon-icon-margin-top: {Number | String | Null},
lexicon-icon-width: {Number | String | Null},

Requires

Used by

TODO's

    • Add @example
    • Add @link to documentation

Badges

mixins

clay-badge-size

@mixin clay-badge-size($map) { ... }

Description

A mixin for creating custom badge sizes.

Parameters

parameter Nameparameter Descriptionparameter Typeparameter Default value
$map

A map of key: value pairs. The keys and value types are listed below:

Map none

Map Keys and Value Types

border-width: {List | Number}, // Default: $badge-border-width
font-size: {Number | String | Null},
height: {Number | String | Null},
padding-x: {Number | String | Null},
padding-y: {Number | String}, // Default: 0
lexicon-icon-height: {Number | String | Null},
lexicon-icon-margin-top: {Number | String | Null},
lexicon-icon-width: {Number | String | Null},

Requires

TODO's

    • Update or Deprecate this mixin in favor of a clay-badge-variant mixin

Buttons

mixins

clay-button-size

Deprecated!

use the mixin clay-button-variant instead

@mixin clay-button-size($map) { ... }

Description

A mixin that helps create custom button sizes

Parameters

parameter Nameparameter Descriptionparameter Typeparameter Default value
$map

A map of key: value pairs.

Map none

Requires

clay-button-variant

@mixin clay-button-variant($map) { ... }

Description

A mixin to create button variants, use this instead of clay-button-size(). You can base your variant off Bootstrap's .btn class or create your own base class (e.g., <button class="btn my-custom-btn-primary"></button> or <button class="my-custom-btn my-custom-btn-primary"></button>).

Parameters

parameter Nameparameter Descriptionparameter Typeparameter Default value
$map

A map of key: value pairs. The keys and value types are listed below:

Map none

Map Keys and Value Types

enabled: {Bool}, // Set to false to prevent mixin styles from being output. Default: true
breakpoint-down: {String, Null}, // The Bootstrap 4 Breakpoint {xs | sm | md | lg | xl}
See Mixin `clay-css` for available keys to pass into the base selector
hover: {Map | Null}, // See Mixin `clay-css` for available keys
focus: {Map | Null}, // See Mixin `clay-css` for available keys
disabled: {Map | Null}, // See Mixin `clay-css` for available keys
active: {Map | Null}, // See Mixin `clay-css` for available keys
active-focus: {Map | Null}, // See Mixin `clay-css` for available keys
lexicon-icon: {Map | Null}, // See Mixin `clay-css` for available keys
inline-item: {Map | Null}, // See Mixin `clay-css` for available keys
section: {Map | Null}, // See Mixin `clay-css` for available keys
mobile: {Map | Null}, // See Mixin `clay-css` for available keys
loading-animation: {String | Null}, // The placeholder name 'loading-animation' or 'loading-animation-light'
c-inner: {Map | Null}, // Pass parameters to `clay-css` mixin
-=-=-=-=-=- Deprecated -=-=-=-=-=-
bg: {Color | String | Null}, // deprecated after 3.9.0
hover-bg: {Color | String | Null}, // deprecated after 3.9.0
hover-border-color: {Color | String | List | Null}, // deprecated after 3.9.0
hover-color: {Color | String | Null}, // deprecated after 3.9.0
hover-opacity: {Number | String | Null}, // deprecated after 3.9.0
hover-text-decoration: {String | Null}, // deprecated after 3.9.0
hover-z-index: {Number | String | Null}, // deprecated after 3.9.0
focus-bg: {Color | String | Null}, // deprecated after 3.9.0
focus-border-color: {Color | String | List | Null}, // deprecated after 3.9.0
focus-box-shadow: {String | List | Null}, // deprecated after 3.9.0
focus-color: {Color | String | Null}, // deprecated after 3.9.0
focus-opacity: {Number | String | Null}, // deprecated after 3.9.0
focus-outline: {Number | String | Null}, // deprecated after 3.9.0
focus-z-index: {Number | String | Null}, // deprecated after 3.9.0
disabled-bg: {Color | String | Null}, // deprecated after 3.9.0
disabled-border-color: {Color | String | List | Null}, // deprecated after 3.9.0
disabled-box-shadow: {String | List | Null}, // deprecated after 3.9.0
disabled-color: {Color | String | Null}, // deprecated after 3.9.0
disabled-cursor: {String | Null}, // deprecated after 3.9.0
disabled-opacity: {Number | String | Null}, // deprecated after 3.9.0
disabled-z-index: {Number | String | Null}, // deprecated after 3.9.0
active-bg: {Color | String | Null}, // deprecated after 3.9.0
active-border-color: {Color | String | List | Null}, // deprecated after 3.9.0
active-box-shadow: {String | List | Null}, // deprecated after 3.9.0
active-color: {Color | String | Null}, // deprecated after 3.9.0
active-opacity: {Number | String | Null}, // deprecated after 3.9.0
active-z-index: {Number | String | Null}, // deprecated after 3.9.0
active-focus-box-shadow: {String | List}, // deprecated after 3.9.0, Default: $focus-box-shadow
lexicon-icon-font-size: {Number | String | Null}, // deprecated after 3.9.0
lexicon-icon-margin-bottom: {Number | String | Null}, // deprecated after 3.9.0
lexicon-icon-margin-right: {Number | String | Null}, // deprecated after 3.9.0
lexicon-icon-margin-left: {Number | String | Null}, // deprecated after 3.9.0
lexicon-icon-margin-top: {Number | String | Null}, // deprecated after 3.9.0
inline-item-font-size: {Number | String | Null}, // deprecated after 3.9.0
section-font-size: {Number | String | Null}, // deprecated after 3.9.0
section-font-weight: {Number | String | Null}, // deprecated after 3.9.0
section-line-height: {Number | String | Null}, // deprecated after 3.9.0
font-size-mobile: {Number | String | Null}, // deprecated after 3.9.0
height-mobile: {Number | String | Null}, // deprecated after 3.9.0
padding-bottom-mobile: {Number | String | Null}, // deprecated after 3.9.0
padding-left-mobile: {Number | String | Null}, // deprecated after 3.9.0
padding-right-mobile: {Number | String | Null}, // deprecated after 3.9.0
padding-top-mobile: {Number | String | Null}, // deprecated after 3.9.0
width-mobile: {Number | String | Null}, // deprecated after 3.9.0

Requires

Used by

TODO's

    • Add @example
    • Add @link to documentation

Cards

mixins

clay-card-section-variant

@mixin clay-card-section-variant($map) { ... }

Description

A mixin that styles a Card Section (e.g., .card-header, .card-body, .card-footer or .card-row). This mixin is used by clay-card-variant.

Parameters

parameter Nameparameter Descriptionparameter Typeparameter Default value
$map

A map of key-value pairs. The keys are defined in the mixin. Example below:

Map none

Map Keys and Value Types

enabled: {Bool},  // Set to false to prevent mixin styles from being output. Default: true
bg: {Color | String | Null},
border-color: {Color | String | List | Null},
border-radius: {Number | String | List | Null},
border-style: {String | List | Null},
border-width: {Number | String | List | Null},
display: {String | Null},
flex-basis: {Number | String | Null},
flex-direction: {String | Null},
flex-grow: {Number | String | Null},
flex-shrink: {Number | String | Null},
flex-wrap: {String | Null},
margin-bottom: {Number | String | Null},
margin-left: {Number | String | Null},
margin-right: {Number | String | Null},
margin-top: {Number | String | Null},
padding-bottom: {Number | String | Null},
padding-left: {Number | String | Null},
padding-right: {Number | String | Null},
padding-top: {Number | String | Null},
text-align: {String | Null},
width: {Number | String | Null},
autofit-col-padding-left: {Number | String | Null},
autofit-col-padding-right: {Number | String | Null},

Requires

Used by

TODO's

    • Add @example
    • Add @link to documentation

clay-card-variant

@mixin clay-card-variant($map) { ... }

Description

A mixin that styles a custom Card.

Parameters

parameter Nameparameter Descriptionparameter Typeparameter Default value
$map

A map of key: value pairs. The keys and value types are listed below:

Map none

Map Keys and Value Types

enabled: {Bool},  // Set to false to prevent mixin styles from being output. Default: true
bg: {Color | String | Null},
border-color: {Color | String | List | Null},
border-style: {String | List | Null},
border-width: {Number | String | List | Null},
box-shadow: {String | List | Null},
cursor: {String | Null},
color: {Color | String | Null},
display: {String | Null},
flex-basis: {Number | String | Null},
flex-direction: {String | Null},
flex-grow: {Number | String | Null},
flex-shrink: {Number | String | Null},
margin-bottom: {Number | String | Null},
min-width: {Number | String | Null},
outline: {Number | String | Null},
position: {String | Null},
text-decoration: {String | Null},
transition: {String | List | Null},
width: {Number | String | Null},
word-wrap: {String | Null},
hover-bg: {Color | String | Null},
hover-border-color: {Color | String | List | Null},
hover-box-shadow: {String | List | Null},
hover-color: {Color | String | Null},
hover-text-decoration: {String | Null},
hover-card-title: {Map | Null}, // Pass parameters to `clay-link` mixin
hover-card-subtitle: {Map | Null}, // Pass parameters to `clay-link` mixin
hover-card-text: {Map | Null}, // Pass parameters to `clay-link` mixin
hover-card-link: {Map | Null}, // Pass parameters to `clay-link` mixin
focus-bg: {Color | String | Null},
focus-border-color: {Color | String | List | Null},
focus-box-shadow: {String | List | Null},
focus-color: {Color | String | Null},
focus-text-decoration: {String | Null},
focus-card-title: {Map | Null}, // Pass parameters to `clay-link` mixin
focus-card-subtitle: {Map | Null}, // Pass parameters to `clay-link` mixin
focus-card-text: {Map | Null}, // Pass parameters to `clay-link` mixin
focus-card-link: {Map | Null}, // Pass parameters to `clay-link` mixin
active-bg: {Color | String | Null},
active-border-color: {Color | String | List | Null},
active-color: {Color | String | Null},
active-card-title: {Map | Null}, // Pass parameters to `clay-link` mixin
active-card-subtitle: {Map | Null}, // Pass parameters to `clay-link` mixin
active-card-text: {Map | Null}, // Pass parameters to `clay-link` mixin
active-card-link: {Map | Null}, // Pass parameters to `clay-link` mixin
after-highlight: {Map | Null}, // Pass parameters to `clay-after-highlight-variant` mixin
aspect-ratio: {Map | Null}, // Pass parameters to `clay-aspect-ratio-variant` mixin
aspect-ratio-item: {Map | Null}, // Pass parameters to `clay-aspect-ratio-item-variant` mixin
sticker: {Map | Null}, // Pass parameters to `clay-sticker-variant` mixin
card-header: {Map | Null}, // Pass parameters to `clay-card-section-variant` mixin
card-body: {Map | Null}, // Pass parameters to `clay-card-section-variant` mixin
card-footer: {Map | Null}, // Pass parameters to `clay-card-section-variant` mixin
card-row: {Map | Null}, // Pass parameters to `clay-card-section-variant` mixin
card-title: {Map | Null}, // Pass parameters to `clay-link` mixin
card-subtitle: {Map | Null}, // Pass parameters to `clay-link` mixin
card-text: {Map | Null}, // Pass parameters to `clay-link` mixin
card-link: {Map | Null}, // Pass parameters to `clay-link` mixin

Requires

TODO's

    • Add @example
    • Add @link to documentation

clay-card-type-asset

@mixin clay-card-type-asset($map) { ... }

Description

A mixin for creating the base component .card-type-asset that is used with .image-card, .file-card, .user-card.

Parameters

parameter Nameparameter Descriptionparameter Typeparameter Default value
$map

A map of key: value pairs. The keys and value types are listed below:

Map none

Map Keys and Value Types

enabled: {Bool}, // Set to false to prevent mixin styles from being output. Default: true
aspect-ratio-border-color: {Color | String | List | Null}, // Default: $card-border-color
aspect-ratio-border-style: {String | List | Null}, // Default: solid
aspect-ratio-border-bottom-width: {Number | List | Null}, // deprecated as of v2.5.1 use `aspect-ratio-border-width` instead. Default: 0 0 0.0625rem 0
aspect-ratio-border-width: {Number | List | Null}, // Default: $aspect-ratio-border-width
aspect-ratio-horizontal: {Number | Null}, // Sets the `clay-aspect-ratio` `$width`. Default: 16
aspect-ratio-vertical: {Number | Null}, // Sets the `clay-aspect-ratio` `$height`. Default: 9
card-body-padding-bottom: {Number | String | Null},
card-body-padding-left: {Number | String | Null},
card-body-padding-right: {Number | String | Null},
card-body-padding-top: {Number | String | Null},
card-row-align-items: {String | Null}, // Default: flex-start
checkbox-cursor: {String | Null}, // Default: $link-cursor
asset-icon-color: {Color | String | Null},
asset-icon-width: {Number | String | Null}, // Default: 22.225%
asset-icon-sticker-border-radius: {Number | List | Null}, // Default: 50%
asset-icon-sticker-font-size: {Number | String | Null}, // Default: 2vw
dropdown-action-offset-bottom: {Number | String | Null},
dropdown-action-offset-left: {Number | String | Null},
dropdown-action-offset-right: {Number | String | Null}, // Default: -0.5rem
dropdown-action-offset-top: {Number | String | Null}, // Default: -0.1875rem

Requires

TODO's

    • Add @example
    • Add @link to documentation

clay-card-type-asset-variant

@mixin clay-card-type-asset-variant($map) { ... }

Description

A mixin to create .card-type-asset variants. This mixin is used by .image-card, .file-card, .user-card.

Parameters

parameter Nameparameter Descriptionparameter Typeparameter Default value
$map

A map of key-value pairs. The keys are defined in the mixin. Example below:

Map none

Map Keys and Value Types

enabled: {Bool}, // Set to false to prevent mixin styles from being output. Default: true
aspect-ratio-bg: {Color | String | Null},
aspect-ratio-checkered-fg: {Color | Null}, // Pass parameter to `clay-bg-checkered` mixin 
aspect-ratio-checkered-bg: {Color},
asset-icon-color: {Color | String | Null},
asset-icon-max-width: {Number | String | Null},
asset-icon-min-width: {Number | String | Null},
asset-icon-width: {Number | String | Null},
asset-icon-lexicon-icon-height: {Number | String | Null},
asset-icon-lexicon-icon-width: {Number | String | Null},

Requires

TODO's

    • Add @example
    • Add @link to documentation

clay-card-type-directory

@mixin clay-card-type-directory($map) { ... }

Description

A mixin for creating the base component .card-type-directory.

Parameters

parameter Nameparameter Descriptionparameter Typeparameter Default value
$map

A map of key: value pairs. The keys and value types are listed below:

Map none

Map Keys and Value Types

enabled: {Bool}, // Set to false to prevent mixin styles from being output. Default: true
card-body-padding-bottom: {Number | String | Null},
card-body-padding-left: {Number | String | Null},
card-body-padding-right: {Number | String | Null},
card-body-padding-top: {Number | String | Null},
sticker-font-size: {Number | String | Null},
sticker-line-height: {Number | String | Null},
sticker-size: {Number | String | Null},
dropdown-action-offset-bottom: {Number | String | Null},
dropdown-action-offset-left: {Number | String | Null},
dropdown-action-offset-right: {Number | String | Null}, // Default: -0.5rem
dropdown-action-offset-top: {Number | String | Null},

Requires

TODO's

    • Add @example
    • Add @link to documentation

Custom Forms

variables

custom-control-description-disabled-color

Deprecated!

as of v2.19.0 use the Sass map $custom-control-label-disabled-color instead. This variable is not used in Clay CSS.

$custom-control-description-disabled-color: $input-label-disabled-color !default;

custom-control-indicator-active-checked-bg

Deprecated!

as of v2.2.1 use $custom-control-indicator-checked-active-bg instead

$custom-control-indicator-active-checked-bg: null !default;

custom-control-indicator-active-checked-border-color

Deprecated!

as of v2.2.1 use $custom-control-indicator-checked-active-border-color instead

$custom-control-indicator-active-checked-border-color: null !default;

custom-control-indicator-disabled-checked-bg

Deprecated!

as of v2.2.1 use $custom-control-indicator-checked-disabled-bg instead

$custom-control-indicator-disabled-checked-bg: null !default;

custom-control-indicator-disabled-checked-border-color

Deprecated!

as of v2.2.1 use $custom-control-indicator-checked-disabled-border-color instead

$custom-control-indicator-disabled-checked-border-color: null !default;

custom-control-margin-bottom

Deprecated!

after of v3.5.0 use the Sass map $custom-control instead

$custom-control-margin-bottom: null !default;

custom-control-margin-top

Deprecated!

after of v3.5.0 use the Sass map $custom-control instead

$custom-control-margin-top: null !default;

custom-control-min-height

Deprecated!

after of v3.5.0 use the Sass map $custom-control instead

$custom-control-min-height: $custom-control-indicator-size + ($custom-control-indicator-position-top * 2) !default;

custom-control-description-cursor

Deprecated!

as of v2.19.0 use the Sass map $custom-control-label instead

$custom-control-description-cursor: $form-check-label-cursor !default;

custom-control-description-font-size

Deprecated!

as of v2.19.0 use the Sass map $custom-control-label instead

$custom-control-description-font-size: 1rem !default;

custom-control-description-font-weight

Deprecated!

as of v2.19.0 use the Sass map $custom-control-label instead

$custom-control-description-font-weight: null !default;

custom-control-description-line-height

Deprecated!

as of v2.19.0 use the Sass map $custom-control-label instead

$custom-control-description-line-height: $custom-control-min-height !default;

custom-control-description-padding-left

Deprecated!

as of v2.19.0 use the Sass map $custom-control-label-text instead

$custom-control-description-padding-left: 0.5rem !default;

custom-control-description-disabled-cursor

Deprecated!

as of v2.19.0 use the Sass map $custom-control-label-disabled instead

$custom-control-description-disabled-cursor: $disabled-cursor !default;

custom-control-description-small-font-size

Deprecated!

as of v2.19.0 use the Sass map $custom-control-label-text-small instead

$custom-control-description-small-font-size: null !default;

custom-radio-indicator-disabled-checked-border-color

Deprecated!

as of v2.2.1 use $custom-radio-indicator-checked-disabled-border-color instead

$custom-radio-indicator-disabled-checked-border-color: null !default;

Dropdowns

Forms

mixins

clay-form-control-variant

@mixin clay-form-control-variant($map) { ... }

Description

A mixin to create Form Control variants. You can base your variant off Bootstrap's .form-control class or create your own base class (e.g., <input class="form-control my-custom-form-control" type="text" /> or <input class="my-custom-form-control" type="text" />).

Parameters

parameter Nameparameter Descriptionparameter Typeparameter Default value
$map

A map of key: value pairs. The keys and value types are listed below:

Map none

Map Keys and Value Types

See Mixin `clay-css` for available keys to pass into the base selector
enabled: {Bool}, // Set to false to prevent mixin styles from being output. Default: true
placeholder-color: {Color | String | Null}, // deprecated after 3.7.0
placeholder-opacity: {Number | String | Null}, // deprecated after 3.7.0
placeholder: {Map | Null}, // See Mixin `clay-css` for available keys
selection-bg: {Color | String | Null}, // deprecated after 3.7.0
selection-color: {Color | String | Null}, // deprecated after 3.7.0
selection: {Map | Null}, // See Mixin `clay-css` for available keys
hover-bg: {Color | String | Null}, // deprecated after 3.7.0
hover-border-color: {Color | String | List | Null}, // deprecated after 3.7.0
hover-box-shadow: {String | List | Null}, // deprecated after 3.7.0
hover-color: {Color | String | Null}, // deprecated after 3.7.0
hover-placeholder-color: {Color | String | Null}, // deprecated after 3.7.0
hover: {Map | Null}, // See Mixin `clay-css` for available keys
focus-bg: {Color | String | Null}, // deprecated after 3.7.0
focus-bg-image: {String | List | Null}, // deprecated after 3.7.0
focus-border-color: {Color | String | List | Null}, // deprecated after 3.7.0
focus-box-shadow: {String | List | Null}, // deprecated after 3.7.0
focus-color: {Color | String | Null}, // deprecated after 3.7.0
focus: {Map | Null}, // See Mixin `clay-css` for available keys
focus-placeholder-color: {Color | String | Null}, // deprecated after 3.7.0
focus-placeholder: {Map | Null}, // See Mixin `clay-css` for available keys
readonly-bg: {Color | String | Null}, // deprecated after v2.18.0
readonly-bg-image: {String | List | Null}, // deprecated after v2.18.0
readonly-border-color: {Color | String | List | Null}, // deprecated after v2.18.0
readonly-box-shadow: {String | List | Null}, // deprecated after v2.18.0
readonly-color: {Color | String | Null}, // deprecated after v2.18.0
readonly-cursor: {String | Null}, // deprecated after v2.18.0
readonly-opacity: {Number | String | Null}, // deprecated after v2.18.0
readonly-placeholder-color: {Color | String | Null}, // deprecated after v2.18.0
disabled-bg: {Color | String | Null}, // deprecated after 3.7.0
disabled-bg-image: {String | List | Null}, // deprecated after 3.7.0
disabled-border-color: {Color | String | List | Null}, // deprecated after 3.7.0
disabled-box-shadow: {String | List | Null}, // deprecated after 3.7.0
disabled-color: {Color | String | Null}, // deprecated after 3.7.0
disabled-cursor: {String | Null}, // deprecated after 3.7.0
disabled-opacity: {Number | String | Null}, // deprecated after 3.7.0
disabled: {Map | Null}, // See Mixin `clay-css` for available keys
disabled-placeholder-color: {Color | String | Null}, // deprecated after 3.7.0
disabled-placeholder: {Map | Null}, // See Mixin `clay-css` for available keys

Requires

TODO's

    • Add @example
    • Add @link to documentation

clay-select-variant

@mixin clay-select-variant($map) { ... }

Description

A mixin to create Select Form Control variants. You can base your variant off Bootstrap's select.form-control selector or create your own base class (e.g., <select class="form-control my-custom-form-control"></select> or <select class="my-custom-form-control"></select>).

Parameters

parameter Nameparameter Descriptionparameter Typeparameter Default value
$map

A map of key: value pairs. The keys and value types are listed below:

Map none

Map Keys and Value Types

See Mixin `clay-css` for available keys to pass into the base selector
hover-bg: {Color | String | Null}, // deprecated after 3.7.0
hover-border-color: {Color | String | List | Null}, // deprecated after 3.7.0
hover-box-shadow: {String | List | Null}, // deprecated after 3.7.0
hover-color: {Color | String | Null}, // deprecated after 3.7.0
hover: {Map | Null}, // See Mixin `clay-css` for available keys
focus-bg: {Color | String | Null}, // deprecated after 3.7.0
focus-bg-image: {String | List | Null}, // deprecated after 3.7.0
focus-border-color: {Color | String | List | Null}, // deprecated after 3.7.0
focus-box-shadow: {String | List | Null}, // deprecated after 3.7.0
focus-color: {Color | String | Null}, // deprecated after 3.7.0
focus: {Map | Null}, // See Mixin `clay-css` for available keys
disabled-bg: {Color | String | Null}, // deprecated after 3.7.0
disabled-bg-image: {String | List | Null}, // deprecated after 3.7.0
disabled-border-color: {Color | String | List | Null}, // deprecated after 3.7.0
disabled-box-shadow: {String | List | Null}, // deprecated after 3.7.0
disabled-color: {Color | String | Null}, // deprecated after 3.7.0
disabled-cursor: {String | Null}, // deprecated after 3.7.0
disabled-opacity: {Number | String | Null}, // deprecated after 3.7.0
disabled: {Map | Null}, // See Mixin `clay-css` for available keys

Requires

TODO's

    • Add @example
    • Add @link to documentation

clay-range-input-variant

@mixin clay-range-input-variant($map) { ... }

Description

A mixin to create Clay Range variants.

Parameters

parameter Nameparameter Descriptionparameter Typeparameter Default value
$map

A map of key: value pairs. The keys and value types are listed below:

Map none

Map Keys and Value Types

color: {Color | String | Null},
display: {String | Null},
padding-bottom: {Number | String | Null},
position: {String | Null},
vertical-align: {String | Null},
width: {Number | String | List | Null},
thumb-bg: {Color | String | Null},
thumb-bg-image: {String | List | Null},
thumb-border-radius: {Number | String | List | Null},
thumb-border-color: {Color | String | List | Null},
thumb-border-style: {String | List | Null},
thumb-border-width: {Number | String | List | Null},
thumb-box-shadow: {String | List | Null},
thumb-height: {Number | String | Null},
thumb-width: {Number | String | Null},
track-bg: {Color | String | Null},
track-bg-image: {String | List | Null},
track-border-color: {Color | String | List | Null},
track-border-radius: {Number | String | List | Null},
track-border-style: {String | List | Null},
track-border-width: {Number | String | List | Null},
track-height: {Number | String | Null},
track-margin-top: {Number | String | Null},
track-position: {String | Null},
track-top: {Number | String | Null},
track-width: {Number | String | Null},
progress-bg: {Color | String | Null},
progress-bg-image: {String | List | Null},
progress-border-color: {Color | String | Null},
progress-border-radius: {Number | String | List | Null},
progress-border-style: {String | List | Null},
progress-border-width: {Number | String | Null},
progress-height: {Number | String | Null},
progress-margin-top: {Number | String | Null},
progress-position: {String | Null},
progress-top: {Number | String | Null},
progress-width: {Number | String | Null},
tooltip-bg: {Color | String | Null},
tooltip-color: {Color | String | Null},
tooltip-line-height: {Number | String | Null},
tooltip-padding: {Number | String | List | Null},
tooltip-padding-bottom: {Number | String | Null},
tooltip-padding-left: {Number | String | Null},
tooltip-padding-right: {Number | String | Null},
tooltip-padding-top: {Number | String | Null},
tooltip-spacer-x: {Number | String | Null},
tooltip-spacer-y: {Number | String | Null},
tooltip-transition: {String | List | Null},
tooltip-visibility: {String | Null},
tooltip-white-space: {String | Null},
tooltip-arrow-border-color: {Color | String | List | Null},
tooltip-arrow-border-style: {String | List | Null},
tooltip-arrow-border-width: {Number | String | List | Null},
tooltip-arrow-offset: {Number | String | Null},
tooltip-arrow-size: {Number | String | Null},
form-control-appearance: {String | Null},
form-control-bg: {Color | String | Null},
form-control-height: {Number | String | Null},
form-control-position: {String | Null},
form-control-z-index: {Number | String | Null},
data-label-font-size: {Number | String | Null},
data-label-font-weight: {Number | String | Null},
data-label-line-height: {Number | String | Null},
data-label-margin-top: {Number | String | Null},
data-label-position: {String | Null},
data-label-spacer: {Number | String | Null},
data-label-text-align: {String | Null},
data-label-top: {Number | String | Null},
data-label-width: {Number | String | Null},
data-label-before-content: {Number | String | Null},
data-label-before-left: {Number | String | Null},
data-label-after-content: {Number | String | Null},
data-label-after-right: {Number | String | Null},
hover-cursor: {String | Null},
hover-thumb-bg: {Color | String | Null},
focus-outline: {Number | String | List | Null},
focus-thumb-box-shadow: {String | List | Null},
disabled-color: {Color | String | Null},
disabled-cursor: {String | Null},
disabled-thumb-bg: {Color | String | Null},
disabled-thumb-box-shadow: {String | List | Null},
disabled-progress-bg: {Color | String | Null},
disabled-track-bg: {Color | String | Null},

Requires

Globals

functions

map-new

@function map-new() { ... }

Description

A function that returns an empty map of type map. In Sass, Empty maps and lists can be declared using () and Sass will assign its type as list. This function ensures its type will be map.

Parameters

None.

Used by

map-deep-merge

@function map-deep-merge($map1: (), $map2: ()) { ... }

Description

A function that returns a new map with all the keys and values including nested keys and values from both $map1 and $map2. If both $map1 and $map2 have the same key, $map2’s value takes precedence.

Parameters

parameter Nameparameter Descriptionparameter Typeparameter Default value
$map1 noneMap, null()
$map2 noneMap, null()

Requires

Used by

setter

@function setter($var, $val) { ... }

Description

A helper function for setting default values in variables inside mixins if no value is declared. If the value of a variable is clay-unset, setter returns a value of null which prevents Sass from outputting the declaration. If the value of a variable is null, setter returns the default, $val.

Parameters

parameter Nameparameter Descriptionparameter Typeparameter Default value
$var

The Sass variable

Any none
$val

The default value to return if $var is null

Any none

Used by

math-sign

@function math-sign($num) { ... }

Description

A helper function that returns the opposite of a number, generally used for null values so Sass doesn't output a value -null. Returns null if $num is not a number.

Parameters

parameter Nameparameter Descriptionparameter Typeparameter Default value
$num

The variable

Any none

Used by

required

@function required($var, $msg: 'This value is required!') { ... }

Description

A helper function for displaying warning messages for required variables.

Parameters

parameter Nameparameter Descriptionparameter Typeparameter Default value
$var

The variable to check

Any none
$msg

The error message to display

String'This value is required!'

Used by

clay-breakpoint-prev

@function clay-breakpoint-prev($name, $breakpoints: $grid-breakpoints, $breakpoint-names: map-keys($breakpoints)) { ... }

Description

A function that returns the name of the previous breakpoint relative to the breakpoint passed in through $name in the Sass map $grid-breakpoints. If the breakpoint does not exist in the Sass map, it returns the first breakpoint key.

Parameters

parameter Nameparameter Descriptionparameter Typeparameter Default value
$name

The breakpoint name or keys in $grid-breakpoints (e.g., xs, sm, md, lg, xl)

Key none
$breakpoints

A map that defines the breakpoints

Map$grid-breakpoints
$breakpoint-names

A list of all the keys in $breakpoints

Listmap-keys($breakpoints)

Used by

clay-max

@function clay-max($val1, $val2) { ... }

Description

A function that returns the largest of two numbers. This returns null if either number is null.

Parameters

parameter Nameparameter Descriptionparameter Typeparameter Default value
$val1

The first number.

Number none
$val2

The second number.

Number none

clay-str-replace

@function clay-str-replace($string, $search, $replace: '') { ... }

Description

A function to replace all instances of a specific character in a string.

Parameters

parameter Nameparameter Descriptionparameter Typeparameter Default value
$string

The string to operate on

String none
$search

The character to replace

String none
$replace

The character to replace $search with

String''

Used by

Links

clay-svg-url

@function clay-svg-url($svg) { ... }

Description

A function to encode an SVG and provide back a data URI to be used in background-image. If the SVG uses double quotes to delimit attribute names and values, wrap the SVG in single quotes or vice versa.

Parameters

parameter Nameparameter Descriptionparameter Typeparameter Default value
$svg

The SVG markup to encode

String none

Requires

Used by

Links

clay-icon

@function clay-icon($name, $color) { ... }

Description

A function that returns a specific Lexicon Icon with a specific color as a data URI to be used in background-image.

Parameters

parameter Nameparameter Descriptionparameter Typeparameter Default value
$name

The Lexicon Icon name (e.g., angle-right)

String none
$color

The color of the Lexicon Icon

Color none

Requires

clay-get-icons

@function clay-get-icons($color: '') { ... }

Description

A function that returns all the Lexicon Icons with a specific color.

Parameters

parameter Nameparameter Descriptionparameter Typeparameter Default value
$color

The color to use for all the Lexicon Icons

Color''

Used by

mixins

clay-css

@mixin clay-css($map) { ... }

Description

A mixin that outputs a CSS property based on the key: value pair passed to the mixin. Outputs nothing if no key: value pairs are passed. Prevent a Clay CSS Sass map from outputting properties with $the-variable: (enabled: false);

Parameters

parameter Nameparameter Descriptionparameter Typeparameter Default value
$map

A map of key: value pairs.

Map none

Requires

Used by

variables

clay-unset

Deprecated!

as of v2.4.1 we will not support unsetting variables in version 2 because it violates the Sass spec. If you are using libsass you can still unset Clay CSS / Bootstrap variables with the syntax $my-var: !default;.

$clay-unset: clay-unset !default;

Grid

mixins

clay-container-no-gutters

@mixin clay-container-no-gutters() { ... }

Description

A general mixin used to remove gutters on a container (e.g., .container or .container-fluid). This removes the gutter and the offset.

Parameters

None.

clay-container

@mixin clay-container($map) { ... }

Description

A general mixin used for component containers (e.g., .container, .container-fluid, .form-group, .input-group-inset-item)

Parameters

parameter Nameparameter Descriptionparameter Typeparameter Default value
$map

A map of key: value pairs. The keys and value types are listed below:

Map none

Map Keys and Value Types

enabled: {Bool}, // Set to false to prevent mixin styles from being output. Default: true
breakpoint-up: {String | Null}, // This uses Bootstrap 4's breakpoint up to calculate breakpoint down. Use `breakpoint-down` instead
breakpoint-down: {String, Null}, // The Bootstrap 4 Breakpoint {xs | sm | md | lg | xl}
align-items: {String | Null},
bg: {Color | String | Null},
bg-image: {String | List | Null},
bg-position: {String | List | Null},
bg-size: {Number | String | List | Null},
border-color: {Color | String | List | Null},
border-radius: {Number | String | List | Null},
border-style: {String | List | Null},
border-width: {Number | String | List | Null},
color: {Color | String | Null},
cursor: {String | Null},
display: {String | Null},
flex-basis: {Number | String | Null},
flex-direction: {String | Null},
flex-grow: {Number | String | Null},
flex-shrink: {Number | String | Null},
flex-wrap: {String | Null},
float: {String | Null},
font-family: {Number | String | Null},
font-size: {Number | String | Null},
font-weight: {Number | String | Null},
height: {Number | String | Null},
justify-content: {String | Null},
line-height: {Number | String | Null},
margin-bottom: {Number | String | Null},
margin-left: {Number | String | Null},
margin-right: {Number | String | Null},
margin-top: {Number | String | Null},
max-height: {Number | String | Null},
max-width: {Number | String | Null},
min-height: {Number | String | Null},
min-width: {Number | String | Null},
opacity: {Number | String | Null},
order: {Number | String | Null},
padding-bottom: {Number | String | Null},
padding-left: {Number | String | Null},
padding-right: {Number | String | Null},
padding-top: {Number | String | Null},
position: {String | Null},
bottom: {Number | String | Null},
left: {Number | String | Null},
right: {Number | String | Null},
top: {Number | String | Null},
text-align: {String | Null},
text-decoration: {String | Null},
text-transform: {String | Null},
transition: {String | List | Null},
vertical-align: {String | Null},
width: {Number | String | Null},
padding-bottom-mobile: {Number | String | Null},
padding-left-mobile: {Number | String | Null},
padding-right-mobile: {Number | String | Null},
padding-top-mobile: {Number | String | Null},

Requires

TODO's

    • Add @example
    • Add @link to documentation

clay-row

@mixin clay-row($map) { ... }

Description

A general mixin to create custom .row elements. .row's in Bootstrap have negative margin-left and margin-right values to offset the padding inside the columns so content will be positioned flush, vertically, with the rest of the page's content.

Parameters

parameter Nameparameter Descriptionparameter Typeparameter Default value
$map

A map of key: value pairs. The keys and value types are listed below:

Map none

Map Keys and Value Types

display: {String | Null},
flex-wrap: {String | Null},
justify-content: {String | Null},
margin-bottom: {Number | String | Null},
margin-left: {Number | String | Null},
margin-right: {Number | String | Null},
margin-top: {Number | String | Null},

TODO's

    • Add @example
    • Add @link to documentation

Input Groups

mixins

clay-input-group-stacked

@mixin clay-input-group-stacked($map) { ... }

Description

A mixin that stacks an .input-group that uses an .input-group-item at a specific max-width breakpoint. This sets the .input-group-item width to 100% and .input-group-item-shrink width to auto at the max-width breakpoint.

Parameters

parameter Nameparameter Descriptionparameter Typeparameter Default value
$map

A map of key: value pairs. The keys and value types are listed below:

Map none

Map Keys and Value Types

breakpoint: {String | Null}, // This uses Bootstrap 4's breakpoint up to calculate breakpoint down. Use `breakpoint-down` instead. // Default: md
breakpoint-down: {String, Null}, // The Bootstrap 4 Breakpoint {xs | sm | md | lg | xl}
item-margin-bottom: {Number | String | Null}, // `.input-group-item`
item-margin-left: {Number | String | Null}, // `.input-group-item`
item-margin-right: {Number | String | Null}, // `.input-group-item`
item-margin-top: {Number | String | Null}, // `.input-group-item`
shrink-margin-bottom: {Number | String | Null}, // `.input-group-item-shrink`
shrink-margin-left: {Number | String | Null}, // `.input-group-item-shrink`
shrink-margin-right: {Number | String | Null}, // `.input-group-item-shrink`
shrink-margin-top: {Number | String | Null}, // `.input-group-item-shrink`

Requires

clay-input-group-text-variant

Deprecated!

use clay-container instead

@mixin clay-input-group-text-variant($map) { ... }

Description

A mixin for customizing or creating variants of input-group-text.

Parameters

parameter Nameparameter Descriptionparameter Typeparameter Default value
$map

A map of key: value pairs. The keys and value types are listed below:

Map none

Map Keys and Value Types

align-items: {String | Null},
bg: {Color | String | Null},
border-color: {Color | String | List | Null},
border-radius: {Number | String | List | Null},
border-style: {String | List | Null},
border-width: {Number | String | List | Null},
color: {Color | String | Null},
display: {String | Null},
font-size: {Number | String | Null},
font-weight: {Number | String | Null},
height: {Number | String | Null},
justify-content: {String | Null},
line-height: {Number | String | Null},
min-width: {Number | String | Null},
padding-bottom: {Number | String | Null},
padding-left: {Number | String | Null},
padding-right: {Number | String | Null},
padding-top: {Number | String | Null},
text-align: {String | Null},
white-space: {String | Null},

Labels

mixins

clay-label-size

Deprecated!

use clay-label-variant instead

@mixin clay-label-size($map) { ... }

Description

A mixin for creating .label size variants.

Parameters

parameter Nameparameter Descriptionparameter Typeparameter Default value
$map

A map of key: value pairs. The keys and value types are listed below:

Map none

Map Keys and Value Types

border-width: {Number | String | List | Null}, // Default: $label-border-width
font-size: {Number | String | Null},
height: {Number | String | Null},
line-height: {Number | String | Null},
margin-bottom: {Number | String | Null},
margin-left: {Number | String | Null},
margin-right: {Number | String | Null},
margin-top: {Number | String | Null},
padding-x: {Number | String | Null},
padding-y: {Number | String | Null},
text-transform: {String | List | Null},
item-spacer-x: {Number | String | Null},
item-spacer-y: {Number | String | Null},
lexicon-icon-height: {Number | String | Null}, // Default: map-get($map, lexicon-icon-width)
lexicon-icon-margin-top: {Number | String | Null},
lexicon-icon-width: {Number | String | Null},
sticker-border-radius: {Number | String | List | Null},
sticker-size: {Number | String | Null},
close: {Map | Null}, // Pass parameters to `clay-close` mixin
c-inner: {Map | Null}, // Pass parameters to `clay-css` mixin

Requires

Used by

clay-label-variant

@mixin clay-label-variant($map) { ... }

Description

A mixin for creating .label color variants.

Parameters

parameter Nameparameter Descriptionparameter Typeparameter Default value
$map

A map of key: value pairs. The keys and value types are listed below:

Map none

Map Keys and Value Types

See Mixin `clay-css` for available keys to pass into the base selector
bg: {Color | String | Null}, // deprecated after 3.7.0
border-color: {Color | String | List | Null}, // deprecated after 3.7.0
color: {Color | String | Null}, // deprecated after 3.7.0
outline: {Number | String | Null}, // deprecated after 3.7.0
text-decoration: {String | Null}, // deprecated after 3.7.0
transition: {String | List | Null}, // deprecated after 3.7.0
hover-bg: {Color | String | Null}, // deprecated after 3.7.0
hover-border-color: {Color | String | List | Null}, // deprecated after 3.7.0
hover-color: {Color | String | Null}, // deprecated after 3.7.0
hover-text-decoration: {String | Null}, // deprecated after 3.7.0
hover: {Map | Null}, // See Mixin `clay-css` for available keys
focus-bg: {Color | String | Null}, // deprecated after 3.7.0
focus-border-color: {Color | String | List | Null}, // deprecated after 3.7.0
focus-box-shadow: {String | List | Null}, // deprecated after 3.7.0
focus-color: {Color | String | Null}, // deprecated after 3.7.0
focus-outline: {Number | String | Null}, // deprecated after 3.7.0
focus-text-decoration: {String | Null}, // deprecated after 3.7.0
focus: {Map | Null}, // See Mixin `clay-css` for available keys
disabled-bg: {Color | String | Null}, // deprecated after 3.7.0
disabled-border-color: {Color | String | List | Null}, // deprecated after 3.7.0
disabled-box-shadow: {String | List | Null}, // deprecated after 3.7.0
disabled-color: {Color | String | Null}, // deprecated after 3.7.0
disabled: {Map | Null}, // See Mixin `clay-css` for available keys
link-color: {Color | String | Null}, // deprecated after 3.7.0
link-text-decoration: {String | Null}, // deprecated after 3.7.0
link: {Map | Null}, // See Mixin `clay-css` for available keys
link-hover-color: {Color | String | Null}, // deprecated after 3.7.0
link-hover-text-decoration: {String | Null}, // deprecated after 3.7.0
link-hover: {Map | Null}, // See Mixin `clay-css` for available keys
close: {Map | Null}, // Pass parameters to `clay-close` mixin

Requires

Used by

variables

label-primary-color

Deprecated!

as of v2.4.1 use the Sass map $label-primary instead

$label-primary-color: $primary !default;

label-primary-hover-color

Deprecated!

as of v2.4.1 use the Sass map $label-primary instead

$label-primary-hover-color: darken($label-primary-color, 10%) !default;

label-primary-bg

Deprecated!

as of v2.4.1 use the Sass map $label-primary instead

$label-primary-bg: $white !default;

label-primary-hover-bg

Deprecated!

as of v2.4.1 use the Sass map $label-primary instead

$label-primary-hover-bg: null !default;

label-primary-border-color

Deprecated!

as of v2.4.1 use the Sass map $label-primary instead

$label-primary-border-color: $label-primary-color !default;

label-primary-hover-border-color

Deprecated!

as of v2.4.1 use the Sass map $label-primary instead

$label-primary-hover-border-color: $label-primary-hover-color !default;

label-secondary-color

Deprecated!

as of v2.4.1 use the Sass map $label-secondary instead

$label-secondary-color: $secondary !default;

label-secondary-hover-color

Deprecated!

as of v2.4.1 use the Sass map $label-secondary instead

$label-secondary-hover-color: darken($label-secondary-color, 10%) !default;

label-secondary-bg

Deprecated!

as of v2.4.1 use the Sass map $label-secondary instead

$label-secondary-bg: $white !default;

label-secondary-hover-bg

Deprecated!

as of v2.4.1 use the Sass map $label-secondary instead

$label-secondary-hover-bg: null !default;

label-secondary-border-color

Deprecated!

as of v2.4.1 use the Sass map $label-secondary instead

$label-secondary-border-color: $label-secondary-color !default;

label-secondary-hover-border-color

Deprecated!

as of v2.4.1 use the Sass map $label-secondary instead

$label-secondary-hover-border-color: $label-secondary-hover-color !default;

label-success-color

Deprecated!

as of v2.4.1 use the Sass map $label-success instead

$label-success-color: $success !default;

label-success-hover-color

Deprecated!

as of v2.4.1 use the Sass map $label-success instead

$label-success-hover-color: darken($label-success-color, 10%) !default;

label-success-bg

Deprecated!

as of v2.4.1 use the Sass map $label-success instead

$label-success-bg: $white !default;

label-success-hover-bg

Deprecated!

as of v2.4.1 use the Sass map $label-success instead

$label-success-hover-bg: null !default;

label-success-border-color

Deprecated!

as of v2.4.1 use the Sass map $label-success instead

$label-success-border-color: $label-success-color !default;

label-success-hover-border-color

Deprecated!

as of v2.4.1 use the Sass map $label-success instead

$label-success-hover-border-color: $label-success-hover-color !default;

label-info-color

Deprecated!

as of v2.4.1 use the Sass map $label-info instead

$label-info-color: $info !default;

label-info-hover-color

Deprecated!

as of v2.4.1 use the Sass map $label-info instead

$label-info-hover-color: darken($label-info-color, 10%) !default;

label-info-bg

Deprecated!

as of v2.4.1 use the Sass map $label-info instead

$label-info-bg: $white !default;

label-info-hover-bg

Deprecated!

as of v2.4.1 use the Sass map $label-info instead

$label-info-hover-bg: null !default;

label-info-border-color

Deprecated!

as of v2.4.1 use the Sass map $label-info instead

$label-info-border-color: $label-info-color !default;

label-info-hover-border-color

Deprecated!

as of v2.4.1 use the Sass map $label-info instead

$label-info-hover-border-color: $label-info-hover-color !default;

label-warning-color

Deprecated!

as of v2.4.1 use the Sass map $label-warning instead

$label-warning-color: $warning !default;

label-warning-hover-color

Deprecated!

as of v2.4.1 use the Sass map $label-warning instead

$label-warning-hover-color: darken($label-warning-color, 10%) !default;

label-warning-bg

Deprecated!

as of v2.4.1 use the Sass map $label-warning instead

$label-warning-bg: $white !default;

label-warning-hover-bg

Deprecated!

as of v2.4.1 use the Sass map $label-warning instead

$label-warning-hover-bg: null !default;

label-warning-border-color

Deprecated!

as of v2.4.1 use the Sass map $label-warning instead

$label-warning-border-color: $label-warning-color !default;

label-warning-hover-border-color

Deprecated!

as of v2.4.1 use the Sass map $label-warning instead

$label-warning-hover-border-color: $label-warning-hover-color !default;

label-danger-color

Deprecated!

as of v2.4.1 use the Sass map $label-danger instead

$label-danger-color: $danger !default;

label-danger-hover-color

Deprecated!

as of v2.4.1 use the Sass map $label-danger instead

$label-danger-hover-color: darken($label-danger-color, 10%) !default;

label-danger-bg

Deprecated!

as of v2.4.1 use the Sass map $label-danger instead

$label-danger-bg: $white !default;

label-danger-hover-bg

Deprecated!

as of v2.4.1 use the Sass map $label-danger instead

$label-danger-hover-bg: null !default;

label-danger-border-color

Deprecated!

as of v2.4.1 use the Sass map $label-danger instead

$label-danger-border-color: $label-danger-color !default;

label-danger-hover-border-color

Deprecated!

as of v2.4.1 use the Sass map $label-danger instead

$label-danger-hover-border-color: $label-danger-hover-color !default;

label-light-color

Deprecated!

as of v2.4.1 use the Sass map $label-light instead

$label-light-color: $light !default;

label-light-hover-color

Deprecated!

as of v2.4.1 use the Sass map $label-light instead

$label-light-hover-color: darken($label-light-color, 10%) !default;

label-light-bg

Deprecated!

as of v2.4.1 use the Sass map $label-light instead

$label-light-bg: $gray-800 !default;

label-light-hover-bg

Deprecated!

as of v2.4.1 use the Sass map $label-light instead

$label-light-hover-bg: null !default;

label-light-border-color

Deprecated!

as of v2.4.1 use the Sass map $label-light instead

$label-light-border-color: $label-light-color !default;

label-light-hover-border-color

Deprecated!

as of v2.4.1 use the Sass map $label-light instead

$label-light-hover-border-color: $label-light-hover-color !default;

label-dark-color

Deprecated!

as of v2.4.1 use the Sass map $label-dark instead

$label-dark-color: $dark !default;

label-dark-hover-color

Deprecated!

as of v2.4.1 use the Sass map $label-dark instead

$label-dark-hover-color: darken($label-dark-color, 10%) !default;

label-dark-bg

Deprecated!

as of v2.4.1 use the Sass map $label-dark instead

$label-dark-bg: $white !default;

label-dark-hover-bg

Deprecated!

as of v2.4.1 use the Sass map $label-dark instead

$label-dark-hover-bg: null !default;

label-dark-border-color

Deprecated!

as of v2.4.1 use the Sass map $label-dark instead

$label-dark-border-color: $label-dark-color !default;

label-dark-hover-border-color

Deprecated!

as of v2.4.1 use the Sass map $label-dark instead

$label-dark-hover-border-color: $label-dark-hover-color !default;

Line Clamp

mixins

clay-line-clamp

@mixin clay-line-clamp($lines: 3, $line-height: $line-height-base, $font-size: 1em) { ... }

Description

A mixin for truncating text to a specific number of lines. Browsers that support -webkit-line-clamp (Chrome, Safari, and Firefox 68+) will show an ellipsis to indicate truncated text. Browsers that don't support it will be missing the ellipsis (IE, Edge, Firefox 67 and below).

Parameters

parameter Nameparameter Descriptionparameter Typeparameter Default value
$lines

The number of lines to clamp

Number3
$line-height

The element's line-height

Number$line-height-base
$font-size

The font-size of the element

Number1em

Links

List Group

mixins

clay-list-group-notification-item-variant

@mixin clay-list-group-notification-item-variant($map) { ... }

Description

A mixin for creating .list-group-notification .list-group-item variants.

Parameters

parameter Nameparameter Descriptionparameter Typeparameter Default value
$map

A map of key: value pairs. The keys and value types are listed below:

Map none

Map Keys and Value Types

bg: {Color | String | Null}, // Default: $list-group-bg
border-bottom-color: {Color | Null}, // Default: $list-group-notification-item-border-bottom-color
border-left-color: {Color | Null}, // Default: $list-group-notification-item-border-left-color
border-right-color: {Color | Null}, // Default: $list-group-notification-item-border-right-color
border-top-color: {Color | Null}, // Default: $list-group-notification-item-border-top-color
border-bottom-width: {Number | Null}, // Default: $list-group-notification-item-border-bottom-width
border-left-width: {Number | Null}, // Default: $list-group-notification-item-border-left-width
border-right-width: {Number | Null}, // Default: $list-group-notification-item-border-right-width
border-top-width: {Number | Null}, // Default: $list-group-notification-item-border-top-width
border-bottom-left-radius: {Number | String | Null},
border-bottom-right-radius: {Number | String | Null},
border-top-left-radius: {Number | String | Null},
border-top-right-radius: {Number | String | Null},
color: {Color | String | Null},
active-bg: {Color | String | Null}, // Default: $list-group-active-bg
active-border-bottom-color: {Color | Null}, // Default: $list-group-notification-item-active-border-bottom-color
active-border-left-color: {Color | Null}, // Default: $list-group-notification-item-active-border-left-color
active-border-right-color: {Color | Null}, // Default: $list-group-notification-item-active-border-right-color
active-border-top-color: {Color | Null}, // Default: $list-group-notification-item-active-border-top-color

Requires

TODO's

    • Add @example
    • Add @link to documentation

Loaders

mixins

clay-loading-animation-variant

@mixin clay-loading-animation-variant($map) { ... }

Description

A mixin for creating and customizing the Clay CSS Loading Indicator.

Parameters

parameter Nameparameter Descriptionparameter Typeparameter Default value
$map

A map of key: value pairs. The keys and value types are listed below:

Map none

Map Keys and Value Types

enabled: {Bool}, // Set to false to prevent mixin styles from being output. Default: true
border-radius: {Number | String | List | Null}, // Default: 50%
color: {Color}, // Default: $secondary
transform: {String | List | Null}, // Default: scale(0.33334)
animation: {String | List | Null}, // Default: 1.2s ease-out infinite
animation-name: {String}, // *required
ball-0-scale: {Number}, // Default: 0
ball-1-scale: {Number}, // Default: -0.10em
ball-2-scale: {Number}, // Default: -0.15em
ball-3-scale: {Number}, // Default: -0.20em
ball-4-scale: {Number}, // Default: -0.25em
ball-5-scale: {Number}, // Default: -0.35em
ball-0-alpha: {Number}, // Default: 1
ball-1-alpha: {Number}, // Default: 0.80
ball-2-alpha: {Number}, // Default: 0.60
ball-3-alpha: {Number}, // Default: 0.40
ball-4-alpha: {Number}, // Default: 0.20
ball-5-alpha: {Number}, // Default: 0.10
ball-0-color: {Color} // Default: rgba($color, $ball-0-alpha)
ball-1-color: {Color}, // Default: rgba($color, $ball-1-alpha)
ball-2-color: {Color}, // Default: rgba($color, $ball-2-alpha)
ball-3-color: {Color}, // Default: rgba($color, $ball-3-alpha)
ball-4-color: {Color}, // Default: rgba($color, $ball-4-alpha)
ball-5-color: {Color}, // Default: rgba($color, $ball-5-alpha)

Requires

TODO's

    • Add @example
    • Add @link to documentation

Menubar

Modals

mixins

clay-modal-variant

@mixin clay-modal-variant($map) { ... }

Description

A mixin to create a Modal color variant. This is used in .modal-danger, .modal-info, .modal-success, and .modal-warning.

Parameters

parameter Nameparameter Descriptionparameter Typeparameter Default value
$map

A map of key: value pairs. The keys and value types are listed below:

Map none

Map Keys and Value Types

header-bg: {Color | String | Null},
header-border-color: {Color | String | List | Null},
header-color: {Color | String | Null},
// header-close-color is deprecated in v2.0.0-rc.12 use header-close instead
header-close-color: {Color | String},
header-close: {Map | Null}, // Pass parameters to `clay-link` mixin
body-bg: {Color | String | Null},
body-color: {Color | String | Null},
footer-bg: {Color | String | Null},
footer-border-color: {Color | String | List | Null},

Requires

Nav

Pagination

variables

pagination-item-margin-x

Deprecated!

as of v2 use the Sass map $pagination-item instead

$pagination-item-margin-x: -0.5px !default;

pagination-item-margin-y

Deprecated!

as of v2 use the Sass map $pagination-item instead

$pagination-item-margin-y: null !default;

pagination-disabled-cursor

Deprecated!

as of v2 use the Sass map $pagination-link-disabled instead

$pagination-disabled-cursor: $disabled-cursor !default;

pagination-disabled-opacity

Deprecated!

as of v2 use the Sass map $pagination-link-disabled instead

$pagination-disabled-opacity: 1 !default;

pagination-disabled-pointer-events

Deprecated!

as of v2 use the Sass map $pagination-link-disabled instead

$pagination-disabled-pointer-events: auto !default;

pagination-items-per-page-bg

Deprecated!

as of v2 use the Sass map $pagination-items-per-page-link instead

$pagination-items-per-page-bg: null !default;

pagination-items-per-page-border-color

Deprecated!

as of v2 use the Sass map $pagination-items-per-page-link instead

$pagination-items-per-page-border-color: $pagination-border-color !default;

pagination-items-per-page-border-radius

Deprecated!

as of v2 use the Sass map $pagination-items-per-page-link instead

$pagination-items-per-page-border-radius: $border-radius !default;

pagination-items-per-page-color

Deprecated!

as of v2 use the Sass map $pagination-items-per-page-link instead

$pagination-items-per-page-color: $pagination-color !default;

pagination-items-per-page-transition

Deprecated!

as of v2 use the Sass map $pagination-items-per-page-link instead

$pagination-items-per-page-transition: $pagination-link-transition !default;

pagination-items-per-page-hover-bg

Deprecated!

as of v2 use the Sass map $pagination-items-per-page-link-hover instead

$pagination-items-per-page-hover-bg: $pagination-hover-bg !default;

pagination-items-per-page-hover-border-color

Deprecated!

as of v2 use the Sass map $pagination-items-per-page-link-hover instead

$pagination-items-per-page-hover-border-color: $pagination-hover-border-color !default;

pagination-items-per-page-hover-color

Deprecated!

as of v2 use the Sass map $pagination-items-per-page-link-hover instead

$pagination-items-per-page-hover-color: $pagination-hover-color !default;

pagination-items-per-page-focus-box-shadow

Deprecated!

as of v2 use the Sass map $pagination-items-per-page-link-focus instead

$pagination-items-per-page-focus-box-shadow: $pagination-focus-box-shadow !default;

pagination-items-per-page-focus-outline

Deprecated!

as of v2 use the Sass map $pagination-items-per-page-link-focus instead

$pagination-items-per-page-focus-outline: 0 !default;

pagination-items-per-page-lexicon-icon-margin-left

Deprecated!

as of v2 use the Sass map $pagination-items-per-page-link instead

$pagination-items-per-page-lexicon-icon-margin-left: 0.125rem !default;

pagination-items-per-page-lexicon-icon-margin-top

Deprecated!

as of v2 use the Sass map $pagination-items-per-page-link instead

$pagination-items-per-page-lexicon-icon-margin-top: 0.125rem !default;

Panels

mixins

clay-panel-variant

@mixin clay-panel-variant($map) { ... }

Description

A mixin to create Panel variants. You can base your variant off .panel or create your own base class (e.g., <div class="panel my-custom-panel-variant"></div> or <div class="my-custom-panel"></div>).

Parameters

parameter Nameparameter Descriptionparameter Typeparameter Default value
$map

A map of key: value pairs. The keys and value types are listed below:

Map none

Map Keys and Value Types

bg: {Color | String | Null},
border-color: {Color | String | List | Null},
border-style: {String | List | Null},
border-width: {Number | String | List | Null},
box-shadow: {String | List | Null},
color: {Color | String | Null},
font-size: {Number | String | Null},
header-bg: {Color | String | Null},
header-border-color: {Color | String | List | Null},
header-border-style: {String | List | Null},
header-border-width: {Number | String | List | Null},
header-color: {Color | String | Null},
header-margin-bottom: {Number | String | Null},
header-margin-left: {Number | String | Null},
header-margin-right: {Number | String | Null},
header-margin-top: {Number | String | Null},
header-padding-bottom: {Number | String | Null},
header-padding-left: {Number | String | Null},
header-padding-right: {Number | String | Null},
header-padding-top: {Number | String | Null},
header-transition: {String | List | Null},
header-collapsed-border-color: {Color | String | List | Null},
header-link: {Map | Null}, // Pass parameters to `clay-link` mixin
title-font-size: {Number | String | Null},
title-font-weight: {Number | String | Null},
title-text-transform: {String | List | Null},
collapse-icon-bottom: {Number | String | Null},
collapse-icon-font-size: {Number | String | Null},
collapse-icon-left: {Number | String | Null},
collapse-icon-right: {Number | String | Null},
collapse-icon-top: {Number | String | Null},
body-margin-bottom: {Number | String | Null},
body-margin-left: {Number | String | Null},
body-margin-right: {Number | String | Null},
body-margin-top: {Number | String | Null},
body-padding-bottom: {Number | String | Null},
body-padding-left: {Number | String | Null},
body-padding-right: {Number | String | Null},
body-padding-top: {Number | String | Null},
footer-bg: {Color | String | Null},
footer-border-color: {Color | String | List | Null},
footer-color: {Color | String | Null},

Requires

Used by

TODO's

    • Add @example
    • Add @link to documentation

Sheet

css

.sheet-lg

Deprecated!

as of v3.x use .container .sheet instead

.sheet-lg { ... }

mixins

variables

sheet-lg-max-width

Deprecated!

as of 3.x.

$sheet-lg-max-width: ceil(map-get($container-max-widths, lg) * 0.83333) !default;

Sidebar

Slideout

mixins

clay-slideout-variant

@mixin clay-slideout-variant($map) { ... }

Description

A mixin to create .c-slideout variants.

Parameters

parameter Nameparameter Descriptionparameter Typeparameter Default value
$map

A map of key: value pairs. The keys and value types are listed below:

Map none

Map Keys and Value Types

enabled: {Bool},  // Set to false to prevent mixin styles from being output. Default: true
c-slideout-shown: {Map | Null}, // Pass parameters to `clay-css` mixin
c-slideout-tbar-shown: {Map | Null}, // Pass parameters to `clay-css` mixin
c-slideout-tbar-shown-sidebar: {Map | Null}, // Pass parameters to `clay-css` mixin
sidebar: {Map | Null}, // Pass parameters to `clay-css` mixin
sidebar-c-slideout-show: {Map | Null}, // Pass parameters to `clay-css` mixin
sidebar-c-slideout-transition: {Map | Null}, // Pass parameters to `clay-css` mixin
tbar-stacked: {Map | Null}, // Pass parameters to `clay-css` mixin
tbar-stacked-c-slideout-show: {Map | Null}, // Pass parameters to `clay-css` mixin
tbar-stacked-c-slideout-transition: {Map | Null}, // Pass parameters to `clay-css` mixin

Requires

Stickers

mixins

clay-sticker-size

@mixin clay-sticker-size($map) { ... }

Description

A mixin that helps create custom Sticker sizes.

Parameters

parameter Nameparameter Descriptionparameter Typeparameter Default value
$map

A map of key: value pairs. The keys and value types are listed below:

Map none

Map Keys and Value Types

font-size: {Number | String | Null},
inline-item-font-size: {Number | String | Null},
outside-offset: {Number | String}, // Default: -(map-get($map, size) / 2)
size: {Number | String | Null},

Requires

TODO's

    • Add @example
    • Add @link to documentation

clay-sticker-variant

@mixin clay-sticker-variant($map) { ... }

Description

A mixin to create sticker variants. You can base your variant off .sticker or create your own base class (e.g., <span class="sticker my-custom-sticker-variant"></span> or <span class="my-custom-sticker"></span>).

Parameters

parameter Nameparameter Descriptionparameter Typeparameter Default value
$map

A map of key: value pairs. The keys and value types are listed below:

Map none

Map Keys and Value Types

align-items: {String | Null},
background-color: {Color | String | Null}, // An alias for bg
bg: {Color | String | Null}, // Default: $background-color
border-color: {Color | String | List | Null},
border-radius: {Number | String | List | Null},
border-style: {String | List | Null},
border-width: {Number | String | List | Null},
box-shadow: {String | List | Null},
color: {Color | String | Null},
display: {String | Null},
font-size: {Number | String | Null},
font-weight: {Number | String | Null},
height: {Number | String | Null},
justify-content: {String | Null},
line-height: {Number | String | Null},
position: {String | Null},
text-align: {String | Null},
vertical-align: {String | Null},
width: {Number | String | Null},

Requires

Used by

TODO's

    • Add @example
    • Add @link to documentation

Tbar

mixins

clay-tbar-variant

@mixin clay-tbar-variant($map) { ... }

Description

A mixin to create tbar variants, must be based off .tbar (e.g., <nav class="tbar my-custom-tbar-variant"></nav>).

Parameters

parameter Nameparameter Descriptionparameter Typeparameter Default value
$map

A map of key: value pairs. The keys and value types are listed below:

Map none

Map Keys and Value Types

border-color: {Color | String | List | Null},
border-style: {String | List | Null},
border-width: {Number | String | List | Null},
bg-color: {Color | String | Null},
color: {Color | String | Null},
font-size: {Number | String | Null},
height: {Number | String | Null},
padding-x: {Number | String | Null},
padding-y: {Number | String | Null},
strong-font-weight: {Number | String | Null},
item-justify-content: {String | Null},
item-padding-x: {Number | String | Null},
item-padding-y: {Number | String | Null},
btn-height: {Number | String | Null},
btn-font-size: {Number | String | Null}, // Default: $font-size
btn-font-weight: {Number | String | Null},
btn-line-height: {Number | String | Null},
btn-margin-x: {Number | String | Null},
btn-margin-y: {Number | String | Null},
btn-padding-x: {Number | String | Null},
btn-padding-y: {Number | String | Null},
btn-monospaced-border-radius: {Number | String | List | Null},
btn-monospaced-border-width: {Number | String | List | Null},
btn-monospaced-font-size: {Number | String | Null},
btn-monospaced-margin-x: {Number | String | Null},
btn-monospaced-margin-y: {Number | String | Null},
btn-monospaced-padding: {Number | String | List | Null},
btn-monospaced-size: {Number | String | Null}, // Default: $btn-height
link-margin-x: {Number | String | Null},
link-margin-y: {Number | String | Null},
link-padding-x: {Number | String | Null},
link-padding-y: {Number | String | Null},
link-monospaced-border-radius: {Number | String | List | Null},
link-monospaced-border-width: {Number | String | List | Null},
link-monospaced-font-size: {Number | String | Null},
link-monospaced-margin-x: {Number | String | Null},
link-monospaced-margin-y: {Number | String | Null},
link-monospaced-padding: {Number | String | List | Null},
link-monospaced-size: {Number | String | Null},
section-text-align: {String | Null},
component-action: {Map | Null}, // Pass parameters to `clay-link` mixin
component-link: {Map | Null}, // Pass parameters to `clay-link` mixin
component-title: {Map | Null}, // Pass parameters to `clay-text-typography` mixin
component-text: {Map | Null}, // Pass parameters to `clay-text-typography` mixin
component-label: {Map | Null}, // Pass parameters to `clay-label-variant` mixin
tbar-label-size: {Map | Null}, // Pass parameters to `clay-label-size` mixin

Requires

TODO's

    • Add @example
    • Add @link to documentation

clay-tbar-inline-down

@mixin clay-tbar-inline-down($map) { ... }

Description

A mixin for tbar to force tbar-nav, tbar-item, tbar-section, and component-title inline at specific breakpoints. This mixin is used in .tbar-inline-xs-down, .tbar-inline-sm-down, .tbar-inline-md-down, .tbar-inline-lg-down, and .tbar-inline-xl-down.

Parameters

parameter Nameparameter Descriptionparameter Typeparameter Default value
$map

A map of key: value pairs. The keys and value types are listed below:

Map none

Map Keys and Value Types

breakpoint-down: {String, Null}, // The Bootstrap 4 Breakpoint {xs | sm | md | lg | xl}
item-padding-left: {Number | String | Null},
item-padding-right: {Number | String | Null},

TODO's

    • Add @example
    • Add @link to documentation

Timelines

mixins

clay-timeline-item-reverse

@mixin clay-timeline-item-reverse() { ... }

Description

A mixin that places the .timeline-item::before element on the right side. This mixin is used in .timeline-right.

Parameters

None.

TODO's

    • Add @link to documentation

clay-timeline-spacing

@mixin clay-timeline-spacing($outer-spacing, $inner-spacing, $item-padding-y: 10px) { ... }

Description

A mixin that helps with spacing in a .timeline.

Parameters

parameter Nameparameter Descriptionparameter Typeparameter Default value
$outer-spacing

Sets padding-left or padding-right on .timeline relative to where the increments are positioned.

Number none
$inner-spacing

Sets padding-left on .timeline-item if the .panel is positioned on the right and padding-right if .panel is positioned on the left.

Number none
$item-padding-y

Sets padding-top and padding-bottom on .timeline-item.

Number10px

TODO's

    • Add @link to documentation

Toggle Switch

functions

clay-data-label-text-position

@function clay-data-label-text-position($toggle-switch-width, $toggle-switch-padding, $label-spacer-x: 8px) { ... }

Description

A helper function that calculates text-indent of data-label-on and data-label-off in a .toggle-switch.

Parameters

parameter Nameparameter Descriptionparameter Typeparameter Default value
$toggle-switch-width

Width of switch bar

Number none
$toggle-switch-padding

Space between button and bar

Number none
$label-spacer-x

Space between toggle-switch-bar and data-label

Number8px

Clay CSS

variables

input-readonly-bg

Deprecated!

after v2.18.0 use the Sass map $input-readonly instead

$input-readonly-bg: null !default;

input-readonly-border-color

Deprecated!

after v2.18.0 use the Sass map $input-readonly instead

$input-readonly-border-color: null !default;

input-readonly-color

Deprecated!

after v2.18.0 use the Sass map $input-readonly instead

$input-readonly-color: null !default;

input-readonly-cursor

Deprecated!

after v2.18.0 use the Sass map $input-readonly instead

$input-readonly-cursor: null !default;

input-readonly-focus-bg

Deprecated!

after v2.18.0 use the Sass map $input-readonly instead

$input-readonly-focus-bg: null !default;

input-readonly-focus-border-color

Deprecated!

after v2.18.0 use the Sass map $input-readonly instead

$input-readonly-focus-border-color: null !default;

input-readonly-focus-color

Deprecated!

after v2.18.0 use the Sass map $input-readonly instead

$input-readonly-focus-color: null !default;

nav-btn-margin-x

Deprecated!

after v3.4.0 use the Sass map $nav-btn instead

$nav-btn-margin-x: 0.25rem !default;

nav-btn-margin-y

Deprecated!

after v3.4.0 use the Sass map $nav-btn instead

$nav-btn-margin-y: (($line-height-base * $font-size-base) + ($nav-link-padding-y * 2) - $nav-item-monospaced-size) / 2 !default;

nav-btn-padding-x

Deprecated!

after v3.4.0 use the Sass map $nav-btn instead

$nav-btn-padding-x: $btn-padding-x-sm !default;

nav-btn-padding-y

Deprecated!

after v3.4.0 use the Sass map $nav-btn instead

$nav-btn-padding-y: 0 !default;

Utilities

mixins

clay-bg-checkered

@mixin clay-bg-checkered($fg-color: $gray-200, $bg-color: null) { ... }

Description

A mixin for creating checkered backgrounds.

Parameters

parameter Nameparameter Descriptionparameter Typeparameter Default value
$fg-color

The foreground color to use

Color$gray-200
$bg-color

The background color to use

Colornull

Used by

TODO's

    • Add @example
    • Add @link to documentation

clay-indicator-bg

@mixin clay-indicator-bg($map) { ... }

Description

A mixin that replaces any *-indicator component with another icon via background-image (e.g., .modal-title-indicator, .dropdown-item-indicator-start, or .panel-header .collapse-icon-closed).

Parameters

parameter Nameparameter Descriptionparameter Typeparameter Default value
$map

A map of key: value pairs. The keys and value types are listed below:

Map none

Map Keys and Value Types

indicator: {String}, // The SVG as a data URI, use clay-icon() or clay-svg-url()
indicator-bg-position: {List}, // Default: top 0.125rem left
indicator-bg-size: {Number | String | List}, // Default: 100%
indicator-display: {String}, // Default: inline-block
indicator-height: {Number | String}, // Default: #{$line-height-base}em
indicator-text-indent: {Number | String | Null},
indicator-vertical-align: {String}, // Default: middle
indicator-width: {Number | String}, // Default: 1em

Requires

TODO's

    • Add @example
    • Add @link to documentation

box-shadow

@mixin box-shadow($shadow...) { ... }

Description

A mixin that overwrites Bootstrap 4's box-shadow mixin.

Parameters

parameter Nameparameter Descriptionparameter Typeparameter Default value
$shadow noneArglist none

Used by

clay-close

@mixin clay-close($map) { ... }

Parameters

parameter Nameparameter Descriptionparameter Typeparameter Default value
$map

A map of key: value pairs. The keys and value types are listed below:

Map none

Map Keys and Value Types

enabled: {Bool}, // Set to false to prevent mixin styles from being output. Default: true
See Mixin `clay-css` for available keys to pass into the base selector
hover: {Map | Null}, // See Mixin `clay-css` for available keys
focus: {Map | Null}, // See Mixin `clay-css` for available keys
disabled: {Map | Null}, // See Mixin `clay-css` for available keys
active: {Map | Null}, // See Mixin `clay-css` for available keys
btn-focus: {Map | Null}, // See Mixin `clay-css` for available keys
lexicon-icon: {Map | Null}, // See Mixin `clay-css` for available keys
c-inner: {Map | Null}, // Pass parameters to `clay-css` mixin
-=-=-=-=-=- Deprecated -=-=-=-=-=-
bg: {Color | String | Null}, // deprecated after 3.9.0
hover-bg: {Color | String | Null}, // deprecated after 3.9.0
hover-color: {Color | String | Null}, // deprecated after 3.9.0
hover-opacity: {Number | String | Null}, // deprecated after 3.9.0
hover-text-decoration: {String | Null}, // deprecated after 3.9.0
focus-bg: {Color | String | Null}, // deprecated after 3.9.0
focus-box-shadow: {String | List | Null}, // deprecated after 3.9.0
focus-color: {Color | String | Null}, // deprecated after 3.9.0
focus-opacity: {Number | String | Null}, // deprecated after 3.9.0
focus-outline: {Number | String | Null}, // deprecated after 3.9.0
focus-text-decoration: {String | Null}, // deprecated after 3.9.0
active-bg: {Color | String | Null}, // deprecated after 3.9.0
active-border-color: {Color | String | List | Null}, // deprecated after 3.9.0
active-color: {Color | String | Null}, // deprecated after 3.9.0
disabled-bg: {Color | String | Null}, // deprecated after 3.9.0
disabled-border-color: {Color | String | List | Null}, // deprecated after 3.9.0
disabled-box-shadow: {String | List | Null}, // deprecated after 3.9.0
disabled-color: {Color | String | Null}, // deprecated after 3.9.0
disabled-cursor: {String | Null}, // deprecated after 3.9.0
disabled-opacity: {Number | String | Null}, // deprecated after 3.9.0
disabled-pointer-events: {String | Null}, // deprecated after 3.9.0
disabled-text-decoration: {String | Null}, // deprecated after 3.9.0
btn-focus-box-shadow: {String | List | Null}, // deprecated after 3.9.0
btn-focus-outline: {Number | String | Null}, // deprecated after 3.9.0
lexicon-icon-margin-bottom: {Number | String | Null}, // deprecated after 3.9.0
lexicon-icon-margin-left: {Number | String | Null}, // deprecated after 3.9.0
lexicon-icon-margin-right: {Number | String | Null}, // deprecated after 3.9.0
lexicon-icon-margin-top: {Number | String | Null}, // deprecated after 3.9.0

Requires

Used by

TODO's

    • Add @example
    • Add @link to documentation

clay-after-highlight-variant

@mixin clay-after-highlight-variant($map) { ... }

Description

A mixin to create custom underline highlights or overwrite highlights on an element using the CSS pseudo element ::after.

Parameters

parameter Nameparameter Descriptionparameter Typeparameter Default value
$map

A map of key: value pairs. The keys and value types are listed below:

Map none

Map Keys and Value Types

enabled: {Bool}, // Set to false to prevent mixin styles from being output. Default: true
bg: {Color | String | Null},
border-radius: {Number | String | List | Null},
bottom: {Number | String | Null},
content: {String | Null},
display: {String | Null},
height: {Number | String | Null},
left: {Number | String | Null},
opacity: {Number | String | Null},
position: {String | Null},
right: {Number | String | Null},
transition: {String | List | Null},
top: {Number | String | Null},
hover-bg: {Color | String | Null},
hover-height: {Number | String | Null},
hover-opacity: {Number | String | Null},
focus-bg: {Color | String | Null},
focus-height: {Number | String | Null},
focus-opacity: {Number | String | Null},
active-bg: {Color | String | Null},
active-height: {Number | String | Null},
active-opacity: {Number | String | Null},

Requires

Used by

TODO's

    • Add @example
    • Add @link to documentation

clay-monospace

@mixin clay-monospace($size) { ... }

Description

A mixin for creating monospaced elements.

Parameters

parameter Nameparameter Descriptionparameter Typeparameter Default value
$size

The width and height of the element

Number none

Used by

TODO's

    • Add @example
    • Add @link to documentation

clay-scale-component

@mixin clay-scale-component($scale: $enable-scaling-components) { ... }

Description

A mixin to help trigger the "mobile" view in most Clay CSS components. The Base Theme is set to false. The Atlas Theme is set to true and the breakpoint is media-breakpoint-down(sm) or max-width: 767px. You can change the breakpoint by modifying the global variable $scaling-breakpoint-down.

Parameters

parameter Nameparameter Descriptionparameter Typeparameter Default value
$scale

Enables or disables this mixin

Bool$enable-scaling-components

clay-autofit-row

@mixin clay-autofit-row($map) { ... }

Description

A mixin to create custom spacing for the autofit-row component.

Parameters

parameter Nameparameter Descriptionparameter Typeparameter Default value
$map

A map of key: value pairs. The keys and value types are listed below:

Map none

Map Keys and Value Types

enabled: {Bool},  // Set to false to prevent mixin styles from being output. Default: true
margin: {Number | String | List | Null},
margin-bottom: {Number | String | Null},
margin-left: {Number | String | Null},
margin-right: {Number | String | Null},
margin-top: {Number | String | Null},
autofit-col-padding: {Number | String | List | Null},
autofit-col-padding-bottom: {Number | String | Null},
autofit-col-padding-left: {Number | String | Null},
autofit-col-padding-right: {Number | String | Null},
autofit-col-padding-top: {Number | String | Null},

Requires

Vendor Prefixes

mixins

overflow-wrap

@mixin overflow-wrap($value: break-word) { ... }

Description

A mixin that provides cross browser support for the CSS property overflow-wrap

Parameters

parameter Nameparameter Descriptionparameter Typeparameter Default value
$value

break-word or normal

Stringbreak-word

user-select

@mixin user-select($value: none) { ... }

Description

A mixin that provides cross browser support for the CSS property user-select.

Parameters

parameter Nameparameter Descriptionparameter Typeparameter Default value
$value

all, auto, none, or text

Stringnone

hyphens

@mixin hyphens($value: none) { ... }

Description

A mixin that provides cross browser support for the CSS property hypens.

Parameters

parameter Nameparameter Descriptionparameter Typeparameter Default value
$value

auto, manual, or none

Stringnone

placeholder

@mixin placeholder() { ... }

Description

A mixin that provides cross browser support for the pseudo element/class ::placeholder.

Parameters

None.