sites/pc/entry/code/index.less
@import '../../../../packages/arcodesign/style/mixin.less';

.demo-code-container {
    position: relative;
    &:hover {
        .demo-code-operations {
            display: block;
        }
    }
    .demo-code-wrapper {
        padding-top: 48px;
        &.no-padding-top {
            padding-top: 24px;
        }
    }
    .demo-code-operations {
        position: absolute;
        bottom: 16px;
        right: 16px;
        transition: opacity 0.2s;
        display: block;

        &-btn:not(.arco-btn-disabled) {
            .use-var(background-color, container-background-color);
            border: 1px solid;
            .use-var(border-color, line-color);
        }

        &-btn {
            margin-left: 8px;
        }

        &-ide-form {
            display: none;
        }

    }
    .demo-code-desc-content {
        margin-bottom: 10px;
        line-height: 1.5;
        .use-var(color, sub-font-color);
    }
    &.show-all {
        .demo-code-wrapper {
            .demo-code-content {
                max-height: none !important;
                overflow: auto !important;
            }
        }
        .demo-code-operations {
            .demo-code-operations-spread svg {
                transform: rotate(180deg);
            }
        }
    }
}
