style.css 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. /* base styles */
  2. html {
  3. font-family: sans-serif;
  4. line-height: 1.15;
  5. -webkit-text-size-adjust: 100%;
  6. -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  7. }
  8. body {
  9. background-color: #230a3b;
  10. margin: 0;
  11. color: #fff;
  12. font-family: 'Prompt', sans-serif;
  13. text-align: center;
  14. }
  15. /* header */
  16. header {
  17. background-color: #230a3b;
  18. color: #ffffff;
  19. padding: 20px 30px;
  20. }
  21. header h1 {
  22. margin: 0;
  23. font-size: 32px;
  24. line-height: 1.2;
  25. font-weight: bold;
  26. }
  27. /* navigation */
  28. @media (min-width: 769px) {
  29. nav {
  30. display: flex;
  31. justify-content: space-between;
  32. align-items: center;
  33. height: 80px;
  34. /*background-color: #000;*/
  35. color: #fff;
  36. padding: 0 15px;
  37. font-size: 30px;
  38. }
  39. nav ul.menu {
  40. list-style-type: none;
  41. margin: 0;
  42. padding: 0;
  43. display: flex;
  44. }
  45. nav ul.menu li {
  46. margin-right: 20px;
  47. }
  48. nav ul.menu li:last-child {
  49. margin-right: 0;
  50. }
  51. nav ul.menu li a {
  52. color: #fff;
  53. text-decoration: none;
  54. /* font-weight: bold; */
  55. }
  56. nav a.icon {
  57. display: none;
  58. }
  59. nav .mobile {
  60. display: none;
  61. }
  62. }
  63. @media (max-width: 768px) {
  64. nav {
  65. flex-direction: column;
  66. height: auto;
  67. }
  68. nav ul.menu {
  69. display: none;
  70. }
  71. nav a {
  72. color: white;
  73. padding: 14px 16px;
  74. text-decoration: none;
  75. font-size: 17px;
  76. display: block;
  77. }
  78. nav .mobile {
  79. overflow: hidden;
  80. background-color: #333;
  81. position: relative;
  82. display: block;
  83. }
  84. nav .mobile #hamburger {
  85. display: none;
  86. }
  87. nav .mobile a {
  88. color: white;
  89. padding: 14px 16px;
  90. text-decoration: none;
  91. font-size: 17px;
  92. display: block;
  93. }
  94. nav .mobile a.icon {
  95. background: black;
  96. display: block;
  97. position: absolute;
  98. right: 0;
  99. top: 0;
  100. }
  101. }
  102. footer {
  103. background-color: #000;
  104. color: #fff;
  105. padding: 10px;
  106. text-align: center;
  107. }