ResultManager/style/style.css
2019-08-08 16:58:29 +03:00

302 lines
5.8 KiB
CSS

/**
* /style/style.css
* @version 1.5
* @desc Main style file
* @author Fándly Gergő Zoltán (fandlygergo@gmail.hu, systemtest.tk)
* @copy 2017 Fándly Gergő Zoltán
* License:
Result Manager for managing results of students in bilingual school systems.
Copyright (C) 2017 Fándly Gergő Zoltán
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
**/
button{
background: rgba(38,143,84,0.8);
color: rgb(255,255,255);
padding: 1em;
border-radius: 0.5em;
}
button:hover{
background: rgba(38,143,84,1);
}
fieldset{
border: 5px solid rgba(38,143,84,1);
background: rgb(220,220,220);
border-radius: 1em;
padding: 2em;
width: 60%;
text-align: left;
}
fieldset legend{
background: rgba(38,143,84,1);
color: rgb(255,255,255);
padding: 0.3em;
font-size: 2em;
border-radius: 0.5em;
box-shadow: 0 0 0 5px rgb(220,220,220);
text-align:left;
margin-left: 10%;
}
footer{
background: rgb(200,200,200);
border-radius: 1em;
width: 80%;
margin: auto;
font-size: 0.8em;
text-align: center;
padding: 0.3em;
}
hr.placeholder{
border: none;
height: 30px;
}
input{
border-radius: 5px;
padding: 0.5em;
border: 1px solid solid rgba(38,143,84,0.8);
}
textarea{
border-radius: 5px;
padding: 0.5em;
border: 1px solid solid rgba(38,143,84,0.8);
}
select{
border-radius: 5px;
padding: 0.5em;
border: 1px solid solid rgba(38,143,84,0.8);
}
div.message{
width: 50%;
padding: 1em;
border: 2px solid rgb(60, 255, 60);
border-radius: 10px;
margin: auto;
margin-top: 1.5em;
margin-bottom: 1.5em;
background: rgba(0, 255, 0, 0.8);
text-align: center;
}
div.message.error{
border: 2px solid rgb(255, 60, 60);
background: rgba(255, 0, 0, 0.8);
}
ul.menu{
list-style: none;
margin: 0;
background: rgba(38,143,84,0.8);
display: flex;
justify-content: space-around;
padding: 0;
}
ul.menu li{
display: block;
padding: 1em;
color: rgb(255,255,255);
}
ul.menu li:hover{
background: rgba(38,143,84,1);
}
ul.menu a{
text-decoration: none;
cursor: default;
}
td{
vertical-align: top;
}
span.password{
background: rgb(0,0,0);
font-family: Courier New;
}
span.password:hover{
background: inherit;
}
div.overlay{
position: fixed;
display: none;
width: 100%;
height: 100%;
top: 0;
left: 0;
z-index: 2;
}
div.overlay.messages{
height: 30%;
}
div.overlay.loading{
width: 15%;
height: 10%;
background: rgba(38,143,84,1);
text-align: center;
font-size: 1.2em;
left: auto;
right: 0;
margin: 1em;
border-radius: 10px;
}
div.overlay.loading img{
max-height: 1em;
position: relative;
top: 40%;
}
div.overlay.loading span{
position: relative;
top: 40%;
}
div.content{
width: 95%;
margin: auto;
}
img.icon{
max-height: 1.2em;
margin-right: 0.5em;
}
.center{
text-align: center;
margin: auto;
}
.selfcenter{
margin: auto;
}
/* the world's fanciest checkbox */
div.checkbox{
width: 7em;
height: 2.5em;
background: rgb(140, 140, 140);
border-radius: 1.5em;
position: relative;
}
div.checkbox:before{
content: 'On';
position: absolute;
top: 30%;
left: 15%;
color: rgb(35, 200, 40);
font-size: 1em;
}
div.checkbox:after{
content: 'Off';
position: absolute;
top: 30%;
right: 15%;
color: rgb(15, 15, 15);
font-size: 1em;
}
div.checkbox label{
display: block;
width: 45%;
height: 55%;
border-radius: 1.5em;
transition: 0.5s;
cursor: pointer;
position: absolute;
top: 22.5%;
left: 10%;
z-index: 1;
background: rgb(220, 220, 220);
}
div.checkbox input[type=checkbox]:checked + label{
left: 45%;
background: rgb(35, 200, 40);
}
div.checkbox input[type=checkbox]{
display: none;
}
/* dropdown div */
div.dropdown{
border: 2px solid rgba(38,143,84,1);
background: rgb(220,220,220);
border-radius: 10px;
overflow: auto;
padding: 0;
}
div.dropdown.header{
border: none;
border-radius: 0;
height: 1.5em;
background: rgba(34,119,227,0.7);
padding: 0.3em;
font-size: 1.5em;
}
div.dropdown.content{
border: none;
padding: 1em;
display: none;
}
div.dropdown.header a{
text-decoration: none;
color: rgb(255,255,255);
cursor: pointer;
}
div.searchbox{
text-decoration: none;
}
div.searchbox input[type=text]{
background-image: url("../res/search.png");
background-size: contain;
background-repeat: no-repeat;
margin-bottom: 1em;
padding-left: 2.5em;
}
div.searchbox ul{
list-style: none;
padding: 0;
margin: 0;
height: 15em;
overflow-y: scroll;
}
div.searchbox li{
color: rgb(0,0,0);
margin-left: 0.5em;
}
span.number{
background: rgba(127,127,127,0.8);
border-radius: 50%;
margin-right: 1em;
padding: 0.2em;
padding-left: 0.5em;
padding-right: 0.5em;
}
div.progressbar{
background: rgba(100, 100, 100, 1);
border-radius: 2em;
}
div.progressbar div{
background: rgb(0, 180, 245);
border-radius: 2em;
color: rgb(255, 255, 255);
padding-top: 0.5em;
padding-bottom: 0.2em;
}
div.progressbar span{
margin: 1em;
}