LoveIt/assets/css/_page/_home.scss

89 lines
2.2 KiB
SCSS
Raw Normal View History

2019-08-11 19:36:19 +02:00
/** Home **/
2020-02-13 18:30:33 +01:00
@import "../_partial/_home/summary";
2019-08-11 19:36:19 +02:00
2020-02-13 18:30:33 +01:00
@mixin page-home($profile, $posts) {
.home {
@if $profile {
.home-profile {
-webkit-transform: translateY(if($posts, 0, 16vh));
-moz-transform: translateY(if($posts, 0, 16vh));
-ms-transform: translateY(if($posts, 0, 16vh));
-o-transform: translateY(if($posts, 0, 16vh));
2020-02-13 18:30:33 +01:00
transform: translateY(if($posts, 0, 16vh));
padding: if($posts, 2rem, 0) 0 .5rem;
2020-02-13 18:30:33 +01:00
text-align: center;
.home-avatar {
padding: 0.6rem;
img {
width: if($posts, 6rem, 8rem);
height: auto;
display: inline-block;
-webkit-border-radius: 100%;
border-radius: 100%;
-webkit-box-shadow: 0 0 0 0.3618em rgba(0, 0, 0, 0.05);
box-shadow: 0 0 0 0.3618em rgba(0, 0, 0, 0.05);
margin: 0 auto;
-webkit-transition: all ease 0.4s;
-moz-transition: all ease 0.4s;
-o-transition: all ease 0.4s;
transition: all ease 0.4s;
cursor: pointer;
2019-08-11 19:36:19 +02:00
2020-02-13 18:30:33 +01:00
&:hover {
position: relative;
-webkit-transform: translateY(-0.75rem);
-moz-transform: translateY(-0.75rem);
-ms-transform: translateY(-0.75rem);
-o-transform: translateY(-0.75rem);
transform: translateY(-0.75rem);
cursor: pointer;
}
}
}
2019-08-11 19:36:19 +02:00
.home-subtitle {
2020-02-13 18:30:33 +01:00
font-size: 1rem;
font-weight: normal;
margin: 0;
padding: .4rem;
}
.social-links {
padding: .4rem 0;
a, i {
font-size: 1.6rem;
line-height: 2rem;
}
2020-02-13 18:30:33 +01:00
img {
height: 1.4rem;
padding: 0 .25rem;
2020-02-13 18:30:33 +01:00
}
}
.home-disclaimer {
font-size: 1rem;
line-height: 1.4rem;
font-weight: normal;
margin: 0;
padding: .4rem;
color: $global-font-secondary-color;
.dark-theme & {
color: $global-font-secondary-color-dark;
}
}
2020-02-13 18:30:33 +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-13 18:30:33 +01:00
@include page-home($home-profile, $home-posts);