<div class="acl-attribute-segments__dropdown-container">
    <label class="acl-attribute-segments__dropdown-label" for="example-dropdown">Choose an Item</label>

    <div class="acl-attribute-segments__content">
        <select class="acl-attribute-segments__dropdown-items" id="example-dropdown">
            <option class="acl-attribute-segments__dropdown-item" value="high">High</option>
            <option class="acl-attribute-segments__dropdown-item" value="medium">Medium</option>
            <option class="acl-attribute-segments__dropdown-item" value="low">Low</option>
            <option class="acl-attribute-segments__dropdown-item" value="missing">Missing</option>
        </select>

        <div class="acl-attribute-segments__close-btn">
            <i class="aforza-icons">acl_close_small</i>
        </div>
    </div>
</div>

<h3 class="acl-typography--subtitle1">Selected State</h3>

<div class="acl-attribute-segments__dropdown-container acl-attribute-segments__dropdown-container--selected">
    <label class="acl-attribute-segments__dropdown-label" for="example-dropdown">Choose an Item</label>

    <div class="acl-attribute-segments__content">
        <select class="acl-attribute-segments__dropdown-items" id="example-dropdown">
            <option class="acl-attribute-segments__dropdown-item" value="high">High</option>
            <option class="acl-attribute-segments__dropdown-item" value="medium">Medium</option>
            <option class="acl-attribute-segments__dropdown-item" value="low">Low</option>
            <option class="acl-attribute-segments__dropdown-item" value="missing">Missing</option>
        </select>

        <div class="acl-attribute-segments__close-btn">
            <i class="aforza-icons">acl_close_small</i>
        </div>
    </div>
</div>
<div class="acl-attribute-segments__dropdown-container">
    <label class="acl-attribute-segments__dropdown-label" for="example-dropdown">Choose an Item</label>

    <div class="acl-attribute-segments__content">
        <select class="acl-attribute-segments__dropdown-items" id="example-dropdown">
            <option class="acl-attribute-segments__dropdown-item" value="high">High</option>
            <option class="acl-attribute-segments__dropdown-item" value="medium">Medium</option>
            <option class="acl-attribute-segments__dropdown-item" value="low">Low</option>
            <option class="acl-attribute-segments__dropdown-item" value="missing">Missing</option>
        </select>

        <div class="acl-attribute-segments__close-btn">
            <i class="aforza-icons">acl_close_small</i>
        </div>
    </div>
</div>


<h3 class="acl-typography--subtitle1">Selected State</h3>


<div class="acl-attribute-segments__dropdown-container acl-attribute-segments__dropdown-container--selected">
    <label class="acl-attribute-segments__dropdown-label" for="example-dropdown">Choose an Item</label>

    <div class="acl-attribute-segments__content">
        <select class="acl-attribute-segments__dropdown-items" id="example-dropdown">
            <option class="acl-attribute-segments__dropdown-item" value="high">High</option>
            <option class="acl-attribute-segments__dropdown-item" value="medium">Medium</option>
            <option class="acl-attribute-segments__dropdown-item" value="low">Low</option>
            <option class="acl-attribute-segments__dropdown-item" value="missing">Missing</option>
        </select>

        <div class="acl-attribute-segments__close-btn">
            <i class="aforza-icons">acl_close_small</i>
        </div>
    </div>
