r/ProgrammerHumor • • Nov 26 '19

Not the time, dad

Post image
59.0k Upvotes

705 comments sorted by

View all comments

2.4k

u/[deleted] Nov 26 '19

person { breathing: true !important; }

1.0k

u/Earhacker Nov 26 '19
.symptom {
  display: none;
}

551

u/[deleted] Nov 26 '19
.person:dying {
    transition: 630720000s !important;
}

173

u/survivalking4 Nov 26 '19

I wouldn’t put !important because this seems to be the base case, and any other declaration should override it. I’m not sure how many years that is though

120

u/Venipa Nov 27 '19

So a person dying is not important..

101

u/[deleted] Nov 27 '19

Found the C developer. Behold... you must unlearn this to write CSS unless you’re writing an app that generates HTML that then has CSS.

So you then have to unlearn it then learn it then unlearn it again.

Unless you’re going to use a framework or proper separation of front end and backend at which point you can learn that and remember this. As not have to unlearn anything.

It’s simple, see?

6

u/ConverZe Nov 27 '19

Sounds perfectly reasonable. lol

→ More replies (3)

20

u/adamdehaven Nov 27 '19

If you do !important, this would prevent any medical procedures applied later to save/resuscitate the individual from taking effect. It would be better to leave out the !important. If using SCSS, you could do !default instead.

6

u/came-in-like-a-wreck Nov 27 '19

.person { opacity: 0; }

Problem solved.

→ More replies (4)

174

u/[deleted] Nov 26 '19 edited Nov 26 '19
@keyframe heartbeat {
    0%    { transform: scale(0.9); }
    100%  { transform: scale(1.1); }
}
.heart {
    color: red;
    animation: 1.3s 52000000 alternate heartbeat;
}

81

u/LazyLarryTheLobster Nov 26 '19

Ok I was keeping up just fine until whatever you just did so explain pls

47

u/[deleted] Nov 26 '19

47

u/mrdhood Nov 26 '19

Nah dude we’re gonna need you to upload a working sample of whatever this is

80

u/NinjaLanternShark Nov 26 '19 edited Nov 26 '19

21

u/bizzyj93 Nov 26 '19

It looks like it grew three sizes that day.

→ More replies (1)
→ More replies (5)
→ More replies (5)

0

u/[deleted] Nov 26 '19

[deleted]

11

u/scirc Nov 26 '19

``` works, but only on new reddit. Of course, the people using new reddit won't notice.

Worse still, I believe it's the default syntax the WYSIWYG editor inserts...

edit: No, apparently not. Fancy Pants inserts 4 spaces.

→ More replies (1)
→ More replies (4)

17

u/SunriseSurprise Nov 26 '19

Or the ol' bandaid over a gunshot wound: .symptom { visibility: hidden; }

→ More replies (2)
→ More replies (4)

0

u/[deleted] Nov 26 '19

[deleted]

28

u/ablablababla Nov 26 '19

Nah, CSS belongs to a pit even lower than hell

27

u/pants_full_of_pants Nov 27 '19

CSS is pretty inoffensive, as web technologies go, in my opinion. As long as your team follows good practices. Never using !important being one of those.

→ More replies (4)

32

u/Ollymid2 Nov 26 '19

or try:

animation: pulse 2s infinite;

15

u/YallOfTheRaptor Nov 27 '19

This is how a necromancer gets started...

→ More replies (1)

10

u/DwayneFrogsky Nov 27 '19

adding important to breathing will cause anyone to automatically drown underwater as you can no longer stop and will just keep chugging the water

→ More replies (12)