Skip to content

Commit

Permalink
hugo modifications to mosaico
Browse files Browse the repository at this point in the history
  • Loading branch information
nabenzine committed Aug 29, 2016
1 parent 0a3c24f commit 8511746
Show file tree
Hide file tree
Showing 19 changed files with 345 additions and 160 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ uploads/**
!.tmp/README.md
build
dist
.idea
4 changes: 2 additions & 2 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ module.exports = function(grunt) {

less: {
options: {
sourceMap: true,
sourceMap: false,
sourceMapRootpath: '../',
/* sourceMapFilename: 'build/mosaico.css.map' */
sourceMapFileInline: true
Expand Down Expand Up @@ -237,4 +237,4 @@ module.exports = function(grunt) {
grunt.registerTask('build', ['bowercopy', 'copy', 'jshint', 'js', 'css']);
grunt.registerTask('default', ['build', 'server']);
grunt.registerTask('test', ['jasmine_node']);
};
};
5 changes: 4 additions & 1 deletion res/lang/mosaico-de.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
"Download": "Herunterladen",
"Test": "Test senden",
"Save": "Speichern",
"Next": "Nächster",
"Template name": "Schablone Name",
"Campaign name": "Kampagne Name",
"Downloading...": "wird heruntergeladen ...",
"Invalid email address": "ungültige Email-Adresse",
"Test email sent...": "Email an die Tester wurde versendet.",
Expand Down Expand Up @@ -85,4 +88,4 @@
"Failed to resize image": "Fehler beim anpassen der Bildgröße",
"Unexpected upload error": "Unerwarteter Fehler beim Hochladen",
"Unexpected error listing files": "Unerwarteter Fehler beim auflisten der Dateien"
}
}
5 changes: 4 additions & 1 deletion res/lang/mosaico-en.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
"Download": "Download",
"Test": "Test",
"Save": "Save",
"Next": "Next",
"Template name": "Template name",
"Campaign name": "Campaign name",
"Downloading...": "Downloading...",
"Invalid email address": "Invalid email address",
"Test email sent...": "Test email sent...",
Expand Down Expand Up @@ -85,4 +88,4 @@
"Failed to resize image": "Failed to resize image",
"Unexpected upload error": "Unexpected upload error",
"Unexpected error listing files": "Unexpected error listing files"
}
}
5 changes: 4 additions & 1 deletion res/lang/mosaico-nl.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
"Download": "Downloaden",
"Test": "Test versturen",
"Save": "Bewaren",
"Next": "Volgende",
"Template name": "Template naam",
"Campaign name": "Campagne naam",
"Downloading...": "bezig met downloaden...",
"Invalid email address": "Ongeldig emailadres",
"Test email sent...": "Email wordt verstuurd.",
Expand Down Expand Up @@ -85,4 +88,4 @@
"Failed to resize image": "Kon de grootte van het plaatje niet aanpassen",
"Unexpected upload error": "Onverwachte fout bij upload",
"Unexpected error listing files": "Onverwachte fout bij tonen van de plaatjes"
}
}
27 changes: 16 additions & 11 deletions spec/data/template-versafix-1.model.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,19 @@
"titleText": "TITLE",
"preheaderBlock": {
"type": "preheaderBlock",
"preheaderText": "Headertext",
"customStyle": false,
"id": "",
"backgroundColor": null,
"preheaderText": "",
"backgroundColor": "#eeece1",
"externalBackgroundColor": "#eeece1",
"linkStyle": {
"type": "linkStyle",
"face": null,
"color": null,
"size": null,
"decoration": null
},
"preheaderLinkOption": "[unsubscribe_link]",
"preheaderLinkOption": "none",
"longTextStyle": {
"type": "longTextStyle",
"face": null,
Expand All @@ -25,11 +26,12 @@
"linksColor": null
},
"unsubscribeText": "Unsubscribe",
"nameText": "Name",
"webversionText": "View in your browser"
},
"sponsor": {
"type": "sponsor",
"visible": true,
"visible": false,
"src": "img/sponsor.gif",
"url": "",
"alt": "sponsor"
Expand All @@ -45,15 +47,16 @@
"linksColor": null
},
"id": "",
"backgroundColor": null,
"backgroundColor": "#eeece1",
"externalBackgroundColor": "#eeece1",
"linkStyle": {
"type": "linkStyle",
"face": null,
"color": null,
"size": null,
"decoration": null
},
"longText": "<p>Email sent to <a href=\"mailto:[mail]\">[mail]</a></p>",
"longText": "<p>Email sent to <a href=\"mailto:[Email]\">[Email]</a></p>",
"disiscrivitiText": "Unsubscribe"
},
"mainBlocks": {
Expand All @@ -64,7 +67,8 @@
"type": "theme",
"frameTheme": {
"type": "frameTheme",
"backgroundColor": "#3f3f3f",
"backgroundColor": "#eeece1",
"externalBackgroundColor": "#eeece1",
"longTextStyle": {
"type": "longTextStyle",
"face": "Arial, Helvetica, sans-serif",
Expand All @@ -75,7 +79,7 @@
"linkStyle": {
"type": "linkStyle",
"face": "Arial, Helvetica, sans-serif",
"color": "#ffffff",
"color": "#3f3f3f",
"size": "13",
"decoration": "underline"
}
Expand All @@ -89,7 +93,8 @@
"size": "13",
"linksColor": "#3f3f3f"
},
"externalBackgroundColor": "#bfbfbf",
"externalBackgroundColor": "#eeece1",
"backgroundSocialBlockColor": "#ddd9c3",
"externalTextStyle": {
"type": "textStyle",
"face": "Arial, Helvetica, sans-serif",
Expand All @@ -108,7 +113,7 @@
"face": "Arial, Helvetica, sans-serif",
"color": "#3f3f3f",
"size": "13",
"buttonColor": "#bfbfbf",
"buttonColor": "#92cddc",
"radius": "4"
},
"bigTitleStyle": {
Expand All @@ -129,7 +134,7 @@
"face": "Arial, Helvetica, sans-serif",
"color": "#3f3f3f",
"size": "22",
"buttonColor": "#bfbfbf",
"buttonColor": "#92cddc",
"radius": "4"
}
}
Expand Down
84 changes: 61 additions & 23 deletions src/css/app_standalone_material.less
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
@import 'app_standalone.less';

@accent-color: #900000; // #A01020; // #ff9800;
@accent-color: #4bacc6; // #A01020; // #ff9800;
@background-color: #eeeeee;
// @link-color: #ff9800;
// @link-color: #ff5722; // #ea1c0d;
@link-color: #ff5722; // #ea1c0d;
@link-color: #8FB06C; // #ea1c0d;

@font-family: "Noto Sans", "Helvetica Neue", Helvetica, Arial, "Nimbus Sans L", "Liberation Sans", Arimo, sans-serif;
@standard-border-radius: 2px;
@info-border-radius: @standard-border-radius;
@button-border-radius: @standard-border-radius;
@large-balloon-border-radius: 2px;
@large-balloon-border-radius: 2px;

@object-background-color: #DDDDDD;
// @mosaico-object-shadow: 1px 1px 2px lighten(@shadow-color, 30%);
Expand All @@ -22,6 +22,12 @@

#main-preview #preview-toolbar {
padding: 1px 5px;
text-align: left !important;
background-color: @accent-color;
.ui-icon{
overflow: visible !important;
}

}

