From e90f0de75e57fcf91e56902510b430bab1a2182c Mon Sep 17 00:00:00 2001 From: Kenneth Jao Date: Tue, 20 Sep 2016 09:47:14 -0400 Subject: [PATCH 1/4] CSS fix --- hourglass/client/profile/profile.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hourglass/client/profile/profile.js b/hourglass/client/profile/profile.js index 5c5c41e..70422ee 100644 --- a/hourglass/client/profile/profile.js +++ b/hourglass/client/profile/profile.js @@ -76,15 +76,15 @@ Template.profile.helpers({ return Session.get("user").name; }, motd() { // Returns the current user's description - if (Session.get("user").description !== "") return Session.get("user").description; + if (Session.get("user").description !== undefined) return Session.get("user").description; return "Say something about yourself!"; }, school() { // Returns the current user's school's name - if (Session.get("user").school !== "") return Session.get("user").school; + if (Session.get("user").school !== undefined) return Session.get("user").school; return "Click here to edit..."; }, grade() { // Returns the current user's grade - if (Session.get("user").grade !== "") return Session.get("user").grade + "th"; + if (Session.get("user").grade !== undefined) return Session.get("user").grade + "th"; return "Click here to edit..."; }, classes() { // Loads all of the possible classes ( Limit of twenty shown ) ( Sorts by class size ) From bba1cd1c7543905f2b49ce82527bb58897065e0d Mon Sep 17 00:00:00 2001 From: Kenneth Jao Date: Tue, 27 Sep 2016 00:22:26 -0400 Subject: [PATCH 2/4] Added themes in constants, and background images, minor fixes --- hourglass/client/main/main.css | 11 ++++-- hourglass/client/main/main.html | 17 +++++---- hourglass/client/main/main.js | 4 +-- hourglass/client/profile/profile.css | 4 +-- hourglass/client/profile/profile.js | 6 ++-- hourglass/lib/constants.js | 52 ++++++++++++++++++++++++++-- 6 files changed, 72 insertions(+), 22 deletions(-) diff --git a/hourglass/client/main/main.css b/hourglass/client/main/main.css index c80051b..b1d9e16 100644 --- a/hourglass/client/main/main.css +++ b/hourglass/client/main/main.css @@ -262,7 +262,7 @@ input, textarea { .mode, .function { width: 100%; position: relative; - background-color: #849CAE; + background-color: rgba(255,255,255,0.2); -webkit-transition: background-color 0.5s ease, box-shadow 0.5s ease; -moz-transition: background-color 0.5s ease, box-shadow 0.5s ease; @@ -577,6 +577,7 @@ input, textarea { } #editWork { + min-height: 68vh; margin: auto; margin-top: 5%; @@ -599,6 +600,7 @@ input, textarea { #editWorkCont { width: 100%; height: 100%; + min-height: 68vh; position: relative; display: table; @@ -1012,9 +1014,12 @@ input, textarea { background-color: rgba(255,255,255,0.1); } +.fc-past { + background-color: rgba(0,0,0,0.2); +} + .fc-day:not(.fc-past) { cursor: pointer; - box-shadow: inset 0 0 0 99999px rgba(0,0,0,0.1); -webkit-transition: box-shadow 0.4s ease; -moz-transition: box-shadow 0.4s ease; @@ -1023,7 +1028,7 @@ input, textarea { } .fc-day:not(.fc-past):hover { - box-shadow: inset 0 0 0 99999px rgba(0,0,0,0.15); + box-shadow: inset 0 0 0 99999px rgba(0,0,0,0.1); } .fc-slats, .fc-content-skeleton { diff --git a/hourglass/client/main/main.html b/hourglass/client/main/main.html index d47fcb2..fc3e14c 100644 --- a/hourglass/client/main/main.html +++ b/hourglass/client/main/main.html @@ -12,21 +12,21 @@ -
+