Open 08BRYLL23 opened 3 years ago
I'm struggling to this problem, too. When I just copied and pasted example code of custom-calendar.vue, CSS attributes related to tailwind(I guess) are not working(e.g. bg-blue-500, text-white, text-xs).
I'm struggling to this problem, too.
I haven't made a final confirmation yet, but it seems that this has solved it.
npm install tailwindcss
at main.js
import "tailwindcss/dist/tailwind.css";
please test it.
You do need TailwindCSS installed for the events to show up correctly. However there also seems to be a problem with the postcss style block. So here is the compiled CSS, as well as a SCSS version
<style>
.scrollbar {
width: 0px;
}
.scrollbar-track {
display: none;
}
.custom-calendar.vc-container {
border-radius: 0;
width: 100%;
}
.custom-calendar.vc-container .vc-header {
background-color: #f1f5f8;
padding: 10px 0;
}
.custom-calendar.vc-container .vc-weeks {
padding: 0;
}
.custom-calendar.vc-container .vc-weekday {
background-color: #f8fafc;
border-bottom: 1px solid #eaeaea;
border-top: 1px solid #eaeaea;
padding: 5px 0;
}
.custom-calendar.vc-container .vc-day {
padding: 0 5px 3px 5px;
text-align: left;
min-height: 90px;
min-width: 90px;
overflow: auto;
background-color: white;
}
.custom-calendar.vc-container .vc-day.weekday-1,
.custom-calendar.vc-container .vc-day.weekday-7 {
background-color: #eff8ff;
}
.custom-calendar.vc-container .vc-day:not(.on-bottom) {
border-bottom: 1px solid #b8c2cc;
}
.custom-calendar.vc-container .vc-day:not(.on-bottom).weekday-1 {
border-bottom: 1px solid #b8c2cc;
}
.custom-calendar.vc-container .vc-day:not(.on-right) {
border-right: 1px solid #b8c2cc;
}
.custom-calendar.vc-container .vc-day-dots {
margin-bottom: 5px;
}
</style>
<style lang="scss">
$day-border: 1px solid #b8c2cc;
$day-border-highlight: 1px solid #b8c2cc;
$day-width: 90px;
$day-height: 90px;
$weekday-bg: #f8fafc;
$weekday-border: 1px solid #eaeaea;
.scrollbar {
width: 0px;
}
.scrollbar-track {
display: none;
}
.custom-calendar.vc-container {
border-radius: 0;
width: 100%;
.vc-header {
background-color: #f1f5f8;
padding: 10px 0;
}
.vc-weeks {
padding: 0;
}
.vc-weekday {
background-color: $weekday-bg;
border-bottom: $weekday-border;
border-top: $weekday-border;
padding: 5px 0;
}
.vc-day {
padding: 0 5px 3px 5px;
text-align: left;
min-height: $day-height;
min-width: $day-width;
overflow: auto;
background-color: white;
&.weekday-1,
&.weekday-7 {
background-color: #eff8ff;
}
&:not(.on-bottom) {
border-bottom: $day-border;
&.weekday-1 {
border-bottom: $day-border-highlight;
}
}
&:not(.on-right) {
border-right: $day-border;
}
}
.vc-day-dots {
margin-bottom: 5px;
}
}
</style>
Hi I'm currently trying to do the installation steps in the website. But it seems there was an issue with the version 2 at the moment.
Checking in the issues list it was mentioned that I should use the previous version (v1) I just want to know whether the tailwind was implemented in v1 If not, how do you proceed with changing the CSS of the labels?
Side question: Is there any stable version that I can use to recreate this?