signal-desktop/stylesheets/_lightbox.scss

77 lines
1.5 KiB
SCSS
Raw Normal View History

2020-10-30 20:34:04 +00:00
// Copyright 2016-2020 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
2018-04-24 16:06:43 +00:00
.lightbox-container {
2018-04-15 03:27:03 +00:00
display: none;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 100;
2016-07-12 23:44:45 +00:00
}
2018-04-15 04:27:30 +00:00
.iconButton {
2019-11-07 21:36:16 +00:00
@include button-reset;
// NOTE: Cannot move these to inline styles as hover breaks due to precedence.
// We use vanilla CSS-in-JS which outputs inline styles. The `:hover`
// pseudo-class cannot be expressed using vanilla CSS-in-JS, so we define it
// here. If we move the other properties to JS, they have higher precedence
// as they are inline and the `:hover` `background` change wont override the
// base `background` definition. Revisit this as we adopt a more sophisticated
// style system in the future:
2018-04-15 04:27:30 +00:00
background: transparent;
width: 50px;
height: 50px;
display: inline-block;
border-radius: 50%;
padding: 3px;
&:before {
content: '';
display: block;
width: 100%;
height: 100%;
}
2019-11-07 21:36:16 +00:00
&:hover,
&:focus {
2019-10-04 18:06:17 +00:00
background: $color-gray-60;
2018-04-15 04:27:30 +00:00
}
&.save {
&:before {
2019-10-04 18:06:17 +00:00
@include color-svg(
'../images/icons/v2/save-outline-24.svg',
$color-white
);
2018-04-15 04:27:30 +00:00
}
}
&.close {
&:before {
2019-10-04 18:06:17 +00:00
@include color-svg('../images/icons/v2/x-24.svg', $color-white);
2018-04-15 04:27:30 +00:00
}
}
2018-04-15 05:19:46 +00:00
&.previous {
&:before {
2019-10-04 18:06:17 +00:00
@include color-svg(
'../images/icons/v2/chevron-left-24.svg',
$color-white
);
2018-04-15 05:19:46 +00:00
}
}
&.next {
&:before {
2019-10-04 18:06:17 +00:00
@include color-svg(
'../images/icons/v2/chevron-right-24.svg',
$color-white
);
2018-04-15 05:19:46 +00:00
}
}
2018-04-15 04:27:30 +00:00
}