added basic theaming...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
849460de91
commit
802fe8193b
@ -20,9 +20,21 @@
|
|||||||
--gallery-secondary-color: silver;
|
--gallery-secondary-color: silver;
|
||||||
--gallery-background-color: white;
|
--gallery-background-color: white;
|
||||||
|
|
||||||
|
--lightbox-text-color: black;
|
||||||
--lightbox-background-color: white;
|
--lightbox-background-color: white;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.gallery-dark {
|
||||||
|
--gallery-text-color: silver;
|
||||||
|
--gallery-secondary-color: gray;
|
||||||
|
--gallery-background-color: black;
|
||||||
|
}
|
||||||
|
|
||||||
|
.lightbox-dark {
|
||||||
|
--lightbox-text-color: silver;
|
||||||
|
--lightbox-background-color: black;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/****************************************************** Scrolling ****/
|
/****************************************************** Scrolling ****/
|
||||||
@ -40,6 +52,9 @@
|
|||||||
}
|
}
|
||||||
body {
|
body {
|
||||||
overflow-y: scroll;
|
overflow-y: scroll;
|
||||||
|
|
||||||
|
color: var(--gallery-text-color);
|
||||||
|
background: var(--gallery-background-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -55,6 +70,9 @@ body {
|
|||||||
|
|
||||||
margin-left: var(--gallery-scrollbar-width);
|
margin-left: var(--gallery-scrollbar-width);
|
||||||
margin-right: 0;
|
margin-right: 0;
|
||||||
|
|
||||||
|
color: var(--gallery-text-color);
|
||||||
|
background: var(--gallery-background-color);
|
||||||
}
|
}
|
||||||
.gallery img {
|
.gallery img {
|
||||||
height: 300px;
|
height: 300px;
|
||||||
@ -82,6 +100,7 @@ body {
|
|||||||
|
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
|
||||||
|
color: var(--lightbox-text-color);
|
||||||
background: var(--lightbox-background-color);
|
background: var(--lightbox-background-color);
|
||||||
}
|
}
|
||||||
.gallery .lightbox.show-caption:after {
|
.gallery .lightbox.show-caption:after {
|
||||||
|
|||||||
@ -1,3 +1,20 @@
|
|||||||
|
//=====================================================================
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
// TODO:
|
||||||
|
// - selection
|
||||||
|
// - drag-n-drop
|
||||||
|
// - sort/move
|
||||||
|
// - crop selection
|
||||||
|
// - full screen
|
||||||
|
// - make the gallery into a web component
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//=====================================================================
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//---------------------------------------------------------------------
|
//---------------------------------------------------------------------
|
||||||
|
|
||||||
// XXX need to account for scrollbar -- add hysteresis???
|
// XXX need to account for scrollbar -- add hysteresis???
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user