Welcome to mirror list, hosted at ThFree Co, Russian Federation.

_gallery.scss « sass « assets - github.com/kdevo/osprey-delight.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 36eb6a785b13c0656b7a803d721aaeec82f2bad1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
.gallery {
  .gallery-item {
    position: relative;
    width: 50%;
    padding: 0;

    &::after {
      content: "";
      display: block;
      padding-bottom: 100%;
    }

    &:hover {
      .overlay {
        visibility: visible;
        opacity: 1;
      }
    }
  }

  .overlay {
    visibility: hidden;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: .25s ease-out;
    opacity: 0;
    background-color: $gallery-overlay-bg-color; 
    cursor: pointer;

    // a {
    //   color: $primary-bg-color;

    //   &:hover {
    //     color: $accent-color;
    //   }
    // }

    h2 {
      margin: $vertical-rhythm;
      margin-bottom: 0.5 * $vertical-rhythm;
      color: $gallery-overlay-title-color;
    }

    h3 {
      color: $gallery-overlay-subtitle-color;
    }
  }

  .gallery-img-container {
    display: flex;
    position: absolute;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;

    img {
      padding: $vertical-rhythm * 3;
      max-height: 100%;
    }
  }

  .gallery-modal-link {
    display: flex;
    position: absolute;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
  }
}