All files / src/components/u-tablets.vue tablet.vue

70% Statements 7/10
33.33% Branches 2/6
50% Functions 1/2
77.77% Lines 7/9

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50      7x     7x                                     7x 7x 7x 7x           7x                              
<script>
import { UListViewItem } from '../u-list-view.vue';
 
export default {
    name: 'u-tablet',
    parentName: 'u-tablets',
    extends: UListViewItem,
};
</script>
 
<style module>
.root {
    cursor: var(--cursor-pointer);
    display: inline-block;
    margin-right: 15px;
    padding: 0 15px;
    height: 32px;
    line-height: 30px;
    color: var(--color-light);
    background: #f7f8fa;
    border: 1px solid #d7dae0;
    border-radius: var(--border-radius-base);
}
 
.root:hover {
    box-shadow: 0 0 10px 0 rgba(80, 90, 109, 0.16);
}
 
.root[selected] {
    position: relative;
    background-color: #f7fcfe;
    color: var(--color-base);
    border-color: var(--brand-primary);
    box-shadow: inset 0 0 0 1px var(--brand-primary);
}
 
.root[disabled] {
    cursor: var(--cursor-not-allowed);
    color: #d6d6d6;
    border-color: var(--field-border-color);
    box-shadow: none;
}
 
.root[selected][disabled] {
    background: var(--gray-light);
    border-color: var(--brand-primary);
    box-shadow: inset 0 0 0 1px var(--brand-primary);
}
</style>