</div>
/* No context defined. */
  • Content:
    .acl-attribute-segments {
        &__dropdown-container,
        &__radio-container,
        &__slider-container,
        &__textbox-container,
        &__text-container {
            border: 1px solid #e8ebf8;
            border-radius: 6px;
            max-width: 400px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 8px 8px 8px 15px;
            color: rgba(0, 0, 0, 0.75);
            font-family: 'Open Sans';
            font-size: 12px;
            font-weight: 600;
            letter-spacing: 0;
            line-height: 17px;
            height: 36px;
    
            i {
                display: none;
            }
    
            &--fixed-height {
                height: 50px;
            }
    
            &--selected {
                border: 2px solid #1facec;
                background-color: #f8f8f8;
                padding: 8px 8px 8px 15px;
    
                i {
                    display: flex;
                    color: #b1b7cd;
                    margin: 0 0 0 10px;
                    cursor: pointer;
                }
            }
        }
    
        &__textbox-label,
        &__radio-label,
        &__slider-label,
        &__dropdown-label {
            text-overflow: ellipsis;
            white-space: nowrap;
            overflow: hidden;
        }
    
        &__dropdown-container {
            min-width: 285px;
        }
    
        &__radio-container {
            min-width: 400px;
        }
    
        &__textbox-container {
            min-width: 420px;
        }
    
        &__text-container {
            min-width: 40px;
        }
    
        &__slider-container {
            min-width: 300px;
        }
    
        &__close-btn {
            display: flex;
        }
    
        &__content {
            display: flex;
            align-items: center;
        }
    
        &__dropdown-items {
            box-sizing: border-box;
            height: 34px;
            width: 133px;
            border: 1px solid #e8ebf8;
            border-radius: 3px;
            background-color: #ffffff;
            box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.2);
            align-items: center;
        }
    
        &__textbox-input {
            height: 34px;
            width: 290px;
            box-sizing: border-box;
            border: 1px solid #e8ebf8;
            border-radius: 3px;
            box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.2);
        }
    
        &__radio-item {
            display: flex;
            margin: 8px 0;
        }
    
        &__radio-item-label {
            margin: 0 15px;
            line-height: 22px;
        }
    
        &__slider {
            -webkit-appearance: none;
            width: 100%;
            min-width: 230px;
            height: 8px;
            margin: 12px 0;
    
            outline: none;
            opacity: 0.7;
            -webkit-transition: 0.2s;
            transition: opacity 0.2s;
    
            border: 1px solid #e8ebf8;
            border-radius: 5px;
            box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.2);
    
            &:hover {
                opacity: 1;
            }
    
            &::-webkit-slider-thumb {
                -webkit-appearance: none;
                appearance: none;
                border-radius: 50%;
                cursor: pointer;
    
                height: 18px;
                width: 18px;
                background-color: #46ccc2;
                box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.3), inset 0 -1px 3px 0 rgba(44, 188, 178, 0.25),
                    0 2px 2px 0 rgba(0, 0, 0, 0.2);
            }
    
            &::-moz-range-thumb {
                cursor: pointer;
                height: 18px;
                width: 18px;
                background-color: #46ccc2;
                box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.3), inset 0 -1px 3px 0 rgba(44, 188, 178, 0.25),
                    0 2px 2px 0 rgba(0, 0, 0, 0.2);
            }
        }
    }
    
    .acl-attribute-segments__dropdown-container,
    .acl-attribute-segments__radio-container,
    .acl-attribute-segments__slider-container,
    .acl-attribute-segments__textbox-container,
    .acl-attribute-segments__text-container {
        box-sizing: content-box;
        margin-right: 20px;
        margin-bottom: 20px;
    }
    
    .acl-attribute-segments__dropdown-container:focus-within,
    .acl-attribute-segments__dropdown-container:hover,
    .acl-attribute-segments__radio-container:focus-within,
    .acl-attribute-segments__radio-container:hover,
    .acl-attribute-segments__slider-container:focus-within,
    .acl-attribute-segments__slider-container:hover,
    .acl-attribute-segments__textbox-container:focus-within,
    .acl-attribute-segments__textbox-container:hover,
    .acl-attribute-segments__text-container:focus-within,
    .acl-attribute-segments__text-container:hover {
        border: 2px solid #1facec;
        background-color: #f8f8f8;
        padding: 7px 7px 7px 14px;
    }
    
    .acl-attribute-segments__dropdown-container:focus-within i,
    .acl-attribute-segments__dropdown-container:hover i,
    .acl-attribute-segments__radio-container:focus-within i,
    .acl-attribute-segments__radio-container:hover i,
    .acl-attribute-segments__slider-container:focus-within i,
    .acl-attribute-segments__slider-container:hover i,
    .acl-attribute-segments__textbox-container:focus-within i,
    .acl-attribute-segments__textbox-container:hover i,
    .acl-attribute-segments__text-container:focus-within i,
    .acl-attribute-segments__text-container:hover i,
    .acl-attribute-segments__text-container i {
        display: flex;
        color: #b1b7cd;
        margin: 0 0 0 10px;
        cursor: pointer;
    }
    
    .acl-attribute-segments__textbox-input,
    .acl-attribute-segments__dropdown-items {
        padding: 5px;
    }
    
    .acl-attribute-segments__textbox-label,
    .acl-attribute-segments__radio-label,
    .acl-attribute-segments__slider-label,
    .acl-attribute-segments__dropdown-label {
        margin-right: 10px;
    }
    
  • URL: /components/raw/attribute-segments/acl-attribute-segments.scss
  • Filesystem Path: src/components/attribute-segments/acl-attribute-segments.scss
  • Size: 5.3 KB
  • Handle: @attribute-segments--dropdown
  • Preview:
  • Filesystem Path: src/components/attribute-segments/attribute-segments--dropdown.hbs

No notes defined.