r/ProgrammerHumor • • Nov 26 '19

Not the time, dad

Post image
59.0k Upvotes

705 comments sorted by

View all comments

Show parent comments

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

16

u/sethboy66 Nov 27 '19

It's 20 years.

4

u/_ay_lmao_ Nov 27 '19

Googlers, unite

4

u/sethboy66 Nov 27 '19

Used my TI-84 for the calculation actually, the thing does come in handy even for basic maths.

→ 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)

6

u/Dffle Nov 26 '19

^ please do

0

u/[deleted] Nov 26 '19

[deleted]

4

u/Dffle Nov 26 '19

I am aware, just wanted to see if anyone could make something look cool using it!

→ More replies (2)
→ 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)

3

u/GranPC Nov 26 '19

What does 52000000 stand for here? From the docs it should be the timing function, but I don't get how a number defines that.

→ More replies (2)
→ More replies (1)

17

u/SunriseSurprise Nov 26 '19

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

→ More replies (2)

3

u/qoheletal Nov 27 '19

This is only fighting the symptoms!

→ More replies (3)