summaryrefslogtreecommitdiff
path: root/public/assets/css
diff options
context:
space:
mode:
authorjulian laplace <julescarbon@gmail.com>2022-10-27 16:42:57 +0200
committerjulian laplace <julescarbon@gmail.com>2022-10-27 16:42:57 +0200
commit83c938702eb67bd6d154bb98b632e64e5e7e183f (patch)
tree7b2b64a91f68cbcd4d4b2089b3a24b3f40bde88f /public/assets/css
parent53644b55eb3a6a355f25e4a30b62c2c78451cd29 (diff)
add player and image viewer
Diffstat (limited to 'public/assets/css')
-rw-r--r--public/assets/css/audioplayer.css130
-rw-r--r--public/assets/css/hootstream.css42
2 files changed, 170 insertions, 2 deletions
diff --git a/public/assets/css/audioplayer.css b/public/assets/css/audioplayer.css
new file mode 100644
index 0000000..49a2809
--- /dev/null
+++ b/public/assets/css/audioplayer.css
@@ -0,0 +1,130 @@
+.icon.notes {
+ background-image: url(/assets/img/notes-white.svg);
+}
+.icon.note {
+ background-image: url(/assets/img/note-white.svg);
+}
+.icon.grid {
+ background-image: url(/assets/img/grid-white.svg);
+}
+.icon.graph {
+ background-image: url(/assets/img/graph-white.svg);
+}
+.playing .icon.audio,
+.icon.pause {
+ background-image: url(/assets/img/pause-white.svg);
+}
+.icon.audio,
+.icon.play {
+ background-image: url(/assets/img/play-white.svg);
+ background-size: 80% 80%;
+}
+
+.player {
+ display: flex;
+ flex-direction: row;
+ justify-content: center;
+ position: fixed;
+ bottom: 2rem;
+ left: 0;
+ width: 100%;
+ transition: 0.2s cubic-bezier(0, 0, 1, 1);
+ opacity: 0;
+}
+.player.active {
+ opacity: 1;
+}
+.player:hover {
+ opacity: 1;
+}
+.player .controls {
+ width: 100%;
+ max-width: 45rem;
+ display: flex;
+ flex-direction: column;
+ padding: 1rem;
+}
+
+.player .controls {
+ background: linear-gradient(-90deg, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.95));
+}
+.player .trackInfo {
+ justify-content: space-between;
+ padding: 1rem 1.5rem;
+}
+.player .row {
+ display: flex;
+ flex-direction: row;
+}
+.player .icon {
+ cursor: pointer;
+ height: 3rem;
+ width: 4rem;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+}
+.player .pos {
+ flex: 1;
+ position: relative;
+ cursor: pointer;
+ height: 3rem;
+ opacity: 0.8;
+}
+.player .pos:hover {
+ opacity: 1;
+}
+.player .title,
+.player .time {
+ font-size: 1rem;
+ color: #eee;
+}
+.player .icon img {
+ display: none;
+ width: 2.5em;
+}
+.player .icon.active .play_icon {
+ display: none;
+}
+.player .icon.active .pause_icon {
+ display: block;
+}
+.player .icon .pause_icon {
+ display: none;
+}
+.player .icon .play_icon {
+ display: block;
+}
+.player .track {
+ pointer-events: none;
+ position: absolute;
+ top: 50%;
+ left: 0;
+ margin-top: -1px;
+ height: 2px;
+ background: #fff;
+ width: calc(100% - 1.5rem);
+}
+.player .dot {
+ pointer-events: none;
+ position: absolute;
+ top: 50%;
+ left: 0;
+ margin-top: -0.5rem;
+ width: 1rem;
+ height: 1rem;
+ border-radius: 50%;
+ background: #fff;
+ box-shadow: 0 0 3px rgba(255, 255, 255, 0.1);
+}
+.player .track,
+.player .dot {
+ transition: box-shadow 0.1s, background 0.1s, left 0.1s, transform 0.1s;
+}
+.player .pos:hover .track {
+ background: #fff;
+}
+.player .pos:hover .dot {
+ background: #fff;
+ box-shadow: 0 0 5px rgba(255, 255, 255, 1);
+}
diff --git a/public/assets/css/hootstream.css b/public/assets/css/hootstream.css
index 96b140c..470cb72 100644
--- a/public/assets/css/hootstream.css
+++ b/public/assets/css/hootstream.css
@@ -6,7 +6,7 @@
margin-top: 1.5rem;
font-size: 16px;
}
-#hootstream #audio {
+#audio {
display: none;
}
#hootstream form {
@@ -54,8 +54,46 @@
.hoot:hover > .text {
opacity: 1 !important;
}
+
+/** ImAgeS and other image lISTS!! */
+#hootevents .imageList {
+ margin-bottom: 1rem;
+ display: flex;
+ flex-direction: row;
+ align-items: flex-end;
+}
#hootevents .hootText img {
- max-width: 100%;
+ max-width: calc(100vmin - 2rem);
+ max-height: calc(100vmin - 1rem);
+}
+#hootevents .imageList img {
+ max-width: calc(100vmin - 2rem);
+ max-height: calc(100vmin - 1rem);
+ display: block;
+}
+#hootevents .imageList .image {
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ padding: 1rem;
+ max-height: 100vmin;
+ opacity: 0.95;
+ transition: opacity 0.1s;
+}
+#hootevents .imageList .caption {
+ margin: 1rem;
+ font-size: 0.9rem;
+ color: rgba(128, 128, 128, 0.5);
+ transition: color 0.1s;
+}
+#hootevents .imageList .image:hover {
+ opacity: 1;
+}
+#hootevents .imageList .image:hover .caption {
+ color: rgba(255, 255, 255, 0.8);
+}
+#hootevents .imageList .image:hover a {
+ opacity: 1 !important;
}
/** metadata */