Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
h4xx3r17167yI ,kind of, have it, when a project get complex, I create plug and play classes with 1 or 2 properties each.
-
h4xx3r17167y@elonmusk this approach is scattered around many projects of mine, didn't got it in one solution.css, but it's pretty straight forward:
.pdd2{padding:2%}
.tac{text-align: center}
.disBl{display: block}
And so on... For whatever your need.
You could even make modular sections within if you want for example vertical only or horizontal only properties, such as:
._vpdd2{padding:2% 0}
Or
._hpdd2{padding:0 2%} -
-eth18617y@Letmecode you should make a couple of pages (sites? Books?) explaining how to write correct HTML and CSS though, I would gladly read it
-
@Letmecode did you purchase any domain? So that I can keep track of that!
I will keep the domain link in my remainders :) -
I have something like a personal library of all the classes that I use with some rests and an edited version of BootStrap (sadly can't get rid of BS it cuz it's standard where I work)
I like using sass so I've standardized some mixins for transitions, animations and other useful tools like a mixins for qualifiedβ selectors, ie or edge queries, cross browser flex properties, some conversions like vw to px by breakpints, etc
I think everyone has their own styling style :) , it's definitely interesting to see other's code, but if you'reβ not going to use it regularly, then I feel it's a waste to include an entire stylesheet that you end up using only a couple classes from. -
Like those who include animate.css and end up using only fadeInUp,
As stupid as it sounds I've reviewed many projects that went live with something like that... -
@elonmusk it's easier but it pisses me off regardless especially when the client actually likes it and believe his site is "lazy loading"
-
Kryptic677yI have a few css templates I wrote for different purposes. I use them maybe less than half the time. Other half is from scratch or picking up where some1 left off.
Related Rants
Did anyone here created a css style sheet for universal use?
Or writing separate code for every single project?
undefined
planning to create one
css