vonko1988

CSS_overview_homework_task1.css

Jan 25th, 2014
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 1.08 KB | None | 0 0
  1. /*Instead of giving classes or IDs, I will use complicated selectors
  2. because the presentation was about selectors*/
  3.  
  4. table {
  5.     background:#595959;
  6.     font-family:Arial;
  7. }
  8.  
  9. th {
  10.     color:#bec0c0;
  11.     padding:0.5em 0 1em 0;
  12.     font-size:1.3em;
  13.     font-family: Segoe Ui, Arial;
  14.     font-weight: lighter;
  15. }
  16.  
  17. tr td:first-of-type {
  18.     vertical-align: top;
  19.     font-style: italic;
  20.     color:#e5e8e8;
  21. }
  22.  
  23. tr td:nth-of-type(2) {
  24.     padding-right:10em;
  25.     padding-bottom:0.8em;
  26. }
  27.  
  28. tr:first-of-type {
  29.     color:#ff000f;
  30. }
  31.  
  32. tr:first-of-type td:nth-of-type(2) span {
  33.     color:#e7e0a6;
  34. }
  35.  
  36. span.circle {
  37.     border-radius:50%;
  38.     background:#71b47a;
  39.     display:inline-block;
  40.     height:1.2em;
  41.     margin-right:0.3em;
  42. }
  43.  
  44. tr:nth-of-type(2) td:nth-of-type(2) a {
  45.     color:#e7e0a6;
  46.     text-decoration:none;
  47. }
  48.  
  49. tr:nth-of-type(3) td:nth-of-type(2) {
  50.     color:#b6c0bd;
  51. }
  52.  
  53. tr:nth-of-type(4) td:nth-of-type(2) {
  54.     color:#b6c0bd;
  55. }
  56.  
  57. tr:nth-of-type(5) td:nth-of-type(2) {
  58.     color:#e7e0a6;
  59. }
  60.  
  61. tr:nth-of-type(6) td:nth-of-type(2) {
  62.     color:#dd6a25;
  63. }
  64.  
  65. tr:last-of-type td:nth-of-type(2) {
  66.     padding-bottom:0.3em;
  67. }
Advertisement
Add Comment
Please, Sign In to add comment