Search
en-USde-DE
Thursday, January 21, 2021
FeaturesTypographyButtons

Buttons

BUTTONS

Default Primary Success Info Warning Danger
<a href="#" class="eds_btn">Default</a>
<a href="#" class="eds_btn eds_btnPrimary">Primary</a>
<a href="#" class="eds_btn eds_btnSuccess">Success</a>
<a href="#" class="eds_btn eds_btnInfo">Info</a>
<a href="#" class="eds_btn eds_btnWarning">Warning</a>
<a href="#" class="eds_btn eds_btnDanger">Danger</a>

Large size

Default Primary Success Info Warning Danger
<a href="#" class="eds_btn eds_btnLarge">Default</a>
<a href="#" class="eds_btn eds_btnPrimary eds_btnLarge">Primary</a>
<a href="#" class="eds_btn eds_btnSuccess eds_btnLarge">Success</a>
<a href="#" class="eds_btn eds_btnInfo eds_btnLarge">Info</a>
<a href="#" class="eds_btn eds_btnWarning eds_btnLarge">Warning</a>
<a href="#" class="eds_btn eds_btnDanger eds_btnLarge">Danger</a>

Font Awesome Buttons

<div class="eds_faButtons">
	<a href="facebook.com">
		<span class="fab fa-facebook-square"></span>
	</a>
	<a href="twitter.com">
		<span class="fab fa-twitter-square"></span>
	</a>
	<a href="plus.google.com">
		<span class="fab fa-google-plus-square"></span>
	</a>
	<a href="linkedin.com">
		<span class="fab fa-linkedin-square"></span>
	</a>
	<a href="pinterest.com">
		<span class="fab fa-pinterest-square"></span>
	</a>
</div>

Inverted version

<div class="eds_faButtons eds_invertIcons">
	<a href="facebook.com">
		<span class="fab fa-facebook-square"></span>
	</a>
	<a href="twitter.com">
		<span class="fab fa-twitter-square"></span>
	</a>
	<a href="plus.google.com">
		<span class="fab fa-google-plus-square"></span>
	</a>
	<a href="linkedin.com">
		<span class="fab fa-linkedin-square"></span>
	</a>
	<a href="pinterest.com">
		<span class="fab fa-pinterest-square"></span>
	</a>
</div>

"Scroll to ..." Buttons

Default usage

Example link

<a class="eds_scrollTo" href="#exampleID">Example link</a>
<a class="eds_scrollTo eds_scrollToButton eds_scrollDown" href="#exampleID"><span>Example Link</span></a>
<a class="eds_scrollTo eds_scrollToButton eds_scrollDown eds_small" href="#exampleID"><span>Example Link</span></a>
<a class="eds_scrollTo eds_scrollToButton eds_scrollUp" href="#"><span>Example Link</span></a>
<a class="eds_scrollTo eds_scrollToButton eds_scrollUp eds_small" href="#"><span>Example Link</span></a>

Advanced (data-options attribute)

Use the HTML editor in the "Basic text" mode (HTML render mode) because some editors can switch " ( double quotes) or ' ( single qoute) signs to the "Rich text" mode.

<a class="eds_scrollTo eds_scrollToButton eds_scrollDown" href="#exampleID" data-options='{ "offset": 500,"speed": 700,"easing": "easeOutQuint","updateURL": false }'><span>Example Link</span></a>
<a class="eds_scrollTo eds_scrollToButton eds_scrollDown eds_small" href="#exampleID" data-options='{ "offset": 500,"speed": 700,"easing": "easeOutQuint","updateURL": false }'><span>Example Link</span></a>
<a class="eds_scrollTo eds_scrollToButton eds_scrollUp" href="#" data-options='{ "offset": 500,"speed": 700,"easing": "easeOutQuint","updateURL": false }'><span>Example Link</span></a>
<a class="eds_scrollTo eds_scrollToButton eds_scrollUp eds_small" href="#" data-options='{ "offset": 500,"speed": 700,"easing": "easeOutQuint","updateURL": false }'><span>Example Link</span></a>

Options

  • "speed": 700 // How fast to complete the scroll in milliseconds
  • "easing": "easeOutQuint" // Easing pattern to use
  • "offset": 500 // How far to offset the scrolling anchor location in pixels
  • "updateURL": false // If true, change link in browser window address bar
  • "scrollOnLoad": true, // If true, animate to anchor on page load if URL has a hash

Easing Options

Linear Moves at the same speed from start to finish.

  • Linear

