Sup, im currently developing my own front-end framework (which probably gonna look like Bootstrap to you, but its way better - at least its grid) and i need opinion on one thing. I'm thinking abour renaming "bootstrap-like" classnames to something else, since i don't need backwards compatibility anymore - we were moving from Bootstrap grid (which used floats) to my own, which is done using flexbox = way more options to align / position / resize columns
preview in html: class="col-xs-12 col-s-8 col-l-6 col-xl-4"
shorter version:
.c-xs-
.c-s-
.c-m-
.c-l-
.c-xl-
.c-xxl-
.c-xxxl-
preview in html: class="c-xs-12 c-s-8 c-l-6 c-xl-4"
i know .col-xxxl- is bit overkill, but i can't use "3xl" or anything with number as first letter, cuz CSS doesnt like it, and some components are using classnames like .xs-block .md-inline to set different variants per breakpoint
I may end up renaming just HD and 2K to XXL and XXXL, so it coresponds with clothes sizes and not defininig any actual size in its name since you can modify grid breakpoints in config and use 2K for completely different resolutions (less or more than "2K")
as said above, popular frameworks are too big, dont offer what i need and my is (at least for me) way more customizable. I can simply put true/false in config to disable one whole part of code which i don't need for specific project, change grid breakpoints on 2 lines and more stuff :)
It's still work progress tho, but even with current state, it gives me massive advantage while coding responsive websites espetially thanks to my grid thats using flexbox instead of oldschool "float" which gives me way more option to align or even change order for columns inside, float can't do any of it and you would have to do it with javascript or absolute positioning
columns are something you use to construct a grid. So I would probably follow similar naming scheme as bootstrap in this regard: .col-10, .col-2 and so on. Just pick the number, which you will be using as "total" (go with either 12 or 24, IMHO).
The sized like .thing-xxl should be saved for stuff, that depends on the font size.
just thinking about renaming few breakpoints to something else, originally i had .col-2k and even .col-4k problem is, when you have let's say responsive table with 2 variants, "block" and "table", so you would use class="xs-block 2k-table" and problem is, browsers dont really like classnames, that begins with numbers (which is kinda sad :D), so i just needed some idea / opinion, if i should go with .col-xxl or even col-xxxl
Short class names like "c-xs-12" are nice until other people get involved. Col is still short, and is quicker to understand if another developer takes over later, as it's a common abbreviation.
Well thats definitely one reason to migrate just I always find that creating custom code rarely provides many benefits (in regards to time programming etc) vs already pre-baked solutions. Personally I feel if there is something you can use that nearly does you job, do that, and just modify it to work the way you need. But as a learning experience I bet it would be very helpful especially if you plan to expand on it later, any ideas on what you might add in the future ?
Ha all i would suggest is before it goes live put it into heavy testing (preferably unit testing) as there will always be somewhere in your code that has an error, and it can be very easy to miss errors depending on the size of the code. Amount of times I have thanked the gods for code review is crazy (even though I hate it being done).
Ah ok well hopefully nothing breaks :), just always follow the golden rule when it comes to users. If there is a stupid way of doing things they will find that way and use it every time :P. Everytime I create something nice and clever there is always some idiot who uses your system incorrectly :P.
But every user LOVES IE :P you'll laugh but worked at a company a few years back and I swear half of them were using IE wanted to cry myself to sleep. I had a policy at work that if you used IE I would not support you in anyway (funny thing was it was approved by the directors, funny how quickly they change there minds when money is involved).