mirror of
https://github.com/shadoll/sLogos.git
synced 2026-02-04 11:03:24 +00:00
Refactor Preview component by removing unused logos export and cleaning up CSS variables for improved maintainability
This commit is contained in:
@@ -6,7 +6,6 @@
|
|||||||
export let show = false;
|
export let show = false;
|
||||||
export let logo = null;
|
export let logo = null;
|
||||||
export let theme;
|
export let theme;
|
||||||
export let logos = [];
|
|
||||||
export let openLogoByAnchor = () => {};
|
export let openLogoByAnchor = () => {};
|
||||||
|
|
||||||
const dispatch = createEventDispatcher();
|
const dispatch = createEventDispatcher();
|
||||||
@@ -199,16 +198,6 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
:root,
|
|
||||||
:root.light,
|
|
||||||
[data-theme="light"] {
|
|
||||||
--color-backdrop: rgba(255,255,255,0.98);
|
|
||||||
}
|
|
||||||
:root.dark,
|
|
||||||
[data-theme="dark"] {
|
|
||||||
--color-backdrop: rgba(0,0,0,0.99);
|
|
||||||
}
|
|
||||||
|
|
||||||
.modal-backdrop.fullscreen {
|
.modal-backdrop.fullscreen {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 0; left: 0; right: 0; bottom: 0;
|
top: 0; left: 0; right: 0; bottom: 0;
|
||||||
@@ -296,8 +285,7 @@
|
|||||||
justify-content: center;
|
justify-content: center;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
.preview-media-wrapper img,
|
.preview-media-wrapper img {
|
||||||
.preview-media-wrapper svg {
|
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user