Skip to content

Commit

Permalink
added note classes and markup for use in opcode descriptions
Browse files Browse the repository at this point in the history
or elsewhere, there's no limit
  • Loading branch information
lynxlynxlynx committed Aug 16, 2016
1 parent 42e5a83 commit 673f99a
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 1 deletion.
5 changes: 5 additions & 0 deletions _includes/note.html
@@ -0,0 +1,5 @@
<div class="note info">
<div>
<strong>Note:</strong> {{ note }}
</div>
</div>
5 changes: 5 additions & 0 deletions _includes/warning.html
@@ -0,0 +1,5 @@
<div class="note warning">
<div>
<strong>Warning:</strong> {{ note }}
</div>
</div>
22 changes: 22 additions & 0 deletions _sass/_note.sass
@@ -0,0 +1,22 @@
// main note class, to be used with subclasses like info and warning
// produces a colored block similar to what bootstrap does
.note
margin-top: 1em

div
padding: 0.5em
border: 2px solid transparent
border-radius: 2%
display: inline-block

.info
div
color: #3a87ad
background-color: #d9edf7
border-color: #bce8f1

.warning
div
color: #b94a48
background-color: #f2dede
border-color: #eed3d7
2 changes: 1 addition & 1 deletion css/main.scss
Expand Up @@ -31,5 +31,5 @@ $grey-color-dark: darken($grey-color, 25%);

// Import partials from `sass_dir` (defaults to `_sass`)
@import
"general", "goup", "misc"
"general", "goup", "note", "misc"
;

0 comments on commit 673f99a

Please sign in to comment.