Created
July 6, 2013 15:26
-
-
Save orionrush/5940224 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Alerts | |
// -------------------------------------------------- | |
// Base styles | |
// ------------------------- | |
.alert, | |
.validation_error, | |
#gforms_confirmation_message { | |
padding: 8px 35px 8px 14px; | |
margin-bottom: @baseLineHeight; | |
text-shadow: 0 1px 0 rgba(255,255,255,.5); | |
background-color: @warningBackground; | |
border: 1px solid @warningBorder; | |
.border-radius(4px); | |
color: @warningText; | |
} | |
.alert h4 { | |
margin: 0; | |
} | |
// Adjust close link position | |
.alert .close { | |
position: relative; | |
top: -2px; | |
right: -21px; | |
line-height: @baseLineHeight; | |
} | |
// Alternate styles | |
// ------------------------- | |
.alert-success { | |
background-color: @successBackground; | |
border-color: @successBorder; | |
color: @successText; | |
} | |
.alert-danger, | |
.alert-error, | |
.validation_error, | |
.gform_wrapper .gfield_error input[type=text], | |
.gform_wrapper .gfield_error input[type=tel], | |
.gform_wrapper .gfield_error input[type=email], | |
.gform_wrapper .gfield_error textarea, | |
.gform_wrapper .gfield_error select { | |
background-color: @errorBackground; | |
border-color: @errorBorder; | |
color: @errorText; | |
} | |
.alert-info { | |
background-color: @infoBackground; | |
border-color: @infoBorder; | |
color: @infoText; | |
} | |
// Block alerts | |
// ------------------------- | |
.alert-block { | |
padding-top: 14px; | |
padding-bottom: 14px; | |
} | |
.alert-block > p, | |
.alert-block > ul { | |
margin-bottom: 0; | |
} | |
.alert-block p + p { | |
margin-top: 5px; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.gform_wrapper ul { list-style: none; margin-left: 0; } | |
.gform_wrapper form { margin-bottom: 0; } | |
.gfield_radio input, | |
.gfield_checkbox input { | |
vertical-align: 0; | |
} | |
.gfield_radio label, | |
.gfield_checkbox label { | |
display: inline-block; | |
margin-left: 8px; | |
} | |
// Hide the input-specific validation messages | |
// since we'll be applying Bootstrap error styling to the fields | |
.gform_wrapper .validation_message { display: none; } | |
// Use Bootstrap's "red" variable for the required asterisk: | |
.gform_wrapper .gfield_required { | |
color: @red; | |
padding-left: 1px; | |
} | |
// Apply error text styling to labels | |
.gform_wrapper .gfield_error label { | |
color: @errorText; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment