optimize shadows & paddings
This commit is contained in:
@@ -10,21 +10,14 @@
|
|||||||
<div class="song">
|
<div class="song">
|
||||||
<span class="title">{{ iSong.title }}</span>
|
<span class="title">{{ iSong.title }}</span>
|
||||||
@if (!edit) {
|
@if (!edit) {
|
||||||
<span class="keys">
|
<div class="keys-container">
|
||||||
|
<div (click)="openKeySelect()" class="keys">
|
||||||
@if (iSong.keyOriginal !== iSong.key) {
|
@if (iSong.keyOriginal !== iSong.key) {
|
||||||
<span>{{ iSong.keyOriginal }} → </span>
|
<span>{{ iSong.keyOriginal }} → </span>
|
||||||
}<span
|
|
||||||
(click)="openKeySelect()">{{ iSong.key }}</span>
|
|
||||||
@if (keys) {
|
|
||||||
<mat-form-field (click)="option.open()" class="transpose">
|
|
||||||
<mat-select #option [formControl]="keyFormControl">
|
|
||||||
@for (key of keys; track key) {
|
|
||||||
<mat-option [value]="key">{{ key }}</mat-option>
|
|
||||||
}
|
}
|
||||||
</mat-select>
|
<span>{{ iSong.key }}</span>
|
||||||
</mat-form-field>
|
</div>
|
||||||
}
|
</div>
|
||||||
</span>
|
|
||||||
}
|
}
|
||||||
@if (!edit) {
|
@if (!edit) {
|
||||||
<app-menu-button (click)="onEdit()" [icon]="faEdit" class="btn-edit btn-icon"
|
<app-menu-button (click)="onEdit()" [icon]="faEdit" class="btn-edit btn-icon"
|
||||||
@@ -35,6 +28,20 @@
|
|||||||
matTooltip="Lied aus Veranstaltung entfernen"></app-menu-button>
|
matTooltip="Lied aus Veranstaltung entfernen"></app-menu-button>
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
|
@if (!edit) {
|
||||||
|
<div aria-hidden="true" class="song select">
|
||||||
|
<span></span>
|
||||||
|
<span> <mat-form-field class="keys-select">
|
||||||
|
<mat-select #option [formControl]="keyFormControl" tabIndex="-1">
|
||||||
|
@for (key of keys; track key) {
|
||||||
|
<mat-option [value]="key">{{ key }}</mat-option>
|
||||||
|
}
|
||||||
|
</mat-select>
|
||||||
|
</mat-form-field></span>
|
||||||
|
<span></span>
|
||||||
|
<span></span>
|
||||||
|
</div>
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@if (edit) {
|
@if (edit) {
|
||||||
<mat-form-field appearance="outline">
|
<mat-form-field appearance="outline">
|
||||||
|
|||||||
@@ -1,6 +1,9 @@
|
|||||||
|
|
||||||
.song {
|
.song {
|
||||||
|
&:not(.select) {
|
||||||
min-height: 28px;
|
min-height: 28px;
|
||||||
|
}
|
||||||
|
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: auto 70px 25px 25px;
|
grid-template-columns: auto 70px 25px 25px;
|
||||||
@media screen and (max-width: 860px) {
|
@media screen and (max-width: 860px) {
|
||||||
@@ -16,10 +19,25 @@
|
|||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.keys-container {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
|
||||||
|
.keys-select {
|
||||||
|
height: 0;
|
||||||
|
overflow: hidden;
|
||||||
|
line-height: 0;
|
||||||
|
}
|
||||||
|
|
||||||
.keys {
|
.keys {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
position: relative;
|
position: relative;
|
||||||
margin-right: 10px;
|
margin-right: 10px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
flex-grow: 0;
|
||||||
|
height: 100%;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
color: var(--color-primary);
|
color: var(--color-primary);
|
||||||
|
|||||||
@@ -10,7 +10,8 @@
|
|||||||
width: 800px;
|
width: 800px;
|
||||||
position: relative;
|
position: relative;
|
||||||
color: var(--text);
|
color: var(--text);
|
||||||
padding: 5px 0;
|
padding: 10px 0;
|
||||||
|
box-shadow: var(--shadow-card-3);
|
||||||
|
|
||||||
@media screen and (max-width: 860px) {
|
@media screen and (max-width: 860px) {
|
||||||
width: 100vw;
|
width: 100vw;
|
||||||
@@ -49,7 +50,7 @@
|
|||||||
opacity: 0.7;
|
opacity: 0.7;
|
||||||
color: var(--text);
|
color: var(--text);
|
||||||
padding-left: 20px;
|
padding-left: 20px;
|
||||||
padding-top: 20px;
|
padding-top: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.subheading {
|
.subheading {
|
||||||
|
|||||||
@@ -21,7 +21,7 @@
|
|||||||
|
|
||||||
<style>
|
<style>
|
||||||
#load-bg {
|
#load-bg {
|
||||||
background-color: #222;
|
background: linear-gradient(39deg, var(--bg-deep), var(--bg-mid), var(--bg-soft));
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 0;
|
top: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
@@ -83,8 +83,8 @@
|
|||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<app-root></app-root>
|
<app-root></app-root>
|
||||||
<script>importCCLI = {}</script>
|
<script>importCCLI = {};</script>
|
||||||
<script>setStrophe = {}</script>
|
<script>setStrophe = {};</script>
|
||||||
<noscript>Please enable JavaScript to continue using this application.</noscript>
|
<noscript>Please enable JavaScript to continue using this application.</noscript>
|
||||||
|
|
||||||
<div id="load-bg">
|
<div id="load-bg">
|
||||||
|
|||||||
@@ -1,19 +1,7 @@
|
|||||||
.card-1 {
|
:root {
|
||||||
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
|
--shadow-card-1: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
|
||||||
}
|
--shadow-card-2: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
|
||||||
|
--shadow-card-3: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
|
||||||
.card-2 {
|
--shadow-card-4: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
|
||||||
box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
|
--shadow-card-5: 0 19px 38px rgba(0, 0, 0, 0.30), 0 15px 12px rgba(0, 0, 0, 0.22);
|
||||||
}
|
|
||||||
|
|
||||||
.card-3 {
|
|
||||||
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
|
|
||||||
}
|
|
||||||
|
|
||||||
.card-4 {
|
|
||||||
box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
|
|
||||||
}
|
|
||||||
|
|
||||||
.card-5 {
|
|
||||||
box-shadow: 0 19px 38px rgba(0, 0, 0, 0.30), 0 15px 12px rgba(0, 0, 0, 0.22);
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -78,6 +78,10 @@ a {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
body .cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing {
|
||||||
|
background-color: rgba(0, 0, 0);
|
||||||
|
opacity: 0.05;
|
||||||
|
}
|
||||||
|
|
||||||
.content > *:not(router-outlet) {
|
.content > *:not(router-outlet) {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|||||||
Reference in New Issue
Block a user