MoMoss is a user-macro where you can change your paragraph into a tip/warning/ info/bug report/special announcement or any other eye catching note with just a few clicks.
Why its called MoMoss?
“Mo” means the way a particular person tends to do things. “Moss” are small plants that typically grow in dense green clumps or mats. In this case this user-macro do changes to the look of your paragraph and make it eye-catching.
Key features
Code
## Developed by: Alana Fernando
## Date created: 26/06/2018
## Shared with love
<link href="https://fonts.googleapis.com/css?family=Kurale" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Cormorant+Infant" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Rancho" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Indie+Flower" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Bad+Script" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" integrity="sha384-WskhaSGFgHYWDcbwN70/dfYBj47jz9qbsMId/iRN3ewGhXQFZCSftd1LZCfmhktB" crossorigin="anonymous">
## @param title:title=Note title|type=string|required=true|desc=Title to display
## @param icon:title=Note icon|type=enum|desc=Choose note icon. |enumValues=calendar,bug,bitbucket,check,close,cloud,code-fork,code,comment,cube,download,envelope,folder-open,gear,paperclip,puzzle-piece,thumbs-o-up,
## @param style:title=Note style|type=enum|desc=Choose note style. |required=true|enumValues=Lime,Blue,Amber,Red,Pink,Gray,Cyan
## @param fontfamily:title=Font family|type=enum|desc=Choose font family. (some font families may not compatible with browsers)|enumValues=Times New Roman,Arial,Courier New,Tahoma,Trebuchet MS,Courier New,Kurale,Cormorant Infant,Rancho,Indie Flower,Bad Script
## @param borderstyle:title=border style|type=enum|required=true|desc=Choose a note style.|enumValues=dashed,solid
## @param fontsize:title=Heading|type=enum|required=true|desc=Choose a font size.|enumValues=h1,h2,h3,h4,h5,h6
#if ($paramstyle == "Lime")
<table style="width: 100%;">
<td class="TH">
<div class="Lime Limeb panel-body" style="font-family:$paramfontfamily; border-style:$paramborderstyle;">
<$paramfontsize style="color:#827717;"><i class="fa fa-$paramicon"> </i> $paramtitle </$paramfontsize>
<div style="font-family:$paramfontfamily; font-size:$paramfontsize;">
$body
</div>
</div>
</td>
</table>
#elseif ($paramstyle == "Blue")
<table style="width: 100%;">
<td class="TH">
<div class="Blue Blueb panel-body" style="font-family:$paramfontfamily; border-style:$paramborderstyle;">
<$paramfontsize style="color:#0D47A1;"><i class="fa fa-$paramicon"> </i> $paramtitle </$paramfontsize>
<div style="font-family:$paramfontfamily; font-size:$paramfontsize;">
$body
</div>
</div>
</td>
</table>
#elseif ($paramstyle == "Amber")
<table style="width: 100%;">
<td class="TH">
<div class="Amber Amberb panel-body" style="font-family:$paramfontfamily; border-style:$paramborderstyle;">
<$paramfontsize style="color:#FFA000;"><i class="fa fa-$paramicon"> </i> $paramtitle </$paramfontsize>
<div style="font-family:$paramfontfamily; font-size:$paramfontsize;">
$body
</div>
</div>
</td>
</table>
</td>
</table>
#elseif ($paramstyle == "Red")
<table style="width: 100%;">
<td class="TH">
<div class="Red Redb panel-body" style="font-family:$paramfontfamily; border-style:$paramborderstyle;">
<$paramfontsize style="color:#B71C1C;"><i class="fa fa-$paramicon"> </i> $paramtitle </$paramfontsize>
<div style="font-family:$paramfontfamily; font-size:$paramfontsize;">
$body
</div>
</div>
</td>
</table>
#elseif ($paramstyle == "Pink")
<table style="width: 100%;">
<td class="TH">
<div class="Pink Pinkb panel-body" style="font-family:$paramfontfamily; border-style:$paramborderstyle;">
<$paramfontsize style="color:#AD1457;"><i class="fa fa-$paramicon"> </i> $paramtitle </$paramfontsize>
<div style="font-family:$paramfontfamily; font-size:$paramfontsize;">
$body
</div>
</div>
</td>
</table>
#elseif ($paramstyle == "Gray")
<table style="width: 100%;">
<td class="TH">
<div class="Gray Grayb panel-body" style="font-family:$paramfontfamily; border-style:$paramborderstyle;">
<$paramfontsize style="color:#616161;"><i class="fa fa-$paramicon"> </i> $paramtitle </$paramfontsize>
<div style="font-family:$paramfontfamily; font-size:$paramfontsize;">
$body
</div>
</div>
</td>
</table>
#elseif ($paramstyle == "Cyan")
<table style="width: 100%;">
<td class="TH">
<div class="Cyan Cyanb panel-body" style="font-family:$paramfontfamily; border-style:$paramborderstyle;">
<$paramfontsize style="color:#E0F7FA;"><i class="fa fa-$paramicon"> </i> $paramtitle </$paramfontsize>
<div style="font-family:$paramfontfamily; font-size:$paramfontsize;">
$body
</div>
</div>
</td>
</table>
#else
<div>$body</div>
#end
<style>
.Lime {
border:#827717 1px solid;
border-radius: 5px;
}
.Limeb{
padding: 5px;
background:#E6EE9C;
}
.Blue {
border:#0D47A1 1px solid;
border-radius: 5px;
}
.Blueb{
padding: 5px;
background:#E3F2FD;
}
.Amber {
border:#FFA000 1px solid;
border-radius: 5px;
}
.Amberb{
padding: 5px;
background:#FFD54F;
}
.Red {
border:#B71C1C 1px solid;
border-radius: 5px;
}
.Redb{
padding: 5px;
background:#FFEBEE;
}
.Pink {
border:#AD1457 1px solid;
border-radius: 5px;
}
.Pinkb{
padding: 5px;
background:#F8BBD0;
}
.Gray {
border:#757575 1px solid;
border-radius: 5px;
}
.Grayb{
padding: 5px;
background:#F5F5F5;
}
.Cyan {
border:#E0F7FA 1px solid;
border-radius: 5px;
}
.Cyanb{
padding: 5px;
background:#00BCD4;
}
.TH {
background:none;
border:white;
width: 100%;
}
</style>
How to use it?
Adding user macro
Remember to select Rendered as macro body processing.
Make it more shimmer and shine
You can always explore and groom the default looks of this macro to take the best out from this.
MoMoss is named after @Monique vdB and @Erica Moss. This one is for you.
Alana Fernando
QA Analyst
MillenniumIT
Sri Lanka
34 accepted answers
18 comments