Advertisement
webpagefxjared

Untitled

Aug 31st, 2011
575
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 5.19 KB | None | 0 0
  1. /* THIS IS AWFUL LOTS OF REPETITION AND WE NEED TO AVOID THIS */
  2. /*  
  3.   Look at the rules starting at line 71..
  4.  
  5.   all those body.menu-* selectors were not necessary since they also select .contentheading-news (etc)
  6.  
  7.   We want to avoid doing duplication like this to keep file sizes down and changes easier to make
  8.    
  9.    
  10.     this could have been combined to just this...
  11.    
  12.     .componentheading, .contentheading,
  13.     .contentheading-news, .contentheading-press{
  14.         font-family: 'EnglandHandDBRegular';
  15.         font-size: 28px;
  16.         font-weight: normal;
  17.         margin-bottom: 0px;
  18.         padding-bottom: 15px;
  19.         color: #3e5b7d;
  20.     }
  21.  
  22.     OR if we didn't care about IE6 compatibility just this: .componentheading, .contentheading,[class^="contentheading"]
  23.  
  24.     this would have taken away tons from the stylesheet...
  25.    
  26.     OR
  27.    
  28.     if you just added whitespace to the menu class suffix instead of a dash
  29.      i.e. " press" instead of "-press" it could have just been this
  30.      
  31.      .componentheading, .contentheading{
  32.         font-family: 'EnglandHandDBRegular';
  33.         font-size: 28px;
  34.         font-weight: normal;
  35.         margin-bottom: 0px;
  36.         padding-bottom: 15px;
  37.         color: #3e5b7d;
  38.      }
  39.      
  40.      
  41.      then if you need to only target the press heading..
  42.         this selectors work to target elemnts with the class "contentheading" and "press"
  43.      
  44.      .componentheading.press, .contentheading.press{
  45.         color:black;
  46.      }
  47.      
  48. */
  49.  
  50.  
  51. .componentheading, .contentheading {
  52.     font-family: 'EnglandHandDBRegular';
  53.     font-size: 28px;
  54.     font-weight: normal;
  55.     margin-bottom: 0px;
  56.     padding-bottom: 15px;
  57.     color: #3e5b7d;
  58. }
  59.  
  60. .componentheading-press, .contentheading-press {
  61.     font-family: 'EnglandHandDBRegular';
  62.     font-size: 28px;
  63.     font-weight: normal;
  64.     margin-bottom: 0px;
  65.     padding-bottom: 15px;
  66.     color: #3e5b7d;
  67. }
  68.  
  69. /* BADNESS STARTS HERE */
  70.  
  71. body.menu-19 .contentheading-news, .contentheading-news {
  72.     font-family: 'EnglandHandDBRegular';
  73.     font-size: 28px;
  74.     font-weight: normal;
  75.     margin-bottom: 0px;
  76.     padding-bottom: 15px;
  77.     color: #3e5b7d;
  78. }
  79.  
  80. body.menu-151 .contentheading-news, .contentheading-news {
  81.     font-family: 'EnglandHandDBRegular';
  82.     font-size: 28px;
  83.     font-weight: normal;
  84.     margin-bottom: 0px;
  85.     padding-bottom: 15px;
  86.     color: #3e5b7d;
  87. }
  88.  
  89. body.menu-149 .contentheading-news, .contentheading-news {
  90.     font-family: 'EnglandHandDBRegular';
  91.     font-size: 28px;
  92.     font-weight: normal;
  93.     margin-bottom: 0px;
  94.     padding-bottom: 15px;
  95.     color: #3e5b7d;
  96. }
  97.  
  98. body.menu-140 .contentheading-news, .contentheading-news {
  99.     font-family: 'EnglandHandDBRegular';
  100.     font-size: 28px;
  101.     font-weight: normal;
  102.     margin-bottom: 0px;
  103.     padding-bottom: 15px;
  104.     color: #3e5b7d;
  105. }
  106.  
  107. body.menu-139 .contentheading-news, .contentheading-news {
  108.     font-family: 'EnglandHandDBRegular';
  109.     font-size: 28px;
  110.     font-weight: normal;
  111.     margin-bottom: 0px;
  112.     padding-bottom: 15px;
  113.     color: #3e5b7d;
  114. }
  115.  
  116. body.menu-137 .contentheading-news, .contentheading-news {
  117.     font-family: 'EnglandHandDBRegular';
  118.     font-size: 28px;
  119.     font-weight: normal;
  120.     margin-bottom: 0px;
  121.     padding-bottom: 15px;
  122.     color: #3e5b7d;
  123. }
  124.  
  125. body.menu-133 .contentheading-news, .contentheading-news {
  126.     font-family: 'EnglandHandDBRegular';
  127.     font-size: 28px;
  128.     font-weight: normal;
  129.     margin-bottom: 0px;
  130.     padding-bottom: 15px;
  131.     color: #3e5b7d;
  132. }
  133.  
  134. body.menu-132 .contentheading-news, .contentheading-news {
  135.     font-family: 'EnglandHandDBRegular';
  136.     font-size: 28px;
  137.     font-weight: normal;
  138.     margin-bottom: 0px;
  139.     padding-bottom: 15px;
  140.     color: #3e5b7d;
  141. }
  142.  
  143. body.menu-129 .contentheading-news, .contentheading-news {
  144.     font-family: 'EnglandHandDBRegular';
  145.     font-size: 28px;
  146.     font-weight: normal;
  147.     margin-bottom: 0px;
  148.     padding-bottom: 15px;
  149.     color: #3e5b7d;
  150. }
  151.  
  152. body.menu-123 .contentheading-news, .contentheading-news {
  153.     font-family: 'EnglandHandDBRegular';
  154.     font-size: 28px;
  155.     font-weight: normal;
  156.     margin-bottom: 0px;
  157.     padding-bottom: 15px;
  158.     color: #3e5b7d;
  159. }
  160.  
  161. body.menu-75 .contentheading-news, .contentheading-news {
  162.     font-family: 'EnglandHandDBRegular';
  163.     font-size: 28px;
  164.     font-weight: normal;
  165.     margin-bottom: 0px;
  166.     padding-bottom: 15px;
  167.     color: #3e5b7d;
  168. }
  169.  
  170. body.menu-62 .contentheading-news, .contentheading-news {
  171.     font-family: 'EnglandHandDBRegular';
  172.     font-size: 28px;
  173.     font-weight: normal;
  174.     margin-bottom: 0px;
  175.     padding-bottom: 15px;
  176.     color: #3e5b7d;
  177. }
  178.  
  179. body.menu-32 .contentheading-news, .contentheading-news {
  180.     font-family: 'EnglandHandDBRegular';
  181.     font-size: 28px;
  182.     font-weight: normal;
  183.     margin-bottom: 0px;
  184.     padding-bottom: 15px;
  185.     color: #3e5b7d;
  186. }
  187.  
  188. body.menu-43 .contentheading-news, .contentheading-news {
  189.     font-family: 'EnglandHandDBRegular';
  190.     font-size: 28px;
  191.     font-weight: normal;
  192.     margin-bottom: 0px;
  193.     padding-bottom: 15px;
  194.     color: #3e5b7d;
  195. }
  196.  
  197. body.menu-27 .contentheading-news, .contentheading-news {
  198.     font-family: 'EnglandHandDBRegular';
  199.     font-size: 28px;
  200.     font-weight: normal;
  201.     margin-bottom: 0px;
  202.     padding-bottom: 15px;
  203.     color: #3e5b7d;
  204. }
  205.  
  206. body.menu-23 .contentheading-news, .contentheading-news {
  207.     font-family: 'EnglandHandDBRegular';
  208.     font-size: 28px;
  209.     font-weight: normal;
  210.     margin-bottom: 0px;
  211.     padding-bottom: 15px;
  212.     color: #3e5b7d;
  213. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement