_gallery.scss 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. .gallery_area{
  2. overflow: hidden;
  3. padding-top: 160px;
  4. @media #{$mobile_device} {
  5. padding:60px 10px;
  6. }
  7. @media #{$tablet_device} {
  8. padding-top: 60px;
  9. }
  10. .single_gallery{
  11. // padding: 2px;
  12. position: relative;
  13. height: 500px;
  14. float: left;
  15. overflow: hidden;
  16. border-right: 8px solid#fff;
  17. border-bottom: 8px solid #fff;
  18. @media #{$mobile_device} {
  19. height: auto;
  20. border: none;
  21. margin-bottom: 10px;
  22. }
  23. @media #{$mobile_device} {
  24. height: 300px;
  25. }
  26. @media #{$mid_device} {
  27. height: 300px;
  28. }
  29. @media #{$tablet_device} {
  30. height: 300px;
  31. }
  32. a{
  33. position: absolute;
  34. width: 100%;
  35. height: 100%;
  36. left: 0;
  37. top: 0;
  38. z-index: 12;
  39. }
  40. &:before{
  41. position: absolute;
  42. width: 100%;
  43. height: 100%;
  44. left: 0;
  45. top: 0;
  46. content: '';
  47. background: #BB8151;
  48. opacity: 0;
  49. @include transform(scale(.8));
  50. @include transition(.3s);
  51. z-index: 8;
  52. }
  53. img{
  54. width: 100%;
  55. height: 100%;
  56. @include transform(scale(1.1));
  57. @include transition(.3s);
  58. }
  59. &.small_img{
  60. width: 30%;
  61. @media #{$mobile_device} {
  62. width: 100%;
  63. }
  64. @media #{$tablet_device}{
  65. width: 50%;
  66. }
  67. }
  68. &.big_img{
  69. width: 40%;
  70. @media #{$mobile_device} {
  71. width: 100%;
  72. }
  73. @media #{$tablet_device}{
  74. width: 50%;
  75. }
  76. @media #{$mobile_device} {
  77. width: 100%;
  78. }
  79. }
  80. &:nth-child(3){
  81. // border-right: none;
  82. }
  83. &:nth-child(6){
  84. // border-right: none;
  85. }
  86. &:hover{
  87. &::before{
  88. opacity: .3;
  89. @include transform(scale(1.1));
  90. }
  91. img{
  92. @include transform(scale(1));
  93. }
  94. }
  95. }
  96. }