personal-website/static/style/main.css

178 lines
2.6 KiB
CSS
Raw Normal View History

2021-11-28 12:48:45 +00:00
2023-01-10 14:54:53 +00:00
/********************
2021-11-28 12:48:45 +00:00
* Generic elements *
2023-01-10 14:54:53 +00:00
++++++++++++++++++**/
2021-11-28 12:48:45 +00:00
*{
2023-01-10 14:54:53 +00:00
box-sizing: border-box;
2021-11-28 12:48:45 +00:00
}
body{
2023-01-10 14:54:53 +00:00
background-color: rgb(14,14,14);
background-image: url(../resources/background.png);
background-size: cover;
color: white;
margin: 40px 10%;
font-family: sans-serif;
2021-11-28 12:48:45 +00:00
}
h1{
2023-01-10 14:54:53 +00:00
font-size: 40px;
font-weight: bold;
2021-11-28 12:48:45 +00:00
margin-bottom: 5px;
}
h2{
2023-01-10 14:54:53 +00:00
text-align: center;
font-size: 20px;
font-weight: bold;
margin-bottom: 20px;
2021-11-28 12:48:45 +00:00
}
h3{
2023-01-10 14:54:53 +00:00
font-weight: bold;
margin-bottom: 5px;
2021-11-28 12:48:45 +00:00
}
a{
2023-01-10 14:54:53 +00:00
text-decoration: none;
color: darkgrey;
2021-11-28 12:48:45 +00:00
}
2023-01-10 14:54:53 +00:00
a:hover{
2021-11-28 12:48:45 +00:00
background-color: darkgrey;
2023-01-10 14:54:53 +00:00
color: black;
}
2021-11-28 12:48:45 +00:00
p{
2023-01-10 14:54:53 +00:00
margin-bottom: 10px;
}
b{
font-weight: bold;
2021-11-28 12:48:45 +00:00
}
2023-01-10 14:54:53 +00:00
/******************
2021-11-28 12:48:45 +00:00
* General layout *
2023-01-10 14:54:53 +00:00
+++++++++++++++++*/
main {
padding: 10px 0px;
}
2021-11-28 12:48:45 +00:00
.section{
2023-01-10 14:54:53 +00:00
border-radius: 5px;
background-color: rgba(5,5,5,0.6);
margin-bottom: 10px;
padding: 20px;
border: 1px solid rgba(255,255,255,0.25);
2021-11-28 12:48:45 +00:00
}
2023-01-10 14:54:53 +00:00
.section header{
text-align: center;
font-size: 20px;
font-weight: bold;
margin-bottom: 20px;
padding-bottom: 10px;
border-bottom: 1px solid rgba(255,255,255,0.25);
}
.section p:last-of-type {
margin-bottom: 0px;
}
2021-11-28 12:48:45 +00:00
.row:after {
content: "";
display: table;
clear: both;
}
.column{
2023-01-10 14:54:53 +00:00
float: left;
2021-11-28 12:48:45 +00:00
}
2023-01-10 14:54:53 +00:00
.column.middle{
width: 75%;
2021-11-28 12:48:45 +00:00
min-height: 400px;
2023-01-10 14:54:53 +00:00
}
.column.right{
width: calc(25% - 20px);
margin-left: 20px;
}
2021-11-28 12:48:45 +00:00
.column.right li::before{
content: "· ";
}
2023-01-10 14:54:53 +00:00
@media screen and (max-width: 1070px){
.column.middle{
2021-11-28 12:48:45 +00:00
width: 100%;
2023-01-10 14:54:53 +00:00
margin-left: 0px;
}
2021-11-28 12:48:45 +00:00
.column.right {
width: calc(50% - 5px);
margin-left: 0px;
margin-right: 10px;
}
.column.right:last-of-type{
margin-right: 0px;
}
2023-01-10 14:54:53 +00:00
}
2021-11-28 12:48:45 +00:00
#footer{
2023-01-10 14:54:53 +00:00
padding: 20px;
2021-11-28 12:48:45 +00:00
}
2023-01-10 14:54:53 +00:00
/***************
* Page header *
***************/
2021-11-28 12:48:45 +00:00
#title{
2023-01-10 14:54:53 +00:00
margin-bottom: 10px;
2021-11-28 12:48:45 +00:00
}
2023-01-10 14:54:53 +00:00
#title img {
display: none;
float: left;
2021-11-28 12:48:45 +00:00
/* overlap border */
transform: translateY(1px);
2023-01-10 14:54:53 +00:00
}
2021-11-28 12:48:45 +00:00
#title:after {
content: "";
display: table;
clear:both;
}
#title div {
padding-top: 20px;
}
2023-01-10 14:54:53 +00:00
@media screen and (min-width: 800px){
#title{
margin-bottom:0;
}
#title img{
display: block;
}
}
#navbar, #fediring{
padding:0;
overflow: hidden;
padding: 10px 15px;
}
#navbar li { float: left; }
2021-11-28 12:48:45 +00:00
#lang-select { float: right; }
2023-01-10 14:54:53 +00:00
#navbar a, #fediring a{
/*display: block;*/
color: white;
text-align: center;
padding: 12px 15px;
}
#navbar a:hover, #fediring a:hover, #navbar a.activated{
background: rgba(255,255,255,1);
2021-11-28 12:48:45 +00:00
color: black
2023-01-10 14:54:53 +00:00
}
2022-01-26 23:55:20 +00:00
#fediring{
text-align: center;
}
#fediring li{
display: inline-block;
}