PhotoView.scss
2.4 KB
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
@import "../../scss/bootstrap/variables";
.photo_view_wrap{
position: absolute;
top: 0;
bottom: 0;
right: 0;
left: 0;
z-index: 999;
background-color: rgba(0,0,0,0.1);
}
.viewer_header{
position: absolute;
z-index: 3;
top: 0;
right: 0;
left: 0;
display: -webkit-box;
display: -webkit-flex;
display: -moz-flex;
display: -ms-flexbox;
display: flex;
height: 56px;
background-color: #fff;
box-shadow: 0 1px 0 rgba(0,0,0,.10196078);
text-align: right;
}
.viewer{
position: absolute;
top: 56px;
right: 0;
bottom: 0;
left: 0;
width: 100%;
height: calc(100% - 56px);
background-color: #F3F3F3;
-webkit-transition: width .25s ease-out;
-moz-transition: width .25s ease-out;
transition: width .25s ease-out;
}
.controls{
white-space: nowrap;
width: 100%;
padding-right: 15px;
}
.close_btn{
position: relative;
color: #2c2d30;
display: inline-block;
margin: 13px 12px 13px 19px;
background: 0 0;
line-height: 30px;
text-shadow: none;
width: 20px;
height: 30px;
cursor: pointer;
border: none;
font-size: 20px;
font-style: normal;
font-weight: 400;
}
.file_ssb_download_link{
color: #2c2d30;
display: inline-block;
margin-right: -2px;
margin: 13px 0;
background: 0 0;
line-height: 30px;
text-shadow: none;
font-size: 20px;
font-style: normal;
font-weight: 400;
}
.file_ssb_download_link:hover,.close_btn:hover{
text-decoration: none;
}
.file_ssb_download_link:after {
position: absolute;
content: '';
top: 0;
right: 0;
bottom: 0;
left: 0;
border-radius: .25rem;
}
.scaled{
position: absolute;
min-width: 100%;
min-height: 100%;
margin: 0;
}
.scaled_image{
max-width: calc(100% - 44px);
max-height: calc(100% - 44px);
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
margin: auto;
cursor: nesw-resize;
cursor: -moz-zoom-in;
cursor: -webkit-zoom-in;
}
.actual_pixel{
visibility: hidden;
display: table;
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
min-width: 100%;
min-height: 100%;
overflow: auto;
text-align: center;
cursor: zoom-out;
margin: 0;
}
.actual_pixel_center{
display: table-cell;
min-width: 100%;
min-height: 100%;
vertical-align: middle;
}
.actual_pixel_image{
max-width: none;
display: inline-block;
}