This repository has been archived on 2021-12-22. You can view files and clone it, but cannot push or open issues or pull requests.
rdelaage.ovh/static/css/style.css

208 lines
3.5 KiB
CSS

*{
box-sizing: border-box;
margin: 0;
box-sizing: border-box;
}
html, body{
height: 100%;
font-family: sans-serif;
}
header{
background: #16a085;
color: #ecf0f1;
height: 100px;
text-align:center;
line-height: 100px;
}
header h1{
display: inline;
font-family: FantasqueSansMono, sans-serif;
font-size: 60px;
font-weight: normal;
vertical-align: middle;
}
header img{
height: 70px;
width: auto;
vertical-align: middle;
}
nav{
display: inline-block;
height: calc(100% - 150px);
width: 200px;
vertical-align:top;
background-color: #34495e;
color: #D0D0D0;
padding: 15px;
overflow-x: hidden;
overflow-y: auto;
}
nav ul{
list-style-type: none;
padding: 0;
}
section{
display: inline-block;
height: calc(100% - 150px);
width: calc(100% - 200px);
vertical-align:top;
background-color: #2c3e50;
vertical-align:middle;
color: #D0D0D0;
padding: 15px;
overflow: auto;
}
footer{
background-color: #16a085;
text-align : center;
height: 50px;
line-height: 50px;
color: #ecf0f1;
}
nav .logo img{
width: 50%;
height: auto;
}
#yellow:hover{
fill: #f6b93b;
}
#blue:hover{
fill: #1e3799;
}
#red:hover{
fill: #eb2f06;
}
nav li{
transition: 0.3s;
line-height: 1.5em;
margin: 10px;
}
nav li:hover{
background-color: rgba(255, 255, 255, 0.3);
}
.logo{
text-align: center;
}
section rect, section circle{
transition: 0.3s;
fill: #D0D0D0;
}
a{
color: #C0C0C0;
}
table{
border-collapse: separate;
border-spacing: 0;
}
iframe{
width: 100%;
height: 100%;
border: none;
background: rgba(255, 255, 255, 0.5);
}
section p, section ul, section ol{
margin-top: 10px;
margin-bottom: 10px;
}
section li{
margin-top: 5px;
margin-bottom: 5px;
}
section h1, section h2{
margin-top: 30px;
margin-bottom: 15px;
}
@media all and (min-width: 1100px){
td, th{
border: solid #C0C0C0 1px;
border-bottom: none;
border-right: none;
padding: 10px;
transition: 0.3s;
}
table tr:last-child td, table tr:last-child th{
border-bottom: solid #C0C0C0 1px;
}
table td:last-child, table th:last-child{
border-right: solid #C0C0C0 1px;
}
table tr:first-child td:first-child, table tr:first-child th:first-child{
border-radius: 15px 0 0 0;
}
table tr:first-child td:last-child, table tr:first-child th:last-child{
border-radius: 0 15px 0 0;
}
table tr:last-child td:last-child, table tr:last-child th:last-child{
border-radius: 0 0 15px 0;
}
table tr:last-child td:first-child, table tr:last-child th:first-child{
border-radius: 0 0 0 15px;
}
table tr:nth-child(2n) td, table tr:nth-child(2n) th{
background-color: rgba(255, 255, 255, 0.05);
}
tr:hover td, tr:hover th{
background-color: rgba(255, 255, 255, 0.2);
}
tr:hover td:hover, tr:hover th:hover{
background-color: rgba(255, 255, 255, 0.4);
}
section{
padding-left: 150px;
padding-right: 150px;
}
}
@media all and (max-width: 1100px){
*{
font-size: 40px;
}
header{
height: initial;
line-height: initial;
}
header h1{
font-size: 100px;
}
footer{
height: initial;
line-height: initial;
}
nav{
width: 100%;
height: initial;
text-align: center;
}
nav .logo{
display: none;
}
section{
width: 100%;
height: initial;
}
section *{
margin: 5px;
}
table{
width: 100%;
}
td{
border: dashed #C0C0C0 1px;
}
th{
border: solid #C0C0C0 1px;
}
td, th{
display: block;
border-bottom: none;
text-align: center;
padding: 10px;
}
tr:last-child td:last-child, tr:last-child th:last-child{
border-bottom: solid #C0C0C0 1px;
border-radius: 0 0 15px 15px;
}
tr:first-child td:first-child, tr:first-child th:first-child{
border-radius: 15px 15px 0 0;
}
}