Commit d4d86712 authored by Yassine Doghri's avatar Yassine Doghri
Browse files

fix: add underline and semibold font weight for prose links to have them stand out

+ fix typo: "whitespace-no-wrap" --> "whitespace-nowrap"
parent fab916ee
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -55,7 +55,7 @@ if (! function_exists('data_table')) {
        $table = new Table();

        $template = [
            'table_open' => '<table class="w-full whitespace-no-wrap">',
            'table_open' => '<table class="w-full whitespace-nowrap">',

            'thead_open' =>
                '<thead class="text-xs font-semibold text-left uppercase text-skin-muted">',
+1 −1
Original line number Diff line number Diff line
@@ -53,7 +53,7 @@ class DropdownMenu extends Component

        return <<<HTML
            <nav id="{$this->id}"
                class="absolute z-50 flex flex-col py-2 whitespace-no-wrap rounded-lg text-skin-base border-contrast bg-elevated border-3"
                class="absolute z-50 flex flex-col py-2 rounded-lg whitespace-nowrap text-skin-base border-contrast bg-elevated border-3"
                aria-labelledby="{$this->labelledby}"
                data-dropdown="menu"
                data-dropdown-placement="{$this->placement}"
+25 −0
Original line number Diff line number Diff line
/* eslint-disable */
const defaultTheme = require("tailwindcss/defaultTheme");
const { nodeModuleNameResolver } = require("typescript");

/** @type {import('tailwindcss').Config} */
module.exports = {
@@ -113,6 +114,30 @@ module.exports = {
      ringWidth: {
        3: "3px",
      },
      typography: {
        DEFAULT: {
          css: {
            a: {
              textDecoration: "underline",
              fontWeight: 600,
              "&:hover": {
                textDecoration: "none",
              },
            },
          },
        },
        sm: {
          css: {
            a: {
              textDecoration: "underline",
              fontWeight: 600,
              "&:hover": {
                textDecoration: "none",
              },
            },
          },
        },
      },
    },
  },
  variants: {},
+1 −1
Original line number Diff line number Diff line
@@ -72,7 +72,7 @@
                [
                    'type' => 'html',
                    'content' => esc(<<<CODE_SAMPLE
                        <nav class="flex flex-col py-2 whitespace-no-wrap">
                        <nav class="flex flex-col py-2 whitespace-nowrap">
                            <span class="px-4 mb-2 text-xs font-semibold tracking-wider uppercase text-skin-muted">{$interactAsText}</span>
                            <form action="{$route}" method="POST" class="flex flex-col">
                                {$csrfField}
+1 −1
Original line number Diff line number Diff line
@@ -67,7 +67,7 @@
                    [
                        'type' => 'html',
                        'content' => esc(<<<CODE_SAMPLE
                            <nav class="flex flex-col py-2 whitespace-no-wrap">
                            <nav class="flex flex-col py-2 whitespace-nowrap">
                                <span class="px-4 mb-2 text-xs font-semibold tracking-wider uppercase text-skin-muted">{$interactAsText}</span>
                                <form action="{$route}" method="POST" class="flex flex-col">
                                    {$csrfField}