styles.css 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. /* Universal Styles */
  2. body {
  3. background-image: url("https://content.codecademy.com/courses/web-101/unit-6/htmlcss1-img_foodlogo.png");
  4. text-align: center;
  5. font-family: 'Roboto', sans-serif;
  6. font-size: 18px;
  7. }
  8. a {
  9. text-decoration: none;
  10. }
  11. /* Navigation */
  12. nav {
  13. text-align: center;
  14. }
  15. nav img {
  16. display: block;
  17. width: 180px;
  18. margin: 0 auto;
  19. }
  20. nav span {
  21. display: block;
  22. font-size: 16px;
  23. font-weight: 100;
  24. letter-spacing: 2px;
  25. margin: 10px 0;
  26. }
  27. nav a {
  28. color: #666666;
  29. }
  30. /* Content Container */
  31. .content {
  32. width: 100%;
  33. height: 500px;
  34. margin: 10px auto;
  35. overflow: scroll;
  36. }
  37. .content .body {
  38. margin: 0 auto;
  39. }
  40. /* Content Header */
  41. .header {
  42. background-image: url("https://content.codecademy.com/courses/web-101/unit-6/htmlcss1-img_burgerphoto.jpeg");
  43. background-position: center;
  44. background-size: cover;
  45. }
  46. .header h1 {
  47. background-color: #05A8AA;
  48. color: #FFF;
  49. font-family: 'Oswald', sans-serif;
  50. font-size: 40px;
  51. font-weight: 300;
  52. line-height: 40px;
  53. width: 68%;
  54. height: 320px;
  55. padding: 20px;
  56. margin: 0 auto;
  57. }
  58. /* Content Body */
  59. .content .body {
  60. width: 90%;
  61. }
  62. .body p {
  63. color: #333333;
  64. font-weight: 100;
  65. line-height: 34px;
  66. width: 90%;
  67. margin-top: 18px;
  68. }
  69. /* Content Button */
  70. .button {
  71. border-radius: 4px;
  72. color: #05A8AA;
  73. display: block;
  74. font-weight: 700;
  75. width: 200px;
  76. padding: 20px;
  77. margin: 40px auto;
  78. border: 1px solid blue;
  79. }
  80. .button:hover {
  81. background-color: #05A8AA;
  82. border: 1px solid #05A8AA;
  83. color: #FFF;
  84. }
  85. /* Content Nutrition */
  86. ul.nutrition {
  87. padding: 20px;
  88. }
  89. ul.nutrition li {
  90. display: inline-block;
  91. background-color: #05A8AA;
  92. list-style: none;
  93. width: 200px;
  94. padding: 10px 20px;
  95. margin-bottom: 3px;
  96. }
  97. .nutrition .category {
  98. color: white;
  99. font-weight: 100;
  100. letter-spacing: 2px;
  101. display: block;
  102. }
  103. .nutrition .value {
  104. color: white;
  105. font-size: 26px;
  106. font-weight: 700;
  107. letter-spacing: 2px;
  108. }