Skip to content

Commit 1772adc

Browse files
committed
chore: cleanup
1 parent c3ddaac commit 1772adc

3 files changed

Lines changed: 8 additions & 48 deletions

File tree

.cursorrules/styling.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,6 @@ The pattern is: CSS variable `--color-{category}-{name}` → Tailwind class `{ca
6060

6161
### Styling Approach
6262

63-
Tailwind is the **sole** styling system. Do not introduce any CSS-in-JS or
64-
runtime styling library; a guard test (`no-styled-components.test.ts`) enforces
65-
this.
66-
6763
Use a hybrid of inline utilities and `c-*` recipes:
6864

6965
- **Inline Tailwind utilities** for one-off layout and state, applied directly

packages/web/src/common/styles/no-styled-components.test.ts

Lines changed: 0 additions & 36 deletions
This file was deleted.

packages/web/src/index.css

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@
393393
}
394394

395395
@utility c-login-progress {
396-
@apply relative h-[3px] w-full overflow-hidden rounded-[3px] bg-border-primary;
396+
@apply relative h-0.75 w-full overflow-hidden rounded-[3px] bg-border-primary;
397397

398398
&::after {
399399
@apply absolute top-0 h-full w-[45%] animate-login-progress content-[""];
@@ -442,7 +442,7 @@
442442
}
443443

444444
@utility c-date-picker {
445-
@apply select-none rounded-[2px] border-0 font-medium shadow-[0_4px_4px_var(--color-shadow-default)];
445+
@apply select-none rounded-xs border-0 font-medium shadow-[0_4px_4px_var(--color-shadow-default)];
446446
background-color: var(--date-picker-bg);
447447
font-size: 12px;
448448

@@ -704,7 +704,7 @@
704704
}
705705

706706
@utility c-event-form-description {
707-
@apply relative max-h-[180px] border-hidden bg-transparent font-normal transition-all duration-300;
707+
@apply relative max-h-45 border-hidden bg-transparent font-normal transition-all duration-300;
708708
font-size: var(--font-size-xxl);
709709
width: calc(100% - 20px);
710710
&:hover {
@@ -714,7 +714,7 @@
714714
}
715715

716716
@utility c-time-picker {
717-
@apply relative min-w-[90px];
717+
@apply relative min-w-22.5;
718718
font-size: var(--font-size-l);
719719
& span[aria-live="polite"],
720720
& .timepicker__indicators {
@@ -818,7 +818,7 @@
818818
}
819819

820820
@utility c-recurrence-interval {
821-
@apply ml-1 h-[38px] w-8 rounded-sm border border-transparent px-1 text-center transition-all duration-300;
821+
@apply ml-1 h-9.5 w-8 rounded-sm border border-transparent px-1 text-center transition-all duration-300;
822822
background: var(--recurrence-bg);
823823
font-size: var(--font-size-s);
824824
&::-webkit-outer-spin-button,
@@ -901,7 +901,7 @@
901901
}
902902

903903
@utility c-someday-event {
904-
@apply w-full cursor-grab rounded-[2px] px-2 py-[3px] text-xs text-text-lighter transition-[background-color_.2s,opacity_.12s,box-shadow_.2s] focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-accent-primary;
904+
@apply w-full cursor-grab rounded-xs px-2 py-0.75 text-xs text-text-lighter transition-[background-color_.2s,opacity_.12s,box-shadow_.2s] focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-accent-primary;
905905
background: var(--someday-event-bg);
906906
&[data-dragging="true"] {
907907
pointer-events: none;
@@ -929,7 +929,7 @@
929929
}
930930

931931
@utility c-week-grid-track {
932-
@apply relative flex h-full w-full min-w-[704px] flex-col;
932+
@apply relative flex h-full w-full min-w-176 flex-col;
933933
container: week-grid-track / inline-size;
934934
}
935935

@@ -1024,7 +1024,7 @@
10241024
}
10251025

10261026
@utility c-reminder-wrapper {
1027-
@apply relative inline-block pb-[18px];
1027+
@apply relative inline-block pb-4.5;
10281028
}
10291029

10301030
@utility c-reminder-char-counter {

0 commit comments

Comments
 (0)