Search
 
SCRIPT & CODE EXAMPLE
 

CSS

tailwind css checked

const plugin = require('tailwindcss/plugin');

module.exports = {
    purge: [],
    darkMode: false, // or 'media' or 'class'
    theme: {},
    variants: {
        extend: {
            backgroundColor: ['label-checked'], // you need add new variant to a property you want to extend
        },
    },
    plugins: [
        plugin(({ addVariant, e }) => {
            addVariant('label-checked', ({ modifySelectors, separator }) => {
                modifySelectors(
                    ({ className }) => {
                        const eClassName = e(`label-checked${separator}${className}`); // escape class
                        const yourSelector = 'input[type="radio"]'; // your input selector. Could be any
                        return `${yourSelector}:checked ~ .${eClassName}`; // ~ - CSS selector for siblings
                    }
                )
            })
        }),
    ],
};
Comment

PREVIOUS NEXT
Code Example
Css :: tf.reduce_mean(y_true,y_predicted) 
Css :: if else in golang 
Css :: textxarea noresize 
Css :: multiple nth child css 
Css :: font sizze xss 
Css :: if css 
Css :: allvarliga symtom på järnbrist 
Css :: linux remove latst 3 files 
Css :: css grid media queries 
Css :: cop pics css 
Css :: bootsrap view only landscape 
Css :: how to fix the html on tablet movement 
Css :: Use pkg_* Tools To Manage Packages 
Css :: how to install gotham rounded as a font in visual studio code for my css file 
Css :: what is integrity cdn 
Css :: clara tyner 
Css :: scale css 
Css :: groupby 
Css :: tailwind css border radius 
Css :: practice html and css 
Css :: github pages not loading css 
Typescript :: how to remove list dots in li bootstrap 
Typescript :: ts get year from date 
Typescript :: check if url exists python 
Typescript :: switch case godot 
Typescript :: set default route angular 
Typescript :: split list into lists of equal length python 
Typescript :: mat datepicker pt-br 
Typescript :: route resource adonis middleware 
Typescript :: DbQueryEventNode 
ADD CONTENT
Topic
Content
Source link
Name
3+3 =