Recent Posts

praise the cats!
aliasthomas, breezescodes
pronounshe/him
830written posts
bcearned bits
offlinecurrently
bc
Summer '19 Bingo Completionist
bc Avatar
this is my murder mittens ^-^
if you'll permit me to be a little extra, much obliged

color 1: #b4c891;
color 2: #ffba80;

for $100 :3
last edit on Jan 21, 2022 19:16:25 GMT by bc
praise the cats!
aliasthomas, breezescodes
pronounshe/him
830written posts
bcearned bits
offlinecurrently
bc
Summer '19 Bingo Completionist
bc Avatar
this is my murder mittens ^-^
Mari Avatar
I want to learn how to skin for jcink and make like public free to use skins, but I feel like my coding is too messy and my "style" isn't exactly good ๐Ÿ˜ญ

i dont believe in organised codes only the illusion of such. (seriously, i highly encourage you to code anyway even if you don't think your codes look. style is a thing that's developed, typically after creating dozens of horrendous, eye-searing codes that probably belong in hell. we also tend to overestimate other people's standards tbh so like, yeah, if you want to code go wild)
praise the cats!
aliasthomas, breezescodes
pronounshe/him
830written posts
bcearned bits
offlinecurrently
bc
Summer '19 Bingo Completionist
bc Avatar
this is my murder mittens ^-^
GRADIENT TEXT

.text {
background: -webkit-linear-gradient(#eee, #333);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
-webkit-box-decoration-break: clone; //this line is incredibly important for cross-compatibility. your gradient text will cut off after the first line and be unreadable on ios mobile if you do not have this
}


its as simple as that. woo. this is something very easy to look up, but but but, iโ€™m putting it here w/ something that most tutorials forget โ€” the last line, the box-decoration-break is really important because otherwise your gradient text on ios mobile will not work for more than one line of text
last edit on Feb 26, 2023 22:00:11 GMT by bc
praise the cats!
aliasthomas, breezescodes
pronounshe/him
830written posts
bcearned bits
offlinecurrently
bc
Summer '19 Bingo Completionist
bc Avatar
this is my murder mittens ^-^
random thing I thought but just something I noticed myself doing that might help others learn grid.

First off I split grid into grid-template-rows / grid-template-columns. I donโ€™t use grid-area (the shorthand) because a) I cannot keep track of the order that it goes, b) it doesnโ€™t work on either less or scss/sass I forgot idk

Anyway, whenever Iโ€™m trying to remember how grids work, instead of drawing some mathematical grid which helps for shit naught, I think of things as

- for COLUMNS: those Roman/Greek pillars/columns (like the ones outside the Lincoln Memorial). They long cylinders up and down and theyโ€™re placed next to each other

- for ROWS: foosball tables or abacuses (which can be made vertically ig but Iโ€™ve always thought of them as going horizontal lol). Theyโ€™re sticks that go left to right and theyโ€™re stacked on top of each other.

So if you have difficulty with keeping grid straight, it may help to think of it as physical objects?

additional note because once more, Iโ€™m awful @ keeping grid straight, when it comes to defining items on a grid, i usually format it as grid-row/column:{starting column/row #}/span #

So for example grid-row:1/span 2; means for it to start @ line 1 and then span two boxes, which is more in line with how I think of grid. This would be the equivalent of grid-row:1/3; itโ€™s just easier for me to think of grids as the cells rather than the division lines.
last edit on Jan 6, 2022 22:33:31 GMT by bc
praise the cats!
aliasthomas, breezescodes
pronounshe/him
830written posts
bcearned bits
offlinecurrently
bc
Summer '19 Bingo Completionist
bc Avatar
this is my murder mittens ^-^
he snatches for the closest limb to drag into his mouth. vaguely, he thinks it must be a new low, except really itโ€™s just an old one. he was a bandit, not a wild animal โ€” but he was one before that; or treated like that anyway. it doesnโ€™t really matter though, because heโ€™s got a head mostly of cotton and only room for the fight โ€” and the want to win.

(oh, silly him, but he, too, wants to be strong.)
praise the cats!
aliasthomas, breezescodes
pronounshe/him
830written posts
bcearned bits
offlinecurrently
bc
Summer '19 Bingo Completionist
bc Avatar
this is my murder mittens ^-^
dijit.exe Avatar
Also, if you hate rgba values, you can throw a opacity value on your hex code colors. It can only be two digits. An example: If I want #FFFFFFF (white) but I want it to be opac, Just throw a 50 at the end and you're solid. So it'd be #FFFFFF50


just as a note here but while you can absolutely do this, the benefits of using rgba is that itโ€™ll work with css variables. you can do something like rgba(var(โ€”blah),0.6) but you canโ€™t do var(โ€”blah)50.

otherwise yeah itโ€™s often pretty convenient to be able to throw like half a thing at the end.
praise the cats!
aliasthomas, breezescodes
pronounshe/him
830written posts
bcearned bits
offlinecurrently
bc
Summer '19 Bingo Completionist
bc Avatar
this is my murder mittens ^-^
IMAGE RESIZING, that i think most people know but just in case:

as mentioned in coding confessions, cover is like a life style. ainโ€™t no one got time to create very specific ratio images so donโ€™t force them to and instead, code your shit with

for background-images, background-size: cover;
for image elements, use object-fit: cover;

contain will force people to crop to specific ratio so even if it looks like itโ€™s working for your exact ratio images, itโ€™s not.




LIFE HAXX WITH GRID โ€” easiest way to vertically & horizontally align an element is:

display:grid;
place-items:center;

put that onto the parent container and voilรก. bear in mind that if you have multiple divs or elements inside, things get fucked up but itโ€™s good in a pinch.

last edit on Jan 5, 2022 9:11:12 GMT by bc