aboutsummaryrefslogtreecommitdiff
path: root/resources/assets/stylesheets/less/big-image-handler.less
blob: 1d913ea9e168a5a64159202b1730d42f6786544b (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
.oversized-image {
    cursor: zoom-in;
}
.oversized-image-zoom {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;

    height: 100%;
    width: 100%;
    z-index: 10000;

    background: fadeout(#000, 30%);  
    cursor: zoom-out;

    display: flex;
    justify-content: center;
    align-items: center;
  
    // The actual oversized image is loaded as a background image so we can
    // use the background-size option "contain" which will ensure that the
    // image will be visible even on small displays.
    span {
        background-color: fadeout(#000, 30%);
        background-position: center;
        background-repeat: no-repeat;
        background-size: contain;
        border: 1px solid #fff;
        box-shadow: 0 0 20px fadeout(#fff, 50%);
        display: block;
        max-width: 98%;
        max-height: 98%;
        
        img {
            opacity: 0;
        }
  }
}