Reformatted css, and added 'Main Menu' button from /profile

This commit is contained in:
Kenneth Jao 2016-08-12 12:50:37 -04:00
parent 09104bbbeb
commit b31451682a
4 changed files with 355 additions and 294 deletions

View File

@ -3,7 +3,9 @@
width: 100%; width: 100%;
margin: 0; margin: 0;
box-shadow: 2px 2px 5px 3px #666; box-shadow: 2px 2px 5px 3px #666;
background-color: #EBEBEB; background-color: #EBEBEB;
display: inline-block; display: inline-block;
position: relative; position: relative;
z-index: 50; z-index: 50;
@ -13,6 +15,7 @@
padding: 0.5%; padding: 0.5%;
padding-left: 1%; padding-left: 1%;
float: left; float: left;
-webkit-filter: drop-shadow(2px 2px 5px #333); -webkit-filter: drop-shadow(2px 2px 5px #333);
filter: drop-shadow(2px 2px 5px #333); filter: drop-shadow(2px 2px 5px #333);
} }
@ -33,6 +36,7 @@
min-height: 100%; min-height: 100%;
position: absolute; position: absolute;
top: 11%; top: 11%;
background-color: #E5E5E5; background-color: #E5E5E5;
background-image: url("banner100.jpg"); background-image: url("banner100.jpg");
} }
@ -41,10 +45,13 @@
position: fixed; position: fixed;
top: 50%; top: 50%;
left: 50%; left: 50%;
-moz-border-radius: 50%; -moz-border-radius: 50%;
-webkit-border-radius: 50%; -webkit-border-radius: 50%;
border-radius: 50%; border-radius: 50%;
background-color: rgba(0,0,0,0.2); background-color: rgba(0,0,0,0.2);
-webkit-filter: drop-shadow(2px 2px 5px #333); -webkit-filter: drop-shadow(2px 2px 5px #333);
filter: drop-shadow(2px 2px 5px #333); filter: drop-shadow(2px 2px 5px #333);
} }
@ -58,6 +65,7 @@
.text { .text {
text-align: center; text-align: center;
color: #FFF; color: #FFF;
-webkit-filter: drop-shadow(2px 2px 5px #444); -webkit-filter: drop-shadow(2px 2px 5px #444);
filter: drop-shadow(2px 2px 5px #444); filter: drop-shadow(2px 2px 5px #444);
} }
@ -76,15 +84,20 @@ p.text {
#loginButton { #loginButton {
font-size: 200%; font-size: 200%;
padding: 2%; padding: 2%;
-webkit-border-radius: 6; -webkit-border-radius: 6;
-moz-border-radius: 6; -moz-border-radius: 6;
border-radius: 6px; border-radius: 6px;
position: relative; position: relative;
background-color: #005CE6; background-color: #005CE6;
-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;
-ms-transition: background-color 0.4s ease; -ms-transition: background-color 0.4s ease;
transition: background-color 0.4s ease; transition: background-color 0.4s ease;
cursor: pointer; cursor: pointer;
} }
@ -94,6 +107,7 @@ p.text {
#loginButton:active { #loginButton:active {
background-color: #FF4D4D; background-color: #FF4D4D;
-webkit-transition: background-color 0.1s ease; -webkit-transition: background-color 0.1s ease;
-moz-transition: background-color 0.1s ease; -moz-transition: background-color 0.1s ease;
-ms-transition: background-color 0.1s ease; -ms-transition: background-color 0.1s ease;
@ -116,6 +130,7 @@ p.text {
font-size: 150%; font-size: 150%;
margin: 0; margin: 0;
padding: 1%; padding: 1%;
-webkit-filter: drop-shadow(2px 2px 5px #444); -webkit-filter: drop-shadow(2px 2px 5px #444);
filter: drop-shadow(2px 2px 5px #444); filter: drop-shadow(2px 2px 5px #444);
} }
@ -123,6 +138,7 @@ p.text {
a { a {
color: #0099CC; color: #0099CC;
text-decoration: none; text-decoration: none;
-webkit-transition: color 0.4s ease; -webkit-transition: color 0.4s ease;
-moz-transition: color 0.4s ease; -moz-transition: color 0.4s ease;
-ms-transition: color 0.4s ease; -ms-transition: color 0.4s ease;
@ -132,3 +148,4 @@ a {
a:hover { a:hover {
color: #00BFFF; color: #00BFFF;
} }

View File

@ -22,12 +22,14 @@ var themeColors = {
} }
}; };
var calendarColors = { var calendarColors = {
"test": "red", "test": "red",
"project": "blue", "project": "blue",
"normal": "green", "normal": "green",
"quiz": "black" "quiz": "black"
}; };
var options = { var options = {
"privacy": ["Public", "Hidden"], "privacy": ["Public", "Hidden"],
"category": ["Class", "Club", "Other"] "category": ["Class", "Club", "Other"]

View File

@ -56,6 +56,7 @@
-moz-border-radius: 50%; -moz-border-radius: 50%;
-webkit-border-radius: 50%; -webkit-border-radius: 50%;
border-radius: 50%; border-radius: 50%;
position: absolute; position: absolute;
top: 43%; top: 43%;
left: 2.5%; left: 2.5%;
@ -67,6 +68,7 @@
width: 100%; width: 100%;
height: 5%; height: 5%;
padding: 0.5% 0 0.5% 0; padding: 0.5% 0 0.5% 0;
background-color: #0D0D0D; background-color: #0D0D0D;
} }
@ -82,10 +84,13 @@
.profOptions { .profOptions {
box-shadow: 2px 2px 5px 3px #666; box-shadow: 2px 2px 5px 3px #666;
position: absolute; position: absolute;
display: none; display: none;
z-index: 5; z-index: 5;
opacity: 0; opacity: 0;
-webkit-transition: opacity 0.4s ease; -webkit-transition: opacity 0.4s ease;
-moz-transition: opacity 0.4s ease; -moz-transition: opacity 0.4s ease;
-ms-transition: opacity 0.4s ease; -ms-transition: opacity 0.4s ease;
@ -97,8 +102,10 @@
min-width: 10%; min-width: 10%;
padding: 20px; padding: 20px;
margin: 0; margin: 0;
text-align: center; text-align: center;
cursor: pointer; cursor: pointer;
-webkit-transition: box-shadow 0.4s ease; -webkit-transition: box-shadow 0.4s ease;
-moz-transition: box-shadow 0.4s ease; -moz-transition: box-shadow 0.4s ease;
-ms-transition: box-shadow 0.4s ease; -ms-transition: box-shadow 0.4s ease;
@ -119,6 +126,7 @@
padding: 4%; padding: 4%;
padding-top: 2.5%; padding-top: 2.5%;
padding-right: 4%; padding-right: 4%;
box-shadow: 2px 2px 5px 3px #666; box-shadow: 2px 2px 5px 3px #666;
} }
@ -137,6 +145,7 @@
height: 30%; height: 30%;
float: right; float: right;
border-top: 5px solid #2E4F74; border-top: 5px solid #2E4F74;
-webkit-transition: width 0.4s ease; -webkit-transition: width 0.4s ease;
-moz-transition: width 0.4s ease; -moz-transition: width 0.4s ease;
-ms-transition: width 0.4s ease; -ms-transition: width 0.4s ease;
@ -161,9 +170,12 @@
.profFunction { .profFunction {
margin-right: 1%; margin-right: 1%;
padding: 2%; padding: 2%;
border: 2px solid rgba(0,0,0,0.2); border: 2px solid rgba(0,0,0,0.2);
display: inherit; display: inherit;
cursor: pointer; cursor: pointer;
-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;
-ms-transition: background-color 0.4s ease; -ms-transition: background-color 0.4s ease;
@ -172,10 +184,10 @@
.profFunction:hover { .profFunction:hover {
background-color: rgba(0,0,0,0.1); background-color: rgba(0,0,0,0.1);
} }
.profFunction i, .profFunction i, .profFunction h4 {
.profFunction h4 {
padding: 1%; padding: 1%;
} }
@ -188,34 +200,29 @@
width: 30%; width: 30%;
margin-top: 3%; margin-top: 3%;
padding: 1.5% 1% 1.5% 1%; padding: 1.5% 1% 1.5% 1%;
-webkit-animation: expand .7s ease 1; -webkit-animation: expand .7s ease 1;
animation: expand .7s ease 1; animation: expand .7s ease 1;
} }
@-webkit-keyframes expand { @-webkit-keyframes expand {
0% { 0% { width: 0%; }
width: 0%; 100% { width: 30%; }
}
100% {
width: 30%;
}
} }
@keyframes expand { @keyframes expand {
0% { 0% { width: 0%; }
width: 0%; 100% { width: 30%; }
}
100% {
width: 30%;
}
} }
#label { #label {
width: 90%; width: 90%;
margin-top: 2.5%; margin-top: 2.5%;
margin-bottom: 2%; margin-bottom: 2%;
background-color: rgba(0,0,0,0.2); background-color: rgba(0,0,0,0.2);
box-shadow: none; box-shadow: none;
display: table; display: table;
cursor: default; cursor: default;
} }
@ -224,7 +231,9 @@
width: 90%; width: 90%;
padding: 1%; padding: 1%;
padding-right: 100%; padding-right: 100%;
display: inline-block; display: inline-block;
overflow-x: hidden; overflow-x: hidden;
overflow-y: scroll; overflow-y: scroll;
} }
@ -233,7 +242,9 @@
font-style: italic; font-style: italic;
font-weight: 200; font-weight: 200;
margin-left: 1%; margin-left: 1%;
color: #999; color: #999;
-webkit-filter :none; -webkit-filter :none;
filter: none; filter: none;
} }
@ -243,9 +254,11 @@
width: 100%; width: 100%;
margin-bottom: 3%; margin-bottom: 3%;
padding: 2%; padding: 2%;
box-shadow: 2px 2px 5px 3px #666; box-shadow: 2px 2px 5px 3px #666;
display: table; display: table;
cursor: pointer; cursor: pointer;
-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;
-ms-transition: background-color 0.4s ease; -ms-transition: background-color 0.4s ease;
@ -314,9 +327,11 @@
font-size: 140%; font-size: 140%;
margin: 0 35% 0 35%; margin: 0 35% 0 35%;
padding: 2%; padding: 2%;
background-color: rgba(0,0,0,0.25); background-color: rgba(0,0,0,0.25);
text-align: center; text-align: center;
cursor: pointer; cursor: pointer;
-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;
-ms-transition: background-color 0.4s ease; -ms-transition: background-color 0.4s ease;
@ -338,18 +353,21 @@
#save { #save {
font-size: 90%; font-size: 90%;
background-color: #CC4444; background-color: #CC4444;
box-shadow: -1px 2px 5px 1px #333; box-shadow: -1px 2px 5px 1px #333;
position: absolute; position: absolute;
top: 0; top: 0;
right: 10%; right: 10%;
z-index: 5; z-index: 50;
-webkit-transition: transform 0.2s ease, background-color 0.1s ease; -webkit-transition: transform 0.2s ease, background-color 0.1s ease;
-moz-transition: transform 0.2s ease, background-color 0.1s ease; -moz-transition: transform 0.2s ease, background-color 0.1s ease;
-ms-transition: transform 0.2s ease, background-color 0.1s ease; -ms-transition: transform 0.2s ease, background-color 0.1s ease;
transition: transform 0.2s ease, background-color 0.1s ease; transition: transform 0.2s ease, background-color 0.1s ease;
} }
#save:hover { #save:hover, #mainpage:hover {
-webkit-transform: scale(1.05); -webkit-transform: scale(1.05);
-moz-transform: scale(1.05); -moz-transform: scale(1.05);
-ms-transform: scale(1.05); -ms-transform: scale(1.05);
@ -361,10 +379,33 @@
background-color: #34CB34; background-color: #34CB34;
} }
#save h2 { #save h2, #mainpage h2 {
font-weight: 200; font-weight: 200;
width: 100%; width: 100%;
padding: 8%; padding: 8%;
-webkit-filter: none; -webkit-filter: none;
filter: none !important; filter: none !important;
} }
#mainpage {
font-size: 90%;
background-color: #617C9E;
box-shadow: -1px 2px 5px 1px #333;
position: absolute;
top: 0;
left: 10%;
z-index: 50;
-webkit-transition: transform 0.2s ease, background-color 0.1s ease;
-moz-transition: transform 0.2s ease, background-color 0.1s ease;
-ms-transition: transform 0.2s ease, background-color 0.1s ease;
transition: transform 0.2s ease, background-color 0.1s ease;
}
#mainpage:active {
background-color: #56708D;
}

