Created
August 8, 2019 01:33
-
-
Save hharzer/29243be6ad971ddef5df80128960d4c0 to your computer and use it in GitHub Desktop.
grapejs-template
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
<div id="gjs"></div> |
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
var editor = grapesjs.init({ | |
container : '#gjs', | |
fromElement: true, | |
}); |
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
<script src="https://unpkg.com/grapesjs"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> |
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
body, html { height: 100%; } | |
#gjs { height: 100% !important; } | |
/* We can remove the border we've set at the beginnig */ | |
#gjs { | |
border: none; | |
} | |
/* Theming */ | |
/* Primary color for the background */ | |
.gjs-one-bg { | |
background-color: #efefef; | |
} | |
/* Secondary color for the text color */ | |
.gjs-two-color { | |
color: #232323; | |
} | |
/* Tertiary color for the background */ | |
.gjs-three-bg { | |
background-color: #232323; | |
color: #efefef; | |
} | |
/* Quaternary color for the text color */ | |
.gjs-four-color, | |
.gjs-four-color-h:hover { | |
color: #23ef23; | |
} |
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
<link href="https://unpkg.com/grapesjs/dist/css/grapes.min.css" rel="stylesheet" /> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment