mirror of
https://github.com/Kozea/Radicale.git
synced 2025-06-26 16:45:52 +00:00
Add arrow to branch drop-down menu
This commit is contained in:
parent
88fd7df106
commit
010fd02601
6 changed files with 35 additions and 14 deletions
|
@ -80,7 +80,7 @@ BDO[DIR="rtl"] { direction: rtl; unicode-bidi: bidi-override }
|
||||||
/* END: https://www.w3.org/TR/CSS22/ */
|
/* END: https://www.w3.org/TR/CSS22/ */
|
||||||
|
|
||||||
@media not screen {
|
@media not screen {
|
||||||
header select.documentBranch, nav, .navButtonContainer, .headerlink {
|
header .documentBranch select, nav, .navButtonContainer, .headerlink {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
window.addEventListener("load", function() {
|
window.addEventListener("load", function() {
|
||||||
let select = document.querySelector("header select.documentBranch");
|
let select = document.querySelector("header .documentBranch select");
|
||||||
while (select.firstChild) {
|
while (select.firstChild) {
|
||||||
select.removeChild(select.firstChild);
|
select.removeChild(select.firstChild);
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,7 +9,7 @@ header .logoContainer {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
header .logoContainer, header select.documentBranch {
|
header .logoContainer, header .documentBranch select {
|
||||||
text-shadow: 0 0 3px #050a02, 0 0 3px #050a02;
|
text-shadow: 0 0 3px #050a02, 0 0 3px #050a02;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
header select.documentBranch {
|
header .documentBranch::after, header .documentBranch select {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
header span.documentBranch {
|
header .documentBranch span {
|
||||||
display: inline;
|
display: initial;
|
||||||
}
|
}
|
||||||
|
|
||||||
nav {
|
nav {
|
||||||
|
|
|
@ -67,13 +67,32 @@ header h1 {
|
||||||
margin-bottom: 2rem;
|
margin-bottom: 2rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
header span.documentBranch {
|
header .documentBranch span {
|
||||||
border: 1px dashed #efdddd;
|
|
||||||
padding: 0 5px;
|
padding: 0 5px;
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
header select.documentBranch {
|
header .documentBranch {
|
||||||
|
display: inline-block;
|
||||||
|
position: relative;
|
||||||
|
border: 1px dashed #efdddd;
|
||||||
|
}
|
||||||
|
|
||||||
|
header .documentBranch::after {
|
||||||
|
content: "";
|
||||||
|
display: block;
|
||||||
|
position: absolute;
|
||||||
|
pointer-events: none;
|
||||||
|
right: 5px;
|
||||||
|
bottom: 5px;
|
||||||
|
width: 0;
|
||||||
|
height: 0;
|
||||||
|
border-left: 0.125em solid transparent;
|
||||||
|
border-right: 0.125em solid transparent;
|
||||||
|
border-top: 0.125em solid #efdddd;
|
||||||
|
}
|
||||||
|
|
||||||
|
header .documentBranch select {
|
||||||
background: none;
|
background: none;
|
||||||
color: #efdddd;
|
color: #efdddd;
|
||||||
border: none;
|
border: none;
|
||||||
|
@ -82,18 +101,18 @@ header select.documentBranch {
|
||||||
font-family: sans-serif;
|
font-family: sans-serif;
|
||||||
-webkit-appearance: none;
|
-webkit-appearance: none;
|
||||||
-moz-appearance: none;
|
-moz-appearance: none;
|
||||||
border: 1px dashed #efdddd;
|
appearance: none;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
padding: 0 5px;
|
padding: 0 5px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
text-align-last: center;
|
text-align-last: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
header select.documentBranch:hover {
|
header .documentBranch select:hover {
|
||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
}
|
}
|
||||||
|
|
||||||
header select.documentBranch option {
|
header .documentBranch option {
|
||||||
color: initial;
|
color: initial;
|
||||||
font-size: initial;
|
font-size: initial;
|
||||||
font-weight: initial;
|
font-weight: initial;
|
||||||
|
|
|
@ -30,8 +30,10 @@ $endif$
|
||||||
<div class="logoContainer">
|
<div class="logoContainer">
|
||||||
<h1>
|
<h1>
|
||||||
Radicale
|
Radicale
|
||||||
<span class="documentBranch">$branch$</span>
|
<span class="documentBranch">
|
||||||
<select class="documentBranch"></select>
|
<span>$branch$</span>
|
||||||
|
<select></select>
|
||||||
|
</span>
|
||||||
</h1>
|
</h1>
|
||||||
<p>Free and Open-Source CalDAV and CardDAV Server</p>
|
<p>Free and Open-Source CalDAV and CardDAV Server</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue