Skip to content

admonitions #212

Answered by andre-dietrich
abotzki asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @abotzki ... I tried your idea out ... basically this can be done like in the following example. Only some CSS is required, these can then be attached to any block ...

<!--

@style
.admonition {
    padding: 15px 20px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
    box-shadow: 0 1px 1px rgba(0,0,0,0.05);
    position: relative;
    line-height: 1.4;
}
.admonition::before {
    margin-left: -5rem;
}
.admonition.note {
    color: #31708f;
    background-color: #d9edf7;
    border-left: 5px solid #31708f;
}
.admonition.warning {
    color: #8a6d3b;
    background-color: #fcf8e3;
    border-left: 5px solid #8a6d3b;
}
.admonition.danger {
    color: …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by abotzki
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants