More partial fixes, css based
This commit is contained in:
parent
a9c10ee990
commit
d0501f76ec
@ -101,6 +101,7 @@ Template.registerHelper('myClasses', () => { // Gets all classes and respective
|
|||||||
return [];
|
return [];
|
||||||
} else {
|
} else {
|
||||||
var array = myClasses();
|
var array = myClasses();
|
||||||
|
if(Meteor.Device.isPhone()) mobileWork();
|
||||||
Session.set("myClasses", array);
|
Session.set("myClasses", array);
|
||||||
calendarEvents(array);
|
calendarEvents(array);
|
||||||
$("#fullcalendar").fullCalendar("removeEvents");
|
$("#fullcalendar").fullCalendar("removeEvents");
|
||||||
@ -699,6 +700,7 @@ sendData = function(funcName) { // Call Meteor function, and do actions after fu
|
|||||||
toggleToMode("manageClass");
|
toggleToMode("manageClass");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if(Meteor.Device.isPhone()) mobileWork();
|
||||||
calendarEvents(myClasses());
|
calendarEvents(myClasses());
|
||||||
$("#fullcalendar").fullCalendar("removeEvents");
|
$("#fullcalendar").fullCalendar("removeEvents");
|
||||||
$("#fullcalendar").fullCalendar("addEventSource", Session.get("calendarEvents"));
|
$("#fullcalendar").fullCalendar("addEventSource", Session.get("calendarEvents"));
|
||||||
@ -1002,7 +1004,7 @@ myClasses = function() {
|
|||||||
thisWork[j].confirmationLength = thisWork[j].confirmations.length; // Counts the number of confirmations and reports for a particular work.
|
thisWork[j].confirmationLength = thisWork[j].confirmations.length; // Counts the number of confirmations and reports for a particular work.
|
||||||
thisWork[j].reportLength = thisWork[j].reports.length;
|
thisWork[j].reportLength = thisWork[j].reports.length;
|
||||||
|
|
||||||
thisWork[j].creator = Meteor.users.findOne({
|
thisWork[j].creatorname = Meteor.users.findOne({
|
||||||
_id: thisWork[j].creator
|
_id: thisWork[j].creator
|
||||||
}).profile.name;
|
}).profile.name;
|
||||||
var conf = thisWork[j].confirmations.length;
|
var conf = thisWork[j].confirmations.length;
|
||||||
|
|||||||
@ -558,7 +558,6 @@
|
|||||||
padding: 0;
|
padding: 0;
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
display: inline;
|
display: inline;
|
||||||
position: relative;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.formDiv:first-child {
|
.formDiv:first-child {
|
||||||
|
|||||||
@ -54,7 +54,7 @@
|
|||||||
|
|
||||||
#mobileBody {
|
#mobileBody {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 92vh;
|
height: 92%;
|
||||||
margin-bottom: 10%;
|
margin-bottom: 10%;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
overflow-x: hidden;
|
overflow-x: hidden;
|
||||||
@ -106,9 +106,11 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.mobileClassContent div {
|
.mobileClassContent div {
|
||||||
width: 28%;
|
position: absolute;
|
||||||
display: inline-block;
|
right: 6%;
|
||||||
|
bottom: 11%;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.minorHeader {
|
.minorHeader {
|
||||||
@ -166,9 +168,13 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.mCircleButton .fa {
|
.mCircleButton .fa {
|
||||||
font-size: 5vw;
|
font-size: 5vw !important;
|
||||||
margin-left: 4.25vw;
|
padding: 0 !important;
|
||||||
margin-top: 4vw;
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
margin: auto;
|
||||||
|
text-align: center;
|
||||||
|
line-height: 13.1vw;
|
||||||
|
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
@ -444,10 +450,6 @@
|
|||||||
transition: background-color 0.4s ease;
|
transition: background-color 0.4s ease;
|
||||||
}
|
}
|
||||||
|
|
||||||
#mReport .fa {
|
|
||||||
margin-left: 4vw;
|
|
||||||
}
|
|
||||||
|
|
||||||
#mConfirm {
|
#mConfirm {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
bottom: 36vw;
|
bottom: 36vw;
|
||||||
|
|||||||
@ -54,7 +54,6 @@ Template.mobile.rendered = function() {
|
|||||||
sendData("editWork");
|
sendData("editWork");
|
||||||
}
|
}
|
||||||
|
|
||||||
mobileWork();
|
|
||||||
$("#mainCircleButton").velocity("fadeOut", 200);
|
$("#mainCircleButton").velocity("fadeOut", 200);
|
||||||
$("#mobileBody").velocity("fadeOut", {
|
$("#mobileBody").velocity("fadeOut", {
|
||||||
duration: 200,
|
duration: 200,
|
||||||
@ -120,7 +119,6 @@ Template.defaultSidebar.rendered = function() {
|
|||||||
if(Session.equals("mobileMode", "main")) {
|
if(Session.equals("mobileMode", "main")) {
|
||||||
toggleSidebar(false);
|
toggleSidebar(false);
|
||||||
} else {
|
} else {
|
||||||
mobileWork();
|
|
||||||
Session.set("mobileMode","main");
|
Session.set("mobileMode","main");
|
||||||
toggleSidebar(false);
|
toggleSidebar(false);
|
||||||
timedPushback();
|
timedPushback();
|
||||||
@ -131,7 +129,6 @@ Template.defaultSidebar.rendered = function() {
|
|||||||
if(Session.equals("mobileMode", "done")) {
|
if(Session.equals("mobileMode", "done")) {
|
||||||
toggleSidebar(false);
|
toggleSidebar(false);
|
||||||
} else {
|
} else {
|
||||||
mobileWork();
|
|
||||||
Session.set("mobileMode","done");
|
Session.set("mobileMode","done");
|
||||||
toggleSidebar(false);
|
toggleSidebar(false);
|
||||||
timedPushback();
|
timedPushback();
|
||||||
@ -559,7 +556,6 @@ Template.mOptionCard.rendered = function() {
|
|||||||
Session.set("user", newSetting);
|
Session.set("user", newSetting);
|
||||||
serverData = Session.get("user");
|
serverData = Session.get("user");
|
||||||
sendData("editProfile");
|
sendData("editProfile");
|
||||||
mobileWork();
|
|
||||||
toggleSidebar(false);
|
toggleSidebar(false);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -686,7 +682,7 @@ function timedPushback() {
|
|||||||
}, fadeTime);
|
}, fadeTime);
|
||||||
}
|
}
|
||||||
|
|
||||||
function mobileWork() {
|
mobileWork = function() {
|
||||||
var array = myClasses();
|
var array = myClasses();
|
||||||
if(array === undefined) return;
|
if(array === undefined) return;
|
||||||
var notDoneWork = [];
|
var notDoneWork = [];
|
||||||
|
|||||||
@ -144,7 +144,7 @@
|
|||||||
outline: none;
|
outline: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.-autocomplete-container {
|
#mProfWrapper .-autocomplete-container {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -38,10 +38,6 @@
|
|||||||
border: 1px solid #FCF0F0 !important;
|
border: 1px solid #FCF0F0 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
#profPageWrapper .optionHolder {
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
#basicInfo {
|
#basicInfo {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
@ -56,6 +52,10 @@
|
|||||||
background-color: rgba(255,255,255,0.2);
|
background-color: rgba(255,255,255,0.2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#newUserWrapper .formDiv {
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
.opTitle {
|
.opTitle {
|
||||||
font-weight: 200;
|
font-weight: 200;
|
||||||
margin: 1%;
|
margin: 1%;
|
||||||
@ -233,13 +233,15 @@
|
|||||||
margin: auto;
|
margin: auto;
|
||||||
margin-top: -1%;
|
margin-top: -1%;
|
||||||
padding: 3%;
|
padding: 3%;
|
||||||
padding-bottom: 2%;
|
padding-top: 2%;
|
||||||
|
padding-bottom: 1%;
|
||||||
width: 30%;
|
width: 30%;
|
||||||
|
|
||||||
background-color: rgba(255,255,255,0.2);
|
background-color: rgba(255,255,255,0.2);
|
||||||
}
|
}
|
||||||
|
|
||||||
#profPageWrapper #creSubmit {
|
#profPageWrapper #creSubmit {
|
||||||
|
margin-top: 5%;
|
||||||
border: 1px solid #FCF0F0 !important;
|
border: 1px solid #FCF0F0 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -285,4 +287,8 @@
|
|||||||
|
|
||||||
#profileSubmit:hover {
|
#profileSubmit:hover {
|
||||||
background-color: rgba(0,0,0,0.3);
|
background-color: rgba(0,0,0,0.3);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#profPageWrapper #createInfo .formDiv:nth-child(5), #profPageWrapper #createInfo .formDiv:nth-child(6) {
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
@ -40,7 +40,7 @@ themeColors = {
|
|||||||
"userDropdownColor": "#2EA96A",
|
"userDropdownColor": "#2EA96A",
|
||||||
"iconHighlight": "#61D9A3",
|
"iconHighlight": "#61D9A3",
|
||||||
"modeHighlight": "#C9FE62",
|
"modeHighlight": "#C9FE62",
|
||||||
"classCardColor":"#2567A1",
|
"classCardColor":"#45729A",
|
||||||
"textColor": "#FCF0F0"
|
"textColor": "#FCF0F0"
|
||||||
},
|
},
|
||||||
"fresva": {
|
"fresva": {
|
||||||
@ -62,7 +62,7 @@ themeColors = {
|
|||||||
"userDropdownColor": "#2E312B",
|
"userDropdownColor": "#2E312B",
|
||||||
"iconHighlight": "#70E6E6",
|
"iconHighlight": "#70E6E6",
|
||||||
"modeHighlight": "#70E6E6",
|
"modeHighlight": "#70E6E6",
|
||||||
"classCardColor":"#1FAAB1",
|
"classCardColor":"#3C6567",
|
||||||
"textColor": "#FCF0F0"
|
"textColor": "#FCF0F0"
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user