move menucontainer into a single div, prevent text selection on dropdown elements
This commit is contained in:
parent
3f623782b7
commit
e0ff64cd22
@ -182,14 +182,16 @@ func (this *ArchiveState) renderTemplateHead(w http.ResponseWriter) {
|
|||||||
<body>
|
<body>
|
||||||
<div class="layout-top nav">
|
<div class="layout-top nav">
|
||||||
|
|
||||||
<div id="tr1" style="display:none;"></div>
|
<div id="menu-container" class="noselect">
|
||||||
<div id="tr2" style="display:none;"></div>
|
<div id="tr1"></div>
|
||||||
<div class="ddmenu" id="spm" style="display:none;">
|
<div id="tr2"></div>
|
||||||
|
<div class="ddmenu">
|
||||||
<a href="/">Latest</a>
|
<a href="/">Latest</a>
|
||||||
<a onclick="fontSize(1);">Font increase</a>
|
<a onclick="fontSize(1);">Font increase</a>
|
||||||
<a onclick="fontSize(-1);">Font decrease</a>
|
<a onclick="fontSize(-1);">Font decrease</a>
|
||||||
<a href="/download" onclick="return confirm('Are you sure you want to download a backup?');">Download backup</a>
|
<a href="/download" onclick="return confirm('Are you sure you want to download a backup?');">Download backup</a>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div id="logo" class="layout-pushdown"><svg viewBox="0 0 24 24">
|
<div id="logo" class="layout-pushdown"><svg viewBox="0 0 24 24">
|
||||||
<path fill="#000000" d="M12,17.27L18.18,21L16.54,13.97L22,9.24L14.81,8.62L12,2L9.19,8.62L2,9.24L7.45,13.97L5.82,21L12,17.27Z" />
|
<path fill="#000000" d="M12,17.27L18.18,21L16.54,13.97L22,9.24L14.81,8.62L12,2L9.19,8.62L2,9.24L7.45,13.97L5.82,21L12,17.27Z" />
|
||||||
|
@ -131,8 +131,24 @@ select {
|
|||||||
margin-right:4px;
|
margin-right:4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Utility class */
|
||||||
|
|
||||||
|
.noselect {
|
||||||
|
-webkit-touch-callout: none; /* iOS Safari */
|
||||||
|
-webkit-user-select: none; /* Safari */
|
||||||
|
-khtml-user-select: none; /* Konqueror HTML */
|
||||||
|
-moz-user-select: none; /* Firefox */
|
||||||
|
-ms-user-select: none; /* Internet Explorer/Edge */
|
||||||
|
user-select: none; /* Non-prefixed version, currently
|
||||||
|
supported by Chrome and Opera */
|
||||||
|
}
|
||||||
|
|
||||||
/* Dropdown */
|
/* Dropdown */
|
||||||
|
|
||||||
|
#menu-container {
|
||||||
|
display:none; /* default */
|
||||||
|
}
|
||||||
|
|
||||||
.ddmenu {
|
.ddmenu {
|
||||||
display:block;
|
display:block;
|
||||||
position:absolute;
|
position:absolute;
|
||||||
|
Loading…
Reference in New Issue
Block a user