Template:Note: Difference between revisions
From Flexible Survival
Jump to navigationJump to search
m Attempt to fix CSS |
m Adjust warning colour |
||
| Line 15: | Line 15: | ||
div.note-warning { | div.note-warning { | ||
border-color: #c63f17; | border-color: #c63f17; | ||
background-color: # | background-color: #ffab91; | ||
box-shadow: 0 12px 18px -12px #c63f17; | box-shadow: 0 12px 18px -12px #c63f17; | ||
} | } | ||
Revision as of 01:27, 1 November 2019
A template for short notes.
Usage
{{Note
| Icon = [<empty>|Warning]
| Content = Content of the note, which can be as long as you like really, but this template is intended for notes of a few sentences in length really.
}}
Examples
<css> div.note {
position: relative; min-height: 3.1em; margin: 0.5em 5em; padding: 0.1em 1em 0.1em 4em; border: 1px solid #8d8d8d; border-radius: 0.5em; display: flex; align-items: center; box-shadow: 0 12px 18px -12px #373737; background-color: #efefef;
} div.note-warning {
border-color: #c63f17; background-color: #ffab91; box-shadow: 0 12px 18px -12px #c63f17;
} div.note img:first-of-type {
position: absolute; width: 2em; height: 2em; left: 2em; top: 0.6em; transform: translatex(-50%); opacity: 60%
} </css>
Content of the note, which can be as long as you like really, but this template is intended for notes of a few sentences in length really.
<css>
div.note {
position: relative; min-height: 3.1em; margin: 0.5em 5em; padding: 0.1em 1em 0.1em 4em; border: 1px solid #8d8d8d; border-radius: 0.5em; display: flex; align-items: center; box-shadow: 0 12px 18px -12px #373737; background-color: #efefef;
} div.note-warning {
border-color: #c63f17; background-color: #ffab91; box-shadow: 0 12px 18px -12px #c63f17;
} div.note img:first-of-type {
position: absolute; width: 2em; height: 2em; left: 2em; top: 0.6em; transform: translatex(-50%); opacity: 60%
} </css>
Content of the note, which can be as long as you like really, but this template is intended for notes of a few sentences in length really.
<css>
div.note {
position: relative; min-height: 3.1em; margin: 0.5em 5em; padding: 0.1em 1em 0.1em 4em; border: 1px solid #8d8d8d; border-radius: 0.5em; display: flex; align-items: center; box-shadow: 0 12px 18px -12px #373737; background-color: #efefef;
} div.note-warning {
border-color: #c63f17; background-color: #ffab91; box-shadow: 0 12px 18px -12px #c63f17;
} div.note img:first-of-type {
position: absolute; width: 2em; height: 2em; left: 2em; top: 0.6em; transform: translatex(-50%); opacity: 60%
} </css>
Content of the note, which can be as long as you like really, but this template is intended for notes of a few sentences in length really.