-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathstyle.css
117 lines (94 loc) · 2.08 KB
/
style.css
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
.popupviewerContentStyle() {
box-shadow: 0.2em 0.2em 3em rgba(255, 255, 255, 0.4);
border-radius: 6px;
}
#popupviewer, #popupviewer:before {
position: fixed;
top: 0; left: 0; right: 0; bottom: 0;
z-index: 11000;
}
#popupviewer:before {
content: '';
background-color: rgba(0,0,0,0.8);
pointer-events: none;
}
#popupviewer > .controls > a {
background: url(images/modifier-images.png);
position: absolute;
cursor: pointer;
width: 24px;
display: none;
height: 24px;
top: 0px;
right: 0px;
margin-top: -13px;
margin-right: -13px;
z-index: 11010;
&.next {
background-position: -24px 0;
margin-right: 26px;
}
&.close {
background-position: -48px 0;
}
&.previous {
margin-right: 50px;
}
&.inactive {
opacity: 0.5;
cursor: default;
}
&.visible {
display: block;
}
}
#popupviewer > .controls > .content.isImage > a {
display: block;
}
#popupviewer > .controls > .content.isImage img {
.popupviewerContentStyle();
}
#popupviewer > .controls > .content {
background-color: #fff;
border: 2px solid #999;
z-index: 11002;
padding: 10px;
overflow: auto;
box-sizing: border-box;
.popupviewerContentStyle();
&.isImage, &:empty {
padding: 0px;
border: none;
background-color: transparent;
overflow: visible;
}
&:empty {
background: url(images/loading.gif);
width: 208px;
height: 13px;
margin: auto;
position: relative;
}
&:empty ~ a.next,
&:empty ~ a.previous {
display: none;
}
}
#popupviewer > .controls > .additionalContent {
.popupviewerContentStyle();
background-color: #fff;
padding: 0px 30px;
position:relative;
border: 1px solid #333;
&:empty {
display: none;
}
}
#popupviewer > .controls {
position:absolute;
/* by default it is empty thus showing the loader */
left:50%;
top:50%;
margin-left: -104px;
z-index: 11004;
}