Advertisement
Guest User

Untitled

a guest
Feb 17th, 2020
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.77 KB | None | 0 0
  1. *{
  2. box-sizing: border-box;
  3. }
  4.  
  5. html{
  6. scroll-behavior: smooth;
  7. scroll-snap-type: y mandatory;
  8. }
  9. main{
  10. display: grid;
  11. grid-template-rows: 100vh 100vh 100vh 100vh 100vh;
  12. background-color: black;
  13. color:darkgray;
  14. }
  15.  
  16. section{
  17. text-align: center;
  18. font-size: 30px;
  19. scroll-snap-align: start;
  20. position: relative;
  21. }
  22.  
  23. body{
  24. height: 500vh;
  25. margin:0%;
  26. font-family: 'Montserrat', sans-serif;
  27. }
  28.  
  29. footer {
  30. position: fixed;
  31. bottom: 0;
  32. z-index: 1;
  33. width: 100%;
  34. background-color: #f1f1f1;
  35. }
  36.  
  37. /* The progress container (grey background) */
  38. .progress-container {
  39. width: 100%;
  40. height: 8px;
  41. background: #ccc;
  42. }
  43.  
  44. /* The progress bar (scroll indicator) */
  45. .progress-bar {
  46. height: 8px;
  47. background: rgba(123, 111, 222, 1);
  48. width: 0%;
  49. }
  50.  
  51. nav{
  52. position: fixed;
  53. z-index: 100;
  54. border: solid black 1px;
  55. border-radius: 0 10px 10px 0;
  56. background-color: rgba(123, 111, 222, 0.3);
  57. display: flex;
  58. flex-direction: column;
  59. top: 50%;
  60. transform: translateY(-50%);
  61. }
  62.  
  63. nav a{
  64. margin: 10px;
  65. text-decoration: none;
  66. text-align: center;
  67. color: white;
  68. font-size: x-large;
  69. }
  70.  
  71. video {
  72. position: fixed;
  73. height: 100vh;
  74. width: 100vw;
  75. opacity: 30%;
  76. }
  77.  
  78. p{
  79. position: absolute;
  80. top: 50%;
  81. transform: translateY(-50%);
  82. margin-left: 10vw;
  83. margin-right: 10vw;
  84. }
  85.  
  86. h2{
  87. margin-top: 0px;
  88. text-transform: uppercase;
  89. color: rgba(123, 111, 222, 1);
  90. }
  91.  
  92. img{
  93. display: block;
  94. margin-left: auto;
  95. margin-right: auto;
  96. height: 80vh;
  97. width: auto;
  98. }
  99.  
  100. .active, .nav-button:hover {
  101. background-color: #666;
  102. color: white;
  103. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement