Advertisement
Guest User

Untitled

a guest
Jun 21st, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.30 KB | None | 0 0
  1. .header {
  2. position: relative;
  3. height: 95vh;
  4. background-image: linear-gradient(to right bottom,
  5. rgba($color-primary-light, 0.8),
  6. rgba($color-primary-dark, 0.8)
  7. ),
  8. url(../img/hero.jpg);
  9. background-size: cover; /* adapt image to view post on resizing */
  10. background-position: top; /* make image stick to top so other part gets cropped but not top*/
  11. position: relative;
  12. clip-path: polygon(0 0, 100% 0, 100% 75vh, 0 100%);
  13. -webkit-clip-path: polygon(0 0, 100% 0, 100% 75vh, 0 100%);
  14.  
  15. @include respond(phone) {
  16. clip-path: polygon(0 0, 100% 0, 100% 85vh, 0 100%);
  17. -webkit-clip-path: polygon(0 0, 100% 0, 100% 85vh, 0 100%);
  18.  
  19. }
  20.  
  21. &__logo-box {
  22. position: absolute;
  23. top: 40px;
  24. left: 40px;
  25.  
  26. }
  27.  
  28. &__logo{
  29. height: 35px;
  30. }
  31.  
  32. &__text-box{
  33. position: absolute;
  34. top: 40%;
  35. left: 50%;
  36. transform: translate(-50%, -50%);
  37. text-align: center;
  38. }
  39. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement