tunuifranken.info/cv/css/styles.css

131 lines
2.2 KiB
CSS
Raw Normal View History

2020-11-27 16:27:20 +01:00
@font-face {
font-family: 'Montserrat';
src: url('fonts/Montserrat-Regular.otf') format('opentype');
font-style: normal;
font-weight: normal;
}
:root {
--header-bg-color: #2f675f;
--aside-bg-color: #e3e3e3;
2020-11-27 17:05:39 +01:00
--article-bg-color: #ffffff;
2020-11-27 16:27:20 +01:00
--dark-txt: #1a0700;
--light-txt: #d9d9d9;
--button: #efefef;
}
2020-12-22 17:59:06 +01:00
@page {
size: A4;
margin: 0cm;
}
2020-11-27 17:05:39 +01:00
* {
box-sizing: border-box;
}
2020-11-27 16:27:20 +01:00
body {
font-family: 'Montserrat', 'arial', 'sans-serif';
2020-12-22 17:59:06 +01:00
background-color: var(--dark-txt);
2020-11-27 16:27:20 +01:00
color: var(--dark-txt);
margin: 0;
font-size: 0.9em;
}
.a4-page {
width: 21cm;
height: 29.7cm;
2020-11-27 17:05:39 +01:00
border-bottom: solid 1px red;
2020-11-27 16:27:20 +01:00
display: flex;
flex-direction: column;
margin: 0 auto;
}
2020-12-27 14:58:26 +01:00
a:link, a:visited {
text-decoration: none;
color: var(--dark-txt);
}
a:hover {
color: var(--dark-txt);
text-decoration: underline;
}
2020-11-27 16:27:20 +01:00
header {
background-color: var(--header-bg-color);
color: var(--light-txt);
display: flex;
flex-direction: column;
padding-top: 30px;
padding-left: 30px;
padding-right: 30px;
2020-12-22 17:59:06 +01:00
padding-bottom: 30px;
2020-11-27 16:27:20 +01:00
}
header .img-and-title {
display: flex;
justify-content: space-between;
}
2020-12-22 17:59:06 +01:00
header .title {
padding-left: 30px;
width: 100%;
}
2020-11-27 16:27:20 +01:00
header h1 {
font-weight: bold;
text-align: center;
}
header h2 {
font-weight: normal;
text-align: center;
}
section {
display: flex;
2020-11-27 17:05:39 +01:00
height: 100%;
2020-11-27 16:27:20 +01:00
}
aside, article {
display: flex;
flex-direction: column;
padding-left: 30px;
padding-right: 15px;
}
aside {
background-color: var(--aside-bg-color);
2020-11-27 17:05:39 +01:00
width: 38.2%;
}
article {
background-color: var(--article-bg-color);
width: 61.8%;
2020-11-27 16:27:20 +01:00
}
aside h1, article h1 {
font-weight: bold;
font-size: 1.4em;
}
article h2 {
font-weight: bold;
font-size: 1.2em;
2020-12-22 17:59:06 +01:00
margin-top: 0;
margin-bottom: 8px;
}
article p {
margin-top: 3px;
margin-bottom: 3px;
2020-11-27 16:27:20 +01:00
}
2020-12-22 17:59:06 +01:00
.button {
display: flex;
flex-wrap: wrap;
2020-11-27 16:27:20 +01:00
}
2020-12-22 17:59:06 +01:00
.button p {
2020-11-27 16:27:20 +01:00
margin-top: 0;
margin-right: 10px;
margin-bottom: 10px;
padding: 5px;
border-radius: 7px;
text-align: center;
background-color: var(--button);
}
p.date {
font-style: italic;
}
2020-12-22 17:59:06 +01:00
.element {
margin-bottom: 30px;
2020-11-27 16:27:20 +01:00
}