Skip to content

Instantly share code, notes, and snippets.

@psahalot
Created September 10, 2016 09:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save psahalot/188f3b75d28341dd6d9dff63ecd1a067 to your computer and use it in GitHub Desktop.
Save psahalot/188f3b75d28341dd6d9dff63ecd1a067 to your computer and use it in GitHub Desktop.
Flat Button Styling for BB Theme
/** Default State styling **/
button,
input[type=button],
input[type=submit] {
background: #428bca; /* Background color for button */
color: #ffffff; /* text color */
font-size: 14px;
line-height: 20px;
padding: 6px 12px;
font-weight: normal;
text-shadow: none;
border: 1px solid #2d6ca2; /* broder weight, style and color */
-moz-box-shadow: none;
-webkit-box-shadow: none;
box-shadow: none;
-moz-border-radius: 0px;
-webkit-border-radius: 0px;
border-radius: 0px;
}
/** Hover state styling **/
button:hover,
input[type=button]:hover,
input[type=submit]:hover {
background: #2d6ca2;
color: #ffffff;
border: 1px solid #2d6ca2;
text-decoration: none;
}
/** Adding some transition **/
button,
input[type=button],
input[type=submit],
button:hover,
input[type=button]:hover,
input[type=submit]:hover {
transition: all ease-in 0.2s;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment