123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140 |
- @keyframes PhotoView__fade {
- from {
- opacity: 0;
- }
- to {
- opacity: 1;
- }
- }
- .PhotoView {
- &-PhotoSlider__clean {
- .PhotoView-PhotoSlider__BannerWrap,
- .PhotoView-PhotoSlider__ArrowLeft,
- .PhotoView-PhotoSlider__ArrowRight,
- .PhotoView-PhotoSlider__FooterWrap {
- opacity: 0;
- &:hover {
- opacity: 0;
- }
- }
- }
- &-PhotoSlider__Backdrop {
- position: absolute;
- top: 0;
- left: 0;
- width: 100%;
- height: 100%;
- background: rgba(0, 0, 0, 0.6);
- z-index: -1;
- }
- &-PhotoSlider__fadeIn {
- opacity: 0;
- animation: PhotoView__fade 0.4s linear both;
- }
- &-PhotoSlider__fadeOut {
- opacity: 0;
- animation: PhotoView__fade 0.4s linear both reverse;
- }
- &-PhotoSlider__BannerWrap {
- position: absolute;
- left: 0;
- top: 0;
- display: flex;
- justify-content: space-between;
- align-items: center;
- width: 100%;
- height: 44px;
- color: white;
- background-color: rgba(0, 0, 0, 0.5);
- transition: opacity 0.2s ease-out;
- z-index: 20;
- &:hover {
- opacity: 1;
- }
- }
- &-PhotoSlider__Counter {
- padding: 0 10px;
- font-size: 14px;
- opacity: 0.75;
- }
- &-PhotoSlider__BannerRight {
- height: 100%;
- }
- &-PhotoSlider__Close {
- box-sizing: border-box;
- padding: 10px;
- opacity: 0.75;
- cursor: pointer;
- transition: opacity 0.2s linear;
- &:hover {
- opacity: 1;
- }
- }
- &-PhotoSlider__ArrowLeft,
- &-PhotoSlider__ArrowRight {
- position: absolute;
- top: 0;
- bottom: 0;
- display: flex;
- justify-content: center;
- align-items: center;
- width: 70px;
- height: 100px;
- margin: auto;
- opacity: 0.75;
- z-index: 20;
- cursor: pointer;
- user-select: none;
- transition: opacity 0.2s linear;
- &:hover {
- opacity: 1;
- }
- svg {
- box-sizing: content-box;
- padding: 10px;
- width: 24px;
- height: 24px;
- fill: white;
- background: rgba(0, 0, 0, 0.3);
- }
- }
- &-PhotoSlider__ArrowLeft {
- left: 0;
- }
- &-PhotoSlider__ArrowRight {
- right: 0;
- }
- &-PhotoSlider__FooterWrap {
- box-sizing: border-box;
- position: absolute;
- left: 0;
- bottom: 0;
- padding: 10px;
- width: 100%;
- min-height: 44px;
- line-height: 1.5;
- font-size: 14px;
- color: #ccc;
- background-color: rgba(0, 0, 0, 0.5);
- text-align: justify;
- transition: opacity 0.2s ease-out;
- z-index: 20;
- }
- }
|