Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* THIS IS AWFUL LOTS OF REPETITION AND WE NEED TO AVOID THIS */
- /*
- Look at the rules starting at line 71..
- all those body.menu-* selectors were not necessary since they also select .contentheading-news (etc)
- We want to avoid doing duplication like this to keep file sizes down and changes easier to make
- this could have been combined to just this...
- .componentheading, .contentheading,
- .contentheading-news, .contentheading-press{
- font-family: 'EnglandHandDBRegular';
- font-size: 28px;
- font-weight: normal;
- margin-bottom: 0px;
- padding-bottom: 15px;
- color: #3e5b7d;
- }
- OR if we didn't care about IE6 compatibility just this: .componentheading, .contentheading,[class^="contentheading"]
- this would have taken away tons from the stylesheet...
- OR
- if you just added whitespace to the menu class suffix instead of a dash
- i.e. " press" instead of "-press" it could have just been this
- .componentheading, .contentheading{
- font-family: 'EnglandHandDBRegular';
- font-size: 28px;
- font-weight: normal;
- margin-bottom: 0px;
- padding-bottom: 15px;
- color: #3e5b7d;
- }
- then if you need to only target the press heading..
- this selectors work to target elemnts with the class "contentheading" and "press"
- .componentheading.press, .contentheading.press{
- color:black;
- }
- */
- .componentheading, .contentheading {
- font-family: 'EnglandHandDBRegular';
- font-size: 28px;
- font-weight: normal;
- margin-bottom: 0px;
- padding-bottom: 15px;
- color: #3e5b7d;
- }
- .componentheading-press, .contentheading-press {
- font-family: 'EnglandHandDBRegular';
- font-size: 28px;
- font-weight: normal;
- margin-bottom: 0px;
- padding-bottom: 15px;
- color: #3e5b7d;
- }
- /* BADNESS STARTS HERE */
- body.menu-19 .contentheading-news, .contentheading-news {
- font-family: 'EnglandHandDBRegular';
- font-size: 28px;
- font-weight: normal;
- margin-bottom: 0px;
- padding-bottom: 15px;
- color: #3e5b7d;
- }
- body.menu-151 .contentheading-news, .contentheading-news {
- font-family: 'EnglandHandDBRegular';
- font-size: 28px;
- font-weight: normal;
- margin-bottom: 0px;
- padding-bottom: 15px;
- color: #3e5b7d;
- }
- body.menu-149 .contentheading-news, .contentheading-news {
- font-family: 'EnglandHandDBRegular';
- font-size: 28px;
- font-weight: normal;
- margin-bottom: 0px;
- padding-bottom: 15px;
- color: #3e5b7d;
- }
- body.menu-140 .contentheading-news, .contentheading-news {
- font-family: 'EnglandHandDBRegular';
- font-size: 28px;
- font-weight: normal;
- margin-bottom: 0px;
- padding-bottom: 15px;
- color: #3e5b7d;
- }
- body.menu-139 .contentheading-news, .contentheading-news {
- font-family: 'EnglandHandDBRegular';
- font-size: 28px;
- font-weight: normal;
- margin-bottom: 0px;
- padding-bottom: 15px;
- color: #3e5b7d;
- }
- body.menu-137 .contentheading-news, .contentheading-news {
- font-family: 'EnglandHandDBRegular';
- font-size: 28px;
- font-weight: normal;
- margin-bottom: 0px;
- padding-bottom: 15px;
- color: #3e5b7d;
- }
- body.menu-133 .contentheading-news, .contentheading-news {
- font-family: 'EnglandHandDBRegular';
- font-size: 28px;
- font-weight: normal;
- margin-bottom: 0px;
- padding-bottom: 15px;
- color: #3e5b7d;
- }
- body.menu-132 .contentheading-news, .contentheading-news {
- font-family: 'EnglandHandDBRegular';
- font-size: 28px;
- font-weight: normal;
- margin-bottom: 0px;
- padding-bottom: 15px;
- color: #3e5b7d;
- }
- body.menu-129 .contentheading-news, .contentheading-news {
- font-family: 'EnglandHandDBRegular';
- font-size: 28px;
- font-weight: normal;
- margin-bottom: 0px;
- padding-bottom: 15px;
- color: #3e5b7d;
- }
- body.menu-123 .contentheading-news, .contentheading-news {
- font-family: 'EnglandHandDBRegular';
- font-size: 28px;
- font-weight: normal;
- margin-bottom: 0px;
- padding-bottom: 15px;
- color: #3e5b7d;
- }
- body.menu-75 .contentheading-news, .contentheading-news {
- font-family: 'EnglandHandDBRegular';
- font-size: 28px;
- font-weight: normal;
- margin-bottom: 0px;
- padding-bottom: 15px;
- color: #3e5b7d;
- }
- body.menu-62 .contentheading-news, .contentheading-news {
- font-family: 'EnglandHandDBRegular';
- font-size: 28px;
- font-weight: normal;
- margin-bottom: 0px;
- padding-bottom: 15px;
- color: #3e5b7d;
- }
- body.menu-32 .contentheading-news, .contentheading-news {
- font-family: 'EnglandHandDBRegular';
- font-size: 28px;
- font-weight: normal;
- margin-bottom: 0px;
- padding-bottom: 15px;
- color: #3e5b7d;
- }
- body.menu-43 .contentheading-news, .contentheading-news {
- font-family: 'EnglandHandDBRegular';
- font-size: 28px;
- font-weight: normal;
- margin-bottom: 0px;
- padding-bottom: 15px;
- color: #3e5b7d;
- }
- body.menu-27 .contentheading-news, .contentheading-news {
- font-family: 'EnglandHandDBRegular';
- font-size: 28px;
- font-weight: normal;
- margin-bottom: 0px;
- padding-bottom: 15px;
- color: #3e5b7d;
- }
- body.menu-23 .contentheading-news, .contentheading-news {
- font-family: 'EnglandHandDBRegular';
- font-size: 28px;
- font-weight: normal;
- margin-bottom: 0px;
- padding-bottom: 15px;
- color: #3e5b7d;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement