W3C home > Mailing lists > Public > www-style@w3.org > April 2015

CSS Classes Custom - by Leonardo Lima

From: Leonardo Lima <leonardo403@gmail.com>
Date: Sat, 04 Apr 2015 02:50:38 +0000
Message-ID: <CAN_3D1NzqrhmrdNm2kaowDrdzSBp2WZ8Y=TAqEoyb6EQ+TJHgg@mail.gmail.com> (sfid-20150404_032649_937085_2FF81DA2)
To: www-style@w3.org
Hi,

After that i see css custom properties , think that if creating Class
custom for CSS can help us. Nowadays we have that install preprocessor CSS
to and using this preprocessor CSS  can using variables.
I think using (classes custom) can we have an default of ("mixins") a bunch
of properties from one rule-set into another rule-set. With this rule dont
need use more preprocessor CSS.Now lets change how make CSS variables, see
example below:
So can we working very fast with changes in projects of way correct,
without worry with files CSS, that continue pretty good.


:root{
/*create class*/
--btn-default{
    width:50px;
    height:30px;
    font-size:15px;
    font-weight:bold;
    }
}
..btn-confirm{
    class(--btn-default);/*call class*/
    color:green;
}

-- 
*Leonardo Lima*
*Web developer*

Fone:  *(051) 8336-5081*
Currículo online: http://leonardo403.github.io/curriculo-leonardo-lima/
Github: https://github.com/leonardo403
Google+: https://plus.google.com/u/0/+LeonardoLimawebdev/
About.me: http://about.me/leonardolima
Twitter: https://twitter.com/Leonardo403Br
Received on Wednesday, 8 April 2015 16:58:56 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:30 UTC