html, body {
height: 100%;
font-family: 'Roboto', sans-serif;
}
body {
background-color: white;
margin: 0;
}
ul {
list-style-type: none;
}
a {
text-decoration: none;
}
h1{
color: #333333;
}
/*top_bar.height + main.height + footer.height = 8% + 80% + 12% */
#top-bar{
width: 100%;
height: 8%;
display: flex;
display: -webkit-flex;
flex-direction: row;
-webkit-flex-direction: row;
justify-content: space-between;
-webkit-justify-content: space-between;
align-items: flex-end;
-webkit-align-items: flex-end;
}
#top-bar nav {
flex: 0 1 auto;
-webkit-flex: 0 1 auto;
padding-right: 20%;
}
#top-bar #logo {
padding-left: 20%;
}
#top-bar img {
padding: 10%;
width: auto;
/* Humair - I added this because size wasn't working for firefox*/
max-width: 150px;
}
#top-bar nav ul {
margin: 0;
padding: 0;
overflow: hidden;
}
#top-bar ul li {
float: right;
}
#top-bar ul li a {
display: block;
color: darkgray;
text-align: center;
padding: 14px 16px;
vertical-align: bottom;
}
#top-bar ul li a:hover {
color: lightblue;
}
#top-bar .drop-menu {
padding: 0;
}
.drop-menu {
display: none;
padding: 0;
width: auto;
position: absolute;
background-color: #f9f9f9;
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
}
#top-bar .drop-menu li {
float: right;
text-align: center;
clear: both;
height: auto;
color: black;
text-decoration: none;
display: block;
}
.drop-menu li a {
padding: 12px 16px;
}
.drop-down:hover .drop-menu {
display: block;
}
.side-menu {
display
}
main {
background-image: url("../images/main.jpg");
background-size: 250px 250px;
text-align: center;
width: 100%;
min-height: 80%;
/*position: relative;
height: 80%;
overflow: auto;*/
}
/* Changes - main is a flex container for search content*/
main{
display: flex;
align-items: center;
justify-content: center;
flex-flow: column; /* Makes it grow vertically */
}
/* Changes - search is a flex container for h2 and bar, removed various attributes */
main .search {
flex: 1;
width: 60%;
height: 100%;
background-color: rgba(235,235,235, 0.6);
}
/* Changes - added h2 styiling for main */
main .search h2{
font-family: 'Lato', sans-serif;
color: gray;
font-size: 2.5em;
margin: 4%;
padding-top: 200px; /* Change to move search bar content. Keep as pixel*/
}
main #search-select {
display: inline-block;
}
main #search-select select {
color: black;
width: 100px;
padding: 5px;
font-size: 16px;
box-sizing: border-box;
-webkit-appearance: none;
background: url(../images/down.png) no-repeat lightgray;
background-size: 20px 20px;
background-position: 72px 9px;
border-top-left-radius: 10px;
border-bottom-left-radius: 10px;
margin-right: -5px;
}
main .search input[type=text] {
display: inline;
width: 250px;
text-align: center;
box-sizing: border-box;
font-size: 16px;
background-color: white;
background-image: url('../images/search_icon.png');
background-size: 20px 20px;
background-position: 9px 9px;
background-repeat: no-repeat;
padding: 12px 20px 12px 40px;
-webkit-transition: width 0.4s ease-in-out;
transition: width 0.4s ease-in-out;
border-top-right-radius: 10px;
border-bottom-right-radius: 10px;
}
main .search input[type=text], main #search-select select {
height: 40px;
border: 2px solid #ccc;
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
}
main .search input[type=text]:focus {
width: 50%;
}
main .search img {
width: 50px;
display: inline;
}
main button#add-solution {
display: inline-block;
border-radius: 10px;
background-color: maroon;
color: white;
width: 110px;
}
main p {
display: inline-block;
}
footer {
background-color: #333333;
bottom: 0;
height: 12%;
}
footer #footer-container{
margin-left: 20%;
margin-right: 20%;
padding: .5%;
}
footer nav a{
float: left;
padding-right: 20px;
font-size: 1em;
}
footer h6 {
margin: 0;
color: white;
float: right;
font-size: 1em;
font-weight: normal;
font-style: italic;
}
footer nav a {
display: block;
color: darkgray;
vertical-align: top;
}
/***********************************************************************************************************************/
/*THE SOLUTIONS PAGE BEGINS HERE*/
#solutions-header{
color: #333333;
font-family: 'Roboto', sans-serif;
}
#solutions-main{
min-height: 87%;
}
/*the section which holds each of the solutions*/
section.solutions-card{
text-align: left;
background-color: white;
border-radius: 20px;
width: 95%;
margin-left: 2.5%;
cursor: pointer;
}
/*the title of the course*/
h3.solutions-title{
font-family: 'Roboto',sans-serif;
font-size: large;
color: #333333;
margin-left: 5%;
margin-bottom: 5px;
padding-top: 20px;
}
/*the time of the examination*/
p.solutions-time{
font-family: 'Roboto',sans-serif;
font-size: medium;
color: dimgrey;
margin-left: 5%;
margin-top: 0px;
margin-bottom: 2px;
}
/*whether its a midterm or final exam*/
p.solutions-type{
font-family: 'Roboto',sans-serif;
font-size: medium;
color: dimgrey;
margin-left: 5%;
margin-top: 0px;
padding-bottom: 20px;
}
#solutions-footer{
height: 13%;
}
/**********************************************************************************************************************/
.questions-number{
font-family: 'Roboto',sans-serif;
font-size: large;
color: #333333;
margin-left: 5%;
margin-bottom: 5px;
padding-top: 15px;
}
.questions-comment{
font-family: 'Roboto',sans-serif;
font-size: medium;
color: dimgrey;
margin-left: 5%;
margin-top: 0px;
padding-bottom: 15px;
}