From 9dc9e95ccaa4b5da8ecddf49fca8467138f0aa85 Mon Sep 17 00:00:00 2001 From: Kamil Niemczycki Date: Tue, 14 Jun 2022 19:12:03 +0200 Subject: [PATCH] updated calendar #tab --- resources/js/Pages/Calendar.vue | 37 +++++++++++++++++++++++---------- tailwind.config.js | 8 +++++++ 2 files changed, 34 insertions(+), 11 deletions(-) diff --git a/resources/js/Pages/Calendar.vue b/resources/js/Pages/Calendar.vue index 871df95..28fd1c4 100644 --- a/resources/js/Pages/Calendar.vue +++ b/resources/js/Pages/Calendar.vue @@ -55,18 +55,20 @@
- +
-
+
- {{ selectedMonth.name }} {{ years.selected.year }} + {{ selectedMonth.name }}
@@ -84,22 +86,28 @@ v-for="user in users.data" :key="user.id" > - +
- + -
-
- {{ user.name }} -
+
+ + {{ split }} +
+ + diff --git a/tailwind.config.js b/tailwind.config.js index 9493ebe..c425e8f 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -1,4 +1,5 @@ const defaultTheme = require('tailwindcss/defaultTheme') +const plugin = require('tailwindcss/plugin') module.exports = { content: [ @@ -31,5 +32,12 @@ module.exports = { require('@tailwindcss/forms'), require('@tailwindcss/typography'), require('@tailwindcss/line-clamp'), + plugin(function({ addVariant, e }) { + addVariant('second', ({ modifySelectors, separator }) => { + modifySelectors(({ className }) => { + return `.${e(`second${separator}${className}`)}:nth-child(2)` + }) + }) + }), ], }