News Ticker
This commit is contained in:
parent
a4376b714f
commit
9a2bd2bffd
4 changed files with 43 additions and 1 deletions
|
|
@ -1,3 +1,13 @@
|
||||||
|
@media (min-width: 480px) {
|
||||||
|
.nav-link-account {
|
||||||
|
margin-left: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.news-ticker {
|
||||||
|
display: inline;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@media (min-width: 960px) {
|
@media (min-width: 960px) {
|
||||||
.screen-narrow {
|
.screen-narrow {
|
||||||
display: none;
|
display: none;
|
||||||
|
|
@ -11,6 +21,7 @@
|
||||||
@media (min-height: 540px) {
|
@media (min-height: 540px) {
|
||||||
.header {
|
.header {
|
||||||
height: 60px;
|
height: 60px;
|
||||||
|
padding: 10px 10px 10px 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.nav-link-account {
|
.nav-link-account {
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ body {
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: 30px;
|
gap: 30px;
|
||||||
height: 40px;
|
height: 40px;
|
||||||
padding: 5px 15px;
|
padding: 5px 5px 5px 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.screen-narrow {
|
.screen-narrow {
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,7 @@
|
||||||
display: flex;
|
display: flex;
|
||||||
flex: 1;
|
flex: 1;
|
||||||
gap: 15px;
|
gap: 15px;
|
||||||
|
min-width: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.nav-link {
|
.nav-link {
|
||||||
|
|
@ -19,3 +20,29 @@
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
padding: 5px 10px;
|
padding: 5px 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.news-ticker {
|
||||||
|
color: #00FF41;
|
||||||
|
display: none;
|
||||||
|
flex: 1;
|
||||||
|
margin-left: auto;
|
||||||
|
max-width: 480px;
|
||||||
|
overflow: hidden;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
.news-ticker-content {
|
||||||
|
animation: news-ticker-animation 10s linear forwards;
|
||||||
|
display: inline-block;
|
||||||
|
padding-left: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes news-ticker-animation {
|
||||||
|
from {
|
||||||
|
transform: translateX(0);
|
||||||
|
}
|
||||||
|
|
||||||
|
to {
|
||||||
|
transform: translateX(-100%);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -27,6 +27,10 @@
|
||||||
<a class="nav-link screen-narrow" href="https://docs.instantworkstation.com">Docs</a>
|
<a class="nav-link screen-narrow" href="https://docs.instantworkstation.com">Docs</a>
|
||||||
<a class="nav-link screen-wide" href="https://docs.instantworkstation.com">Technical Documentation</a>
|
<a class="nav-link screen-wide" href="https://docs.instantworkstation.com">Technical Documentation</a>
|
||||||
|
|
||||||
|
<span class="news-ticker">
|
||||||
|
<span class="news-ticker-content">Ubuntu 26.04 x86 64 LE is now available</span>
|
||||||
|
</span>
|
||||||
|
|
||||||
<a class="nav-link nav-link-account" href="/account">Account</a>
|
<a class="nav-link nav-link-account" href="/account">Account</a>
|
||||||
</nav>
|
</nav>
|
||||||
</header>
|
</header>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue