html, body {
width: 100%;
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;
}
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 */
/*padding-bottom: 5%;
padding-top: 5%;*/
}
/* Changes - search is a flex container for h2 and bar, removed various attributes */
main .search {
background-color: rgba(235,235,235, 0.7);
overflow: auto;
}
/* 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*/
}
.search input[type=text] {
text-align: center;
box-sizing: border-box;
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;*/
}
.search input[type=text], .search button.search-button {
font-size: 16px;
height: 40px;
border-radius: 10px;
border: 2px solid #ccc;
}
.input-group {
border-radius: 10px;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
-webkit-box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
}
/*.search input[type=text]:focus {
width: 100%;
}*/
main .search img {
width: 50px;
display: inline;
}
.home-intro{
color: #808080;
padding: 20% 30px 30px 30px;
font-style: italic;
font-size: 1.2em;
}
/*************************** END OF SEARCH - index.html *********************************/
/*************************** USER SOLUTIONS - user_solutions.html *********************************/
main div {
background: none;
}
main button#add-solution {
display: inline-block;
background-color: #87B6A7;
color: white;
}
#solutions-main {
padding-top: 150px;
padding-bottom: 65px;
}
.top-sol {
margin-top: 20px;
}
.show-path{
margin-top: 10px;
}
main button#add-solution h3 {
margin: 0;
margin-top: 10px;
margin-bottom: 10px;
font-size: 1em;
}
main p.show-path {
display: inline-block;
color: #6f6f6f;
}
main #solutions {
padding-top: 2%;
text-align: left;
margin-left: 7%;
}
main [id^="sol-"] {
text-align: left;
color: #333;
margin-top: 30px;
margin-bottom: 30px;
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
padding: 0;
}
main [id^="sol-"] .post-info {
display: flex;
justify-content: space-between;
background: #F79F79;
padding-top: 2%;
border-top-right-radius: 15px;
border-top-left-radius: 15px;
padding-bottom: 5px;
width: 100%;
}
main [id^="sol-"] img.user-image {
border: 2px solid darkgray;
margin-left: 25px;
}
.upvoting, .downvoting, .upvote, .downvote, .user-image, .username {
display: inline-block;
}
main [id^="sol-"] p.username {
vertical-align: middle;
}
main [id^="sol-"] button.upvote, [id^="sol-"] button.downvote {
background-color: transparent;
background-repeat:no-repeat;
border: none;
cursor:pointer;
overflow: hidden;
outline:none;
}
main [id^="sol-"] button.upvote img, [id^="sol-"] button.downvote img {
width: 30px;
height: 30px;
}
main [id^="sol-"] p.num-downvotes, [id^="sol-"] p.num-upvotes {
vertical-align: bottom;
}
main [id^="sol-"] p.username {
margin-left: 10px;
}
main [id^="sol-"] p.num-downvotes {
margin-right: 25px;
}
main [id^="sol-"] div.user-sol h3 {
font-size: 1.17em;
background-color: #f0e9e1;
padding: 10px;
padding-left: 20px;
margin-top: 0;
margin-bottom: 0;
}
main [id^="sol-"] div.user-sol p{
padding: 10px;
margin: 0;
background-color: white;
}
main [id^="sol-"] div.user-sol p img {
width: 60%;
height: auto;
}
main [id^="sol-"] div.comments {
background-color: #f0e9e1;
border-bottom-right-radius: 15px;
border-bottom-left-radius: 15px;
padding: 10px;
}
main [id^="sol-"] div.comments h3 {
font-size: 1.17em;
padding: 10px;
padding-left: 20px;
margin-top: 0;
margin-bottom: 0;
}
main [id^="sol-"] div.comments ul li img {
width: 40px;
vertical-align: top;
}
main [id^="sol-"] div.comments ul li {
background-color: white;
background-color: #F7D08A;
padding: 10px;
border-radius: 10px;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
-webkit-box-shadow: 0 2px 2px 0 #C2C2C2;
box-shadow: 0 2px 2px 0 #C2C2C2;
margin-bottom: 15px;
}
main [id^="sol-"] div.comments ul li p.comment-username {
margin-bottom: 0;
margin-top: 5px;
}
main [id^="sol-"] div.comments ul li img.comment-user-image, li p.comment-username {
display: inline-block;
}
main [id^="sol-"] div.comments ul li p.comment-username, li p.user-comment {
vertical-align: top;
}
main [id^="sol-"] div.comments ul li * {
padding: 5px;
}
main [id^="sol-"] div.comments ul li p.user-comment {
margin: 0;
background-color: white;
border-radius: 5px;
}
/*************************** END OF USER SOLUTIONS - user_solutions.html *********************************/
/***********************************************************************************************************************/
/*THE SOLUTIONS PAGE BEGINS HERE*/
#solutions-header{
color: #333333;
font-family: 'Roboto', sans-serif;
}
#solutions-main{
min-height: 100%;
padding-top: 65px;
}
/*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;
}
/********** user-profile styles **********/
.user-info-content{
padding-top: 100px;
}
.user-info-content img{
max-width: 100px;
}
.user-info-content p{
color: gray;
}
.prf-sign-off{
margin: 15px;
}
.prf-tables{
text-align: left;
}
/********** !user-profile styles *********/