<template>
    <div class="m-2 p-2 bg-white">
        <h1>testeur CSS</h1>
        <h2>testeur CSS</h2>
        <h3>testeur CSS</h3>
        <h4>testeur CSS</h4>
        <h5>testeur CSS</h5>
        <h6>testeur CSS</h6>
        <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum</p>
        <p>Lorem ipsum dolor sit amet, <strong>consectetur adipiscing elit</strong>, sed do <italic>eiusmod tempor incididunt</italic> ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum</p>
        <div class="py-4">
            <a href="#" class="btn">Boutton</a>
            <a href="#" class="btn-primary">Boutton primary</a>
            <a href="#" class="btn-secondary">Boutton secondary</a>
            <a href="#" class="btn-alert">Boutton alert</a>
            <a href="#" class="btn-success">Button success</a>
        </div>
        <div class="py-4">
            <a href="#" class="btn"><svg-vue icon="arrow" />Boutton</a>
            <a href="#" class="btn-primary"><svg-vue icon="interrogation" />Boutton primary</a>
            <a href="#" class="btn-secondary"><svg-vue icon="params" />Boutton secondary</a>
            <a href="#" class="btn-alert"><svg-vue icon="close" />Boutton alert</a>
            <a href="#" class="btn-success"><svg-vue icon="games" />Button success</a>
        </div>
        <div class="py-4">
            <a href="#" class="btn svg"><svg-vue icon="close" /></a>
            <a href="#" class="btn-primary svg"><svg-vue icon="close"  /></a>
            <a href="#" class="btn-secondary svg rounded-full"><svg-vue icon="close" /></a>
            <a href="#" class="btn-alert svg"><svg-vue icon="close" /></a>
            <a href="#" class="btn-success svg"><svg-vue icon="close" /></a>
        </div>
        <form>
            <label class="mb-1">Test label</label>
            <input type="text" placeholder="Test placeholder" class="mb-1">
            <input type="number" class="mb-1">
            <div>
                <input type="checkbox" class="mb-1">
                <label>Check me !</label>
            </div>
            <div>
                <label class="custom-label flex">
                    <div class="bg-white shadow w-6 h-6 p-1 flex justify-center items-center mr-2">
                        <input type="checkbox" class="hidden" checked>
                        <div class="hidden check rounded-sm w-4 h-4 bg-gray-700 pointer-events-none"></div>
                    </div>
                    <span class="select-none"> This is a sample checkbox. All the text will toggle the state</span>
                </label>
            </div>
            <div>
                <label class="custom-label flex">
                    <div class="bg-white shadow w-6 h-6 p-1 flex justify-center items-center mr-2">
                        <input type="checkbox" class="hidden" checked>
                        <svg class="hidden w-4 h-4 text-green-600 pointer-events-none" viewBox="0 0 172 172"><g fill="none" stroke-width="none" stroke-miterlimit="10" font-family="none" font-weight="none" font-size="none" text-anchor="none" style="mix-blend-mode:normal"><path d="M0 172V0h172v172z"/><path d="M145.433 37.933L64.5 118.8658 33.7337 88.0996l-10.134 10.1341L64.5 139.1341l91.067-91.067z" fill="currentColor" stroke-width="1"/></g></svg>
                    </div>
                    <span class="select-none"> This is a sample checkbox. All the text will toggle the state</span>
                </label>
            </div>
            <select class="mb-1">
                <option>test 1</option>
                <option>test 2</option>
                <option>test 3</option>
            </select>
            <textarea cols="30" rows="10" class="mb-1">Texte exemple</textarea>
            <input type="submit" class="mb-1">
        </form>
    </div>
</template>

<script>
export default {
    name: 'CssTesteur'
}
</script>

<style>
    .custom-label input:checked + .check {
        display: block !important;
    }

    .custom-label input:checked + svg {
        display: block !important;
    }
</style>
