striven-editor

Maintained and contributed to an open source WYSIWYG editor as an internship project that made it to production and was adopted by the company I was working at.
git clone https://unitehenry.com/git/striven-editor.git
Log | Files | Refs | README | LICENSE

commit 82119ece8353b33edb3d42d8b76263c3eaef095d
parent 17ef5a9481dd4699e59a3a4139c918709add1d29
Author: Brostafa <mostafahefny2010@gmail.com>
Date:   Thu, 17 Oct 2019 01:37:24 +0200

fix(css): prefix '.files-section' with '.Striven-Editor'

Diffstat:
Mdist/index.js | 2+-
Msrc/striveneditor.css | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dist/index.js b/dist/index.js @@ -1516,7 +1516,7 @@ if (content.locals) { exports = module.exports = __webpack_require__(4)(false); // Module -exports.push([module.i, "/**\n** - Editor\n** - Toolbar\n** - Image Menu\n** - File element\n** - Meta Item\n** - Link Menu\n*/\n\n/** Editor **/\n\n.Striven-Editor.editor {\n\tborder: 2px solid #ddd;\n\tdisplay: flex;\n\tposition: relative;\n\tflex-direction: column;\n\tfont-family: Arial;\n\tmax-width: 100%;\n\tmin-height: auto;\n\tmax-height: auto;\n\theight: auto;\n}\n\n.Striven-Editor .body {\n\toutline: none;\n\tpadding: 10px 20px;\n\tmin-height: auto;\n\tmax-height: auto;\n\theight: auto;\n}\n\n\n/** Toolbar **/\n\n.Striven-Editor .toolbar {\n\tdisplay: flex;\n\tjustify-content: space-between;\n\talign-items: center;\n\tflex-wrap: wrap;\n\tposition: relative\n}\n\n.Striven-Editor .toolbar-options {\n\tmargin: 0 10px;\n}\n\n.Striven-Editor .custom-toolbar-button {\n\tdisplay: none;\n\tcolor: #fff;\n\tbackground-color: #5cb85c;\n\twidth: 50px;\n\ttext-align: center;\n\tjustify-content: center;\n\talign-content: center;\n\talign-items: center;\n\tcursor: pointer;\n\tborder: 1px solid #4cae4c;\n\talign-self: flex-end\n}\n\n/** Image Menu **/\n\n.Striven-Editor .image-menu {\n\tdisplay: none;\n\tposition: absolute;\n\tright: 10px;\n\tbottom: 10px;\n\tbackground-color: #fff;\n\tborder: 2px solid #ddd;\n\tpadding: 10px 20px;\n\tz-index: 1000;\n}\n\n.Striven-Editor .image-menu-button {\n\tcursor: pointer;\n\tfloat: right;\n\tpadding: 6px 12px;\n\tborder: 1px solid #4cae4c;\n\tbackground-color: #5cb85c;\n\tfont-size: 14px;\n\tcolor: #fff;\n\toutline: none;\n}\n\n.Striven-Editor .image-menu-form {\n\tdisplay: flex;\n\tjustify-content: space-between;\n\tmargin: 5px 0;\n}\n\n.Striven-Editor .image-menu-form-label {\n\tmargin: 8px 10px 8px 0;\n\tfont-size: 14px;\n\twidth: 100%;\n\ttext-align: right;\n\tmargin-right: 10px;\n}\n\n.Striven-Editor .image-menu-form-source-input {\n\toutline: none;\n\tpadding: 0 5px;\n}\n\n/** File Element **/\n\n.Striven-Editor .file-el {\n\twidth: 100%;\n\tdisplay: flex;\n\tflex-direction: column;\n\tmargin: 10px;\n\tposition: relative;\n}\n\n.Striven-Editor .file-name-el {\n\tfont-weight: bold;\n\tmargin: 0;\n}\n\n.Striven-Editor .file-size-el {\n\tfont-size: 12px;\n\tmargin: 2px 0;\n}\n\n.Striven-Editor .remove-file-el {\n\tmargin: 0;\n\tuser-select: none;\n\tcolor: black;\n\tposition: absolute;\n\tright: 5px;\n\ttop: -5px;\n\tcursor: pointer;\n\tbackground-color: #fff\n}\n\n/** Meta Item **/\n\n.Striven-Editor .meta-item-el {\n\twidth: 100%;\n\tdisplay: flex;\n\tmargin: 10px;\n\tposition: relative\n}\n\n.Striven-Editor .meta-image-el {\n\tmargin-right: 10px;\n\theight: 50px;\n\twidth: 75px;\n}\n\n.Striven-Editor .meta-data-title-el {\n\tfont-weight: bold;\n\tmargin: 0;\n}\n\n.Striven-Editor .remove-meta-data-el {\n\tuser-select: none;\n\tcolor: black;\n\tposition: absolute;\n\tright: 5px;\n\ttop: -5px;\n\tcursor: pointer;\n\tbackground-color: #fff;\n}\n\n.Striven-Editor .metadata-section, .files-section {\n\tdisplay: flex;\n\tflex-wrap: wrap;\n\tz-index: 500\n}\n\n/** Link Menu **/\n\n.Striven-Editor .link-menu {\n\tdisplay: none;\n\tposition: absolute;\n\tright: 10px;\n\tbottom: 10px;\n\tbackground-color: #fff;\n\tborder: 2px solid #ddd;\n\tpadding: 10px 20px;\n\tz-index: 1000;\t\n}\n\n.Striven-Editor .link-menu-form-label {\n\tmargin: 8px 10px 8px 0;\n\tfont-size: 14px;\n\twidth: 100%;\n\ttext-align: right;\n\tmargin-right: 10px;\n}\n\n.Striven-Editor .link-menu-form-input {\n\toutline: none;\n\tpadding: 0 5px;\n}\n\n.Striven-Editor .link-menu-form {\n\tdisplay: flex;\n\tjustify-content: space-between;\n\tmargin: 5px 0;\n}\n\n.Striven-Editor .link-menu-button {\n\tcursor: pointer;\n\tfloat: right;\n\tpadding: 6px 12px;\n\tborder: 1px solid #4cae4c;\n\tbackground-color: #5cb85c;\n\tfont-size: 14px;\n\tcolor: #fff;\n\toutline: none;\n}", ""]); +exports.push([module.i, "/**\n** - Editor\n** - Toolbar\n** - Image Menu\n** - File element\n** - Meta Item\n** - Link Menu\n*/\n\n/** Editor **/\n\n.Striven-Editor.editor {\n\tborder: 2px solid #ddd;\n\tdisplay: flex;\n\tposition: relative;\n\tflex-direction: column;\n\tfont-family: Arial;\n\tmax-width: 100%;\n\tmin-height: auto;\n\tmax-height: auto;\n\theight: auto;\n}\n\n.Striven-Editor .body {\n\toutline: none;\n\tpadding: 10px 20px;\n\tmin-height: auto;\n\tmax-height: auto;\n\theight: auto;\n}\n\n\n/** Toolbar **/\n\n.Striven-Editor .toolbar {\n\tdisplay: flex;\n\tjustify-content: space-between;\n\talign-items: center;\n\tflex-wrap: wrap;\n\tposition: relative\n}\n\n.Striven-Editor .toolbar-options {\n\tmargin: 0 10px;\n}\n\n.Striven-Editor .custom-toolbar-button {\n\tdisplay: none;\n\tcolor: #fff;\n\tbackground-color: #5cb85c;\n\twidth: 50px;\n\ttext-align: center;\n\tjustify-content: center;\n\talign-content: center;\n\talign-items: center;\n\tcursor: pointer;\n\tborder: 1px solid #4cae4c;\n\talign-self: flex-end\n}\n\n/** Image Menu **/\n\n.Striven-Editor .image-menu {\n\tdisplay: none;\n\tposition: absolute;\n\tright: 10px;\n\tbottom: 10px;\n\tbackground-color: #fff;\n\tborder: 2px solid #ddd;\n\tpadding: 10px 20px;\n\tz-index: 1000;\n}\n\n.Striven-Editor .image-menu-button {\n\tcursor: pointer;\n\tfloat: right;\n\tpadding: 6px 12px;\n\tborder: 1px solid #4cae4c;\n\tbackground-color: #5cb85c;\n\tfont-size: 14px;\n\tcolor: #fff;\n\toutline: none;\n}\n\n.Striven-Editor .image-menu-form {\n\tdisplay: flex;\n\tjustify-content: space-between;\n\tmargin: 5px 0;\n}\n\n.Striven-Editor .image-menu-form-label {\n\tmargin: 8px 10px 8px 0;\n\tfont-size: 14px;\n\twidth: 100%;\n\ttext-align: right;\n\tmargin-right: 10px;\n}\n\n.Striven-Editor .image-menu-form-source-input {\n\toutline: none;\n\tpadding: 0 5px;\n}\n\n/** File Element **/\n\n.Striven-Editor .file-el {\n\twidth: 100%;\n\tdisplay: flex;\n\tflex-direction: column;\n\tmargin: 10px;\n\tposition: relative;\n}\n\n.Striven-Editor .file-name-el {\n\tfont-weight: bold;\n\tmargin: 0;\n}\n\n.Striven-Editor .file-size-el {\n\tfont-size: 12px;\n\tmargin: 2px 0;\n}\n\n.Striven-Editor .remove-file-el {\n\tmargin: 0;\n\tuser-select: none;\n\tcolor: black;\n\tposition: absolute;\n\tright: 5px;\n\ttop: -5px;\n\tcursor: pointer;\n\tbackground-color: #fff\n}\n\n/** Meta Item **/\n\n.Striven-Editor .meta-item-el {\n\twidth: 100%;\n\tdisplay: flex;\n\tmargin: 10px;\n\tposition: relative\n}\n\n.Striven-Editor .meta-image-el {\n\tmargin-right: 10px;\n\theight: 50px;\n\twidth: 75px;\n}\n\n.Striven-Editor .meta-data-title-el {\n\tfont-weight: bold;\n\tmargin: 0;\n}\n\n.Striven-Editor .remove-meta-data-el {\n\tuser-select: none;\n\tcolor: black;\n\tposition: absolute;\n\tright: 5px;\n\ttop: -5px;\n\tcursor: pointer;\n\tbackground-color: #fff;\n}\n\n.Striven-Editor .metadata-section, .Striven-Editor .files-section {\n\tdisplay: flex;\n\tflex-wrap: wrap;\n\tz-index: 500\n}\n\n/** Link Menu **/\n\n.Striven-Editor .link-menu {\n\tdisplay: none;\n\tposition: absolute;\n\tright: 10px;\n\tbottom: 10px;\n\tbackground-color: #fff;\n\tborder: 2px solid #ddd;\n\tpadding: 10px 20px;\n\tz-index: 1000;\t\n}\n\n.Striven-Editor .link-menu-form-label {\n\tmargin: 8px 10px 8px 0;\n\tfont-size: 14px;\n\twidth: 100%;\n\ttext-align: right;\n\tmargin-right: 10px;\n}\n\n.Striven-Editor .link-menu-form-input {\n\toutline: none;\n\tpadding: 0 5px;\n}\n\n.Striven-Editor .link-menu-form {\n\tdisplay: flex;\n\tjustify-content: space-between;\n\tmargin: 5px 0;\n}\n\n.Striven-Editor .link-menu-button {\n\tcursor: pointer;\n\tfloat: right;\n\tpadding: 6px 12px;\n\tborder: 1px solid #4cae4c;\n\tbackground-color: #5cb85c;\n\tfont-size: 14px;\n\tcolor: #fff;\n\toutline: none;\n}", ""]); /***/ }), diff --git a/src/striveneditor.css b/src/striveneditor.css @@ -162,7 +162,7 @@ background-color: #fff; } -.Striven-Editor .metadata-section, .files-section { +.Striven-Editor .metadata-section, .Striven-Editor .files-section { display: flex; flex-wrap: wrap; z-index: 500