Fix issue #90: Add a docs button
All checks were successful
Test / test (push) Successful in 2s
All checks were successful
Test / test (push) Successful in 2s
This commit is contained in:
@@ -35,6 +35,11 @@ function ExitCampaign() {
|
||||
<TopSearchBar></TopSearchBar>
|
||||
</div>
|
||||
<div class="right">
|
||||
<!-- La documentació és una pàgina a part (/docs), i una pestanya nova deixa la
|
||||
campanya tal com era: les notes obertes no es perden. -->
|
||||
<a class="btn-primary docs-button sound-click" href="/docs" target="_blank" rel="noopener noreferrer">
|
||||
{{ $t('main-menu.documentation') }}
|
||||
</a>
|
||||
<button class="btn-primary settings-button sound-click" type="button" @click="OpenCampaignSettings">
|
||||
{{ $t('main-menu.settings') }}
|
||||
</button>
|
||||
@@ -85,6 +90,29 @@ function ExitCampaign() {
|
||||
padding: 5px 10px;
|
||||
}
|
||||
|
||||
/* L'enllaç a la documentació és un `<a>` i els botons estan estilats per element, així
|
||||
que li toca portar el mateix look que els dos que té al costat. */
|
||||
.docs-button {
|
||||
padding: 5px 10px;
|
||||
margin: 5px 0;
|
||||
font-size: 15px;
|
||||
border-radius: 6px;
|
||||
border: solid 1px var(--color-border);
|
||||
background-color: var(--color-button-background);
|
||||
color: var(--color-text);
|
||||
text-align: center;
|
||||
text-decoration: none;
|
||||
transition: 300ms background-color;
|
||||
}
|
||||
|
||||
.docs-button:hover {
|
||||
background-color: var(--color-button-hover);
|
||||
}
|
||||
|
||||
.docs-button:active {
|
||||
background-color: var(--color-button-active);
|
||||
}
|
||||
|
||||
.top-bar-title {
|
||||
padding: 10px;
|
||||
display: flex;
|
||||
|
||||
Reference in New Issue
Block a user