Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
Pipeline #7179 passed
Pipeline: Castopod

#7235

    ......@@ -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">',
    ......
    ......@@ -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}"
    ......
    /* 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: {},
    ......
    ......@@ -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}
    ......
    ......@@ -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}
    ......
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Please register or to comment