* chore: refactor config files to prevent migration tool errors * refactor: upgrade with the tailwind migration tool * chore: restore pre-commit command + mc * refactor(wip): update dependencies and migrate to Tailwind CSS v4 (mainly web) * chore: resolve Tailwind v4 migration conflicts from merging main * chore: remove unused Tailwind packages from config and update dependencies for v4 migration * chore: uncomment Tailwind CSS utility classes in globals.css * fix: resolve token conflicts between calcom and coss ui * fix: textarea scrollbar * Fix CUI-16 * fix: added @tailwindcss/forms plugin and cleaned up CSS classes in various components to remove unnecessary dark mode styles * fix: selects and inputs of different sizes * fix: remove unnecessary leading-20 class from modal titles in various components * fix: update Checkbox component styles to remove unnecessary border on checked state * fix: clean up styles in RequiresConfirmationController, Checkbox, and Radio components to enhance consistency * fix: update button and filter component styles to remove unnecessary rounded classes for consistency * fix: calendar * fix: update KBarSearch * fix: refine styles in Empty and Checkbox components for improved consistency * Fix focus state email input * fix: update button hover and active states to use 'not-disabled' instead of 'enabled' * fix: line-height issues * fix: update class name for muted background in BookingListItem component * fix: sidebar spacing * chore: update class names to use new Tailwind CSS color utilities * fix embed * chore: upgrade Tailwind CSS to version 4.1.16 and update related dependencies * Map css variables and add a playground test for heavy css customization * suggestion for coss-ui * refactor: update CSS variable usage and clean up styles - Replace instances of `--cal-brand-color` with `--cal-brand` in embed-related HTML files. - Remove the now-unnecessary `addAppCssVars` function from the embed core. - Import theme tokens in the embed core styles for better consistency. - Clean up whitespace and formatting in CSS files for improved readability. - Add a comment in `tokens.css` regarding its usage in both embed and webapp contexts. * Handle within tokens.css instead of fixing coss-ui * Remove initial, not needed. Also, remove tailwind.config.js as tailwidn scans the html automaically * fix: examples app breaking * fix: modal not resizing correctly * feat: upgrade atoms to tailwind v4 * fix: atoms build breaking * fix: atoms build breaking * chore: upgrate examples/base to tailwind 4 * chore: update globals.css * fix: add missing scheduler css variables * fix: PlatformAdditionalCalendarSelector * chore: update global styles * chore: update tailwindcss and postcss dependencies to stable versions * chore: remove unneeded class * fix: dialog and toast animation * fix: replace flex-shrink-0 with shrink-0 for consistent styling in various components * fix: dialog modal for Apple connect * add margin in SaveFilterSegmentButton * Fix radix button nested states * add cursor pointer to buttons but keep dsabled state * Fix commandK selectors and adds cursor pointer * Fix teams filter * fix - round checkboxes * fix filter checkbox * fix select indicator's margin * command group font size * style: fix badge and tooltip radius * chore: remove unneeded files * Delete PR_REVIEW_MANAGED_EVENT_REASSIGNMENT.md * remove ui-playground leftover * fix: add missing react phone input styles in atoms * Delete managed-event-reassignment-flow-and-architecture.mermaid * fix: inter font not loading * Add theme to skeleton container so that it can support dark mode * fix: create custom stack-y-* utilities post tw4 upgrade * fix: typo * fix: atoms stack class + remove unused css file * fix default radius valiue * fix space-y in embed * fix skeleton background * Hardcode radius values to match production * fix border in embed * add missing externalThemeClass * feat: create a custom stack-y-* utility * fix: add stack utility to atom global css * fix: Skeleton loader class modalbox * Add stack-y utility in embed * fix: add missing stack utilities in atoms globals.css * update yarn.lock * add popover portla * update --------- Co-authored-by: Sean Brydon <sean@cal.com> Co-authored-by: Hariom Balhara <hariombalhara@gmail.com> Co-authored-by: Ryukemeister <sahalrajiv6900@gmail.com> Co-authored-by: cal.com <morgan@cal.com> Co-authored-by: Eunjae Lee <hey@eunjae.dev> Co-authored-by: Anik Dhabal Babu <adhabal2002@gmail.com>
423 lines
8.5 KiB
CSS
423 lines
8.5 KiB
CSS
@import "tailwindcss";
|
|
@import "../../../packages/coss-ui/styles.css";
|
|
@import "../../../packages/config/theme/shared-sources.css";
|
|
@import "../../../packages/config/theme/tokens.css";
|
|
@import "./raqb.css";
|
|
|
|
::-moz-selection {
|
|
color: var(--cal-brand-text);
|
|
background: var(--cal-brand);
|
|
}
|
|
|
|
::selection {
|
|
color: var(--cal-brand-text);
|
|
background: var(--cal-brand);
|
|
}
|
|
|
|
body {
|
|
text-rendering: optimizeLegibility;
|
|
-webkit-font-smoothing: antialiased;
|
|
}
|
|
|
|
/*
|
|
Desktop App specific CSS
|
|
https://docs.todesktop.com/
|
|
*/
|
|
|
|
html.todesktop-platform-win32 .todesktop\:\!bg-transparent {
|
|
background: inherit !important;
|
|
}
|
|
|
|
/* disable user selection on buttons, links and images on desktop app */
|
|
html.todesktop button,
|
|
html.todesktop a,
|
|
html.todesktop img,
|
|
html.todesktop header {
|
|
-webkit-touch-callout: none;
|
|
-webkit-user-select: none;
|
|
-khtml-user-select: none;
|
|
-moz-user-select: none;
|
|
-ms-user-select: none;
|
|
user-select: none;
|
|
cursor: default !important;
|
|
}
|
|
|
|
html.todesktop,
|
|
html.todesktop div {
|
|
cursor: default !important;
|
|
}
|
|
|
|
/* make header draggable on desktop app */
|
|
html.todesktop header {
|
|
-webkit-app-region: drag;
|
|
}
|
|
|
|
html.todesktop header button,
|
|
html.todesktop header a {
|
|
-webkit-app-region: no-drag;
|
|
}
|
|
|
|
html.todesktop-platform-darwin body,
|
|
html.todesktop-platform-darwin aside {
|
|
background: transparent !important;
|
|
}
|
|
|
|
html.todesktop-platform-darwin.dark main.bg-default {
|
|
background: rgba(0, 0, 0, 0.6) !important;
|
|
}
|
|
|
|
html.todesktop-platform-darwin.light main.bg-default {
|
|
background: rgba(255, 255, 255, 0.8) !important;
|
|
}
|
|
|
|
html.todesktop.light {
|
|
--cal-bg-emphasis: hsla(0, 0%, 11%, 0.1);
|
|
}
|
|
|
|
html.todesktop.dark {
|
|
--cal-bg-emphasis: hsla(220, 2%, 26%, 0.3);
|
|
}
|
|
|
|
/*
|
|
Adds Utility to hide scrollbar to tailwind
|
|
https://github.com/tailwindlabs/tailwindcss/discussions/2394
|
|
https://github.com/tailwindlabs/tailwindcss/pull/5732
|
|
*/
|
|
@layer utilities {
|
|
/* Chrome, Safari and Opera */
|
|
.no-scrollbar::-webkit-scrollbar {
|
|
display: none;
|
|
}
|
|
|
|
.no-scrollbar {
|
|
-ms-overflow-style: none; /* IE and Edge */
|
|
scrollbar-width: none; /* Firefox */
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Legacy space-y-* utilities for Tailwind v4 compatibility
|
|
*
|
|
* Tailwind v4 changed the selector used by space-x-* and space-y-* utilities to address
|
|
* performance issues on large pages. The selector changed from:
|
|
*
|
|
* .space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 1rem; }
|
|
*
|
|
* to:
|
|
*
|
|
* .space-y-4 > :not(:last-child) { margin-bottom: 1rem; }
|
|
*
|
|
* These `.stack-y-*` utilities recreate the pre-v4 behavior using the old selector pattern
|
|
* (`:not([hidden]) ~ :not([hidden])` with `margin-top`) for cases where the new behavior
|
|
* causes layout issues.
|
|
*
|
|
* Usage: <div class="stack-y-4"> or <div class="lg:stack-y-6">
|
|
* Supports all spacing values: stack-y-0, stack-y-0.5, stack-y-1, stack-y-1.5, stack-y-2, etc.
|
|
*
|
|
* Reference: https://tailwindcss.com/docs/upgrade-guide#space-between-selector
|
|
*/
|
|
@utility stack-y-* {
|
|
& > :not([hidden]) ~ :not([hidden]) {
|
|
margin-top: --spacing(--value(integer));
|
|
margin-top: --value([length]);
|
|
}
|
|
}
|
|
|
|
/*
|
|
* Override the default tailwindcss-forms styling (default is: 'colors.blue.600')
|
|
* @see: https://github.com/tailwindlabs/tailwindcss-forms/issues/14#issuecomment-1005376006
|
|
*/
|
|
[type="text"]:focus,
|
|
[type="email"]:focus,
|
|
[type="url"]:focus,
|
|
[type="password"]:focus,
|
|
[type="number"]:focus,
|
|
[type="date"]:focus,
|
|
[type="datetime-local"]:focus,
|
|
[type="month"]:focus,
|
|
[type="search"]:focus,
|
|
[type="tel"]:focus,
|
|
[type="checkbox"]:focus,
|
|
[type="radio"]:focus,
|
|
[type="time"]:focus,
|
|
[type="week"]:focus,
|
|
[multiple]:focus,
|
|
textarea:focus,
|
|
select:focus {
|
|
--tw-ring-color: var(--brand-color);
|
|
border-color: var(--brand-color);
|
|
}
|
|
|
|
@layer components {
|
|
.scroll-bar {
|
|
@apply scrollbar-thin scrollbar-thumb-rounded-md dark:scrollbar-thumb-darkgray-300 scrollbar-thumb-gray-300 scrollbar-track-transparent;
|
|
}
|
|
}
|
|
|
|
/* TODO: avoid global specific css */
|
|
/* button[role="switch"][data-state="checked"] span {
|
|
transform: translateX(16px);
|
|
} */
|
|
|
|
@layer components {
|
|
/* slider */
|
|
.slider {
|
|
@apply relative flex h-4 w-40 select-none items-center;
|
|
}
|
|
|
|
.slider > .slider-track {
|
|
@apply relative h-1 grow rounded-md bg-gray-400;
|
|
}
|
|
|
|
.slider .slider-range {
|
|
@apply absolute h-full rounded-full bg-gray-700;
|
|
}
|
|
|
|
.slider .slider-thumb {
|
|
@apply block h-3 w-3 cursor-pointer rounded-full bg-gray-700 transition-all;
|
|
}
|
|
|
|
.slider .slider-thumb:hover {
|
|
@apply bg-gray-600;
|
|
}
|
|
|
|
.slider .slider-thumb:focus {
|
|
box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.2);
|
|
}
|
|
}
|
|
|
|
/* hide chat bubble on mobile */
|
|
@media only screen and (max-width: 768px) {
|
|
/* Intercom FAB*/
|
|
#launcher {
|
|
display: none !important;
|
|
}
|
|
|
|
/* Zendesk FAB*/
|
|
div[role="presentation"] > iframe {
|
|
display: none !important;
|
|
}
|
|
|
|
/* Helpscout FAB*/
|
|
.BeaconFabButtonFrame {
|
|
margin-left: -30px;
|
|
left: 50%;
|
|
bottom: 28px !important;
|
|
z-index: 1058 !important;
|
|
}
|
|
}
|
|
|
|
/* TODO: implement styling for react-multi-email */
|
|
|
|
/* !important to override react-dates */
|
|
.DateRangePickerInput__withBorder {
|
|
border: 0 !important;
|
|
}
|
|
.DateInput_input {
|
|
border: 1px solid #d1d5db !important;
|
|
border-radius: 2px !important;
|
|
font-size: inherit !important;
|
|
font-weight: inherit !important;
|
|
color: #000;
|
|
padding: 11px 11px 9px !important;
|
|
line-height: 16px !important;
|
|
}
|
|
|
|
.DateInput_input__focused {
|
|
border: 2px solid #000 !important;
|
|
border-radius: 2px !important;
|
|
box-shadow: none !important;
|
|
padding: 10px 10px 9px !important;
|
|
}
|
|
|
|
.DateRangePickerInput_arrow {
|
|
padding: 0px 10px;
|
|
}
|
|
|
|
.loader {
|
|
display: block;
|
|
width: 30px;
|
|
height: 30px;
|
|
margin: 60px auto;
|
|
position: relative;
|
|
border-width: 4px;
|
|
border-style: solid;
|
|
animation: loader 2s infinite ease;
|
|
}
|
|
|
|
.loader-inner {
|
|
vertical-align: top;
|
|
display: inline-block;
|
|
width: 100%;
|
|
animation: loader-inner 2s infinite ease-in;
|
|
}
|
|
|
|
.no-ring-inset {
|
|
--tw-ring-inset: unset;
|
|
}
|
|
|
|
@keyframes loader {
|
|
0% {
|
|
transform: rotate(0deg);
|
|
}
|
|
|
|
25% {
|
|
transform: rotate(180deg);
|
|
}
|
|
|
|
50% {
|
|
transform: rotate(180deg);
|
|
}
|
|
|
|
75% {
|
|
transform: rotate(360deg);
|
|
}
|
|
|
|
100% {
|
|
transform: rotate(360deg);
|
|
}
|
|
}
|
|
|
|
@keyframes loader-inner {
|
|
0% {
|
|
height: 0%;
|
|
}
|
|
|
|
25% {
|
|
height: 0%;
|
|
}
|
|
|
|
50% {
|
|
height: 100%;
|
|
}
|
|
|
|
75% {
|
|
height: 100%;
|
|
}
|
|
|
|
100% {
|
|
height: 0%;
|
|
}
|
|
}
|
|
|
|
.text-inverted-important {
|
|
color: white !important;
|
|
}
|
|
|
|
@layer utilities {
|
|
.transition-max-width {
|
|
-webkit-transition-property: max-width;
|
|
transition-property: max-width;
|
|
}
|
|
}
|
|
|
|
#timeZone input:focus {
|
|
box-shadow: none;
|
|
}
|
|
|
|
/* react-date-picker forces a border upon us, cast it away */
|
|
.react-date-picker__wrapper {
|
|
border: none !important;
|
|
}
|
|
|
|
.react-date-picker__inputGroup__input {
|
|
padding-top: 0;
|
|
padding-bottom: 0;
|
|
}
|
|
|
|
/* animations */
|
|
.slideInBottom {
|
|
animation-duration: 0.3s;
|
|
animation-fill-mode: both;
|
|
animation-name: slideInBottom;
|
|
}
|
|
|
|
@keyframes slideInBottom {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(30%);
|
|
pointer-events: none;
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
pointer-events: auto;
|
|
}
|
|
}
|
|
|
|
/* animations */
|
|
.slideInTop {
|
|
animation-duration: 0.3s;
|
|
animation-fill-mode: both;
|
|
animation-name: slideInTop;
|
|
}
|
|
|
|
@keyframes slideInTop {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(-20%);
|
|
pointer-events: none;
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
pointer-events: auto;
|
|
transform: translateY(0%);
|
|
}
|
|
}
|
|
|
|
.fadeIn {
|
|
animation-duration: 0.3s;
|
|
animation-fill-mode: both;
|
|
animation-name: fadeIn;
|
|
animation-timing-function: ease-in-out;
|
|
}
|
|
|
|
@keyframes fadeIn {
|
|
from {
|
|
opacity: 0;
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Makes sure h-screen works on mobile Safari. By default h-screen
|
|
* does not take into account the height of the address bar, causing
|
|
* weird behaviour when scrolling — sometimes the height will be correct
|
|
* and sometimes it won't, depending on whether the address bar is
|
|
* in 'collapsed' state or not.
|
|
* @see: https://benborgers.com/posts/tailwind-h-screen
|
|
*/
|
|
@supports (-webkit-touch-callout: none) {
|
|
.h-screen {
|
|
height: -webkit-fill-available;
|
|
}
|
|
}
|
|
|
|
::-webkit-search-cancel-button {
|
|
-webkit-appearance: none;
|
|
}
|
|
|
|
.react-tel-input .country-list .country:hover,
|
|
.react-tel-input .country-list .country.highlight {
|
|
@apply bg-emphasis!;
|
|
}
|
|
|
|
.react-tel-input .flag-dropdown .selected-flag,
|
|
.react-tel-input .flag-dropdown.open .selected-flag {
|
|
@apply bg-default!;
|
|
}
|
|
|
|
.react-tel-input .flag-dropdown {
|
|
@apply border-r-default! left-0.5 border-y-0! border-l-0!;
|
|
}
|
|
|
|
[data-radix-popper-content-wrapper] {
|
|
border: none;
|
|
}
|
|
|
|
html[dir="rtl"] .react-tel-input .flag-dropdown {
|
|
left: auto !important;
|
|
right: 0 !important;
|
|
}
|