/*
 * Copyright (c) Baidu, Inc. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

@import 'variable.less';
@import (reference) 'tokens.less';

.@{prefix}-author-card {
    .cos-flex();
    .cos-items-center();
    margin-top: -2.5px;
    margin-bottom: -2.5px;
    text-decoration: none;
    &:hover {
        text-decoration: none;
    }

    .cos-avatar {
        position: relative;
        .cos-shrink-0();
        .cos-space-mr-xs();
        .cos-avatar-img {
            object-fit: cover;
            border: none;
        }
        &::after {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            content: '';
            .cos-rounded-full();
            box-shadow: inset 0 0 0 1px rgba(183,185,193,.2);
        }
    }

    &-content {
        min-width: 0;
    }

    &-name {
        overflow: hidden;
        height: var(--cos-space-xxl);
        .cos-flex();
        .cos-items-center();

        &-text {
            .cos-line-clamp-1();
            .cos-text-body();
            .cos-font-medium();
            .cos-color-text();
            .cos-inline-block();
            vertical-align: middle;
            max-width: 100%;
        }
    }

    &-tag {
        .cos-color-bg-primary-light();
        .cos-color-text-on-primary-light();
        .cos-space-ml-xxs();
        margin-top: -1px;
    }
    &-abstract {
        .cos-line-clamp-1();
        .cos-text-body();
        .cos-color-text-minor();
    }
}


