tobast.fr-hugo/scss/style.scss

257 lines
3.7 KiB
SCSS
Raw Permalink Normal View History

2019-10-08 20:53:12 +02:00
// vim: tabstop=2 shiftwidth=2 expandtab
@import url('fonts.css');
@import 'params';
html {
background-color: $bg_color;
}
body {
font-family:Open Sans,Arial;
color:#555;
font-size:16px;
line-height:1.4;
text-align:justify;
margin: 0;
padding: 0;
}
#head {
background-color: $head_bg_color;
display: flex;
justify-content: space-between;
align-items: center;
margin: 0;
padding: 30px 60px;
color: $bg_color;
@media (max-width: $resp_vsmall) {
padding: 20px;
}
2019-10-08 20:53:12 +02:00
.title {
font-size: 1.4em;
font-weight: bold;
}
.whoami {
font-weight: bold;
padding-left: 20px;
@media (max-width: $resp_vsmall) {
font-size: 0.8em;
}
2019-10-08 20:53:12 +02:00
}
a, a:visited {
color: $bg_color;
}
}
#main-container {
display: flex;
justify-content: space-between;
2019-10-10 17:36:33 +02:00
@media (max-width: $resp_vsmall) {
flex-wrap: wrap;
}
2019-10-08 20:53:12 +02:00
.tab-selector {
margin: 40px;
ul {
list-style: none;
min-width: 200px;
padding: 0;
li {
a {
display: block;
font-size: 1.2em;
padding: 10px 20px;
background-color: $head_bg_color;
margin: 2px 0;
2019-10-10 17:36:33 +02:00
border-top-left-radius: 10px;
border-bottom-left-radius: 10px;
transition: margin 0.1s ease-in-out;
2019-10-08 20:53:12 +02:00
&:hover {
margin-left: 10px;
}
color: $bg_color;
}
2019-10-10 19:30:34 +02:00
&.active {
margin-left: 20px;
}
2019-10-08 20:53:12 +02:00
}
}
}
#content {
margin:2em auto;
max-width:800px;
padding:1em;
2019-10-10 17:36:33 +02:00
flex-basis: 800px;
2019-10-08 20:53:12 +02:00
}
.profilepic {
2019-10-10 17:36:33 +02:00
flex: 0 0 auto;
2019-10-08 20:53:12 +02:00
margin: 40px;
2021-11-22 17:29:05 +01:00
width: $profile_pic_wid;
2019-10-10 17:36:33 +02:00
height: auto;
@media (max-width: $resp_small) {
2021-11-22 17:29:05 +01:00
width: $profile_pic_wid_small;
2019-10-10 17:36:33 +02:00
}
@media (max-width: $resp_vsmall) {
flex-shrink: 2;
2021-11-22 17:29:05 +01:00
width: $profile_pic_wid_vsmall;
2019-10-10 17:36:33 +02:00
order: -1;
}
img {
margin: auto;
max-height: 100%;
max-width: 100%;
2019-10-10 19:30:34 +02:00
border-radius: 20px;
2019-10-10 17:36:33 +02:00
@media (max-width: $resp_vsmall) {
border-radius: 50%;
}
}
2019-10-08 20:53:12 +02:00
}
}
.items {
display: grid;
grid-template-columns: 100px auto;
.head {
grid-column: 1/span 1;
font-weight: bold;
}
}
a, a:visited {
color: $link_color;
text-decoration:none;
}
.fa {
color:#555
}
h1 {
margin-left:-10px;
}
h2 {
2019-10-10 17:36:33 +02:00
margin-top: 30px;
2019-10-08 20:53:12 +02:00
margin-left:20px;
2019-10-10 17:36:33 +02:00
.fa {
margin-right: 10px;
}
2019-10-08 20:53:12 +02:00
}
#whoami {
text-align: right;
font-size: 1.2em;
font-style: italic;
}
2019-10-10 17:36:33 +02:00
ul.docsline {
list-style: none;
text-align: center;
margin-top: 30px;
font-size: 1.1em;
li {
display: inline-block;
a {
display: inline-block;
padding: 0 15px;
}
}
}
dl {
list-style: none;
display: grid;
grid-template-columns: 1fr 3fr;
dt {
grid-column: 1 / span 1;
justify-self: end;
text-align: right;
margin-right: 20px;
font-weight: bold;
}
dd {
margin-left: 20px;
justify-self: start;
text-align: left;
}
}
.antispam {
unicode-bidi: bidi-override;
direction: rtl;
}
2019-10-10 19:30:34 +02:00
2020-06-19 16:55:43 +02:00
ul.publications, ul.talks, ul.unpublished {
2019-10-10 19:30:34 +02:00
li {
.authors {
font-style: italic;
2020-06-19 16:55:43 +02:00
.author:after {
content: ', ';
}
.author:last-child:after {
content: '';
}
2019-10-10 19:30:34 +02:00
}
.title {
font-weight: bold;
}
.journal, .venue {
}
.date {
}
}
}
2021-11-22 17:29:05 +01:00
ul.teaching-courses {
li {
list-style: circle;
}
}
.course-name {
.course-title {
font-weight: bold;
}
.course-longtitle:before {
content: ''
}
.course-role {
font-style: italic;
color: $fg_color_light;
}
2021-11-22 17:29:05 +01:00
}
.course-titleblock {
h2 {
margin-bottom: 10px;
}
.course-institute {
text-align: right;
font-size: 1.1em;
font-style: italic;
}
margin-bottom: 20px;
}