Sass在Internet Explorer中无法正常工作

时间:2019-03-26 17:08:16

标签: sass

我正在使用引导程序,但是正在进行自定义。

这些自定义项是使用SASS(SCSS)创建的,并将引导程序和jquery导入到SASS和打字稿中。

除了在Internet Explorer上,我的所有版式都可以在所有浏览器上工作。某些部分未对齐,并且由于某些事件而自对齐。

FIREFOX-GOOGLE CHROME- SAFARI-ETC ... enter image description here enter image description here

INTERNET EXPLORER enter image description here enter image description here

代码

@mixin card-accordion-search-data {
    .accordion[data-component-name="card-accordion-search-data"] {
        .card {
            @extend %fixed-bottom;
            background-color: transparent !important;
            border: none !important;

            .card-header {
                @extend %center-item;
                @include padding-vertical(0, 0);
                @include padding-horizontal(0, 0);
                border: none !important;

                button {
                    @extend %border-custom-rounded;
                    @include padding-vertical(auto, 0);
                    background-color: getCustomColor('aliansce-gray');
                    color: getCustomColor('aliansce-green');
                    box-shadow: none !important;
                }
            }

            .card-body {
                @include padding-vertical(.5rem, .5rem);
                @include padding-horizontal(.5rem, .5rem);
                background-color: getCustomColor('aliansce-gray');

                .row[data-element-name="options-row"] {
                    button,
                    select {
                        background-color: transparent !important;
                        border: none !important;
                        box-shadow: none !important;
                        color: white;
                    }

                    button {
                        @include margin-horizontal(auto, .25rem);
                        @include padding-horizontal(auto, .5rem);
                        background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -7 12 20'%3E%3Cpath fill='white' d='M2 0L0 2h4zm0 5L0 3h4z'/%3E%3C/svg%3E");
                        background-repeat: no-repeat;
                        background-position: right;
                        font-size: 1rem;
                        text-align: left;

                        span[data-element-type="counter"] {
                            font-size: 1rem;
                            font-weight: 400 !important;
                            align-items: middle;
                            background-color: getCustomColor('aliansce-green');
                        }
                    }

                    select {
                        background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3E%3Cpath fill='white' d='M2 0L0 2h4zm0 5L0 3h4z'/%3E%3C/svg%3E");
                        background-position-y: .9rem;

                        &:disabled {
                            color: getCustomColor('disabled');
                            background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3E%3Cpath fill='gray' d='M2 0L0 2h4zm0 5L0 3h4z'/%3E%3C/svg%3E");
                            background-position-y: .9rem;
                        }

                        option { color: getCustomColor('aliansce-gray'); }
                    }

                    select.custom-select {
                        @extend %remove-bs-select-arrow;
                    }
                }
            }
        }
    }
}

0 个答案:

没有答案