forked from SquareBracketAssociates/EnterprisePharo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1f43f55
commit 3ea07b1
Showing
4 changed files
with
83 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,31 @@ | ||
p.todo { | ||
.annotated-paragraph { | ||
margin: 20px 0; | ||
padding: 15px 30px 15px 15px; | ||
border-left: 5px solid #eee; | ||
color: #3A87AD; | ||
} | ||
|
||
p.note { | ||
margin: 20px 0; | ||
padding: 15px 30px 15px 15px; | ||
border-left: 5px solid #eee; | ||
color: #B94A48; | ||
.annotated-paragraph h4 { | ||
margin-top: 0; | ||
} | ||
|
||
.annotated-paragraph p:last-child { | ||
margin-bottom: 0; | ||
} | ||
|
||
.note { | ||
background-color: #f0f7fd; | ||
border-color: #d0e3f0; | ||
} | ||
|
||
.note h4 { | ||
color: #3a87ad; | ||
} | ||
|
||
.todo { | ||
background-color: #dff0d8; | ||
border-color: #d6e9c6; | ||
} | ||
|
||
.todo h4 { | ||
color: #3c763d; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
function transformAnnotatedParagraphs(pClass, pTitle) { | ||
$("p." + pClass).wrap( "<div class='annotated-paragraph " | ||
+ pClass + "' />" ).prepend("<h4>"+ pTitle +"</h4>"); | ||
} | ||
|
||
transformAnnotatedParagraphs("note", "Note"); | ||
transformAnnotatedParagraphs("todo", "To do"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters