It seems you just copy-pasted this stuff from somewhere. Have you actually used it here anywhere? This kind of stuff blongs to frameworks like bootstrap. Try using them, or at least move these kind of stuff to a separate file to form their own general framework.