CSS fixes, adding slimScroll
This commit is contained in:
parent
bbea11a0cc
commit
4757bcd5cf
@ -328,14 +328,17 @@ input {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#exportDiv {
|
#exportDiv {
|
||||||
|
background-color: rgba(255,255,255,0.1);
|
||||||
position: absolute;
|
position: absolute;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#classListHolder {
|
#exportDiv:hover {
|
||||||
max-height: 48%;
|
background-color: rgba(255,255,255,0.2);
|
||||||
width: 100%;
|
}
|
||||||
|
|
||||||
|
#classListHolder {
|
||||||
|
width: 100%;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -549,8 +552,11 @@ input.clickModify, textarea.clickModify {
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
font-size: 2.2vh;
|
font-size: 2.2vh;
|
||||||
font-weight: 200;
|
font-weight: 200;
|
||||||
|
padding: 1%;
|
||||||
|
|
||||||
background-color: rgba(0,0,0,0);
|
background-color: rgba(0,0,0,0);
|
||||||
border-color: rgba(0,0,0,0);
|
border-color: rgba(0,0,0,0);
|
||||||
|
outline:none;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
|
||||||
-webkit-transition: background-color 0.4s ease, border-color 0.4s ease;
|
-webkit-transition: background-color 0.4s ease, border-color 0.4s ease;
|
||||||
@ -560,8 +566,7 @@ input.clickModify, textarea.clickModify {
|
|||||||
}
|
}
|
||||||
|
|
||||||
input.clickModify:hover, textarea.clickModify:hover {
|
input.clickModify:hover, textarea.clickModify:hover {
|
||||||
background-color: rgba(0,0,0,0.1);
|
background-color: rgba(0,0,0,0.1) !important;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
textarea.clickModify {
|
textarea.clickModify {
|
||||||
@ -581,6 +586,8 @@ textarea.clickModify {
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
|
||||||
|
box-shadow: inset 0 0 0 99999px rgba(0,0,0,0.12);
|
||||||
|
|
||||||
position: relative;
|
position: relative;
|
||||||
display: table;
|
display: table;
|
||||||
}
|
}
|
||||||
@ -650,6 +657,7 @@ textarea.clickModify {
|
|||||||
.clickModify.dropdown {
|
.clickModify.dropdown {
|
||||||
font-size: 2.1vh;
|
font-size: 2.1vh;
|
||||||
width: calc(100% - 2px);
|
width: calc(100% - 2px);
|
||||||
|
padding: none;
|
||||||
|
|
||||||
background-color: rgba(0,0,0,0.07);
|
background-color: rgba(0,0,0,0.07);
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
@ -1032,7 +1040,6 @@ textarea.clickModify {
|
|||||||
|
|
||||||
.commentBox {
|
.commentBox {
|
||||||
margin: 0 !important;
|
margin: 0 !important;
|
||||||
height: 50%;
|
|
||||||
padding: 2%;
|
padding: 2%;
|
||||||
background-color: rgba(255,255,255,0.1);
|
background-color: rgba(255,255,255,0.1);
|
||||||
border-bottom: solid 1px #CCC;
|
border-bottom: solid 1px #CCC;
|
||||||
@ -1122,7 +1129,7 @@ textarea.clickModify {
|
|||||||
background-color: rgba(0,0,0,0.1);
|
background-color: rgba(0,0,0,0.1);
|
||||||
|
|
||||||
position: relative;
|
position: relative;
|
||||||
cursor: pointer;
|
cursor: default;
|
||||||
|
|
||||||
-webkit-transition: background-color 0.4s ease;
|
-webkit-transition: background-color 0.4s ease;
|
||||||
-moz-transition: background-color 0.4s ease;
|
-moz-transition: background-color 0.4s ease;
|
||||||
@ -1139,8 +1146,6 @@ textarea.clickModify {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.doneUser img {
|
.doneUser img {
|
||||||
margin-bottom: 0.3vw;
|
|
||||||
|
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
line-height: normal;
|
line-height: normal;
|
||||||
|
|||||||
@ -116,7 +116,7 @@
|
|||||||
<i class="fa fa-exclamation-triangle" aria-hidden="true"></i>
|
<i class="fa fa-exclamation-triangle" aria-hidden="true"></i>
|
||||||
<p>{{work 'reports'}}</p>
|
<p>{{work 'reports'}}</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="workCreator doneUser" onclick="window.location='/user/{{work 'email'}}'">
|
<div class="workCreator doneUser">
|
||||||
<div style="display:inline-block;width:{{screen '3' '140'}}">
|
<div style="display:inline-block;width:{{screen '3' '140'}}">
|
||||||
<img src="{{work 'avatar'}}" style="width:{{screen '3' '140'}};height:{{screen '3' '140'}}">
|
<img src="{{work 'avatar'}}" style="width:{{screen '3' '140'}};height:{{screen '3' '140'}}">
|
||||||
</div>
|
</div>
|
||||||
@ -237,14 +237,14 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="commentInfo">
|
<div class="commentInfo">
|
||||||
<span class="commentComment">{{comment}}</span><br>
|
<span class="commentComment">{{comment}}</span><br>
|
||||||
<span class="commentUser" onclick="window.location='/user/{{email}}'">{{user}}</span>
|
<span class="commentUser">{{user}}</span>
|
||||||
<span class="commentDate">{{date}}</span>
|
<span class="commentDate">{{date}}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<template name="doneUsers">
|
<template name="doneUsers">
|
||||||
<div class="doneUser" onclick="window.location='/user/{{email}}'">
|
<div class="doneUser">
|
||||||
<div style="display:inline-block">
|
<div style="display:inline-block">
|
||||||
<img src='{{avatar}}' style="width:{{screen '3' '140'}};height:{{screen '3' '140'}}">
|
<img src='{{avatar}}' style="width:{{screen '3' '140'}};height:{{screen '3' '140'}}">
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -46,6 +46,15 @@ Template.main.rendered = function() {
|
|||||||
Accounts._loginButtonsSession.set('dropdownVisible', true);
|
Accounts._loginButtonsSession.set('dropdownVisible', true);
|
||||||
setTimeout(startDragula, 300);
|
setTimeout(startDragula, 300);
|
||||||
$("#menuContainer").toggle();
|
$("#menuContainer").toggle();
|
||||||
|
$("#doneUsers").slimScroll({
|
||||||
|
height: '34vh',
|
||||||
|
touchScrollStep: 90
|
||||||
|
});
|
||||||
|
$("#comment").slimScroll({
|
||||||
|
width: '100%',
|
||||||
|
height: '20vh',
|
||||||
|
touchScrollStep: 90
|
||||||
|
});
|
||||||
/*$("#classListHolder").slimScroll({
|
/*$("#classListHolder").slimScroll({
|
||||||
height: '30vh',
|
height: '30vh',
|
||||||
size: '5px',
|
size: '5px',
|
||||||
@ -53,6 +62,7 @@ Template.main.rendered = function() {
|
|||||||
railColor: '#222',
|
railColor: '#222',
|
||||||
railOpacity: 0.1,
|
railOpacity: 0.1,
|
||||||
});*/
|
});*/
|
||||||
|
|
||||||
document.getElementsByTagName("body")[0].style.color = Session.get("user").preferences.theme.textColor;
|
document.getElementsByTagName("body")[0].style.color = Session.get("user").preferences.theme.textColor;
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -457,6 +467,7 @@ Template.main.events({
|
|||||||
if(!$("#"+modifyingInput)[0].className.includes("dropdown")) {
|
if(!$("#"+modifyingInput)[0].className.includes("dropdown")) {
|
||||||
event.target.select();
|
event.target.select();
|
||||||
event.target.style.cursor = "text";
|
event.target.style.cursor = "text";
|
||||||
|
event.target.style.backgroundColor = "rgba(0,0,0,0.1)";
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
'keydown .dropdown' (event) {
|
'keydown .dropdown' (event) {
|
||||||
@ -664,6 +675,7 @@ function closeInput() { // Close a changeable input and change it back to span.
|
|||||||
Session.set("currentWork", data);
|
Session.set("currentWork", data);
|
||||||
Session.set("restrictText", {});
|
Session.set("restrictText", {});
|
||||||
$("#"+modifyingInput).css('cursor','pointer');
|
$("#"+modifyingInput).css('cursor','pointer');
|
||||||
|
$("#"+modifyingInput).css('background-color', 'rgba(0,0,0,0)');
|
||||||
if(!Session.get("newWork")) {
|
if(!Session.get("newWork")) {
|
||||||
serverData = Session.get("currentWork");
|
serverData = Session.get("currentWork");
|
||||||
if(checkMissing()) return;
|
if(checkMissing()) return;
|
||||||
|
|||||||
@ -73,6 +73,7 @@
|
|||||||
|
|
||||||
#filterWrapper {
|
#filterWrapper {
|
||||||
display: none;
|
display: none;
|
||||||
|
max-height: 64vh;
|
||||||
}
|
}
|
||||||
|
|
||||||
#backgroundOverlay {
|
#backgroundOverlay {
|
||||||
|
|||||||
@ -10,6 +10,11 @@ var sidebarMode = [null, null];
|
|||||||
|
|
||||||
Template.sidebarMenuPlate.rendered = function() {
|
Template.sidebarMenuPlate.rendered = function() {
|
||||||
$(".menuWrapper").slideDown(300);
|
$(".menuWrapper").slideDown(300);
|
||||||
|
$("#classListHolder").slimScroll({
|
||||||
|
width: '100%',
|
||||||
|
height: 'auto',
|
||||||
|
touchScrollStep: 90
|
||||||
|
});
|
||||||
};
|
};
|
||||||
Template.sidebarOptionPlate.rendered = function() {
|
Template.sidebarOptionPlate.rendered = function() {
|
||||||
$(".menuWrapper").slideDown(300);
|
$(".menuWrapper").slideDown(300);
|
||||||
@ -57,7 +62,7 @@ Template.sidebarMenuPlate.events({
|
|||||||
'click #filterHead' (event) {
|
'click #filterHead' (event) {
|
||||||
if (event.target.id === "disableFilter") return;
|
if (event.target.id === "disableFilter") return;
|
||||||
if (!filterOpen[0]) {
|
if (!filterOpen[0]) {
|
||||||
$("#filterWrapper").slideDown(300);
|
$("#filterWrapper").slideDown(300, function(){recalcHeightScroll();});
|
||||||
} else {
|
} else {
|
||||||
$("#filterWrapper").slideUp(300);
|
$("#filterWrapper").slideUp(300);
|
||||||
}
|
}
|
||||||
@ -65,8 +70,9 @@ Template.sidebarMenuPlate.events({
|
|||||||
},
|
},
|
||||||
'click #typeFilterWrapper' () {
|
'click #typeFilterWrapper' () {
|
||||||
if (!filterOpen[1]) {
|
if (!filterOpen[1]) {
|
||||||
$("#classFilterHolder").slideDown(300);
|
$("#classFilterHolder").slideDown(300, function(){recalcHeightScroll();});
|
||||||
} else {
|
} else {
|
||||||
|
recalcHeightScroll();
|
||||||
$("#classFilterHolder").slideUp(300);
|
$("#classFilterHolder").slideUp(300);
|
||||||
}
|
}
|
||||||
filterOpen[1] = !filterOpen[1];
|
filterOpen[1] = !filterOpen[1];
|
||||||
@ -655,3 +661,9 @@ toggleToClassInfoMode = function(mode) {
|
|||||||
$(this).fadeIn(250);
|
$(this).fadeIn(250);
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
function recalcHeightScroll() {
|
||||||
|
var height = (94-100*$("#classListHolder").offset().top / window.innerHeight) + "vh";
|
||||||
|
$("#classListHolder").css("height", height);
|
||||||
|
$("#classListHolder").parent().css("height", height);
|
||||||
|
}
|
||||||
|
|||||||
@ -1,8 +1,8 @@
|
|||||||
themeColors = {
|
themeColors = {
|
||||||
"lux": {
|
"lux": {
|
||||||
"background": "White.jpg",
|
"background": "White.jpg",
|
||||||
"mainColor": "#4D82AC",
|
"mainColor": "#58758B",
|
||||||
"secondaryColor": "#4C75A2",
|
"secondaryColor": "#456487",
|
||||||
"sidebarColor": "#5E88A8",
|
"sidebarColor": "#5E88A8",
|
||||||
"userDropdownColor": "#427EB4",
|
"userDropdownColor": "#427EB4",
|
||||||
"iconHighlight": "#39CAFF",
|
"iconHighlight": "#39CAFF",
|
||||||
@ -27,7 +27,7 @@ themeColors = {
|
|||||||
"secondaryColor": "#B93A3A",
|
"secondaryColor": "#B93A3A",
|
||||||
"sidebarColor": "#327C5A",
|
"sidebarColor": "#327C5A",
|
||||||
"userDropdownColor": "#CC3333",
|
"userDropdownColor": "#CC3333",
|
||||||
"iconHighlight": "#327C5A",
|
"iconHighlight": "#CBDF58",
|
||||||
"modeHighlight": "#C9FE62",
|
"modeHighlight": "#C9FE62",
|
||||||
"classCardColor":"#302C36",
|
"classCardColor":"#302C36",
|
||||||
"textColor": "#FCF0F0"
|
"textColor": "#FCF0F0"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user