From 8bd06651cf8a291caac9bb8b9bdcc13fc59ecf48 Mon Sep 17 00:00:00 2001 From: Ethan Fraenkel Date: Mon, 3 Sep 2018 11:25:20 +0200 Subject: [PATCH] added responsiveness to modal and edit page --- app/assets/stylesheets/pages/_contacts.scss | 17 +++++++++++++++++ app/assets/stylesheets/users/_edit.scss | 11 ++++++++++- app/views/pages/_contact.html.erb | 6 +++--- app/views/pages/new.html.erb | 2 ++ app/views/users/edit.html.erb | 17 ++++++++--------- 5 files changed, 40 insertions(+), 13 deletions(-) diff --git a/app/assets/stylesheets/pages/_contacts.scss b/app/assets/stylesheets/pages/_contacts.scss index 4b0358e..89fe025 100644 --- a/app/assets/stylesheets/pages/_contacts.scss +++ b/app/assets/stylesheets/pages/_contacts.scss @@ -100,6 +100,8 @@ a:hover { align-items: center; } +// Modal + .modal-header { border-bottom: 0px; i { @@ -109,6 +111,7 @@ a:hover { .modal-color { background-color: $card-background; + min-width: 296px; } .vertical-alignment-helper { @@ -142,6 +145,20 @@ a:hover { align-items: center; } +.modal-flex { + display: flex; + flex-wrap: wrap; +} + +@media only screen and (max-width: 1100px) { + .modal-picture { + width: 50px; + } +} + + +// Contact + .contact { color: white; } diff --git a/app/assets/stylesheets/users/_edit.scss b/app/assets/stylesheets/users/_edit.scss index 48c2d94..ea05b38 100644 --- a/app/assets/stylesheets/users/_edit.scss +++ b/app/assets/stylesheets/users/_edit.scss @@ -3,7 +3,8 @@ display: flex; justify-content: space-between; align-items: center; - height: calc(100vh - 4.5em); // 4.5em is height of navbar + padding-top: 30px; + // height: calc(100vh - 4.5em); // 4.5em is height of navbar form { flex-grow: 1; @@ -22,10 +23,18 @@ img { max-width: 50vw; + padding-top: 30px; } } } +.small-profile-pic { + img { + width: 223px; + margin-bottom: 20px; + } +} + .profile-form { display: grid; grid-template-columns: 1fr 1fr; diff --git a/app/views/pages/_contact.html.erb b/app/views/pages/_contact.html.erb index 92f1689..b4a1b9b 100644 --- a/app/views/pages/_contact.html.erb +++ b/app/views/pages/_contact.html.erb @@ -32,11 +32,11 @@ <% end %>
-