sass-site/source/assets/css/components/_alerts.scss

39 lines
713 B
SCSS
Raw Normal View History

2018-12-28 01:31:28 +01:00
.sl-c-alert {
padding: {
top: sl-px-to-rem(12px);
bottom: sl-px-to-rem(12px);
};
2018-10-24 00:06:39 +02:00
text-align: center;
2018-12-28 01:31:28 +01:00
background: darken($sl-color--hopbush, 10%);
2018-12-29 01:13:58 +01:00
color: rgba($sl-color--white, .875);
2013-10-09 12:30:53 +02:00
2018-12-28 01:31:28 +01:00
p,
2013-10-09 12:30:53 +02:00
ul,
2018-12-28 01:31:28 +01:00
dl {
2013-10-09 12:30:53 +02:00
2018-12-28 01:31:28 +01:00
&:first-child { margin-top: 0; }
2013-10-09 12:30:53 +02:00
2018-12-28 01:31:28 +01:00
&:last-child { margin-bottom: 0; }
2013-10-09 12:30:53 +02:00
}
2018-12-28 01:31:28 +01:00
p,
li,
dd { max-width: none; }
2013-10-11 22:06:20 +02:00
2018-12-28 01:31:28 +01:00
a {
2018-12-29 01:13:58 +01:00
border-bottom-color: rgba($sl-color--white, .5);
2018-12-28 01:31:28 +01:00
font-weight: $sl-font-weight--bold;
2018-12-29 01:13:58 +01:00
color: $sl-color--white;
2018-12-28 01:31:28 +01:00
&:hover,
2018-12-29 01:13:58 +01:00
&:focus {
border-bottom-color: rgba($sl-color--white, .75);
background: rgba(black, .0625);
}
2013-10-11 22:06:20 +02:00
2018-12-28 01:31:28 +01:00
&:active { border-bottom-color: $sl-color--white; }
}
2014-07-23 00:27:15 +02:00
2018-12-28 01:31:28 +01:00
&--info { background: $sl-color--midnight-blue; }
}