blob: 721d181f72fdce454c41b6b0f59392922734a826 [file] [log] [blame]
Copybara botbe50d492023-11-30 00:16:42 +01001@charset "UTF-8";
2
3/**
4 * Copyright 2016 Leif Olsen. All Rights Reserved.
5 *
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
17 */
18
19// Use of this module requires the user to include variables from material-design-lite
20//@import "../../node_modules/material-design-lite/src/variables";
21//@import "../../node_modules/material-design-lite/src/mixins";
22@import "../variables";
23
24.mdlext-lightbox {
25 user-select: none;
26 cursor: default;
27 position: relative;
28 width: auto;
29 max-width: 100%;
30 margin: 0 auto;
31 border: $mdlext-lightbox-border;
32 border-radius: $mdlext-lightbox-border-radius;
33 background-color: $mdlext-lightbox-background-color;
34 box-sizing: border-box;
35 outline: 0;
36 display: block; // display: flex and IE11 has issues with reposition. Set display:block for now.
37
38 *,
39 *::before,
40 *::after,
41 input[type="search"] {
42 box-sizing: border-box;
43 }
44
45 .mdlext-lightbox__slider {
46 // Displays prevvious, current and next image while dragging
47 // Elements are created by lightbox component when dragging starts
48 position: absolute;
49 top: 0;
50 left: 0;
51 display: flex;
52 justify-content: center;
53
54 .mdlext-lightbox__slider__slide {
55 flex-shrink: 0;
56 display: block;
57 text-align: left;
58 color: #7f7f7f;
59 background-size: cover;
60 background-position: center;
61 background-repeat: no-repeat;
62
63 //&:nth-child(1),
64 //&:nth-child(3) {
65 // filter: blur(1px);
66 //}
67 }
68 }
69
70 figure {
71 margin: $mdlext-lightbox-figure-margin;
72 padding: $mdlext-lightbox-figure-padding;
73 position: relative;
74
75 img {
76 width: 100%;
77 max-width: 100%;
78 height: auto;
79 border: 0;
80 outline: 0;
81 }
82 figcaption {
83 @include typo-caption($colorContrast: false, $usePreferred: true);
84
85 display: block;
86 position: absolute;
87 bottom: 0;
88 left: 0;
89 right: 0;
90 max-width: 100%;
91 height: auto;
92 max-height: 50%;
93 overflow: auto;
94 padding: 8px;
95 background-color: $mdlext-lightbox-figcaption-background-color;
96 transform-origin: bottom;
97 transform: scaleY(0);
98 transition: 0.2s ease-in-out;
99
100 &.mdlext-lightbox__show-figcaption {
101 transform: scaleY(1);
102 }
103 tbody {
104 th {
105 text-align: left;
106 }
107 th,
108 td {
109 vertical-align: text-top;
110 }
111 }
112 }
113 }
114 .mdl-card__menu {
115 color: #ffffff;
116 z-index: 1;
117 }
118 footer {
119 display: flex;
120 justify-content: space-between;
121 align-items: center;
122 background-color: $mdlext-lightbox-footer-background-color;
123
124 .mdl-card__supporting-text {
125 flex: 1;
126 overflow: hidden;
127 padding: 0;
128 height: $card-supporting-text-line-height;
129 width: 100%;
130 }
131 nav {
132 display: flex;
133 }
134 }
135
136 &.mdlext-lightbox--sticky-footer footer {
137 position: fixed;
138 bottom: 0;
139 left: 0;
140 }
141}