refactor table css
This commit is contained in:
parent
16b4e684ce
commit
7d94d187e5
@ -2,7 +2,7 @@
|
|||||||
<div>
|
<div>
|
||||||
<table class="table table-hover table-borderless">
|
<table class="table table-hover table-borderless">
|
||||||
<thead>
|
<thead>
|
||||||
<tr class="text-muted text-uppercase" style="font-size: 80%;">
|
<tr>
|
||||||
<th class="pl-0 pr-0 text-center">
|
<th class="pl-0 pr-0 text-center">
|
||||||
#
|
#
|
||||||
</th>
|
</th>
|
||||||
@ -27,7 +27,7 @@
|
|||||||
<tr
|
<tr
|
||||||
v-for="(item, index) in tracks"
|
v-for="(item, index) in tracks"
|
||||||
:key="index"
|
:key="index"
|
||||||
:class="{'current-track': item.id === playingTrackId}"
|
:class="{'active': item.id === playingTrackId}"
|
||||||
:draggable="true"
|
:draggable="true"
|
||||||
@dragstart="dragstart(item.id, $event)"
|
@dragstart="dragstart(item.id, $event)"
|
||||||
>
|
>
|
||||||
@ -35,7 +35,7 @@
|
|||||||
style="min-width: 20px; max-width: 20px;"
|
style="min-width: 20px; max-width: 20px;"
|
||||||
@click="play(index)">
|
@click="play(index)">
|
||||||
<template v-if="item.id === playingTrackId">
|
<template v-if="item.id === playingTrackId">
|
||||||
<Icon :icon="isPlaying ? 'pause-fill' : 'play-fill'" class="text-primary" />
|
<Icon :icon="isPlaying ? 'pause-fill' : 'play-fill'" />
|
||||||
</template>
|
</template>
|
||||||
<template v-else>
|
<template v-else>
|
||||||
<span class="track-number">{{ item.track || 1 }}</span>
|
<span class="track-number">{{ item.track || 1 }}</span>
|
||||||
@ -80,11 +80,6 @@
|
|||||||
.track-number-hover {
|
.track-number-hover {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
.current-track {
|
|
||||||
td, a {
|
|
||||||
color: var(--primary);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
tr:hover {
|
tr:hover {
|
||||||
.track-number-hover {
|
.track-number-hover {
|
||||||
display: inline;
|
display: inline;
|
||||||
|
@ -37,7 +37,6 @@ $input-color: $theme-text;
|
|||||||
|
|
||||||
// Other
|
// Other
|
||||||
$progress-bg: rgb(35, 35, 35);
|
$progress-bg: rgb(35, 35, 35);
|
||||||
$table-hover-bg: rgba(#fff, .1);
|
|
||||||
|
|
||||||
:root {
|
:root {
|
||||||
--text-muted: #{$theme-text-muted};
|
--text-muted: #{$theme-text-muted};
|
||||||
@ -65,6 +64,7 @@ h1, h2, h3, h4, h5 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@import './nav';
|
@import './nav';
|
||||||
|
@import './table';
|
||||||
|
|
||||||
$enable-print-styles: false;
|
$enable-print-styles: false;
|
||||||
$enable-responsive-font-sizes: true;
|
$enable-responsive-font-sizes: true;
|
||||||
|
13
src/style/table.scss
Normal file
13
src/style/table.scss
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
$table-hover-bg: rgba(#fff, .1);
|
||||||
|
|
||||||
|
table thead tr {
|
||||||
|
font-size: 80%;
|
||||||
|
text-transform: uppercase;
|
||||||
|
color: $theme-text-muted;
|
||||||
|
}
|
||||||
|
|
||||||
|
table tr.active {
|
||||||
|
td, td a, td svg {
|
||||||
|
color: var(--primary);
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user