Skip to content

Commit 0ade5ff

Browse files
committed
lightbox buttons
1 parent dc40107 commit 0ade5ff

2 files changed

Lines changed: 14 additions & 5 deletions

File tree

‎src/skins/vector/css/atoms/ImageView.css‎

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ limitations under the License.
4545
/* min-width hack needed for FF */
4646
min-width: 0px;
4747
height: 90%;
48-
-webkit-flex: 100;
49-
flex: 100 100 0;
48+
-webkit-flex: 15;
49+
flex: 15 15 0;
5050

5151
display: -webkit-flex;
5252
display: flex;
@@ -58,9 +58,9 @@ limitations under the License.
5858

5959
.mx_ImageView_content img {
6060
max-width: 100%;
61-
/* can't use max-height as it interacts badly with flex on Chrome and doesn't relayout properly until you refresh */
61+
/* XXX: max-height interacts badly with flex on Chrome and doesn't relayout properly until you refresh */
6262
max-height: 100%;
63-
/* object-fit hack needed for Chrome */
63+
/* object-fit hack needed for Chrome due to Chrome not relaying out until you refresh */
6464
object-fit: contain;
6565
background-image: url('img/trans.png');
6666
}
@@ -86,14 +86,17 @@ limitations under the License.
8686
.mx_ImageView_name {
8787
font-size: 20px;
8888
margin-bottom: 6px;
89+
pointer-events: all;
8990
}
9091

9192
.mx_ImageView_metadata {
9293
font-size: 16px;
9394
opacity: 0.5;
95+
pointer-events: all;
9496
}
9597

9698
.mx_ImageView_download {
99+
pointer-events: all;
97100
display: table;
98101
margin-top: 24px;
99102
margin-bottom: 6px;
@@ -102,10 +105,15 @@ limitations under the License.
102105
font-size: 16px;
103106
padding: 9px;
104107
border: 1px solid #fff;
105-
cursor: pointer;
108+
}
109+
110+
.mx_ImageView_link {
111+
color: #fff ! important;
112+
text-decoration: none ! important;
106113
}
107114

108115
.mx_ImageView_button {
116+
pointer-events: all;
109117
font-size: 16px;
110118
opacity: 0.5;
111119
margin-top: 18px;

‎src/skins/vector/css/common.css‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ a:visited {
139139
height: 100%;
140140
max-width: 100%;
141141
max-height: 100%;
142+
pointer-events: none;
142143
}
143144

144145
.mx_Dialog_content {

0 commit comments

Comments
 (0)