From 9ea5115af2ea88d17b9de40753136a9e0d85778c Mon Sep 17 00:00:00 2001 From: bill bittner Date: Mon, 30 Oct 2017 09:23:23 -0700 Subject: [PATCH 1/3] fixed radio button and details overlap --- public/assets/css/mediaQueries.css | 2 +- views/partials/publishForm-Details.handlebars | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/public/assets/css/mediaQueries.css b/public/assets/css/mediaQueries.css index 890b1585..7adf37be 100644 --- a/public/assets/css/mediaQueries.css +++ b/public/assets/css/mediaQueries.css @@ -1,4 +1,4 @@ -@media (max-width: 1050px) { +@media (max-width: 1120px) { .nav-bar--center { display: none; diff --git a/views/partials/publishForm-Details.handlebars b/views/partials/publishForm-Details.handlebars index 07b3a299..090813b8 100644 --- a/views/partials/publishForm-Details.handlebars +++ b/views/partials/publishForm-Details.handlebars @@ -8,7 +8,7 @@
-
+
@@ -16,7 +16,7 @@
-
+
-- 2.45.3 From cec7e5ef57bd2a03e489a4094d8c9d5fd7189fca Mon Sep 17 00:00:00 2001 From: bill bittner Date: Mon, 30 Oct 2017 10:07:23 -0700 Subject: [PATCH 2/3] fixed flex box and @ line break --- public/assets/css/general.css | 20 ++++++++++--------- public/assets/css/mediaQueries.css | 2 +- public/assets/js/dropzoneFunctions.js | 6 +++--- public/assets/js/generalFunctions.js | 2 +- views/index.handlebars | 6 +++--- views/partials/assetInfo.handlebars | 2 +- views/partials/channelCreationForm.handlebars | 2 +- views/partials/channelLoginForm.handlebars | 2 +- views/partials/navBar.handlebars | 2 +- views/partials/publishForm-Details.handlebars | 2 +- 10 files changed, 24 insertions(+), 22 deletions(-) diff --git a/public/assets/css/general.css b/public/assets/css/general.css index 2074e0d6..80eedeaa 100644 --- a/public/assets/css/general.css +++ b/public/assets/css/general.css @@ -23,7 +23,7 @@ html, body { height: 100%; } -body, .flex-container { +body, .flex-container--column, .flex-container--row { display: -webkit-flex; display: flex; } @@ -36,7 +36,6 @@ body, .flex-container--column { .flex-container--row { -webkit-flex-direction: row; flex-direction: row; - justify-content: space-between; } .flex-container--wrap { @@ -44,20 +43,23 @@ body, .flex-container--column { flex-wrap: wrap; } -.flex-container--align-center { +.flex-container--left-bottom { + justify-content: flex-start; + align-items: baseline; +} + +.flex-container--left-center { + justify-content: flex-start; align-items: center; } -.flex-container--justify-center { +.flex-container--center-center { justify-content: center; + align-items: center; } -.flex-container--justify-space-between { +.flex-container--space-between-bottom { justify-content: space-between; -} - -.flex-container--left-bottom { - justify-content: flex-start; align-items: baseline; } diff --git a/public/assets/css/mediaQueries.css b/public/assets/css/mediaQueries.css index 7adf37be..2d7f4a1a 100644 --- a/public/assets/css/mediaQueries.css +++ b/public/assets/css/mediaQueries.css @@ -10,7 +10,7 @@ } -@media (max-width: 750px ) { +@media (max-width: 800px ) { body, button, input, textarea, label, select, option, p, h3 { font-size: medium; diff --git a/public/assets/js/dropzoneFunctions.js b/public/assets/js/dropzoneFunctions.js index 567537e1..f1a8ddf6 100644 --- a/public/assets/js/dropzoneFunctions.js +++ b/public/assets/js/dropzoneFunctions.js @@ -31,7 +31,7 @@ function dragend_handler(event) { function dragenter_handler(event) { var thisDropzone = document.getElementById(event.target.id); - thisDropzone.setAttribute('class', 'dropzone dropzone--drag-over row row--margined row--padded row--tall flex-container flex-container--column flex-container--justify-center'); + thisDropzone.setAttribute('class', 'dropzone dropzone--drag-over row row--margined row--padded row--tall flex-container--column flex-container--center-center'); thisDropzone.firstElementChild.setAttribute('class', 'hidden'); thisDropzone.lastElementChild.setAttribute('class', ''); @@ -39,13 +39,13 @@ function dragenter_handler(event) { function dragexit_handler(event) { var thisDropzone = document.getElementById(event.target.id); - thisDropzone.setAttribute('class', 'dropzone row row--tall row--margined row--padded flex-container flex-container--column flex-container--justify-center'); + thisDropzone.setAttribute('class', 'dropzone row row--tall row--margined row--padded flex-container--column flex-container--center-center'); thisDropzone.firstElementChild.setAttribute('class', ''); thisDropzone.lastElementChild.setAttribute('class', 'hidden'); } function preview_onmouseenter_handler () { - document.getElementById('asset-preview-dropzone-instructions').setAttribute('class', 'flex-container flex-container--column flex-container--justify-center position-absolute'); + document.getElementById('asset-preview-dropzone-instructions').setAttribute('class', 'flex-container--column flex-container--center-center position-absolute'); document.getElementById('asset-preview').style.opacity = 0.2; } diff --git a/public/assets/js/generalFunctions.js b/public/assets/js/generalFunctions.js index f6cd1714..89782d75 100644 --- a/public/assets/js/generalFunctions.js +++ b/public/assets/js/generalFunctions.js @@ -201,7 +201,7 @@ function showAssetDetails(event) { var thisAssetImage = thisAssetHolder.firstElementChild; var thisAssetDetails = thisAssetHolder.lastElementChild; thisAssetImage.style.opacity = 0.2; - thisAssetDetails.setAttribute('class', 'grid-item-details flex-container flex-container--column flex-container--justify-center'); + thisAssetDetails.setAttribute('class', 'grid-item-details flex-container--column flex-container--center-center'); } function hideAssetDetails(event) { diff --git a/views/index.handlebars b/views/index.handlebars index 432a33f4..ba66b4ef 100644 --- a/views/index.handlebars +++ b/views/index.handlebars @@ -1,8 +1,8 @@ -
+
-
+

Drag & drop image or video here to publish

@@ -107,7 +107,7 @@ } // publish status functions function showPublishStatus() { - publishStatus.setAttribute('class', 'row row--tall flex-container flex-container--column flex-container--justify-center'); + publishStatus.setAttribute('class', 'row row--tall flex-container--column flex-container--center-center'); } function updatePublishStatus(msg){ publishUpdate.innerHTML = msg; diff --git a/views/partials/assetInfo.handlebars b/views/partials/assetInfo.handlebars index a79912ea..8677710d 100644 --- a/views/partials/assetInfo.handlebars +++ b/views/partials/assetInfo.handlebars @@ -54,7 +54,7 @@
Share:
-
+
twitter facebook tumblr diff --git a/views/partials/channelCreationForm.handlebars b/views/partials/channelCreationForm.handlebars index 67b62312..685edad9 100644 --- a/views/partials/channelCreationForm.handlebars +++ b/views/partials/channelCreationForm.handlebars @@ -4,7 +4,7 @@
-
+
@ diff --git a/views/partials/channelLoginForm.handlebars b/views/partials/channelLoginForm.handlebars index 6721547c..99e5c759 100644 --- a/views/partials/channelLoginForm.handlebars +++ b/views/partials/channelLoginForm.handlebars @@ -4,7 +4,7 @@
-
+
@
diff --git a/views/partials/navBar.handlebars b/views/partials/navBar.handlebars index cb403b2c..9ab1a71d 100644 --- a/views/partials/navBar.handlebars +++ b/views/partials/navBar.handlebars @@ -1,5 +1,5 @@