code_junkie

css organization and colours

Nov 11th, 2011
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.21 KB | None | 0 0
  1. .color1 {
  2. color: #3d444d;
  3. }
  4.  
  5. .main_text {color:#444444;}
  6. .secondary_text{color:#765123;}
  7. .main_color {background:#343434;}
  8. .secondary_color {background:#765sda;}
  9.  
  10. <body class='main_text'>
  11. <div class='main_color secondary_text'>
  12. <span class='secondary color main_text'>bla bla bla</span>
  13. </div>
  14. <div class='main_color secondary_text>
  15. You get the idea...
  16. </div>
  17. </body>
  18.  
  19. h1 {
  20. padding...
  21. margin...
  22. font-family...
  23. }
  24.  
  25. p {
  26. ...
  27. }
  28.  
  29. code {
  30. ...
  31. }
  32.  
  33. /* time passes */
  34.  
  35. /* these elements are semantically grouped by color in the design */
  36. h1, p, code {
  37. color: #ff0000;
  38. }
  39.  
  40. p .frog tr.mango {
  41. color: blue;
  42. margin: 1px 3em 2.5em 4px;
  43. position: static;
  44. }
  45. #eta .beta span.pi {
  46. background: green;
  47. color: red;
  48. font-size: small;
  49. float: left;
  50. }
  51. // ...
  52.  
  53. p .frog tr.mango {
  54. color: blue;
  55. }
  56. #eta .beta span.pi {
  57. background: green;
  58. color: red;
  59. }
  60. //...
  61. p .frog tr.mango {
  62. margin: 1px 3em 2.5em 4px;
  63. position: static;
  64. }
  65. #eta .beta span.pi {
  66. font-size: small;
  67. float: left;
  68. }
  69. // ...
  70.  
  71. <?php
  72. header("Content-Type: text/css");
  73. $colour1 = '#ff9';
  74. ?>
  75. .username {color: <?=$colour1;?>; }
  76.  
  77. h1, p, code {
  78. color: #ff0000;
  79. }
  80.  
  81. .color1 {
  82. color: #ff0000;
  83. }
Add Comment
Please, Sign In to add comment