Split dropdown
On main click it downloads stable, in dropdown there are two choices - stable and beta. Similar to the downloads on jetbrains website Signed-off-by: Egor Savkin <es@m-labs.hk>
This commit is contained in:
parent
92f7428ac8
commit
9d9a4c9f5a
|
@ -202,7 +202,14 @@ ul:not(.navbar-nav) li {
|
||||||
|
|
||||||
|
|
||||||
.download-selector {
|
.download-selector {
|
||||||
display: inline-block;
|
display: inline-flex;
|
||||||
|
|
||||||
|
.divider {
|
||||||
|
border-right: solid 1px white;
|
||||||
|
margin: 0.125rem 0;
|
||||||
|
height: inherit;
|
||||||
|
z-index: 10;
|
||||||
|
}
|
||||||
|
|
||||||
.dropdown-menu {
|
.dropdown-menu {
|
||||||
border: none;
|
border: none;
|
||||||
|
@ -218,6 +225,12 @@ ul:not(.navbar-nav) li {
|
||||||
&:after {
|
&:after {
|
||||||
align-self: center;
|
align-self: center;
|
||||||
}
|
}
|
||||||
|
&[aria-expanded='true']:after {
|
||||||
|
transform: rotate(-180deg);
|
||||||
|
}
|
||||||
|
span {
|
||||||
|
margin-right: 0.5rem;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ul {
|
ul {
|
||||||
|
|
|
@ -53,13 +53,16 @@
|
||||||
<a href="{{ get_url(path='@/experiment-control/place-order.md') }}" class="btn btn-primary btn-inversed btn-lg">Order hardware</a>
|
<a href="{{ get_url(path='@/experiment-control/place-order.md') }}" class="btn btn-primary btn-inversed btn-lg">Order hardware</a>
|
||||||
<a href="https://m-labs.hk/artiq/manual/" class="btn btn-primary btn-lg">Manual</a>
|
<a href="https://m-labs.hk/artiq/manual/" class="btn btn-primary btn-lg">Manual</a>
|
||||||
<a href="https://forum.m-labs.hk" class="btn btn-primary btn-lg">Forum</a>
|
<a href="https://forum.m-labs.hk" class="btn btn-primary btn-lg">Forum</a>
|
||||||
<div class="dropdown download-selector">
|
<div class="btn-group download-selector">
|
||||||
<a class="btn btn-primary btn-lg d-inline-flex dropdown-toggle" href="#" role="button" data-bs-toggle="dropdown" aria-expanded="false">
|
<a class="btn btn-primary btn-lg" href="https://nixbld.m-labs.hk/job/artiq/extra/msys2-offline-installer/latest/download/1">
|
||||||
<img src="/images/icons/icon-download.svg" class="d-inline-block align-self-center mx-1" style="height: 1rem" alt="download">
|
<img src="/images/icons/icon-download.svg" class="d-inline-block align-self-center mx-1" style="height: 1rem" alt="download">
|
||||||
Windows installer
|
Windows installer
|
||||||
</a>
|
</a>
|
||||||
|
<div class="divider"></div>
|
||||||
<ul class="dropdown-menu shadow">
|
<button type="button" class="btn btn-primary btn-lg dropdown-toggle dropdown-toggle-split" data-bs-toggle="dropdown" aria-expanded="false">
|
||||||
|
<span>stable</span>
|
||||||
|
</button>
|
||||||
|
<ul class="dropdown-menu shadow dropdown-menu-end">
|
||||||
<li><a class="dropdown-item" href="https://nixbld.m-labs.hk/job/artiq/extra/msys2-offline-installer/latest/download/1">ARTIQ-8 (stable)</a></li>
|
<li><a class="dropdown-item" href="https://nixbld.m-labs.hk/job/artiq/extra/msys2-offline-installer/latest/download/1">ARTIQ-8 (stable)</a></li>
|
||||||
<li><a class="dropdown-item" href="https://nixbld.m-labs.hk/job/artiq/extra-beta/msys2-offline-installer/latest/download/1">ARTIQ-9 (beta)</a></li>
|
<li><a class="dropdown-item" href="https://nixbld.m-labs.hk/job/artiq/extra-beta/msys2-offline-installer/latest/download/1">ARTIQ-9 (beta)</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
Loading…
Reference in New Issue