1
0
mirror of https://github.com/kremalicious/blog.git synced 2025-02-14 21:10:25 +01:00

add alert styles

This commit is contained in:
Matthias Kretschmann 2014-07-10 17:03:41 +02:00
parent 257d3b90b4
commit ac0f883c4d
2 changed files with 14 additions and 65 deletions

View File

@ -1,92 +1,41 @@
/////////////////////////////////////
// Alerts
/////////////////////////////////////
.alert { .alert {
font-size: .95em; font-size: @font-size-small;
line-height: 22px; padding: .5em 1em;
padding: .5em 35px .5em 1em;
margin-bottom: 18px;
color: #8a6d3d; color: #8a6d3d;
background-color: #fcf8e3; background: #fcf8e3;
#gradient > .vertical(rgba(0,0,0,0); 0%; rgba(0,0,0,.03); 100%);
border: 1px solid #d7cab9; border: 1px solid #d7cab9;
border-radius: 4px; border-radius: 4px;
.close {
float: right;
font-size: 24px;
font-weight: bold;
line-height: 18px;
color: #000000;
opacity: .2;
position: relative;
top: -2px;
right: -21px;
line-height: 18px;
&:hover {
color: #000000;
text-decoration: none;
cursor: pointer;
opacity: .4;
}
i:before {
color: inherit;
}
}
}
.alert-heading {
color: inherit;
} }
.alert-success { .alert-success {
color: #468847; color: #468847;
background-color: #dff0d8; background: #dff0d8;
border-color: #b5c6a8; border-color: #b5c6a8;
} }
.alert-danger, .alert-danger,
.alert-error { .alert-error {
color: #b94a48; color: #b94a48;
background-color: #f2dede; background: #f2dede;
border-color: #dcc5ca; border-color: #dcc5ca;
} }
.alert-info { .alert-info {
color: #3a87ad; color: #3a87ad;
background-color: #d9edf7; background: #d9edf7;
border-color: #a6ced8; border-color: #a6ced8;
} }
.alert-block { .alert-block {
padding-top: 1em; padding-top: 1em;
padding-bottom: 1em; padding-bottom: 1em;
}
.alert-block > p, > p,
.alert-block > ul { > ul { margin-bottom: 0; }
margin-bottom: 0;
}
.alert-block p + p { p + p { margin-top: 5px; }
margin-top: 5px;
}
#devWarning p,
#devWarning .rememberCloseButton {
padding-left: 3.5em;
position: relative;
}
#devWarning .rememberCloseButton {
margin-top: .6em;
display: inline-block;
}
#devWarning i:before {
color: rgba(138, 109, 61, .4);
font-size: 2em;
display: block;
position: absolute;
left: .2em;
top: .2em;
} }

View File

@ -57,7 +57,7 @@
@import 'page-404.less'; @import 'page-404.less';
// Alerts // Alerts
//@import 'alerts.less'; @import 'alerts.less';
// Navigation // Navigation
@import 'navigation.less'; @import 'navigation.less';