<commit_before>@import "../../common/assets/scss/core/base";

$date-prefix-cls: #{$jigsaw-prefix}-date-picker;

.#{$date-prefix-cls} {
    @include inline-block();
    width: 210px;
    height: 100%;
    border-radius: $border-radius-sm;
    background: $bg-component;
    border-width: 1px;
    border-style: solid;
    border-color: $border-color-default;
    border-radius: $border-radius-base;
    overflow: hidden;
    user-select: none;

    &-header {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 100%;
        min-height: $height-huge;
        background: $bg-container;
    }

    &-gr-switch {
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
        width: 100%;
        padding: 8px 8px 0;

        & > span {
            display: inline-block;
            flex: 1;
            height: 24px;
            line-height: 22px;
            background: $bg-component;
            border: 1px solid $border-color-default;
            cursor: pointer;

            &:first-child {
                border-top-left-radius: $border-radius-base;
                border-bottom-left-radius: $border-radius-base;
            }

            &:last-child {
                border-top-right-radius: $border-radius-base;
                border-bottom-right-radius: $border-radius-base;
             }

            &.active {
                background-color: $brand-light;
                color: $brand-default;
                border-color: $brand-default;
            }
        }
    }

    &-control {
        position: relative;
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        height: $height-huge;
        line-height: $height-huge;
        font-size: $font-size-base;

        .#{$date-prefix-cls}-control-bar {
            display: inline-flex;
            align-items: center;
            width: 56px;
            font-size: 20px;
            color: $text-color-secondary;
            cursor: pointer;

            &.jigsaw-date-picker-previous-bar {
                justify-content: flex-start;
                padding-left: 16px;
            }

            &.jigsaw-date-picker-next-bar {
                justify-content: flex-end;
                padding-right: 16px;
            }

            i:hover {
                color: $primary-5;
            }
        }

        &-month,
        &-year {
            cursor: pointer;

            &:hover {
                color: $primary-5;
            }
        }

        &-month {
            margin-right: 6px;
        }
    }

    &-content {
        text-align: center;

        &-day {
            width: 100%;

            thead,
            tbody {
                display: block;
                width: 100%;
            }

            thead tr,
            tbody tr {
                display: inline-block;
                width: 100%;
            }

            th,
            td {
                width: 14.28571%;
                height: 100%;
                display: block;
                float: left;
            }

            thead {
                padding: 0 8px;
                height: $height-med;
                line-height: $height-med;
                background: $bg-container;
                vertical-align: initial;

                th {
                    text-align: center;
                    font-weight: normal;
                    color: $font-color-heading;
                }
            }

            tbody {
                height: 100%;
                padding: 8px 8px;

                tr {
                    height: $height-med;
                    line-height: $height-med;
                }
            }
        }

        &-day-cell {
            display: flex;
            justify-content: center;
            align-items: center;
            position: relative;
            box-sizing: border-box;

            span {
                display: inline-flex;
                justify-content: center;
                align-items: center;
                position: relative;
                width: 24px;
                height: 24px;
                border-radius: $border-radius-sm;
                font-size: $font-size-base;
                color: $font-color-default;
                box-sizing: border-box;
                cursor: pointer;
            }

            & span:hover {
                background: $brand-light;
            }

            &-today span:before {
                content: "";
                position: absolute;
                top: -2px;
                left: -2px;
                width: 28px;
                height: 28px;
                border-width: 1px;
                border-style: solid;
                border-color: $brand-default;
                border-radius: $border-radius-sm;
            }
<commit_msg>[修复] range-time当前日期的右侧日期框可正常显示<commit_after>@import "../../common/assets/scss/core/base";

$date-prefix-cls: #{$jigsaw-prefix}-date-picker;

.#{$date-prefix-cls} {
    @include inline-block();
    width: 210px;
    height: 100%;
    border-radius: $border-radius-sm;
    background: $bg-component;
    border-width: 1px;
    border-style: solid;
    border-color: $border-color-default;
    border-radius: $border-radius-base;
    overflow: hidden;
    user-select: none;

    &-header {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 100%;
        min-height: $height-huge;
        background: $bg-container;
    }

    &-gr-switch {
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
        width: 100%;
        padding: 8px 8px 0;

        & > span {
            display: inline-block;
            flex: 1;
            height: 24px;
            line-height: 22px;
            background: $bg-component;
            border: 1px solid $border-color-default;
            cursor: pointer;

            &:first-child {
                border-top-left-radius: $border-radius-base;
                border-bottom-left-radius: $border-radius-base;
            }

            &:last-child {
                border-top-right-radius: $border-radius-base;
                border-bottom-right-radius: $border-radius-base;
             }

            &.active {
                background-color: $brand-light;
                color: $brand-default;
                border-color: $brand-default;
            }
        }
    }

    &-control {
        position: relative;
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        height: $height-huge;
        line-height: $height-huge;
        font-size: $font-size-base;

        .#{$date-prefix-cls}-control-bar {
            display: inline-flex;
            align-items: center;
            width: 56px;
            font-size: 20px;
            color: $text-color-secondary;
            cursor: pointer;

            &.jigsaw-date-picker-previous-bar {
                justify-content: flex-start;
                padding-left: 16px;
            }

            &.jigsaw-date-picker-next-bar {
                justify-content: flex-end;
                padding-right: 16px;
            }

            i:hover {
                color: $primary-5;
            }
        }

        &-month,
        &-year {
            cursor: pointer;

            &:hover {
                color: $primary-5;
            }
        }

        &-month {
            margin-right: 6px;
        }
    }

    &-content {
        text-align: center;

        &-day {
            width: 100%;

            thead,
            tbody {
                display: block;
                width: 100%;
            }

            thead tr,
            tbody tr {
                display: inline-block;
                width: 100%;
            }

            th,
            td {
                width: 14.28571%;
                height: 100%;
                display: block;
                float: left;
            }

            thead {
                padding: 0 8px;
                height: $height-med;
                line-height: $height-med;
                background: $bg-container;
                vertical-align: initial;

                th {
                    text-align: center;
                    font-weight: normal;
                    color: $font-color-heading;
                }
            }

            tbody {
                height: 100%;
                padding: 8px 8px;

                tr {
                    height: $height-med;
                    line-height: $height-med;
                }
            }
        }

        &-day-cell {
            position: relative;
            display: flex;
            justify-content: center;
            align-items: center;

            span {
                display: inline-flex;
                justify-content: center;
                align-items: center;
                position: relative;
                width: 24px;
                height: 24px;
                border-radius: $border-radius-sm;
                font-size: $font-size-base;
                color: $font-color-default;
                box-sizing: border-box;
                cursor: pointer;
            }

            & span:hover {
                background: $brand-light;
            }

            &-today span:before {
                content: "";
                position: absolute;
                top: -2px;
                left: -2px;
                width: 28px;
                height: 28px;
                border-width: 1px;
                border-style: solid;
                border-color: $brand-default;
                border-radius: $border-radius-sm;
                box-sizing: border-box;
                z-index: $zindex-popover-level-1;
            }

{'fraction_non_alphanumeric': 0.10773067331670823, 'fraction_numerical': 0.014663341645885286, 'mean_word_length': 1.0168980084490042, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3518380', 'n_tokens_mistral': 2943, 'n_tokens_neox': 2619, 'n_words': 527}