35 lines
797 B
CSS
35 lines
797 B
CSS
.warning {
|
|
--start-colour: yellow;
|
|
--end-colour: black;
|
|
|
|
background-image: repeating-linear-gradient(-45deg, var(--start-colour), var(--start-colour) 10px, var(--end-colour) 10px, var(--end-colour) 20px);
|
|
box-shadow: 0 1px 4px #111;
|
|
margin: 2px 0;
|
|
padding: 2px;
|
|
color: #fff;
|
|
text-align: center;
|
|
}
|
|
.warning--red {
|
|
--start-colour: #ff3d3d;
|
|
--end-colour: #f00;
|
|
}
|
|
.warning--bigger {
|
|
font-size: 1.4em;
|
|
line-height: 1.5em;
|
|
}
|
|
.warning__content {
|
|
background-color: rgba(17, 17, 17, .9);
|
|
padding: 2px 5px;
|
|
}
|
|
.warning--bigger .warning__content {
|
|
padding: 8px 20px;
|
|
}
|
|
.warning__link {
|
|
color: inherit;
|
|
text-decoration: underline dotted;
|
|
}
|
|
.warning__link:hover,
|
|
.warning__link:active,
|
|
.warning__link:focus {
|
|
text-decoration: underline;
|
|
}
|