Skip to content

Commit

Permalink
refactor: remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
cossssmin committed Jan 28, 2024
1 parent b323bbc commit 667f04e
Showing 1 changed file with 16 additions and 22 deletions.
38 changes: 16 additions & 22 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,33 +1,27 @@
const get = require('lodash.get')
const plugin = require('tailwindcss/plugin')

const emailClientVariants = plugin.withOptions(
function (options) {
const userVariants = options || {}
const emailClientVariants = plugin(function({ addVariant }) {
// Outlook.com dark mode
addVariant('ogsc', '[data-ogsc] &')
addVariant('ogsb', '[data-ogsb] &')

return function ({ addVariant }) {
// Outlook.com dark mode
addVariant('ogsc', '[data-ogsc] &')
addVariant('ogsb', '[data-ogsb] &')
// Gmail (webmail)
addVariant('gmail', 'u + .body &')

// Gmail (webmail)
addVariant('gmail', 'u + .body &')
// Gmail (Android)
addVariant('gmail-android', 'div > u + .body &')

// Gmail (Android)
addVariant('gmail-android', 'div > u + .body &')
// Apple Mail
addVariant('apple-mail', '.Singleton &')

// Apple Mail
addVariant('apple-mail', '.Singleton &')
// iOS Mail 10+
addVariant('ios', '@supports (-webkit-overflow-scrolling:touch) and (color:#ffff)')

// iOS Mail 10+
addVariant('ios', '@supports (-webkit-overflow-scrolling:touch) and (color:#ffff)')
// iOS Mail 15+
addVariant('ios-15', '@supports (-webkit-overflow-scrolling:touch) and (aspect-ratio: 1 / 1)')

// iOS Mail 15+
addVariant('ios-15', '@supports (-webkit-overflow-scrolling:touch) and (aspect-ratio: 1 / 1)')

// Open-Xchange (multiple clients)
addVariant('ox', '&[class^="ox-"]')
}
// Open-Xchange (multiple clients)
addVariant('ox', '&[class^="ox-"]')
}
)

Expand Down

0 comments on commit 667f04e

Please sign in to comment.