mirror of
https://github.com/plausible/analytics.git
synced 2024-11-23 03:04:43 +03:00
1488683d26
* Update tailwind config Turns out `extra` wasn't scanned properly with previous wildcards. I don't care any more, it's not slow. * Add interface for updating funnels * Extend ComboBox with the ability to preselect an initial value * Implement editing funnels UI * Update CHANGELOG * s/add_funnel/setup_funnel * modal width 2/5 => 2/3 * Let's not make the list disappear on modal pop-up * Fix the damn modal width again * Watch extra dir * Format * Remove commented code The test is implemented elsewhere * Track funnel modified to drop default selection * Fix screen size adoption and format large numbers * Preserve currency so that string casting includes it * Format * Fix ComboBox attribute for preselected option
60 lines
1.7 KiB
JavaScript
60 lines
1.7 KiB
JavaScript
const colors = require('tailwindcss/colors')
|
|
const plugin = require('tailwindcss/plugin')
|
|
|
|
module.exports = {
|
|
content: [
|
|
"./js/**/*.js",
|
|
"../lib/*_web.ex",
|
|
"../lib/*_web/**/*.*ex",
|
|
"../extra/**/*.*ex",
|
|
],
|
|
safelist: [
|
|
// PlausibleWeb.StatsView.stats_container_class/1 uses this class
|
|
// it's not used anywhere else in the templates or scripts
|
|
"max-w-screen-xl"
|
|
],
|
|
darkMode: 'class',
|
|
theme: {
|
|
container: {
|
|
center: true,
|
|
padding: '1rem',
|
|
},
|
|
extend: {
|
|
colors: {
|
|
yellow: colors.amber, // We started usign `yellow` in v2 but it was renamed to `amber` in v3 https://tailwindcss.com/docs/upgrade-guide#removed-color-aliases
|
|
gray: colors.slate,
|
|
'gray-950': 'rgb(13, 18, 30)',
|
|
'gray-850': 'rgb(26, 32, 44)',
|
|
'gray-825': 'rgb(37, 47, 63)'
|
|
},
|
|
spacing: {
|
|
'44': '11rem'
|
|
},
|
|
width: {
|
|
'content': 'fit-content'
|
|
},
|
|
opacity: {
|
|
'15': '0.15',
|
|
},
|
|
zIndex: {
|
|
'9': 9,
|
|
},
|
|
maxWidth: {
|
|
'2xs': '15rem',
|
|
'3xs': '12rem',
|
|
},
|
|
transitionProperty: {
|
|
'padding': 'padding',
|
|
}
|
|
},
|
|
},
|
|
plugins: [
|
|
require('@tailwindcss/forms'),
|
|
require('@tailwindcss/aspect-ratio'),
|
|
plugin(({ addVariant }) => addVariant("phx-no-feedback", [".phx-no-feedback&", ".phx-no-feedback &"])),
|
|
plugin(({ addVariant }) => addVariant("phx-click-loading", [".phx-click-loading&", ".phx-click-loading &"])),
|
|
plugin(({ addVariant }) => addVariant("phx-submit-loading", [".phx-submit-loading&", ".phx-submit-loading &"])),
|
|
plugin(({ addVariant }) => addVariant("phx-change-loading", [".phx-change-loading&", ".phx-change-loading &"])),
|
|
]
|
|
}
|