-
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(mjml-core): remove randomness when generating component ids
Signed-off-by: Jérémie Drouet <[email protected]>
- Loading branch information
Showing
19 changed files
with
241 additions
and
242 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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 |
---|---|---|
|
@@ -77,7 +77,7 @@ | |
user-select: none; | ||
} | ||
|
||
.mj-carousel-aaaaaaaa-icons-cell { | ||
.mj-carousel-00000000-icons-cell { | ||
display: table-cell !important; | ||
width: 44px !important; | ||
} | ||
|
@@ -94,32 +94,32 @@ | |
touch-action: manipulation; | ||
} | ||
|
||
.mj-carousel-aaaaaaaa-radio:checked+.mj-carousel-content .mj-carousel-image, | ||
.mj-carousel-aaaaaaaa-radio:checked+*+.mj-carousel-content .mj-carousel-image, | ||
.mj-carousel-aaaaaaaa-radio:checked+*+*+.mj-carousel-content .mj-carousel-image { | ||
.mj-carousel-00000000-radio:checked+.mj-carousel-content .mj-carousel-image, | ||
.mj-carousel-00000000-radio:checked+*+.mj-carousel-content .mj-carousel-image, | ||
.mj-carousel-00000000-radio:checked+*+*+.mj-carousel-content .mj-carousel-image { | ||
display: none !important; | ||
} | ||
|
||
.mj-carousel-aaaaaaaa-radio-1:checked+*+*+.mj-carousel-content .mj-carousel-image-1, | ||
.mj-carousel-aaaaaaaa-radio-2:checked+*+.mj-carousel-content .mj-carousel-image-2, | ||
.mj-carousel-aaaaaaaa-radio-3:checked+.mj-carousel-content .mj-carousel-image-3 { | ||
.mj-carousel-00000000-radio-1:checked+*+*+.mj-carousel-content .mj-carousel-image-1, | ||
.mj-carousel-00000000-radio-2:checked+*+.mj-carousel-content .mj-carousel-image-2, | ||
.mj-carousel-00000000-radio-3:checked+.mj-carousel-content .mj-carousel-image-3 { | ||
display: block !important; | ||
} | ||
|
||
.mj-carousel-previous-icons, | ||
.mj-carousel-next-icons, | ||
.mj-carousel-aaaaaaaa-radio-1:checked+*+*+.mj-carousel-content .mj-carousel-next-2, | ||
.mj-carousel-aaaaaaaa-radio-2:checked+*+.mj-carousel-content .mj-carousel-next-3, | ||
.mj-carousel-aaaaaaaa-radio-3:checked+.mj-carousel-content .mj-carousel-next-1, | ||
.mj-carousel-aaaaaaaa-radio-1:checked+*+*+.mj-carousel-content .mj-carousel-previous-3, | ||
.mj-carousel-aaaaaaaa-radio-2:checked+*+.mj-carousel-content .mj-carousel-previous-1, | ||
.mj-carousel-aaaaaaaa-radio-3:checked+.mj-carousel-content .mj-carousel-previous-2 { | ||
.mj-carousel-00000000-radio-1:checked+*+*+.mj-carousel-content .mj-carousel-next-2, | ||
.mj-carousel-00000000-radio-2:checked+*+.mj-carousel-content .mj-carousel-next-3, | ||
.mj-carousel-00000000-radio-3:checked+.mj-carousel-content .mj-carousel-next-1, | ||
.mj-carousel-00000000-radio-1:checked+*+*+.mj-carousel-content .mj-carousel-previous-3, | ||
.mj-carousel-00000000-radio-2:checked+*+.mj-carousel-content .mj-carousel-previous-1, | ||
.mj-carousel-00000000-radio-3:checked+.mj-carousel-content .mj-carousel-previous-2 { | ||
display: block !important; | ||
} | ||
|
||
.mj-carousel-aaaaaaaa-radio-1:checked+*+*+.mj-carousel-content .mj-carousel-aaaaaaaa-thumbnail-1, | ||
.mj-carousel-aaaaaaaa-radio-2:checked+*+.mj-carousel-content .mj-carousel-aaaaaaaa-thumbnail-2, | ||
.mj-carousel-aaaaaaaa-radio-3:checked+.mj-carousel-content .mj-carousel-aaaaaaaa-thumbnail-3 { | ||
.mj-carousel-00000000-radio-1:checked+*+*+.mj-carousel-content .mj-carousel-00000000-thumbnail-1, | ||
.mj-carousel-00000000-radio-2:checked+*+.mj-carousel-content .mj-carousel-00000000-thumbnail-2, | ||
.mj-carousel-00000000-radio-3:checked+.mj-carousel-content .mj-carousel-00000000-thumbnail-3 { | ||
border-color: #cccccc !important; | ||
} | ||
|
||
|
@@ -128,19 +128,19 @@ | |
display: none !important; | ||
} | ||
|
||
.mj-carousel-aaaaaaaa-thumbnail:hover+*+*+.mj-carousel-main .mj-carousel-image, | ||
.mj-carousel-aaaaaaaa-thumbnail:hover+*+.mj-carousel-main .mj-carousel-image, | ||
.mj-carousel-aaaaaaaa-thumbnail:hover+.mj-carousel-main .mj-carousel-image { | ||
.mj-carousel-00000000-thumbnail:hover+*+*+.mj-carousel-main .mj-carousel-image, | ||
.mj-carousel-00000000-thumbnail:hover+*+.mj-carousel-main .mj-carousel-image, | ||
.mj-carousel-00000000-thumbnail:hover+.mj-carousel-main .mj-carousel-image { | ||
display: none !important; | ||
} | ||
|
||
.mj-carousel-thumbnail:hover { | ||
border-color: #fead0d !important; | ||
} | ||
|
||
.mj-carousel-aaaaaaaa-thumbnail-1:hover+*+*+.mj-carousel-main .mj-carousel-image-1, | ||
.mj-carousel-aaaaaaaa-thumbnail-2:hover+*+.mj-carousel-main .mj-carousel-image-2, | ||
.mj-carousel-aaaaaaaa-thumbnail-3:hover+.mj-carousel-main .mj-carousel-image-3 { | ||
.mj-carousel-00000000-thumbnail-1:hover+*+*+.mj-carousel-main .mj-carousel-image-1, | ||
.mj-carousel-00000000-thumbnail-2:hover+*+.mj-carousel-main .mj-carousel-image-2, | ||
.mj-carousel-00000000-thumbnail-3:hover+.mj-carousel-main .mj-carousel-image-3 { | ||
display: block !important; | ||
} | ||
|
||
|
@@ -163,13 +163,13 @@ | |
|
||
@media screen, yahoo { | ||
|
||
.mj-carousel-aaaaaaaa-icons-cell, | ||
.mj-carousel-00000000-icons-cell, | ||
.mj-carousel-previous-icons, | ||
.mj-carousel-next-icons { | ||
display: none !important; | ||
} | ||
|
||
.mj-carousel-aaaaaaaa-radio-1:checked+*+*+.mj-carousel-content .mj-carousel-aaaaaaaa-thumbnail-1 { | ||
.mj-carousel-00000000-radio-1:checked+*+*+.mj-carousel-content .mj-carousel-00000000-thumbnail-1 { | ||
border-color: transparent; | ||
} | ||
} | ||
|
@@ -192,37 +192,37 @@ | |
<td align="right" class="container" style="font-size:0px;word-break:break-word;"> | ||
<!--[if !mso]><!--> | ||
<div class="mj-carousel"> | ||
<input class="mj-carousel-radio mj-carousel-aaaaaaaa-radio mj-carousel-aaaaaaaa-radio-1" checked="checked" type="radio" name="mj-carousel-radio-aaaaaaaa" id="mj-carousel-aaaaaaaa-radio-1" style="display:none;mso-hide:all;" /> | ||
<input class="mj-carousel-radio mj-carousel-aaaaaaaa-radio mj-carousel-aaaaaaaa-radio-2" type="radio" name="mj-carousel-radio-aaaaaaaa" id="mj-carousel-aaaaaaaa-radio-2" style="display:none;mso-hide:all;" /> | ||
<input class="mj-carousel-radio mj-carousel-aaaaaaaa-radio mj-carousel-aaaaaaaa-radio-3" type="radio" name="mj-carousel-radio-aaaaaaaa" id="mj-carousel-aaaaaaaa-radio-3" style="display:none;mso-hide:all;" /> | ||
<div class="mj-carousel-content mj-carousel-aaaaaaaa-content" style="display:table;width:100%;table-layout:fixed;text-align:center;font-size:0px;"> | ||
<a style="border:2px solid transparent;border-radius:6px;display:inline-block;overflow:hidden;width:110px;" href="#1" target="_blank" class="mj-carousel-thumbnail mj-carousel-aaaaaaaa-thumbnail mj-carousel-aaaaaaaa-thumbnail-1 "> | ||
<label for="mj-carousel-aaaaaaaa-radio-1"> | ||
<input class="mj-carousel-radio mj-carousel-00000000-radio mj-carousel-00000000-radio-1" checked="checked" type="radio" name="mj-carousel-radio-00000000" id="mj-carousel-00000000-radio-1" style="display:none;mso-hide:all;" /> | ||
<input class="mj-carousel-radio mj-carousel-00000000-radio mj-carousel-00000000-radio-2" type="radio" name="mj-carousel-radio-00000000" id="mj-carousel-00000000-radio-2" style="display:none;mso-hide:all;" /> | ||
<input class="mj-carousel-radio mj-carousel-00000000-radio mj-carousel-00000000-radio-3" type="radio" name="mj-carousel-radio-00000000" id="mj-carousel-00000000-radio-3" style="display:none;mso-hide:all;" /> | ||
<div class="mj-carousel-content mj-carousel-00000000-content" style="display:table;width:100%;table-layout:fixed;text-align:center;font-size:0px;"> | ||
<a style="border:2px solid transparent;border-radius:6px;display:inline-block;overflow:hidden;width:110px;" href="#1" target="_blank" class="mj-carousel-thumbnail mj-carousel-00000000-thumbnail mj-carousel-00000000-thumbnail-1 "> | ||
<label for="mj-carousel-00000000-radio-1"> | ||
<img style="display:block;width:100%;height:auto;" src="https://www.mailjet.com/wp-content/uploads/2016/11/ecommerce-guide.jpg" alt="first" width="110" /> | ||
</label> | ||
</a> | ||
<a style="border:2px solid transparent;border-radius:6px;display:inline-block;overflow:hidden;width:110px;" href="#2" target="_blank" class="mj-carousel-thumbnail mj-carousel-aaaaaaaa-thumbnail mj-carousel-aaaaaaaa-thumbnail-2 middle-thumbnail"> | ||
<label for="mj-carousel-aaaaaaaa-radio-2"> | ||
<a style="border:2px solid transparent;border-radius:6px;display:inline-block;overflow:hidden;width:110px;" href="#2" target="_blank" class="mj-carousel-thumbnail mj-carousel-00000000-thumbnail mj-carousel-00000000-thumbnail-2 middle-thumbnail"> | ||
<label for="mj-carousel-00000000-radio-2"> | ||
<img style="display:block;width:100%;height:auto;" src="https://www.mailjet.com/wp-content/uploads/2016/09/[email protected]" width="110" /> | ||
</label> | ||
</a> | ||
<a style="border:2px solid transparent;border-radius:6px;display:inline-block;overflow:hidden;width:110px;" href="#3" target="_blank" class="mj-carousel-thumbnail mj-carousel-aaaaaaaa-thumbnail mj-carousel-aaaaaaaa-thumbnail-3 "> | ||
<label for="mj-carousel-aaaaaaaa-radio-3"> | ||
<a style="border:2px solid transparent;border-radius:6px;display:inline-block;overflow:hidden;width:110px;" href="#3" target="_blank" class="mj-carousel-thumbnail mj-carousel-00000000-thumbnail mj-carousel-00000000-thumbnail-3 "> | ||
<label for="mj-carousel-00000000-radio-3"> | ||
<img style="display:block;width:100%;height:auto;" src="https://www.mailjet.com/wp-content/uploads/2016/09/[email protected]" width="110" /> | ||
</label> | ||
</a> | ||
<table style="caption-side:top;display:table-caption;table-layout:fixed;width:100%;" border="0" cellpadding="0" cellspacing="0" width="100%" role="presentation" class="mj-carousel-main"> | ||
<tbody> | ||
<tr> | ||
<td class="mj-carousel-aaaaaaaa-icons-cell" style="font-size:0px;display:none;mso-hide:all;padding:0px;"> | ||
<td class="mj-carousel-00000000-icons-cell" style="font-size:0px;display:none;mso-hide:all;padding:0px;"> | ||
<div class="mj-carousel-previous-icons" style="display:none;mso-hide:all;"> | ||
<label for="mj-carousel-aaaaaaaa-radio-1" class="mj-carousel-previous mj-carousel-previous-1"> | ||
<label for="mj-carousel-00000000-radio-1" class="mj-carousel-previous mj-carousel-previous-1"> | ||
<img src="https://i.imgur.com/xTh3hln.png" alt="previous" style="display:block;width:44px;height:auto;" width="44" /> | ||
</label> | ||
<label for="mj-carousel-aaaaaaaa-radio-2" class="mj-carousel-previous mj-carousel-previous-2"> | ||
<label for="mj-carousel-00000000-radio-2" class="mj-carousel-previous mj-carousel-previous-2"> | ||
<img src="https://i.imgur.com/xTh3hln.png" alt="previous" style="display:block;width:44px;height:auto;" width="44" /> | ||
</label> | ||
<label for="mj-carousel-aaaaaaaa-radio-3" class="mj-carousel-previous mj-carousel-previous-3"> | ||
<label for="mj-carousel-00000000-radio-3" class="mj-carousel-previous mj-carousel-previous-3"> | ||
<img src="https://i.imgur.com/xTh3hln.png" alt="previous" style="display:block;width:44px;height:auto;" width="44" /> | ||
</label> | ||
</div> | ||
|
@@ -242,15 +242,15 @@ | |
</div> | ||
</div> | ||
</td> | ||
<td class="mj-carousel-aaaaaaaa-icons-cell" style="font-size:0px;display:none;mso-hide:all;padding:0px;"> | ||
<td class="mj-carousel-00000000-icons-cell" style="font-size:0px;display:none;mso-hide:all;padding:0px;"> | ||
<div class="mj-carousel-next-icons" style="display:none;mso-hide:all;"> | ||
<label for="mj-carousel-aaaaaaaa-radio-1" class="mj-carousel-next mj-carousel-next-1"> | ||
<label for="mj-carousel-00000000-radio-1" class="mj-carousel-next mj-carousel-next-1"> | ||
<img src="https://i.imgur.com/os7o9kz.png" alt="next" style="display:block;width:44px;height:auto;" width="44" /> | ||
</label> | ||
<label for="mj-carousel-aaaaaaaa-radio-2" class="mj-carousel-next mj-carousel-next-2"> | ||
<label for="mj-carousel-00000000-radio-2" class="mj-carousel-next mj-carousel-next-2"> | ||
<img src="https://i.imgur.com/os7o9kz.png" alt="next" style="display:block;width:44px;height:auto;" width="44" /> | ||
</label> | ||
<label for="mj-carousel-aaaaaaaa-radio-3" class="mj-carousel-next mj-carousel-next-3"> | ||
<label for="mj-carousel-00000000-radio-3" class="mj-carousel-next mj-carousel-next-3"> | ||
<img src="https://i.imgur.com/os7o9kz.png" alt="next" style="display:block;width:44px;height:auto;" width="44" /> | ||
</label> | ||
</div> | ||
|
Oops, something went wrong.