2020-02-13 18:30:33 +01:00
|
|
|
@mixin page-home($profile, $posts) {
|
|
|
|
.home {
|
|
|
|
@if $profile {
|
|
|
|
.home-profile {
|
2020-04-15 09:46:50 +02:00
|
|
|
@include transform(translateY(if($posts, 0, 16vh)));
|
2020-03-16 18:03:08 +01:00
|
|
|
padding: if($posts, 2rem, 0) 0 .5rem;
|
2020-02-13 18:30:33 +01:00
|
|
|
text-align: center;
|
|
|
|
|
|
|
|
.home-avatar {
|
|
|
|
padding: 0.6rem;
|
|
|
|
|
|
|
|
img {
|
2020-04-15 09:46:50 +02:00
|
|
|
display: inline-block;
|
2020-02-13 18:30:33 +01:00
|
|
|
width: if($posts, 6rem, 8rem);
|
|
|
|
height: auto;
|
|
|
|
margin: 0 auto;
|
2020-04-15 09:46:50 +02:00
|
|
|
@include border-radius(100%);
|
|
|
|
@include box-shadow(0 0 0 .3618em rgba(0, 0, 0, .05));
|
|
|
|
@include transition(all 0.4s ease);
|
2019-08-11 19:36:19 +02:00
|
|
|
|
2020-02-13 18:30:33 +01:00
|
|
|
&:hover {
|
|
|
|
position: relative;
|
2020-04-15 09:46:50 +02:00
|
|
|
@include transform(translateY(-.75rem));
|
2020-02-13 18:30:33 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-08-11 19:36:19 +02:00
|
|
|
|
2020-05-04 10:43:47 +02:00
|
|
|
.home-title {
|
|
|
|
font-size: 1.2rem;
|
|
|
|
font-weight: bold;
|
|
|
|
margin: 0;
|
|
|
|
padding: .4rem;
|
|
|
|
}
|
|
|
|
|
2020-03-16 18:03:08 +01:00
|
|
|
.home-subtitle {
|
2020-02-13 18:30:33 +01:00
|
|
|
font-size: 1rem;
|
|
|
|
font-weight: normal;
|
|
|
|
margin: 0;
|
|
|
|
padding: .4rem;
|
|
|
|
}
|
|
|
|
|
2020-03-16 18:03:08 +01:00
|
|
|
.social-links {
|
2020-04-24 13:04:37 +02:00
|
|
|
padding: .4rem .2rem;
|
|
|
|
font-size: 1.6rem;
|
2020-03-15 11:05:17 +01:00
|
|
|
|
2020-04-24 13:04:37 +02:00
|
|
|
a * {
|
|
|
|
vertical-align: text-bottom;
|
2020-03-15 11:05:17 +01:00
|
|
|
}
|
2020-02-13 18:30:33 +01:00
|
|
|
|
|
|
|
img {
|
2020-03-15 11:05:17 +01:00
|
|
|
height: 1.4rem;
|
|
|
|
padding: 0 .25rem;
|
2020-02-13 18:30:33 +01:00
|
|
|
}
|
|
|
|
}
|
2020-03-16 18:03:08 +01:00
|
|
|
|
|
|
|
.home-disclaimer {
|
|
|
|
font-size: 1rem;
|
|
|
|
line-height: 1.4rem;
|
|
|
|
font-weight: normal;
|
|
|
|
margin: 0;
|
|
|
|
padding: .4rem;
|
|
|
|
color: $global-font-secondary-color;
|
|
|
|
|
2020-04-27 19:38:22 +02:00
|
|
|
[theme=dark] & {
|
2020-03-16 18:03:08 +01:00
|
|
|
color: $global-font-secondary-color-dark;
|
|
|
|
}
|
|
|
|
}
|
2020-02-13 18:30:33 +01:00
|
|
|
}
|
2020-02-03 04:46:30 +01:00
|
|
|
}
|
|
|
|
|
2020-02-13 18:30:33 +01:00
|
|
|
@if $posts {
|
|
|
|
@include summary;
|
2019-08-24 13:32:41 +02:00
|
|
|
}
|
2019-08-11 19:36:19 +02:00
|
|
|
}
|
2020-02-03 04:46:30 +01:00
|
|
|
}
|
2020-02-13 18:30:33 +01:00
|
|
|
|
|
|
|
@include page-home($home-profile, $home-posts);
|