View File

@ -1,6 +1,7 @@
<template name="profile"> <template name="profile">
<div id="profPage" style="background-color:{{divColor 'header'}};height:{{mainHeight}};"> <div id="profPage" style="background-color:{{divColor 'header'}};height:{{mainHeight}};">
<div id="save"><h2>Save Settings</h2></div> <div id="save"><h2>Save Settings</h2></div>
<div id="mainpage" onclick="window.location='/'"><h2>Main Page</h2></div>
<div id="profMainContainer" style="{{mainCenter}}"> <div id="profMainContainer" style="{{mainCenter}}">
<div id="profBanner" style="{{banner}};"></div> <div id="profBanner" style="{{banner}};"></div>
<div id="profAvatar" style="{{avatar}};{{avatarDim}}"></div> <div id="profAvatar" style="{{avatar}};{{avatarDim}}"></div>
@ -56,9 +57,9 @@
<span class="subscriptions classText">Members</span> <span class="subscriptions classText">Members</span>
</div> </div>
<div class="classHolder" style="max-height:{{classHolderHeight}}"> <div class="classHolder" style="max-height:{{classHolderHeight}}">
<!-- {{#each myclasses}} {{#each myclasses}}
{{> classDisplay}} {{> classDisplay}}
{{/each}} --> {{/each}}
</div> </div>
{{/if}} {{/if}}