hugo-theme-zzo/assets/sass/pages/_talk.scss

91 lines
1.7 KiB
SCSS

.talk {
&__date {
border-radius: 0.25rem;
min-width: 100px;
max-width: 100px;
font-size: 16px;
height: 26px;
line-height: 26px;
text-align: center;
position: relative;
&[data-ani="true"] {
@include animation('slide-in-left .2s .5s 1 ease both');
}
@include truncate(100px);
@include themify($themes) {
color: themed('archive-meta-color');
background-color: themed('archive-type-background-color');
}
&[data-dir="rtl"] {
margin-left: 1rem;
}
&[data-dir="ltr"] {
margin-right: 1rem;
}
}
&__icons {
padding: 0 0.5rem;
margin: auto 0;
@include flexbox();
svg {
display: block;
margin: auto;
}
}
&__icon {
margin: auto 0.25rem;
@include themify($themes) {
color: themed('social-icon-color');
}
}
&__title {
margin-right: 0.5rem;
margin-left: 0.75rem;
&[data-title-wrap^="no"] {
@include truncate($grid-max-width);
}
@media only screen and (max-width: 600px) {
margin-top: 1rem;
margin-bottom: 0.5rem;
}
&[data-dir="ltr"] {
@include on-event {
&::before {
content: '';
position: absolute;
left: 3rem;
width: 0.25rem;
height: 30px;
@include themify($themes) {
background-color: themed('archive-hover-line-color');
@media only screen and (max-width:768px) {
top: 13px;
left: 0;
height: 24px;
}
}
@media only screen and (max-width: 769px) {
height: 24px;
top: 50%;
@include translateY(-50%);
}
}
}
}
}
}