<!--[if (gte mso 9)|(IE)]><table cellpadding="0" cellspacing="0" width="600" align="center"><tr><td><![endif]-->
<div class="crunchBlock">
<table cellpadding="0" cellspacing="0" align="center" class="" width="100%">
<tr>
<td>
<!--[if (gte mso 9)|(IE)]><table cellpadding="0" cellspacing="0" width="600" align="center"><tr><td><![endif]-->
<div>
<!-- content here -->
</div>
<!--[if (gte mso 9)|(IE)]></td></tr></table><![endif]-->
</td>
</tr>
</table>
</div>
<!--[if (gte mso 9)|(IE)]></td></tr></table><![endif]-->
<!--[if (gte mso 9)|(IE)]><table cellpadding="0" cellspacing="0" width="600" align="center"><tr><td><![endif]-->
<div class="crunchBlock crunchCol crunchCol2">
<table cellpadding="0" cellspacing="0" align="center" class="" width="100%">
<tr>
<td>
<!--[if (gte mso 9)|(IE)]><table cellpadding="0" cellspacing="0" width="600" align="center"><tr><td width="280" style="padding: 10px;"><![endif]-->
<div>
<!-- content here -->
</div>
<!--[if (gte mso 9)|(IE)]>
</td>
<td width="280" style="padding: 10px;">
<![endif]-->
<div>
<!-- content here -->
</div>
<!--[if (gte mso 9)|(IE)]></td></tr></table><![endif]-->
</td>
</tr>
</table>
</div>
<!--[if (gte mso 9)|(IE)]></td></tr></table><![endif]-->
<!--[if (gte mso 9)|(IE)]><table cellpadding="0" cellspacing="0" width="600" align="center"><tr><td><![endif]-->
<div class="crunchBlock crunch3Col crunchCol">
<table cellpadding="0" cellspacing="0" align="center" class="crunchWFull" width="100%">
<tr>
<td>
<!--[if (gte mso 9)|(IE)]><table cellpadding="0" cellspacing="0" width="540" align="center"><tr><td width="165" style="padding: 10px;"><![endif]-->
<div>
<!-- content here -->
</div>
<!--[if (gte mso 9)|(IE)]>
</td>
<td width="165" style="padding: 10px;">
<![endif]-->
<div>
<!-- content here -->
</div>
<!--[if (gte mso 9)|(IE)]>
</td>
<td width="165" style="padding: 10px;">
<![endif]-->
<div>
<!-- content here -->
</div>
<!--[if (gte mso 9)|(IE)]></td></tr></table><![endif]-->
</td>
</tr>
</table>
</div>
<!--[if (gte mso 9)|(IE)]></td></tr></table><![endif]-->
<h1 class="crunchTitle crunchElement">Donec ullamcorper nulla metus</h1>
<p class="crunchText crunchElement">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Eum accusamus laborum laboriosam consequuntur, enim nihil, rerum necessitatibus voluptates facilis ipsam iste incidunt eius quae atque hic perferendis itaque ad soluta.</p>
<table class="crunchButton crunchElement" cellpadding="0" cellspacing="0">
<tr>
<td>
<a class="crunchLink" href="">Button</a>
</td>
</tr>
</table>
<img src="http://placehold.it/600x250" />
crunchWrapper
: Global class to set basic style on several elements (mandatory)crunchBlock
: Add padding on td element (25px) (mandatory, choose between crunchBlock and crunchBlockNoBg)crunchBlockNoBg
: Remove padding on td element (mandatory, choose between crunchBlock and crunchBlockNoBg)crunchFitBlock
: Set a 100% widthcrunchBgPrimaryColor
: Set the primary background color.crunchTac
: Center textcrunchTal
: Align text on leftcrunchTar
: Align text on rightcrunchCol
: To apply columns setup on blockcrunchCol2
: 2 columnscrunchCol3
: 3 columnscrunch1-3ColLeft
: Left column with 1/3 width and right with 2/3crunch1-3ColRight
: Right column with 1/3 width and left with 2/3crunch1-4ColRight
: Right column with 1/4 width and left with 3/4crunch1-4ColLeft
: Left column with 1/4 width and right with 3/4crunchMessageUsers
: Basic style for header and footer messagecrunchInlineImg
: Set image(s) on inline position
crunchTitle
: Title h1, h2, h3 ...crunchText
: Paragraph pcrunchButton
: Basic style for button
Toothpaste wysiwyg conf : title, img, text, button. Use the data-conf
attribute to add wisywg configuration on element.
Example for a image :
<img data-conf="img" src="http://placehold.it/600x250" />
<!-- or -->
<a href="#" data-conf="img">
<img src="http://placehold.it/600x250" />
</a>
Create your html and use toothpage_htmlToJson.js
file to convert your html into json object
fct.convertTemplate('template_id');
Create a less file with your properties
You can create custom style configuration for Toothpaste edition with less variables
Example :
@marginBlock: 30px;
@_marginBlock_name: "Spaces beetween blocks";
@_marginBlock_type: "range";
@_marginBlock_min: 0;
@_marginBlock_max: 50;
A toothpaste template have 6 colors maximum.
@primary_color:#16a085;
@secondary_color0:#ecf0f1;
@secondary_color1:#FFFFFF;
@secondary_color2:#34495e;
@secondary_color3:#bdc3c7;
@secondary_color4:#666666;
Template color file is a json :
{
"primary_color":"#16a085",
"secondary_color0":"#ecf0f1",
"secondary_color1":"#FFFFFF",
"secondary_color2":"#34495e",
"secondary_color3":"#bdc3c7",
"secondary_color4":"#666666"
}
content.json (contain json template)
color_set.json (template colors)
style_set.less