1
0
Fork 0

Cleanup menu footer links

This commit is contained in:
Chocobozzz 2020-04-08 10:30:58 +02:00
parent 9870329f69
commit 14f83c68f1
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
4 changed files with 40 additions and 27 deletions

View File

@ -1,4 +1,18 @@
<form role="form" (ngSubmit)="updateInterfaceSettings()" [formGroup]="form"> <form role="form" (ngSubmit)="updateInterfaceSettings()" [formGroup]="form">
<div class="form-group">
<label i18n for="theme">Interface language</label>
<div class="peertube-select-container">
<select formControlName="theme" id="theme" class="form-control">
<option i18n value="instance-default">instance default</option>
<option i18n value="default">peertube default</option>
<option *ngFor="let theme of availableThemes" [value]="theme">{{ theme }}</option>
</select>
</div>
</div>
<div class="form-group"> <div class="form-group">
<label i18n for="theme">Theme</label> <label i18n for="theme">Theme</label>

View File

@ -149,29 +149,29 @@
</a> </a>
</div> </div>
<div class="d-flex flex-column"> <div class="bottom-links">
<div class="footer-links"> <div class="footer-links">
<a i18n routerLink="/about/instance">Contact</a> <div *ngIf="isLoggedIn === false">
<a i18n routerLink="/about/instance">Terms of Service</a> <span role="button" (click)="openLanguageChooser()" class="c-hand" i18n>Interface: {{ language }}</span>
<a i18n routerLink="/about/instance" fragment="statistics">Stats</a> </div>
<a (click)="openLanguageChooser()" class="c-hand">
<span i18n>Interface: {{ language }}</span> <div>
</a> <a i18n routerLink="/about/instance">Contact</a>
</div> <a i18n href="https://joinpeertube.org/help" i18n-title title="Get help using PeerTube" target="_blank" rel="noopener noreferrer">Help</a>
<div class="footer-links"> <a i18n href="https://joinpeertube.org/faq" i18n-title title="Frequently asked questions about PeerTube" target="_blank" rel="noopener noreferrer">FAQ</a>
<a i18n href="https://joinpeertube.org/#you-are-a-video-maker" i18n-title title="Creator guide" target="_blank" rel="noopener noreferrer">Creators</a> <a i18n routerLink="/about/instance" fragment="statistics">Stats</a>
<a i18n href="https://docs.joinpeertube.org/#/contribute-getting-started" i18n-title title="PeerTube license" target="_blank" rel="noopener noreferrer">Contributors</a> <a i18n href="https://docs.joinpeertube.org/api-rest-reference.html" i18n-title title="API documentation" target="_blank" rel="noopener noreferrer">API</a>
<a i18n routerLink="/about/peertube" i18n-title title="More information about privacy within PeerTube">Privacy</a> <a (click)="openHotkeysCheatSheet()" class="c-hand" i18n>Shortcuts</a>
<a i18n href="https://joinpeertube.org/faq" i18n-title title="Frequently asked questions about PeerTube" target="_blank" rel="noopener noreferrer">FAQ</a> </div>
<a i18n href="https://docs.joinpeertube.org/api-rest-reference.html" i18n-title title="API documentation" target="_blank" rel="noopener noreferrer">API</a>
<a i18n href="https://joinpeertube.org/help" i18n-title title="Get help using PeerTube" target="_blank" rel="noopener noreferrer">Help</a>
<a (click)="openHotkeysCheatSheet()" class="c-hand" i18n>Shortcuts</a>
</div> </div>
<div class="footer-copyleft"> <div class="footer-copyleft">
<small class="d-inline" i18n-title title="powered by PeerTube - CopyLeft 2015-2020"> <small class="d-inline" i18n-title title="powered by PeerTube - CopyLeft 2015-2020">
<a href="https://joinpeertube.org" i18n-title title="PeerTube website" target="_blank" rel="noopener noreferrer" i18n> <a href="https://joinpeertube.org" i18n-title title="PeerTube website" target="_blank" rel="noopener noreferrer" i18n>
powered by PeerTube powered by PeerTube
</a> </a>
<a href="https://github.com/Chocobozzz/PeerTube/blob/develop/LICENSE" i18n-title title="PeerTube license" target="_blank" rel="noopener noreferrer"> <a href="https://github.com/Chocobozzz/PeerTube/blob/develop/LICENSE" i18n-title title="PeerTube license" target="_blank" rel="noopener noreferrer">
<span aria-label="copyleft" class="d-inline-block" style="transform: rotateY(180deg)">&copy;</span> 2015-2020 <span aria-label="copyleft" class="d-inline-block" style="transform: rotateY(180deg)">&copy;</span> 2015-2020
</a> </a>

View File

@ -185,21 +185,21 @@ menu {
width: $menu-width; width: $menu-width;
padding-bottom: 15px; padding-bottom: 15px;
& > div:not(.panel-block) { .bottom-links {
padding-left: $menu-lateral-padding; display: flex;
padding-right: $menu-lateral-padding; flex-direction: column;
row-gap: 1em; padding: 0 $menu-lateral-padding;
} }
$footer-links-base-opacity: .8; $footer-links-base-opacity: .8;
.footer-links { .footer-links {
display: inline-flex; &, > div {
flex-wrap: wrap; display: flex;
flex-wrap: wrap;
& > a { }
@include disable-default-a-behaviour;
a, span[role=button] {
display: inline-block; display: inline-block;
text-decoration: none; text-decoration: none;
color: var(--mainBackgroundColor); color: var(--mainBackgroundColor);
@ -218,7 +218,7 @@ menu {
my-global-icon { my-global-icon {
@include apply-svg-color(var(--mainBackgroundColor)); @include apply-svg-color(var(--mainBackgroundColor));
display: flex; display: flex;
width: auto; width: auto;
height: 90%; height: 90%;

View File

@ -13,7 +13,6 @@
} }
} }
@mixin ellipsis { @mixin ellipsis {
white-space: nowrap; white-space: nowrap;
overflow: hidden; overflow: hidden;