Advertisement
Guest User

Untitled

a guest
Oct 14th, 2019
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.40 KB | None | 0 0
  1. Arrow styling
  2.  
  3. grid width for mobile
  4. @media (min-width: 320px) and (max-width: 480px) {
  5.  
  6. .regular-collection .grid__item {
  7. padding-left: 0px;
  8. margin-right: 0;
  9. }
  10. .slick-slide {
  11. width:320px;
  12. }
  13.  
  14. }
  15.  
  16. with media query
  17.  
  18. /*custom css */
  19. .slide-arrow {
  20. position: absolute;
  21. display: block;
  22. height: 48px;
  23. width: 48px;
  24. line-height: 0;
  25. font-size: 25px;
  26. cursor: pointer;
  27. background-color: #f6f6f6;
  28. opacity:1;
  29. top: 35%;
  30. transform: translate(-50%);
  31. margin-top: -0px;
  32. border-radius: 100px;
  33. padding: 0;
  34. border: none;
  35. outline: none;
  36. }
  37. i {
  38. border: solid black;
  39. border-width: 0 3px 3px 0;
  40. display: inline-block;
  41. padding: 3px;
  42. }
  43.  
  44. .right {
  45. transform: rotate(-45deg);
  46. -webkit-transform: rotate(-45deg);
  47. }
  48.  
  49. .left {
  50. transform: rotate(135deg);
  51. -webkit-transform: rotate(135deg);
  52. }
  53. .prev-arrow {
  54. z-index: 999;
  55. left: 51px;
  56. @media screen and (max-width: 1025px){
  57. left: 45px;
  58. }
  59. @media screen and (max-width: 768px){
  60. left: 49px;
  61. }
  62. @media screen and (max-width: 425px){
  63. left: 28px;
  64. }
  65. }
  66. .next-arrow {
  67. right: -27px;
  68. z-index: 999;
  69.  
  70.  
  71. @media screen and (max-width: 1025px){
  72. right: -32px;
  73. }
  74. @media screen and (max-width: 768px){
  75. right: -28px;
  76. }
  77. @media screen and (max-width: 425px){
  78. right: -38px;
  79. }
  80. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement