Advertisement
Guest User

css

a guest
Oct 18th, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.90 KB | None | 0 0
  1. * {
  2. margin: 0;
  3. padding: 0;
  4. box-sizing: border-box;
  5. overflow-x: hidden;
  6. }
  7. .swiper-button-prev,
  8. .swiper-button-next,
  9. .swiper-wrapper,
  10. .swiper-slide,
  11. .swiper-pagination {
  12. overflow-x: initial
  13. }
  14. .nav-bar {
  15. position: fixed;
  16. width: 100vw;
  17. height: 60px;
  18. display: flex;
  19. justify-content: space-around;
  20. align-items: center;
  21. background-color: #999999;
  22. overflow-x: initial;
  23. }
  24. .logo {
  25. color: black;
  26. text-decoration: none;
  27. }
  28. .nav-items {
  29. width: 30vw;
  30. display: flex;
  31. justify-content: space-around;
  32. list-style: none;
  33. }
  34. .nav-item {
  35. color: black;
  36. text-decoration: none;
  37. }
  38. .burger {
  39. display: none;
  40. cursor: pointer;
  41. }
  42. .burger div {
  43. width: 32px;
  44. height: 5px;
  45. border-radius: 5px;
  46. background-color: white;
  47. margin: 4px;
  48. }
  49. .main {
  50. width: 100vw;
  51. padding-top: 60px;
  52. display: flex;
  53. flex-direction: column;
  54. }
  55. .home {
  56. min-height: calc(100vh - 60px);
  57. background-color: yellow;
  58. }
  59. .sobre {
  60. min-height: calc(100vh - 60px);
  61. background-color: red;
  62. }
  63. .swiper-container {
  64. width: 100vw;
  65. height: calc(100vh - 60px);
  66. }
  67.  
  68. @media screen and (max-width: 500px) {
  69. .nav-bar {
  70. position: fixed;
  71. width: 100vw;
  72. height: 60px;
  73. display: flex;
  74. justify-content: space-around;
  75. align-items: center;
  76. background-color: #999999;
  77. }
  78. .nav-items {
  79. position: absolute;
  80. z-index: -1;
  81. height: calc(100vh - 60px);
  82. top: -100vh;
  83. width: 100vw;
  84. display: flex;
  85. flex-direction: column;
  86. align-items: center;
  87. justify-content: space-around;
  88. transition: transform 0.3s ease-in;
  89. background-color: #999999;
  90. }
  91. .burger {
  92. display: block;
  93. }
  94. }
  95. .nav-active {
  96. transform: translateY(calc(100vh + 60px));
  97. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement