1
1
mirror of https://github.com/primer/css.git synced 2024-12-29 17:12:27 +03:00
css/scss/_alerts.scss

93 lines
1.3 KiB
SCSS
Raw Normal View History

2015-10-10 21:08:02 +03:00
// Default flash
.flash {
position: relative;
2015-10-10 21:08:02 +03:00
padding: 15px;
font-size: 14px;
2015-10-10 21:08:02 +03:00
line-height: 1.5;
color: #246;
background-color: #e2eef9;
2015-10-10 21:08:02 +03:00
border: 1px solid #bac6d3;
border-radius: 3px;
p:last-child {
margin-bottom: 0;
}
2015-10-10 21:08:02 +03:00
}
2015-10-10 21:08:02 +03:00
// Contain the flash messages
.flash-messages {
margin-bottom: 20px;
}
2015-10-10 21:08:02 +03:00
// Close button
.flash-close {
float: right;
width: 34px;
height: 44px;
margin: -11px;
color: inherit;
line-height: 40px;
text-align: center;
cursor: pointer;
opacity: 0.6;
// Undo `<button>` styles
background: none;
border: 0;
-webkit-appearance: none;
&:hover {
opacity: 1;
}
}
2015-10-10 21:08:02 +03:00
// Action button
.flash-action {
float: right;
margin-top: -4px;
margin-left: 20px;
}
2015-10-10 21:08:02 +03:00
//
// Variations
//
2015-10-10 21:08:02 +03:00
.flash-warn {
color: #4c4a42;
background-color: #fff9ea;
border-color: #dfd8c2;
}
2015-10-10 21:08:02 +03:00
.flash-error {
color: #911;
background-color: #fcdede;
border-color: #d2b2b2;
}
2015-10-10 21:08:02 +03:00
.flash-full {
margin-top: -1px;
border-width: 1px 0;
2015-10-10 21:08:02 +03:00
border-radius: 0;
}
2015-10-10 21:08:02 +03:00
.flash-with-icon {
.container {
padding-left: 40px;
}
2015-10-10 21:08:02 +03:00
.flash-icon {
float: left;
margin-top: 3px;
margin-left: -25px;
}
}
2015-10-10 21:08:02 +03:00
// Content within
//
// Reset margins on headings and paragraphs within alerts.
.flash-content {
margin-top: 0;
2015-10-10 21:08:02 +03:00
margin-bottom: 0;
line-height: 1.5;
}