From 160d50af1f3c07528dc76c5ca936f59ed852d7f9 Mon Sep 17 00:00:00 2001 From: Kenneth Jao Date: Tue, 6 Sep 2016 19:28:36 -0400 Subject: [PATCH 1/3] CSS fixes for profile --- hourglass/client/main/main.css | 3 +++ hourglass/client/profile/profile.css | 9 +++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/hourglass/client/main/main.css b/hourglass/client/main/main.css index bc2fc2e..a70ed24 100644 --- a/hourglass/client/main/main.css +++ b/hourglass/client/main/main.css @@ -130,6 +130,9 @@ h4 { input, textarea { font-family: 'Raleway'; + background-color: #FEFEFE; + border: 3px solid #FEFEFE; + border-radius: 3px; resize: none; } diff --git a/hourglass/client/profile/profile.css b/hourglass/client/profile/profile.css index b055dfa..e8254b3 100644 --- a/hourglass/client/profile/profile.css +++ b/hourglass/client/profile/profile.css @@ -16,7 +16,7 @@ } .profTitle { - font-size: 150%; + font-size: 3vh; font-weight: 400; margin: 0; margin-bottom: 1%; @@ -404,7 +404,7 @@ } .creInput { - font-size: 120%; + font-size: 2vh; padding: 3%; } @@ -420,8 +420,9 @@ #creSubmit { font-weight: 200; - font-size: 140%; - margin: 0 35% 0 35%; + font-size: 3vh; + width: 13vw; + margin: auto; padding: 2%; background-color: rgba(0,0,0,0.25); From 5484edfd8b878aadb1af7993b77789610baa8a2e Mon Sep 17 00:00:00 2001 From: Kenneth Jao Date: Tue, 6 Sep 2016 19:52:37 -0400 Subject: [PATCH 2/3] Fixed join class CSS in profile --- hourglass/client/profile/profile.css | 12 +++++++----- hourglass/client/profile/profile.html | 8 +++++--- hourglass/client/profile/profile.js | 10 +++++----- 3 files changed, 17 insertions(+), 13 deletions(-) diff --git a/hourglass/client/profile/profile.css b/hourglass/client/profile/profile.css index e8254b3..d12fdbc 100644 --- a/hourglass/client/profile/profile.css +++ b/hourglass/client/profile/profile.css @@ -24,7 +24,7 @@ } .profHea { - font-size: 300; + font-size: 5.5vh; font-weight: 200; padding: 6% 6% 0 8%; } @@ -155,12 +155,10 @@ #cardColLeft { width: 39.6%; - float: left; } #cardColRight { width: 60%; - float: right; } .card { @@ -324,13 +322,17 @@ background-color: #138686; } +#joinTop .fa-search { + font-size: 2.5vh; + margin-right: 3%; +} + #private { - margin: 3% 35% 0 4%; + margin-left: 5%; padding: 1.5%; background-color: rgba(0,0,0,0.2); - float: right; cursor: pointer; -webkit-transition: background-color 0.4s ease; diff --git a/hourglass/client/profile/profile.html b/hourglass/client/profile/profile.html index 7cdd740..bb35e29 100644 --- a/hourglass/client/profile/profile.html +++ b/hourglass/client/profile/profile.html @@ -129,9 +129,11 @@ {{/if}} {{#if profClassTab "addClass"}} - - {{> inputAutocomplete id="profClassSearch" settings=classSettings placeholder="Search..."}} -

Join Private Class

+
+ + {{> inputAutocomplete id="profClassSearch" settings=classSettings placeholder="Search..."}} +

Join Private Class

+
Class Name Teacher diff --git a/hourglass/client/profile/profile.js b/hourglass/client/profile/profile.js index d472673..e838094 100644 --- a/hourglass/client/profile/profile.js +++ b/hourglass/client/profile/profile.js @@ -232,19 +232,19 @@ Template.profile.events({ Session.set("profClassTab", "manClass");  div.style.height = "90%";            openDivFade(functionHolder);         - }, 400);     + }, 400); },     'click .createClass' () { - if(Session.equals("profClassTab","creClass")) return;        + if(Session.equals("profClassTab","creClass")) return; var functionHolder = document.getElementById("profClassInfoHolder");         closeDivFade(functionHolder); var div = document.getElementById("profClasses"); div.style.height = "50%" - setTimeout(function() {             + setTimeout(function() { Session.set("profClassTab", "creClass"); div.style.height = "90%"; - openDivFade(functionHolder);         - }, 400);     + openDivFade(functionHolder); + }, 400); }, 'click .classBox' (event) { // When you click on a box that holds class if (event.target.id === "label" || From 1b54686ec35fe5aa0859e8387e4907ed0d3a24e5 Mon Sep 17 00:00:00 2001 From: Kenneth Jao Date: Tue, 6 Sep 2016 20:02:56 -0400 Subject: [PATCH 3/3] CSS for private class box --- hourglass/client/profile/profile.css | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/hourglass/client/profile/profile.css b/hourglass/client/profile/profile.css index d12fdbc..38b3c8b 100644 --- a/hourglass/client/profile/profile.css +++ b/hourglass/client/profile/profile.css @@ -671,16 +671,16 @@ } #joinPrivClass { - width: 18%; + width: 18vw; margin-bottom: -20%; padding: 1.5%; - padding-bottom: 2%; + padding-bottom: 1%; border-top: 5px solid #852E6D; box-shadow: -2px 0px 5px 1px #444; position: absolute; - right: 5%; + right: 5vw; bottom: 0; -webkit-transition: margin 0.4s ease; @@ -692,19 +692,23 @@ #joinPrivClass h3 { font-weight: 400; font-size: 150%; - margin-bottom: 3%; + margin-bottom: 1vh; } #privateCode { - font-size: 130%; + font-size: 3vh; + width: 93%; + margin-top: 1%; + margin-bottom: 1vh; padding: 1%; } #privSubmit { - font-size: 120%; + font-size: 2vh; margin-left: 5%; padding: 3%; background-color: rgba(0,0,0,0.2); + float: right; cursor: pointer; -webkit-transition: background-color 0.2s ease;