#toolbar {
Expand All @@ -33,7 +39,7 @@

@ui-tabs-panel-padding: 0;

// @button-hover-background-color:
// @button-hover-background-color:

.button-style() {
text-transform: uppercase;
Expand Down Expand Up @@ -64,7 +70,38 @@
color: mix(@mosaico-ui-background-color, @button-text-color);
}
}
}
}


.groupButton {
.ui-button {
padding-top: 7px !important;
padding-bottom: 7px !important;
line-height: 22px;
display: inline !important;


background-color: transparent !important;
&:hover, &.pressed {
background-color: lighten(@mosaico-ui-background-color, 10%) !important;
border-bottom: 3px solid #72bed2 !important;
}
&.selected, &.ui-state-active {
border-bottom: 2px solid @button-text-color;
border-top: 0;
}
&.ui-button-disabled, &.ui-button-disabled .ui-icon, &.ui-button-disabled .ui-button-text {
color: mix(@mosaico-ui-background-color, @button-text-color);
}
}
.ui-button.ui-state-active {
text-decoration: none;
background-color: @mosaico-ui-background-color !important;
}
.ui-button.ui-button-icon-only .ui-icon {
margin-right: 6px;
}
}

#main-toolbox #tooltabs.ui-tabs > .ui-tabs-nav {
box-shadow: 0 0 10px @shadow-color;
Expand All @@ -76,7 +113,8 @@

#main-toolbox #tooltabs.ui-tabs {
.ui-tabs-nav {
font-size: 1em;
font-size: 0.9em;
background-color: @sidebar-background-color;
li {
margin: 1px 1px 0 0;
line-height: @topbar-height - 4px;
Expand All @@ -97,19 +135,19 @@
background-color: transparent;
}
li > a when (@buttonstyle) {
background-color: transparent;
background-color: transparent;
&:hover {
background-color: lighten(@mosaico-ui-background-color, 10%);
border-bottom: 3px solid lighten(@mosaico-ui-background-color, 10%);
}
}
}

li@{activeclass} a {
& when(@buttonstyle) {
background-color: transparent;
color: @button-text-color;
border-bottom: 3px solid @button-text-color;
}
}
}
}

Expand Down Expand Up @@ -207,9 +245,9 @@

.mo .ui-button.ui-spinner-button {
background-color: transparent;
// color: lighten(@text-color, 30%);
// color: lighten(@text-color, 30%);
.ui-button-text .ui-icon {
color: lighten(@text-color, 30%);
color: lighten(@text-color, 30%);
}
}

Expand Down Expand Up @@ -273,11 +311,11 @@

& when(true) {
.mo .objEdit.level1 {
background-color: white;
box-shadow: 1px 1px 3px #888;
border-top: 0;
padding: 6px;
padding-top: .5em;
background-color: white;
box-shadow: 1px 1px 3px #888;
border-top: 0;
padding: 6px;
padding-top: .5em;
}

.mo #toolstyles, .mo #tooltheme {
Expand All @@ -291,18 +329,18 @@
}

.mo .objPreview {
border-width: 0;
box-shadow: inset 1px 1px 4px rgba(0,0,0,.3);
top: 4px;
left: 4px;
border-width: 0;
box-shadow: inset 1px 1px 4px rgba(0,0,0,.3);
top: 4px;
left: 4px;
}

.mo #toolstyles .objLabel.level1, .mo #tooltheme .objLabel.level1 {
padding-left: 60px;
}

.mo .propInput input[type=text],
.mo .propInput input[type=number],
.mo .propInput input[type=text],
.mo .propInput input[type=number],
.mo .propInput input[type=url],
.mo .propInput select,
.mo .propInput .data-select select,
Expand Down Expand Up @@ -345,4 +383,4 @@
.ui-icon {
color: @button-text-color;
}
}
}
Loading

0 comments on commit 8511746

Please sign in to comment.