Combine CSS rules with similar properties to reduce redundancy
Here's one example - the @font-face declarations. You can consolidate the font faces into one @font-face rule per font family instead of having multiple rules:
Note the font-family value is the same. The font-style and src values integrate both styles into a single font file name.
Simplify and standardize positioning values in the project blurbs, considering responsiveness
Combine similar styles for project blurbs into a single class to simplify and standardize positioning values. Consider using nth-child for specific adjustments to simplify the number of classes.
You should be able to code most (if not all) of this design without the need for any use of the position property. Try to eliminate as much custom positioning and layering as possible. The horizontal scroll is a result of several, hard coded left values. I would try rebuilding the CSS from the top down without using the position property, or any left, right, top, or bottom properties.
As you work through this, if you encounter a specific issue trying to position something, create an issue on GitHub and tag me (@philsinatra).
Combine CSS rules with similar properties to reduce redundancy
Here's one example - the
@font-face
declarations. You can consolidate the font faces into one@font-face
rule per font family instead of having multiple rules:Note the
font-family
value is the same. Thefont-style
andsrc
values integrate both styles into a single font file name.Simplify and standardize positioning values in the project blurbs, considering responsiveness
Combine similar styles for project blurbs into a single class to simplify and standardize positioning values. Consider using
nth-child
for specific adjustments to simplify the number of classes.Minimize the use of !important in CSS to avoid potential conflict
Simplify element sizing and positioning
You should be able to code most (if not all) of this design without the need for any use of the
position
property. Try to eliminate as much custom positioning and layering as possible. The horizontal scroll is a result of several, hard codedleft
values. I would try rebuilding the CSS from the top down without using theposition
property, or anyleft
,right
,top
, orbottom
properties.As you work through this, if you encounter a specific issue trying to position something, create an issue on GitHub and tag me (@philsinatra).
ID based selectors
Update all CSS selectors so they don't use IDs.