diff options
author | Morgan Richomme <morgan.richomme@orange.com> | 2017-05-12 06:26:03 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-05-12 06:26:03 +0000 |
commit | 909be5b53a6141f84480dc29eb5dbfffe5c35fad (patch) | |
tree | f48c1a1e98dffcbe393a428f06e02fceaf937875 /testapi/3rd_party/static/testapi-ui/assets/lib/bootstrap/less/alerts.less | |
parent | 9437526b739c41c0a1fc25396677d2f134d4ce80 (diff) | |
parent | 55d74f86440a5a804d4551e04f7fd39518af0723 (diff) |
Merge "add web portal framework for TestAPI"
Diffstat (limited to 'testapi/3rd_party/static/testapi-ui/assets/lib/bootstrap/less/alerts.less')
-rw-r--r-- | testapi/3rd_party/static/testapi-ui/assets/lib/bootstrap/less/alerts.less | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/testapi/3rd_party/static/testapi-ui/assets/lib/bootstrap/less/alerts.less b/testapi/3rd_party/static/testapi-ui/assets/lib/bootstrap/less/alerts.less new file mode 100644 index 0000000..5618bfc --- /dev/null +++ b/testapi/3rd_party/static/testapi-ui/assets/lib/bootstrap/less/alerts.less @@ -0,0 +1,73 @@ +// +// Alerts +// -------------------------------------------------- + + +// Base styles +// ------------------------- + +.alert { + padding: @alert-padding; + margin-bottom: @line-height-computed; + border: 1px solid transparent; + border-radius: @alert-border-radius; + + // Headings for larger alerts + h4 { + margin-top: 0; + // Specified for the h4 to prevent conflicts of changing @headings-color + color: inherit; + } + + // Provide class for links that match alerts + .alert-link { + font-weight: @alert-link-font-weight; + } + + // Improve alignment and spacing of inner content + > p, + > ul { + margin-bottom: 0; + } + + > p + p { + margin-top: 5px; + } +} + +// Dismissible alerts +// +// Expand the right padding and account for the close button's positioning. + +.alert-dismissable, // The misspelled .alert-dismissable was deprecated in 3.2.0. +.alert-dismissible { + padding-right: (@alert-padding + 20); + + // Adjust close link position + .close { + position: relative; + top: -2px; + right: -21px; + color: inherit; + } +} + +// Alternate styles +// +// Generate contextual modifier classes for colorizing the alert. + +.alert-success { + .alert-variant(@alert-success-bg; @alert-success-border; @alert-success-text); +} + +.alert-info { + .alert-variant(@alert-info-bg; @alert-info-border; @alert-info-text); +} + +.alert-warning { + .alert-variant(@alert-warning-bg; @alert-warning-border; @alert-warning-text); +} + +.alert-danger { + .alert-variant(@alert-danger-bg; @alert-danger-border; @alert-danger-text); +} |