Skip to content

Commit

Permalink
Version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
mrzapp committed Nov 1, 2017
2 parents 5829f5c + 9faac44 commit d5edc62
Show file tree
Hide file tree
Showing 16 changed files with 146 additions and 80 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "hashbrown-cms",
"repository": "https://github.com/Putaitu/hashbrown-cms.git",
"version": "0.10.0",
"version": "0.10.1",
"description": "The pluggable CMS",
"main": "hashbrown.js",
"scripts": {
Expand Down Expand Up @@ -40,7 +40,6 @@
"json-loader": "^0.5.4",
"node-sass": "^3.13.1",
"sass-loader": "^6.0.6",
"sass-material-colors": "0.0.5",
"style-loader": "^0.13.1",
"webpack": "^3.0.0"
}
Expand Down
50 changes: 37 additions & 13 deletions public/css/client.css
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ h1, h2, h3, h4, h5, h6 {
opacity: 1;
position: relative;
z-index: 2; }
@media (max-width: 767px) {
@media (max-width: 991px) {
.page--environment__spaces {
flex-direction: column; } }

Expand Down Expand Up @@ -279,8 +279,8 @@ h1, h2, h3, h4, h5, h6 {
width: 100%;
height: 80vh; }
.page--environment__space--nav:not(.expanded) {
flex-basis: 6rem;
height: 6rem; } }
flex-basis: 8rem;
height: 8rem; } }
.page--environment__space--editor {
flex-grow: 1;
height: 100%;
Expand Down Expand Up @@ -361,14 +361,32 @@ h1, h2, h3, h4, h5, h6 {
width: 100%;
position: relative;
z-index: 100; }
@media (max-width: 767px) {
@media (max-width: 991px) {
.navbar-main {
flex-direction: column; } }
.navbar-main.hide-tabs .navbar-main__tabs {
display: none; }
.navbar-main__panes, .navbar-main__tabs {
transition: opacity 0.5s, width 0.5s;
overflow-x: hidden; }
.navbar-main__toggle {
display: none;
line-height: 0;
height: 2rem;
padding: 0;
margin: 0;
color: #ffffff;
background-color: #21303b;
border: 0;
flex-shrink: 0; }
.navbar-main__toggle:after {
font-family: 'FontAwesome';
content: '\F107'; }
.page--environment__space--nav.expanded .navbar-main__toggle:after {
content: '\F106'; }
@media (max-width: 991px) {
.navbar-main__toggle {
display: block; } }
.navbar-main__tabs {
width: 6rem;
flex-shrink: 0;
Expand All @@ -379,10 +397,11 @@ h1, h2, h3, h4, h5, h6 {
background-image: url("/img/bg-secondary.jpg");
background-attachment: fixed;
background-position: 0px 0px; }
@media (max-width: 767px) {
@media (max-width: 991px) {
.navbar-main__tabs {
display: flex;
width: 100%;
justify-content: center;
height: 6rem;
overflow-x: auto; } }
.navbar-main__tabs:after {
Expand Down Expand Up @@ -432,7 +451,7 @@ h1, h2, h3, h4, h5, h6 {
position: relative;
z-index: 5;
border-right: 1px solid #21303b; }
@media (max-width: 767px) {
@media (max-width: 991px) {
.navbar-main__panes {
border-right: 0;
border-bottom: 1px solid #21303b; } }
Expand Down Expand Up @@ -727,7 +746,7 @@ h1, h2, h3, h4, h5, h6 {
border-bottom: 1px solid #dddddd; }
.editor__field:last-of-type {
border-bottom: 0; }
@media (max-width: 767px) {
@media (max-width: 991px) {
.editor__field {
display: block; } }
.editor__field__value.collapsed .editor__field,
Expand Down Expand Up @@ -765,9 +784,15 @@ h1, h2, h3, h4, h5, h6 {
top: 60px; }
.editor__field__key .widget:not(:last-child) {
margin-bottom: 0.5rem; }
@media (max-width: 991px) {
.editor__field__key__label {
margin-bottom: 0.5rem; } }
.editor__field__key__description {
margin-top: 0.5rem;
color: #666666; }
@media (max-width: 991px) {
.editor__field__key__description {
margin-bottom: 0.5rem; } }
.editor__field__key__actions {
position: absolute;
line-height: 2rem; }
Expand Down Expand Up @@ -961,6 +986,9 @@ h1, h2, h3, h4, h5, h6 {
width: 100px;
border-radius: 0.2rem;
border: 1px solid #dddddd; }
@media (max-width: 991px) {
.editor__field--rich-text-editor {
width: auto; } }
.editor__field--rich-text-editor__header {
padding: 1rem 0 0 1rem;
background-color: #dddddd;
Expand Down Expand Up @@ -1523,7 +1551,7 @@ h1, h2, h3, h4, h5, h6 {
font-family: 'FontAwesome';
content: '\F1CE';
position: absolute;
right: 0.5rem;
right: 0rem;
top: 50%;
z-index: 10;
display: block;
Expand Down Expand Up @@ -1848,11 +1876,7 @@ h1, h2, h3, h4, h5, h6 {
.widget--input.checkbox:hover {
background-color: #b70a2f; }
.widget--input.checkbox.working:after {
color: #ffffff;
width: 2rem;
height: 2rem;
line-height: 2rem;
margin-top: -1rem; }
color: #ffffff; }
.widget--input__checkbox-input, .widget--input__checkbox-extra {
position: absolute;
top: 0;
Expand Down
36 changes: 21 additions & 15 deletions public/js/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -33381,8 +33381,6 @@ var UIHelper = function () {
document.body.appendChild(dropdown.element);
};

var touchTimeout = null;

element.addEventListener('contextmenu', function (e) {
e.preventDefault();
e.stopPropagation();
Expand All @@ -33400,16 +33398,11 @@ var UIHelper = function () {
});

element.addEventListener('touchstart', function (e) {
e.preventDefault();
if (e.touchTargets && e.touchTargets.length > 1) {
e.preventDefault();
e.stopPropagation();

touchTimeout = setTimeout(function () {
openContextMenu(e);
}, 400);
});

element.addEventListener('touchend', function (e) {
if (touchTimeout) {
clearTimeout(touchTimeout);
}
});
};
Expand Down Expand Up @@ -40784,7 +40777,7 @@ module.exports = ["address", "article", "aside", "blockquote", "canvas", "dd", "
module.exports = {
"name": "hashbrown-cms",
"repository": "https://github.com/Putaitu/hashbrown-cms.git",
"version": "0.9.9",
"version": "0.10.1",
"description": "The pluggable CMS",
"main": "hashbrown.js",
"scripts": {
Expand Down Expand Up @@ -40823,7 +40816,6 @@ module.exports = {
"json-loader": "^0.5.4",
"node-sass": "^3.13.1",
"sass-loader": "^6.0.6",
"sass-material-colors": "0.0.5",
"style-loader": "^0.13.1",
"webpack": "^3.0.0"
}
Expand Down Expand Up @@ -43332,7 +43324,12 @@ module.exports = function () {
}

return $pane;
})));
})),

// Toggle button (mobile only)
_.button({ class: 'navbar-main__toggle' }).click(function (e) {
$('.page--environment__space--nav').toggleClass('expanded');
}));
};

/***/ }),
Expand Down Expand Up @@ -45777,17 +45774,22 @@ var ArrayEditor = function (_FieldEditor) {
// Perform sanity check on item value
item.value = ContentHelper.fieldSanityCheck(item.value, schema);

// Instantiate editor
// Init the field editor
var editorInstance = new editorClass({
value: item.value,
config: schema.config,
schema: schema
});

// Hook up the change event
editorInstance.on('change', function (newValue) {
item.value = newValue;
});

editorInstance.on('silentchange', function (newValue) {
item.value = newValue;
});

// Render Schema picker
if (_this4.config.allowedSchemas.length > 1) {
editorInstance.$element.prepend(_.div({ class: 'editor__field' }, _.div({ class: 'editor__field__key' }, 'Schema'), _.div({ class: 'editor__field__value' }, new HashBrown.Views.Widgets.Dropdown({
Expand Down Expand Up @@ -47668,6 +47670,10 @@ var StructEditor = function (_FieldEditor) {
_this2.onChange(newValue, k, keySchema);
});

fieldEditorInstance.on('silentchange', function (newValue) {
_this2.onChange(newValue, k, keySchema);
});

// Return the DOM element
return _.div({ class: 'editor__field' }, _.div({ class: 'editor__field__key' }, _.div({ class: 'editor__field__key__label' }, keySchema.label), _.if(keySchema.description, _.div({ class: 'editor__field__key__description' }, keySchema.description)), fieldEditorInstance.renderKeyActions()), fieldEditorInstance.$element);
}));
Expand Down Expand Up @@ -47872,7 +47878,7 @@ var TemplateReferenceEditor = function (_FieldEditor) {
// Apply changes on next CPU cycle
setTimeout(function () {
_this2.trigger('silentchange', _this2.value);
}, 1);
}, 500);
}
};

Expand Down
16 changes: 4 additions & 12 deletions public/js/dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -28555,8 +28555,6 @@ var UIHelper = function () {
document.body.appendChild(dropdown.element);
};

var touchTimeout = null;

element.addEventListener('contextmenu', function (e) {
e.preventDefault();
e.stopPropagation();
Expand All @@ -28574,16 +28572,11 @@ var UIHelper = function () {
});

element.addEventListener('touchstart', function (e) {
e.preventDefault();
if (e.touchTargets && e.touchTargets.length > 1) {
e.preventDefault();
e.stopPropagation();

touchTimeout = setTimeout(function () {
openContextMenu(e);
}, 400);
});

element.addEventListener('touchend', function (e) {
if (touchTimeout) {
clearTimeout(touchTimeout);
}
});
};
Expand Down Expand Up @@ -35958,7 +35951,7 @@ module.exports = ["address", "article", "aside", "blockquote", "canvas", "dd", "
module.exports = {
"name": "hashbrown-cms",
"repository": "https://github.com/Putaitu/hashbrown-cms.git",
"version": "0.9.9",
"version": "0.10.1",
"description": "The pluggable CMS",
"main": "hashbrown.js",
"scripts": {
Expand Down Expand Up @@ -35997,7 +35990,6 @@ module.exports = {
"json-loader": "^0.5.4",
"node-sass": "^3.13.1",
"sass-loader": "^6.0.6",
"sass-material-colors": "0.0.5",
"style-loader": "^0.13.1",
"webpack": "^3.0.0"
}
Expand Down
13 changes: 3 additions & 10 deletions src/Client/Helpers/UIHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -634,8 +634,6 @@ class UIHelper {
document.body.appendChild(dropdown.element);
};

let touchTimeout = null;

element.addEventListener('contextmenu', (e) => {
e.preventDefault();
e.stopPropagation();
Expand All @@ -653,16 +651,11 @@ class UIHelper {
});

element.addEventListener('touchstart', (e) => {
e.preventDefault();
if(e.touchTargets && e.touchTargets.length > 1) {
e.preventDefault();
e.stopPropagation();

touchTimeout = setTimeout(() => {
openContextMenu(e);
}, 400);
});

element.addEventListener('touchend', (e) => {
if(touchTimeout) {
clearTimeout(touchTimeout);
}
});
}
Expand Down
8 changes: 4 additions & 4 deletions src/Client/Style/Pages/Environment.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
position: relative;
z-index: 2;

// Mobile mode
@media($xs) {
// Tablet mode
@media($sm) {
flex-direction: column;
}
}
Expand Down Expand Up @@ -58,8 +58,8 @@
height: 80vh;

&:not(.expanded) {
flex-basis: 6rem;
height: 6rem;
flex-basis: 8rem;
height: 8rem;
}
}
}
Expand Down
19 changes: 16 additions & 3 deletions src/Client/Style/Views/Editors/Editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,8 @@
border-bottom: 0;
}

// Mobile mode
@media($xs) {
// Tablet mode
@media($sm) {
display: block;
}

Expand Down Expand Up @@ -211,11 +211,24 @@
.widget:not(:last-child) {
margin-bottom: 0.5rem;
}


// Label
&__label {
// Tablet mode
@media($sm) {
margin-bottom: 0.5rem;
}
}

// Description
&__description {
margin-top: 0.5rem;
color: $standard-darkest;

// Tablet mode
@media($sm) {
margin-bottom: 0.5rem;
}
}

// Key actions
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@
border-radius: 0.2rem;
border: 1px solid $standard-darker;

// Tablet mode
@media($sm) {
width: auto;
}

// Header
&__header {
padding: 1rem 0 0 1rem;
Expand Down
Loading

0 comments on commit d5edc62

Please sign in to comment.