stripes for warnings
This commit is contained in:
parent
69aea402d1
commit
5e201b8d71
|
@ -22,7 +22,18 @@ tags = ["animated", "interactive"]
|
|||
<p> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce ac sodales <code>.generate()</code> magna. Aliquam tincidunt velit sit amet <a href='#'>ante hendrerit</a> tempus. Donec et nisi dictum felis sollicitudin congue.</p>
|
||||
|
||||
{{<demo>}}
|
||||
|
||||
<p>You must be having a laugh.</p>
|
||||
<style>
|
||||
p {
|
||||
color: red !important;
|
||||
font-family: cursive;
|
||||
}
|
||||
</style>
|
||||
<script>
|
||||
demo.querySelector('p').addEventListener('click', function() {
|
||||
alert('hello');
|
||||
})
|
||||
</script>
|
||||
{{</demo>}}
|
||||
|
||||
<p>Nulla vel magna sit — amet dui lobortis commodo — vitae vel nulla. Nulla lobortis tempus commodo. </p>
|
||||
|
|
|
@ -3,18 +3,7 @@
|
|||
<div id="demo-{{ $uniq }}">
|
||||
</div>
|
||||
<template id="template-{{ $uniq }}">
|
||||
<p>You must be joking.</p>
|
||||
<style>
|
||||
p {
|
||||
color: red !important;
|
||||
font-family: cursive;
|
||||
}
|
||||
</style>
|
||||
<script>
|
||||
demo.querySelector('p').addEventListener('click', function() {
|
||||
alert('hello');
|
||||
})
|
||||
</script>
|
||||
{{ .Inner }}
|
||||
</template>
|
||||
<script>
|
||||
(function() {
|
||||
|
|
|
@ -314,6 +314,17 @@ th:empty {
|
|||
margin-top: 0;
|
||||
}
|
||||
|
||||
.note.warning {
|
||||
border-left: 0;
|
||||
background-image: url(images/stripe.svg);
|
||||
background-size: 0.5rem auto;
|
||||
background-repeat: repeat-y;
|
||||
}
|
||||
|
||||
.note.warning > div {
|
||||
margin-left: 1.25rem;
|
||||
}
|
||||
|
||||
/* Tick lists */
|
||||
|
||||
.ticks li {
|
||||
|
|
Loading…
Reference in New Issue
Block a user