melpomene/melpomene.css

162 lines
3.0 KiB
CSS
Raw Normal View History

2023-05-21 21:07:40 +02:00
/* Melpomene webcomic reader CSS */
2023-05-26 19:32:31 +02:00
/* Version 1.0.0_RC1 */
2023-05-19 18:15:34 +02:00
/* CC-BY-NC-SA : https://git.aribaud.net/caribaud/melpomene/ */
2023-05-26 19:19:38 +02:00
#melpomene-focus-container, #melpomene-nav-controls, #melpomene-progress-sections {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
#melpomene, #melpomene-focus-container, #melpomene-pages, #melpomene-nav-controls, #melpomene-focus-col {
display: flex;
flex-direction: row;
2023-04-17 19:33:41 +02:00
}
2023-05-26 19:19:38 +02:00
#melpomene-pages, #melpomene-focus-container * {
2023-05-19 15:42:39 +02:00
transition: all 1.5s ease;
}
2023-04-17 19:33:41 +02:00
2023-05-26 19:19:38 +02:00
#melpomene, #melpomene-focus-col {
2023-04-17 20:06:22 +02:00
flex-direction: column;
}
2023-05-26 19:19:38 +02:00
#melpomene {
height: 100%;
width: 100%;
border: 2px solid;
box-sizing: border-box;
background-color: black;
}
#melpomene-content-frame {
2023-04-15 13:12:49 +02:00
position: relative;
2023-05-26 19:19:38 +02:00
flex: 1;
2023-04-17 20:06:22 +02:00
overflow: hidden;
2023-04-15 13:12:49 +02:00
}
2023-05-26 19:19:38 +02:00
#melpomene-pages {
2023-05-22 00:19:12 +02:00
transform-origin: top left;
transform: scale(1) translate(0);
2023-05-25 21:31:22 +02:00
align-items: center;
width: fit-content;
height: fit-content;
2023-04-15 13:12:49 +02:00
}
2023-05-26 19:19:38 +02:00
#melpomene-pages > img {
2023-04-15 13:12:49 +02:00
display: inline-block;
2023-04-15 18:14:57 +02:00
opacity: 0;
2023-04-15 17:38:46 +02:00
transition: all 1s cubic-bezier(.9,.03,.69,.22); /* ease-in quartic */
2023-04-15 13:12:49 +02:00
}
2023-05-26 19:19:38 +02:00
#melpomene-focus-container * {
2023-05-19 15:42:39 +02:00
background-color: rgba(0, 0, 0, 0.85);
2023-05-26 19:19:38 +02:00
flex-grow: 1;
2023-05-19 15:42:39 +02:00
}
2023-05-26 19:19:38 +02:00
#melpomene-focus-col, #melpomene-focus {
background-color: initial;
flex-grow: 0;
2023-05-19 15:42:39 +02:00
}
2023-05-26 19:19:38 +02:00
#melpomene-focus {
box-shadow: inset 0px 0px 5px 5px rgba(0, 0, 0, 0.85);
2023-05-19 15:42:39 +02:00
}
2023-05-26 19:19:38 +02:00
#melpomene-nav-controls {
display: flex;
2023-04-15 13:12:49 +02:00
grid-template-areas:
"left top right"
"left center right"
"left bottom right";
2023-05-26 19:19:38 +02:00
2023-04-16 22:24:59 +02:00
grid-template-columns: 33% 0 1fr;
2023-04-15 13:12:49 +02:00
grid-template-rows: auto;
}
2023-05-26 19:19:38 +02:00
#melpomene-nav-controls > div {
flex-grow: 1;
2023-04-15 13:12:49 +02:00
cursor: pointer;
}
2023-05-26 19:19:38 +02:00
#melpomene-nav-controls > div:first-child {
width: 35%;
flex-grow: 0
2023-04-15 13:12:49 +02:00
}
2023-05-26 19:19:38 +02:00
#melpomene-help-menu {
2023-04-15 13:12:49 +02:00
2023-05-26 19:19:38 +02:00
position: absolute;
bottom: 0;
right: 0;
2023-04-16 22:24:59 +02:00
font-size: 120%;
2023-05-26 19:19:38 +02:00
2023-04-16 22:24:59 +02:00
color: white;
2023-05-26 19:19:38 +02:00
background-color: rgba(0,0,0,0.8);
2023-04-16 22:24:59 +02:00
2023-04-17 20:59:32 +02:00
padding: 0 1em 1em 1em;
2023-04-16 22:24:59 +02:00
z-index: 1;
opacity: 0;
2023-04-16 22:33:09 +02:00
transition: all 1.7s cubic-bezier(.76,.05,.86,.06);
2023-04-16 22:24:59 +02:00
border: white solid;
border-width: 1px 0 0 1px;
border-radius: 0.3em 0 0 0;
2023-04-17 20:32:13 +02:00
transform: translate(0, calc(100% - 2em));
2023-04-16 22:24:59 +02:00
}
2023-05-26 19:19:38 +02:00
#melpomene-help-menu:hover {
2023-04-16 22:24:59 +02:00
opacity: 1;
transition: all 0.3s linear;
2023-04-17 20:32:13 +02:00
transform: translate(0, 0);
2023-04-16 22:24:59 +02:00
}
2023-05-26 19:19:38 +02:00
#melpomene-help-menu * {
2023-04-16 22:24:59 +02:00
margin-top: 1em;
2023-04-17 20:59:32 +02:00
text-align: center;
2023-04-16 22:24:59 +02:00
}
2023-05-26 19:19:38 +02:00
#melpomene-help-menu .melpomene-credits {
margin-top: 0.5em;
font-size: 70%;
text-align: right;
}
#melpomene-help-menu .melpomene-credits a {
color: white;
}
.melpomene-key {
2023-04-16 22:24:59 +02:00
display: inline;
margin: 0 0.5em;
border: 1px white solid;
padding: 0 0.1em;
border-radius: 0.2em;
2023-04-17 19:33:41 +02:00
}
2023-05-26 19:19:38 +02:00
#melpomene-progress-container {
2023-04-17 19:33:41 +02:00
background-color: dimgray;
2023-04-22 14:31:26 +02:00
position: relative;
2023-04-17 19:33:41 +02:00
}
2023-05-26 19:19:38 +02:00
#melpomene-progress-bar{
height: 0.3em;
2023-04-17 19:33:41 +02:00
background-color: whitesmoke;
transition: all 0.5s ease-in-out;
2023-05-26 19:19:38 +02:00
width: 0%;
2023-04-22 14:31:26 +02:00
}
2023-05-26 19:19:38 +02:00
#melpomene-progress-sections {
2023-04-22 14:31:26 +02:00
display: flex;
}
2023-05-26 19:19:38 +02:00
#melpomene-progress-sections > * {
2023-04-22 14:31:26 +02:00
height: 100%;
box-sizing: border-box;
border-right: 0.3em black solid;
flex: 1;
2023-05-25 21:31:22 +02:00
}