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

36 lines
659 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%);
color: rgba($sl-color--white, .75);
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 {
border-bottom: 1px solid rgba($sl-color--white, .5);
font-weight: $sl-font-weight--bold;
color: inherit;
&:hover,
&:focus { border-bottom-color: rgba($sl-color--white, .75); }
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; }
}