mirror of
https://github.com/iptv-org/iptv-org.github.io.git
synced 2025-05-13 02:20:06 -04:00
Fixes contrast issues
This commit is contained in:
parent
ed62330e7d
commit
5ff37d78ef
16 changed files with 134 additions and 161 deletions
|
@ -1,8 +1,11 @@
|
|||
<script>
|
||||
import CloseButton from '~/components/CloseButton.svelte'
|
||||
import { getContext } from 'svelte'
|
||||
const { close } = getContext('simple-modal')
|
||||
|
||||
export let title = 'Search syntax'
|
||||
|
||||
const { close } = getContext('simple-modal')
|
||||
|
||||
let examples = [
|
||||
{ query: 'cat', result: 'Finds channels that have "cat" in their descriptions.' },
|
||||
{ query: 'cat dog', result: 'Finds channels that have "cat" AND "dog" in their descriptions.' },
|
||||
|
@ -47,29 +50,12 @@
|
|||
<div class="relative px-2 py-20 flex justify-center" on:keypress on:click|self={close}>
|
||||
<div class="relative bg-white rounded-md shadow dark:bg-gray-800 w-full max-w-2xl">
|
||||
<div
|
||||
class="flex justify-between items-center py-4 pl-5 pr-4 rounded-t border-b dark:border-gray-700"
|
||||
class="flex justify-between items-center py-3 pl-5 pr-4 rounded-t border-b dark:border-gray-700"
|
||||
>
|
||||
<h3 class="text-l font-medium text-gray-800 dark:text-white inline-flex items-center">
|
||||
{title}
|
||||
</h3>
|
||||
<button
|
||||
on:click={close}
|
||||
type="button"
|
||||
class="text-gray-400 bg-transparent hover:bg-gray-200 hover:text-gray-900 rounded-full text-sm p-1.5 ml-auto inline-flex items-center dark:hover:bg-gray-600 dark:hover:text-white"
|
||||
>
|
||||
<svg
|
||||
class="w-5 h-5"
|
||||
fill="currentColor"
|
||||
viewBox="0 0 20 20"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
>
|
||||
<path
|
||||
fill-rule="evenodd"
|
||||
d="M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z"
|
||||
clip-rule="evenodd"
|
||||
></path>
|
||||
</svg>
|
||||
</button>
|
||||
<CloseButton on:click={close} />
|
||||
</div>
|
||||
<div class="overflow-y-auto overflow-x-hidden w-full">
|
||||
<div class="p-6 text-gray-800 dark:text-white">
|
||||
|
@ -83,8 +69,11 @@
|
|||
<tbody class="text-left">
|
||||
{#each examples as example}
|
||||
<tr class="even:bg-gray-50 even:dark:bg-gray-700">
|
||||
<td class="border dark:border-gray-700 px-4 py-3 whitespace-nowrap">
|
||||
{example.query}
|
||||
<td class="border dark:border-gray-700 px-3 py-3 whitespace-nowrap">
|
||||
<code
|
||||
class="break-words text-sm text-gray-600 bg-gray-100 dark:text-gray-300 dark:bg-gray-700 px-2 py-1 rounded-sm select-all cursor-text font-mono"
|
||||
>{example.query}</code
|
||||
>
|
||||
</td>
|
||||
<td class="border dark:border-gray-700 px-4 py-3">{example.result}</td>
|
||||
</tr>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue