style.css 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  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: 18px;
  38. }
  39. nav img {
  40. width: 25%;
  41. }
  42. nav ul.menu {
  43. list-style-type: none;
  44. margin: 0;
  45. padding: 0;
  46. display: flex;
  47. }
  48. nav ul.menu li {
  49. margin-right: 20px;
  50. }
  51. nav ul.menu li:last-child {
  52. margin-right: 0;
  53. }
  54. nav ul.menu li a {
  55. color: #fff;
  56. text-decoration: none;
  57. /* font-weight: bold; */
  58. }
  59. nav a.icon {
  60. display: none;
  61. }
  62. nav .mobile {
  63. display: none;
  64. }
  65. }
  66. @media (max-width: 768px) {
  67. nav {
  68. flex-direction: column;
  69. height: auto;
  70. }
  71. nav img {
  72. width: 85%;
  73. }
  74. nav ul.menu {
  75. display: none;
  76. }
  77. nav a {
  78. color: white;
  79. padding: 14px 16px;
  80. text-decoration: none;
  81. font-size: 17px;
  82. display: block;
  83. }
  84. nav .mobile {
  85. overflow: hidden;
  86. /* background-color: #333; */
  87. position: relative;
  88. display: block;
  89. }
  90. nav .mobile #hamburger {
  91. display: none;
  92. }
  93. nav .mobile a {
  94. color: white;
  95. padding: 14px 16px;
  96. text-decoration: none;
  97. font-size: 17px;
  98. display: block;
  99. }
  100. nav .mobile a.icon {
  101. background: black;
  102. display: block;
  103. position: absolute;
  104. right: 0;
  105. top: 0;
  106. }
  107. }
  108. footer {
  109. background-color: #000;
  110. color: #fff;
  111. padding: 10px;
  112. text-align: center;
  113. }