Ease-In Gradually increases in speed.

  • easeInQuad
  • easeInCubic
  • easeInQuart
  • easeInQuint

Ease-In-Out Gradually increases in speed, peaks, and then gradually slows down.

  • easeInOutQuad
  • easeInOutCubic
  • easeInOutQuart
  • easeInOutQuint

Ease-Out Gradually decreases in speed.

  • easeOutQuad
  • easeOutCubic
  • easeOutQuart
  • easeOutQuint

DNN Buttons

PrimaryAction

SecondaryAction

TertiaryAction

<a class="dnnPrimaryAction" href="#">PrimaryAction</a>
<a class="dnnSecondaryAction" href="#">SecondaryAction</a></p>
<a href="#" class="dnnTertiaryAction">TertiaryAction</a>

Bootstrap Buttons

<button type="button" class="btn btn-primary">Primary</button>
<button type="button" class="btn btn-secondary">Secondary</button>
<button type="button" class="btn btn-success">Success</button>
<button type="button" class="btn btn-danger">Danger</button>
<button type="button" class="btn btn-warning">Warning</button>
<button type="button" class="btn btn-info">Info</button>
<button type="button" class="btn btn-light">Light</button>
<button type="button" class="btn btn-dark">Dark</button>
<button type="button" class="btn btn-link">Link</button>

Button tags

Link
<a class="btn btn-primary" href="#" role="button">Link</a>
<button class="btn btn-primary" type="submit">Button</button>
<input class="btn btn-primary" value="Input" type="button">
<input class="btn btn-primary" value="Submit" type="submit">
<input class="btn btn-primary" value="Reset" type="reset">

Outline buttons

<button type="button" class="btn btn-outline-primary">Primary</button>
<button type="button" class="btn btn-outline-secondary">Secondary</button>
<button type="button" class="btn btn-outline-success">Success</button>
<button type="button" class="btn btn-outline-danger">Danger</button>
<button type="button" class="btn btn-outline-warning">Warning</button>
<button type="button" class="btn btn-outline-info">Info</button>
<button type="button" class="btn btn-outline-light">Light</button>
<button type="button" class="btn btn-outline-dark">Dark</button>

Sizes

<button type="button" class="btn btn-primary btn-lg">Large button</button>
<button type="button" class="btn btn-secondary btn-lg">Large button</button>
<button type="button" class="btn btn-primary btn-sm">Small button</button>
<button type="button" class="btn btn-secondary btn-sm">Small button</button>
<button type="button" class="btn btn-primary btn-lg btn-block">Block level button</button>
<button type="button" class="btn btn-secondary btn-lg btn-block">Block level button</button>

Active state

<a href="#" class="btn btn-primary btn-lg active" role="button" aria-pressed="true">Primary link</a>
<a href="#" class="btn btn-secondary btn-lg active" role="button" aria-pressed="true">Link</a>

Disabled state

<button type="button" class="btn btn-lg btn-primary" disabled="">Primary button</button>
<button type="button" class="btn btn-secondary btn-lg" disabled="">Button</button>
<a href="#" class="btn btn-primary btn-lg disabled" role="button" aria-disabled="true">Primary link</a>
<a href="#" class="btn btn-secondary btn-lg disabled" role="button" aria-disabled="true">Link</a>

Toggle states

<button type="button" class="btn btn-primary" data-toggle="button" aria-pressed="false" autocomplete="off">Single toggle</button>

Checkbox and radio buttons

<div class="btn-group" data-toggle="buttons">
	<label class="btn btn-secondary">
		<input checked="" autocomplete="off" type="checkbox"> Checkbox 1 (pre-checked)
	</label>
	<label class="btn btn-secondary">
		<input autocomplete="off" type="checkbox"> Checkbox 2
	</label>
	<label class="btn btn-secondary">
		<input autocomplete="off" type="checkbox"> Checkbox 3
	</label>
</div>
<div class="btn-group" data-toggle="buttons">
	<label class="btn btn-secondary active">
		<input name="options" id="option1" autocomplete="off" checked="" type="radio"> Radio 1 (preselected)
	</label>
	<label class="btn btn-secondary">
		<input name="options" id="option2" autocomplete="off" type="radio"> Radio 2
	</label>
	<label class="btn btn-secondary">
		<input name="options" id="option3" autocomplete="off" type="radio"> Radio 3
	</label>
</div>

Methods

Method Description
$().button('toggle') Toggles push state. Gives the button the appearance that it has been activated.
$().button('dispose') Destroys an element’s button.