Convert inline style css to classes.

This commit is contained in:
FireMasterK 2022-01-12 11:59:50 +00:00
parent fb3ac51cd8
commit 05d7853ef0
No known key found for this signature in database
GPG Key ID: 49451E4482CC5BCD
6 changed files with 26 additions and 18 deletions

View File

@ -134,7 +134,16 @@ b {
.input, .input,
.select, .select,
.btn { .btn {
@apply w-auto h-8 text-gray-600 bg-gray-300; @apply w-auto text-gray-600 bg-gray-300;
}
.input,
.select {
@apply h-8;
}
.btn {
@apply h-full;
} }
.checkbox { .checkbox {

View File

@ -1,7 +1,7 @@
<template> <template>
<p v-text="message" /> <p v-text="message" />
<button @click="toggleTrace" class="btn" v-text="$t('actions.show_more')" /> <button @click="toggleTrace" class="btn" v-text="$t('actions.show_more')" />
<p ref="stacktrace" style="white-space: pre-wrap" hidden v-text="error" /> <p ref="stacktrace" class="whitespace-pre-wrap" hidden v-text="error" />
</template> </template>
<script> <script>

View File

@ -1,13 +1,13 @@
<template> <template>
<h1 v-t="'titles.feed'" class="font-bold text-center" /> <h1 v-t="'titles.feed'" class="font-bold text-center" />
<button v-if="authenticated" class="btn" style="margin-right: 0.5rem" @click="exportHandler"> <button v-if="authenticated" class="btn mr-2" @click="exportHandler">
<router-link to="/subscriptions"> Subscriptions </router-link> <router-link to="/subscriptions">Subscriptions</router-link>
</button> </button>
<span> <span>
<a :href="getRssUrl"> <a :href="getRssUrl">
<font-awesome-icon icon="rss" style="padding-top: 0.2rem" /> <font-awesome-icon icon="rss" />
</a> </a>
</span> </span>

View File

@ -1,13 +1,15 @@
<template> <template>
<h1 class="font-bold text-center" v-text="$t('titles.history')" /> <h1 class="font-bold text-center" v-text="$t('titles.history')" />
<div style="text-align: left"> <div class="flex">
<div>
<button class="btn" v-t="'actions.clear_history'" @click="clearHistory" /> <button class="btn" v-t="'actions.clear_history'" @click="clearHistory" />
</div> </div>
<div style="text-align: right"> <div class="right-1">
<Sorting by-key="watchedAt" @apply="order => videos.sort(order)" /> <Sorting by-key="watchedAt" @apply="order => videos.sort(order)" />
</div> </div>
</div>
<hr /> <hr />

View File

@ -9,7 +9,6 @@
v-model="selectedFilter" v-model="selectedFilter"
default="all" default="all"
class="select w-auto" class="select w-auto"
style="height: 100%"
@change="updateResults()" @change="updateResults()"
> >
<option v-for="filter in availableFilters" :key="filter" :value="filter" v-text="filter.replace('_', ' ')" /> <option v-for="filter in availableFilters" :key="filter" :value="filter" v-text="filter.replace('_', ' ')" />
@ -31,7 +30,7 @@
<div v-if="!shouldUseVideoItem(result)" class="uk-text-secondary"> <div v-if="!shouldUseVideoItem(result)" class="uk-text-secondary">
<router-link :to="result.url"> <router-link :to="result.url">
<div class="relative"> <div class="relative">
<img style="width: 100%" :src="result.thumbnail" loading="lazy" /> <img class="w-full" :src="result.thumbnail" loading="lazy" />
</div> </div>
<p> <p>
<span v-text="result.name" /> <span v-text="result.name" />

View File

@ -5,14 +5,12 @@
<div class="relative text-sm"> <div class="relative text-sm">
<span <span
v-if="video.duration" v-if="video.duration"
class="thumbnail-overlay bottom-5px right-5px" class="thumbnail-overlay bottom-5px right-5px px-5px"
style="padding: 0 5px"
v-text="timeFormat(video.duration)" v-text="timeFormat(video.duration)"
/> />
<span <span
v-if="video.watched" v-if="video.watched"
class="thumbnail-overlay bottom-5px left-5px" class="thumbnail-overlay bottom-5px left-5px px-5px"
style="padding: 0 5px"
v-text="$t('video.watched')" v-text="$t('video.watched')"
/> />
</div> </div>
@ -27,7 +25,7 @@
</div> </div>
</router-link> </router-link>
<div class="float-right ml-0 mb-0 inline-block"> <div class="float-right m-0 inline-block">
<router-link <router-link
:to="video.url + '&listen=1'" :to="video.url + '&listen=1'"
:aria-label="'Listen to ' + video.title" :aria-label="'Listen to ' + video.title"
@ -37,7 +35,7 @@
</router-link> </router-link>
</div> </div>
<div class="flex" style="flex-flow: row"> <div class="flex">
<router-link :to="video.uploaderUrl"> <router-link :to="video.uploaderUrl">
<img <img
v-if="video.uploaderAvatar" v-if="video.uploaderAvatar"