Jump to content

Going through a coworkers CSS file


  • Please log in to reply
5 replies to this topic

#1 Guest_ElatedOwl_*

Guest_ElatedOwl_*
  • Guests

Posted 01 April 2013 - 02:30 PM

html, body, div, span, applet, object, iframe,  p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, img, ins, kbd, q, s, samp, small, strike, sub, sup, tt, var, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td
{
    border: 0;
    font-weight: inherit;
    font-style: inherit;
    font-family: inherit;
    margin: 0;
    outline: 0;
    padding: 0;
}

 

Oh god why. :(

The selector is fking ridiculous and could be replaced with * (I'm assuming he's trying to grab every tag...)

font-weight, font-style, font-family all auto-inherit and have since at least CSS2.1, made the standard Feb 2004. (I'm too lazy to dig any further back)



#2 DaRatmastah

DaRatmastah

    Captain Overexcited Cyclops

  • Members
  • 463 posts

Posted 01 April 2013 - 02:46 PM

Gooooood this hurts my brain.  At least it's an easy fix.



#3 K_N

K_N

    Megabyte

  • Members
  • 576 posts
  • LocationPhoenix

Posted 02 April 2013 - 08:05 PM

This is what I see on a daily basis:

 

 

public function __construct() {
   $this->obj = New User($REQUEST->_id]);
   $this->object_2 = New Something($stuff);
}

 

Yes, I have two coworkers who name variables "obj" and "object".


Rumors of my demise have been greatly exaggerated.


#4 Champion of Cyrodiil

Champion of Cyrodiil

    Gigabyte

  • Members
  • 776 posts
  • LocationVirginia

Posted 02 April 2013 - 09:35 PM

im just grateful whenever i can get it to work with < 1 day of refactoring. 



#5 K_N

K_N

    Megabyte

  • Members
  • 576 posts
  • LocationPhoenix

Posted 03 April 2013 - 06:09 PM

im just grateful whenever i can get it to work with < 1 day of refactoring. 

I remember days like that.

 

My job introducing me to frameworks was the best thing that ever happened to me, programming wise.


Rumors of my demise have been greatly exaggerated.


#6 POD

POD

    Byte

  • Members
  • 9 posts

Posted 05 April 2013 - 11:45 PM

Haha, you'd really hate to see some of my css then...