adminMenu.scss 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. .menu-block {
  2. display:flex;
  3. justify-content: flex-start;
  4. flex-wrap: wrap;
  5. margin-top: 5px;
  6. .menu-skew {
  7. position: relative;
  8. top: 0px;
  9. left: 0;
  10. height: 350px;
  11. width: 40%;
  12. overflow: hidden;
  13. transition: 0.3s;
  14. margin: 5px 0;
  15. background-position: center;
  16. background-repeat: no-repeat;
  17. background-size: cover;
  18. display: flex;
  19. justify-content: center;
  20. align-items: center;
  21. &:first-child {
  22. clip-path: polygon(0 0,100% 0,80% 100%,0% 100%);
  23. background-image:
  24. url(https://43nnuk1fz4a72826eo14gwfb-wpengine.netdna-ssl.com/wp-content/uploads/2016/09/Jens-Group-Ride_Blog.jpg);
  25. }
  26. &:nth-child(2) {
  27. right: -100px;
  28. clip-path: polygon(12% 0,100% 0,100% 100%,0% 100%);
  29. margin-left: -7%;
  30. flex-grow: 2;
  31. background-image: url(https://www.getthegloss.com/media/image/marathon.jpg);
  32. }
  33. &:nth-child(3){
  34. flex-grow: 2;
  35. clip-path: polygon(0 0,100% 0,86% 100%,0% 100%);
  36. background-image: url(https://images.fitnessmagazine.mdpcdn.com/sites/fitnessmagazine.com/files/styles/slide/public/800_triathletes-swimming.jpg?itok=vEUQ17sh);
  37. }
  38. &:last-child {
  39. flex-grow: 0;
  40. clip-path: polygon(24% 0,100% 0,100% 100%,0% 100%);
  41. margin-left: -8.5%;
  42. background-image: url(https://cdn.shopify.com/s/files/1/0235/4757/articles/CMP-201903-SinchBikes_KGorge-Highres-6214_600x300_crop_center.jpg?v=1561970623);
  43. }
  44. &:hover {
  45. opacity: 0.5;
  46. }
  47. .menu-text{
  48. color: #5acec2;
  49. font-size: 3rem;
  50. letter-spacing: 0.2;
  51. font-weight: 600;
  52. text-shadow: 3px 3px 3px #000;
  53. }
  54. }
  55. }