Skip to content

Instantly share code, notes, and snippets.

@rurtubia
Last active August 29, 2015 14:22
Show Gist options
  • Select an option

  • Save rurtubia/7e22fde00c62840dd43b to your computer and use it in GitHub Desktop.

Select an option

Save rurtubia/7e22fde00c62840dd43b to your computer and use it in GitHub Desktop.
Bootstrap_button
<link
rel='stylesheet'
href='//maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css'
/>
<button class="btn">Like this photo</button>
<!--Bootstrap comes with several pre-defined colors for buttons.-->
<!--The btn-info class is used to call attention to optional actions that the user can take.-->
<link
rel='stylesheet'
href='//maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css'
/>
<button class='btn btn-block btn-info'>Info</button>
<!--The btn-primary class is the main color you'll use in your app.-->
<!--It is useful for highlighting actions you want your user to take.-->
<link
rel='stylesheet'
href='//maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css'
/>
<button class='btn btn-block btn-primary'>Like</button>
<!-- Standard button -->
<button type="button" class="btn btn-default">Default</button>
<!-- Provides extra visual weight and identifies the primary action in a set of buttons -->
<button type="button" class="btn btn-primary">Primary</button>
<!-- Indicates a successful or positive action -->
<button type="button" class="btn btn-success">Success</button>
<!-- Contextual button for informational alert messages -->
<button type="button" class="btn btn-info">Info</button>
<!-- Indicates caution should be taken with this action -->
<button type="button" class="btn btn-warning">Warning</button>
<!-- Indicates a dangerous or potentially negative action -->
<button type="button" class="btn btn-danger">Danger</button>
<!-- Deemphasize a button by making it look like a link while maintaining button behavior -->
<button type="button" class="btn btn-link">Link</button>
<!--Button blocks are as wide as the whole page -->
<link
rel='stylesheet'
href='//maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css'
/>
<button class='btn btn-block'>Like</button>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment