styling updates, button functions
This commit is contained in:
@@ -1,11 +1,14 @@
|
|||||||
body {
|
body {
|
||||||
background-color: #01817F;
|
background-color: #01817F;
|
||||||
|
background-size: cover;
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background-attachment: fixed;
|
||||||
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.window:not([role="tabpanel"]) {
|
.window:not([role="tabpanel"]) {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
z-index:99;
|
z-index:99;
|
||||||
min-width: 380px;
|
|
||||||
min-height: 520px;
|
min-height: 520px;
|
||||||
width:max(560px, 50vw);
|
width:max(560px, 50vw);
|
||||||
resize: both;
|
resize: both;
|
||||||
@@ -28,6 +31,14 @@ body {
|
|||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.window.hide {
|
||||||
|
display:none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.window form {
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
.window-body {
|
.window-body {
|
||||||
flex-grow: 1;
|
flex-grow: 1;
|
||||||
display: flex;
|
display: flex;
|
||||||
@@ -60,6 +71,10 @@ iframe {
|
|||||||
#album h1, #album h2 {
|
#album h1, #album h2 {
|
||||||
color: white;
|
color: white;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
overflow: hidden;
|
||||||
|
max-width: 100%;
|
||||||
|
white-space: nowrap;
|
||||||
|
text-overflow:ellipsis;
|
||||||
}
|
}
|
||||||
|
|
||||||
#album h1 {
|
#album h1 {
|
||||||
@@ -112,6 +127,23 @@ input[type="range"]::-moz-range-thumb {
|
|||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.clippy .body .content {
|
||||||
|
max-height:calc(100vh - 197px);
|
||||||
|
overflow-y: scroll;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 500px) {
|
||||||
|
.clippy {
|
||||||
|
width: calc(100vw - 10px);
|
||||||
|
}
|
||||||
|
.clippy .body.hide {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
.body.hide ~ img {
|
||||||
|
display:none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.clippy .body.hide {
|
.clippy .body.hide {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
@@ -120,7 +152,7 @@ input[type="range"]::-moz-range-thumb {
|
|||||||
content: "";
|
content: "";
|
||||||
position: absolute;
|
position: absolute;
|
||||||
bottom: -13px;
|
bottom: -13px;
|
||||||
left: 128px;
|
right: 128px;
|
||||||
border-width: 13px 17px 0;
|
border-width: 13px 17px 0;
|
||||||
border-style: solid;
|
border-style: solid;
|
||||||
border-color: lightyellow transparent;
|
border-color: lightyellow transparent;
|
||||||
@@ -132,7 +164,7 @@ input[type="range"]::-moz-range-thumb {
|
|||||||
content: "";
|
content: "";
|
||||||
position: absolute;
|
position: absolute;
|
||||||
bottom: -14px;
|
bottom: -14px;
|
||||||
left: 126px;
|
right: 127px;
|
||||||
border-width: 14px 19px 0;
|
border-width: 14px 19px 0;
|
||||||
border-style: solid;
|
border-style: solid;
|
||||||
border-color: black transparent;
|
border-color: black transparent;
|
||||||
|
|||||||
@@ -10,8 +10,11 @@
|
|||||||
{% block window-title %}{% endblock %}
|
{% block window-title %}{% endblock %}
|
||||||
</div>
|
</div>
|
||||||
<div class="title-bar-controls">
|
<div class="title-bar-controls">
|
||||||
<button aria-label="Help"></button>
|
<button aria-label="Help" onclick="resetWindow()"></button>
|
||||||
<button aria-label="Close"></button>
|
<form action="{% url 'oidc_logout' %}" method="post">
|
||||||
|
{% csrf_token %}
|
||||||
|
<button aria-label="Close" onclick="hideWindow()"></button>
|
||||||
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="window-body">
|
<div class="window-body">
|
||||||
@@ -46,6 +49,15 @@
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
function hideWindow() {
|
||||||
|
document.getElementById("main-window").classList.add("hide");
|
||||||
|
}
|
||||||
|
|
||||||
|
function resetWindow() {
|
||||||
|
position.reset()
|
||||||
|
document.getElementById("main-window").style.transform = '';
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
</script>
|
</script>
|
||||||
<div class="clippy">
|
<div class="clippy">
|
||||||
<div class="body">
|
<div class="body">
|
||||||
{{ body }}
|
<div class="content">{{ body }}</div>
|
||||||
<br /><button onclick="closeclippy(this)">Ok</button>
|
<br /><button onclick="closeclippy(this)">Ok</button>
|
||||||
</div>
|
</div>
|
||||||
{% if img %}
|
{% if img %}
|
||||||
|
|||||||
@@ -15,11 +15,13 @@ Stemmen
|
|||||||
{% else %}
|
{% else %}
|
||||||
<img src="https://kagi.com/proxy/windows-95-logo-png-1.png?c=xjdP8sWN58YWflc6NcGN5ZvzREJyOwtrou-TSsaXxcx37J0VVJbSeycOcAptMJEUpzzvqmbKQ3JRuSmPN8HCK43OxjkRe_cQvncxVzlCblc%3D" />
|
<img src="https://kagi.com/proxy/windows-95-logo-png-1.png?c=xjdP8sWN58YWflc6NcGN5ZvzREJyOwtrou-TSsaXxcx37J0VVJbSeycOcAptMJEUpzzvqmbKQ3JRuSmPN8HCK43OxjkRe_cQvncxVzlCblc%3D" />
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<h1>{{track.name}}</h1>
|
<h1 title="{{track.name}}">{{track.name}}</h1>
|
||||||
<h2>{{track.artist}}</h2>
|
<h2 title="{{track.artist}}">{{track.artist}}</h2>
|
||||||
</div>
|
</div>
|
||||||
<input id="seek" type="range" min="0" step="0.1" max="100" value="0" />
|
<input id="seek" type="range" min="0" step="0.1" max="100" value="0" />
|
||||||
<button id="playpause">⏵️</button>
|
<div class="media-control">
|
||||||
|
<button id="playpause">⏵️</button>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div
|
<div
|
||||||
id="vote-buttons"
|
id="vote-buttons"
|
||||||
|
|||||||
@@ -35,5 +35,10 @@
|
|||||||
localStorage.removeItem("position")
|
localStorage.removeItem("position")
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
reset() {
|
||||||
|
this._x = 0
|
||||||
|
this._y = 0
|
||||||
|
localStorage.removeItem("position")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
Reference in New Issue
Block a user