2025-02-13 11:31:07 -05:00
|
|
|
/*
|
|
|
|
This file contains all of the Figma design tokens, components, etc. that
|
|
|
|
are used globally across the app.
|
|
|
|
|
|
|
|
One-off styling (3rd party overrides, etc.) should be done in the application.css file.
|
|
|
|
*/
|
|
|
|
|
2025-04-30 18:14:22 -04:00
|
|
|
@import './maybe-design-system/background-utils.css';
|
|
|
|
@import './maybe-design-system/foreground-utils.css';
|
|
|
|
@import './maybe-design-system/text-utils.css';
|
|
|
|
@import './maybe-design-system/border-utils.css';
|
|
|
|
@import './maybe-design-system/component-utils.css';
|
|
|
|
|
2025-04-11 09:28:00 -05:00
|
|
|
@custom-variant theme-dark (&:where([data-theme=dark], [data-theme=dark] *));
|
|
|
|
|
2025-02-13 11:31:07 -05:00
|
|
|
@theme {
|
|
|
|
/* Font families */
|
|
|
|
--font-sans: 'Geist', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
|
|
|
|
--font-mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
|
|
|
|
|
|
|
|
/* Base colors */
|
|
|
|
--color-white: #ffffff;
|
|
|
|
--color-black: #0B0B0B;
|
|
|
|
--color-success: var(--color-green-600);
|
|
|
|
--color-warning: var(--color-yellow-600);
|
|
|
|
--color-destructive: var(--color-red-600);
|
2025-04-30 18:14:22 -04:00
|
|
|
--color-shadow: --alpha(var(--color-black) / 6%);
|
2025-02-13 11:31:07 -05:00
|
|
|
|
|
|
|
/* Gray scale */
|
|
|
|
--color-gray-25: #FAFAFA;
|
|
|
|
--color-gray-50: #F7F7F7;
|
|
|
|
--color-gray-100: #F0F0F0;
|
|
|
|
--color-gray-200: #E7E7E7;
|
|
|
|
--color-gray-300: #CFCFCF;
|
|
|
|
--color-gray-400: #9E9E9E;
|
|
|
|
--color-gray-500: #737373;
|
|
|
|
--color-gray-600: #5C5C5C;
|
|
|
|
--color-gray-700: #363636;
|
|
|
|
--color-gray-800: #242424;
|
|
|
|
--color-gray-900: #171717;
|
|
|
|
--color-gray: var(--color-gray-500);
|
|
|
|
--color-gray-tint-5: --alpha(var(--color-gray-500) / 5%);
|
|
|
|
--color-gray-tint-10: --alpha(var(--color-gray-500) / 10%);
|
|
|
|
|
|
|
|
/* Alpha colors */
|
|
|
|
--color-alpha-white-25: --alpha(var(--color-white) / 3%);
|
|
|
|
--color-alpha-white-50: --alpha(var(--color-white) / 5%);
|
|
|
|
--color-alpha-white-100: --alpha(var(--color-white) / 8%);
|
|
|
|
--color-alpha-white-200: --alpha(var(--color-white) / 10%);
|
|
|
|
--color-alpha-white-300: --alpha(var(--color-white) / 15%);
|
|
|
|
--color-alpha-white-400: --alpha(var(--color-white) / 20%);
|
|
|
|
--color-alpha-white-500: --alpha(var(--color-white) / 30%);
|
|
|
|
--color-alpha-white-600: --alpha(var(--color-white) / 40%);
|
|
|
|
--color-alpha-white-700: --alpha(var(--color-white) / 50%);
|
|
|
|
--color-alpha-white-800: --alpha(var(--color-white) / 70%);
|
|
|
|
--color-alpha-white-900: --alpha(var(--color-white) / 85%);
|
|
|
|
|
|
|
|
--color-alpha-black-25: --alpha(var(--color-black) / 3%);
|
|
|
|
--color-alpha-black-50: --alpha(var(--color-black) / 5%);
|
|
|
|
--color-alpha-black-100: --alpha(var(--color-black) / 8%);
|
|
|
|
--color-alpha-black-200: --alpha(var(--color-black) / 10%);
|
|
|
|
--color-alpha-black-300: --alpha(var(--color-black) / 15%);
|
|
|
|
--color-alpha-black-400: --alpha(var(--color-black) / 20%);
|
|
|
|
--color-alpha-black-500: --alpha(var(--color-black) / 30%);
|
|
|
|
--color-alpha-black-600: --alpha(var(--color-black) / 40%);
|
|
|
|
--color-alpha-black-700: --alpha(var(--color-black) / 50%);
|
|
|
|
--color-alpha-black-800: --alpha(var(--color-black) / 70%);
|
|
|
|
--color-alpha-black-900: --alpha(var(--color-black) / 85%);
|
|
|
|
|
|
|
|
/* Red scale */
|
|
|
|
--color-red-25: #FFFBFB;
|
|
|
|
--color-red-50: #FFF1F0;
|
|
|
|
--color-red-100: #FFDEDB;
|
|
|
|
--color-red-200: #FEB9B3;
|
|
|
|
--color-red-300: #F88C86;
|
|
|
|
--color-red-400: #ED4E4E;
|
|
|
|
--color-red-500: #F13636;
|
|
|
|
--color-red-600: #EC2222;
|
|
|
|
--color-red-700: #C91313;
|
|
|
|
--color-red-800: #A40E0E;
|
|
|
|
--color-red-900: #7E0707;
|
|
|
|
--color-red-tint-5: --alpha(var(--color-red-500) / 5%);
|
|
|
|
--color-red-tint-10: --alpha(var(--color-red-500) / 10%);
|
|
|
|
|
|
|
|
/* Green scale */
|
|
|
|
--color-green-25: #F6FEF9;
|
|
|
|
--color-green-50: #ECFDF3;
|
|
|
|
--color-green-100: #D1FADF;
|
|
|
|
--color-green-200: #A6F4C5;
|
|
|
|
--color-green-300: #6CE9A6;
|
|
|
|
--color-green-400: #32D583;
|
|
|
|
--color-green-500: #12B76A;
|
|
|
|
--color-green-600: #10A861;
|
|
|
|
--color-green-700: #078C52;
|
|
|
|
--color-green-800: #05603A;
|
|
|
|
--color-green-900: #054F31;
|
|
|
|
--color-green-tint-5: --alpha(var(--color-green-500) / 5%);
|
|
|
|
--color-green-tint-10: --alpha(var(--color-green-500) / 10%);
|
|
|
|
|
|
|
|
/* Yellow scale */
|
|
|
|
--color-yellow-25: #FFFCF5;
|
|
|
|
--color-yellow-50: #FFFAEB;
|
|
|
|
--color-yellow-100: #FEF0C7;
|
|
|
|
--color-yellow-200: #FEDF89;
|
|
|
|
--color-yellow-300: #FEC84B;
|
|
|
|
--color-yellow-400: #FDB022;
|
|
|
|
--color-yellow-500: #F79009;
|
|
|
|
--color-yellow-600: #DC6803;
|
|
|
|
--color-yellow-700: #B54708;
|
|
|
|
--color-yellow-800: #93370D;
|
|
|
|
--color-yellow-900: #7A2E0E;
|
|
|
|
--color-yellow-tint-5: --alpha(var(--color-yellow-500) / 5%);
|
|
|
|
--color-yellow-tint-10: --alpha(var(--color-yellow-500) / 10%);
|
|
|
|
|
|
|
|
/* Cyan scale */
|
|
|
|
--color-cyan-25: #F5FEFF;
|
|
|
|
--color-cyan-50: #ECFDFF;
|
|
|
|
--color-cyan-100: #CFF9FE;
|
|
|
|
--color-cyan-200: #A5F0FC;
|
|
|
|
--color-cyan-300: #67E3F9;
|
|
|
|
--color-cyan-400: #22CCEE;
|
|
|
|
--color-cyan-500: #06AED4;
|
|
|
|
--color-cyan-600: #088AB2;
|
|
|
|
--color-cyan-700: #0E7090;
|
|
|
|
--color-cyan-800: #155B75;
|
|
|
|
--color-cyan-900: #155B75;
|
|
|
|
--color-cyan-tint-5: --alpha(var(--color-cyan-500) / 5%);
|
|
|
|
--color-cyan-tint-10: --alpha(var(--color-cyan-500) / 10%);
|
|
|
|
|
|
|
|
/* Blue scale */
|
|
|
|
--color-blue-25: #F5FAFF;
|
|
|
|
--color-blue-50: #EFF8FF;
|
|
|
|
--color-blue-100: #D1E9FF;
|
|
|
|
--color-blue-200: #B2DDFF;
|
|
|
|
--color-blue-300: #84CAFF;
|
|
|
|
--color-blue-400: #53B1FD;
|
|
|
|
--color-blue-500: #2E90FA;
|
|
|
|
--color-blue-600: #1570EF;
|
|
|
|
--color-blue-700: #175CD3;
|
|
|
|
--color-blue-800: #1849A9;
|
|
|
|
--color-blue-900: #194185;
|
|
|
|
--color-blue-tint-5: --alpha(var(--color-blue-500) / 5%);
|
|
|
|
--color-blue-tint-10: --alpha(var(--color-blue-500) / 10%);
|
|
|
|
|
|
|
|
/* Indigo scale */
|
|
|
|
--color-indigo-25: #F5F8FF;
|
|
|
|
--color-indigo-50: #EFF4FF;
|
|
|
|
--color-indigo-100: #E0EAFF;
|
|
|
|
--color-indigo-200: #C7D7FE;
|
|
|
|
--color-indigo-300: #A4BCFD;
|
|
|
|
--color-indigo-400: #8098F9;
|
|
|
|
--color-indigo-500: #6172F3;
|
|
|
|
--color-indigo-600: #444CE7;
|
|
|
|
--color-indigo-700: #3538CD;
|
|
|
|
--color-indigo-800: #2D31A6;
|
|
|
|
--color-indigo-900: #2D3282;
|
|
|
|
--color-indigo-tint-5: --alpha(var(--color-indigo-500) / 5%);
|
|
|
|
--color-indigo-tint-10: --alpha(var(--color-indigo-500) / 10%);
|
|
|
|
|
|
|
|
/* Violet scale */
|
|
|
|
--color-violet-25: #FBFAFF;
|
|
|
|
--color-violet-50: #F5F3FF;
|
|
|
|
--color-violet-100: #ECE9FE;
|
|
|
|
--color-violet-200: #DDD6FE;
|
|
|
|
--color-violet-300: #C3B5FD;
|
|
|
|
--color-violet-400: #A48AFB;
|
|
|
|
--color-violet-500: #875BF7;
|
|
|
|
--color-violet-600: #7839EE;
|
|
|
|
--color-violet-700: #6927DA;
|
|
|
|
--color-violet-tint-5: --alpha(var(--color-violet-500) / 5%);
|
|
|
|
--color-violet-tint-10: --alpha(var(--color-violet-500) / 10%);
|
|
|
|
|
|
|
|
/* Fuchsia scale */
|
|
|
|
--color-fuchsia-25: #FEFAFF;
|
|
|
|
--color-fuchsia-50: #FDF4FF;
|
|
|
|
--color-fuchsia-100: #FBE8FF;
|
|
|
|
--color-fuchsia-200: #F6D0FE;
|
|
|
|
--color-fuchsia-300: #EEAAFD;
|
|
|
|
--color-fuchsia-400: #E478FA;
|
|
|
|
--color-fuchsia-500: #D444F1;
|
|
|
|
--color-fuchsia-600: #BA24D5;
|
|
|
|
--color-fuchsia-700: #9F1AB1;
|
|
|
|
--color-fuchsia-800: #821890;
|
|
|
|
--color-fuchsia-900: #6F1877;
|
|
|
|
--color-fuchsia-tint-5: --alpha(var(--color-fuchsia-500) / 5%);
|
|
|
|
--color-fuchsia-tint-10: --alpha(var(--color-fuchsia-500) / 10%);
|
|
|
|
|
|
|
|
/* Pink scale */
|
|
|
|
--color-pink-25: #FFFAFC;
|
|
|
|
--color-pink-50: #FEF0F7;
|
|
|
|
--color-pink-100: #FFD1E2;
|
|
|
|
--color-pink-200: #FFB1CE;
|
|
|
|
--color-pink-300: #FD8FBA;
|
|
|
|
--color-pink-400: #F86BA7;
|
|
|
|
--color-pink-500: #F23E94;
|
|
|
|
--color-pink-600: #D5327F;
|
|
|
|
--color-pink-700: #BA256B;
|
|
|
|
--color-pink-800: #9E1958;
|
|
|
|
--color-pink-900: #840B45;
|
|
|
|
--color-pink-tint-5: --alpha(var(--color-pink-500) / 5%);
|
|
|
|
--color-pink-tint-10: --alpha(var(--color-pink-500) / 10%);
|
|
|
|
|
|
|
|
/* Orange scale */
|
|
|
|
--color-orange-25: #FFF9F5;
|
|
|
|
--color-orange-50: #FFF4ED;
|
|
|
|
--color-orange-100: #FFE6D5;
|
|
|
|
--color-orange-200: #FFD6AE;
|
|
|
|
--color-orange-300: #FF9C66;
|
|
|
|
--color-orange-400: #FF692E;
|
|
|
|
--color-orange-500: #FF4405;
|
|
|
|
--color-orange-600: #E62E05;
|
|
|
|
--color-orange-700: #BC1B06;
|
|
|
|
--color-orange-800: #97180C;
|
|
|
|
--color-orange-900: #771A0D;
|
|
|
|
--color-orange-tint-5: --alpha(var(--color-orange-500) / 5%);
|
|
|
|
--color-orange-tint-10: --alpha(var(--color-orange-500) / 10%);
|
|
|
|
|
|
|
|
/* Border radius overrides */
|
|
|
|
--border-radius-md: 8px;
|
|
|
|
--border-radius-lg: 10px;
|
|
|
|
|
|
|
|
--shadow-xs: 0px 1px 2px 0px --alpha(var(--color-black) / 6%);
|
|
|
|
--shadow-sm: 0px 1px 6px 0px --alpha(var(--color-black) / 6%);
|
|
|
|
--shadow-md: 0px 4px 8px -2px --alpha(var(--color-black) / 6%);
|
|
|
|
--shadow-lg: 0px 12px 16px -4px --alpha(var(--color-black) / 6%);
|
|
|
|
--shadow-xl: 0px 20px 24px -4px --alpha(var(--color-black) / 6%);
|
2025-04-18 11:39:58 -04:00
|
|
|
|
|
|
|
--animate-stroke-fill: stroke-fill 3s 300ms forwards;
|
|
|
|
|
|
|
|
@keyframes stroke-fill {
|
|
|
|
0% {
|
|
|
|
stroke-dashoffset: 43.9822971503;
|
|
|
|
}
|
|
|
|
|
|
|
|
100% {
|
|
|
|
stroke-dashoffset: 0;
|
|
|
|
}
|
|
|
|
}
|
2025-02-13 11:31:07 -05:00
|
|
|
}
|
|
|
|
|
2025-04-30 18:14:22 -04:00
|
|
|
/* Specific override for strong tags in prose under dark mode */
|
|
|
|
.prose:where([data-theme=dark], [data-theme=dark] *) strong {
|
|
|
|
color: theme(colors.white) !important;
|
2025-04-11 09:28:00 -05:00
|
|
|
}
|
|
|
|
|
2025-04-30 18:14:22 -04:00
|
|
|
@layer base {
|
|
|
|
[data-theme="dark"] {
|
|
|
|
--color-success: var(--color-green-500);
|
|
|
|
--color-warning: var(--color-yellow-400);
|
|
|
|
--color-destructive: var(--color-red-400);
|
|
|
|
--color-shadow: --alpha(#000000 / 8%);
|
2025-04-11 09:28:00 -05:00
|
|
|
|
2025-04-30 18:14:22 -04:00
|
|
|
--shadow-xs: 0px 1px 2px 0px --alpha(var(--color-white) / 8%);
|
|
|
|
--shadow-sm: 0px 1px 6px 0px --alpha(var(--color-white) / 8%);
|
|
|
|
--shadow-md: 0px 4px 8px -2px --alpha(var(--color-white) / 8%);
|
|
|
|
--shadow-lg: 0px 12px 16px -4px --alpha(var(--color-white) / 8%);
|
|
|
|
--shadow-xl: 0px 20px 24px -4px --alpha(var(--color-white) / 8%);
|
2025-04-11 09:28:00 -05:00
|
|
|
}
|
2025-02-21 11:57:59 -05:00
|
|
|
|
Personal finance AI (v1) (#2022)
* AI sidebar
* Add chat and message models with associations
* Implement AI chat functionality with sidebar and messaging system
- Add chat and messages controllers
- Create chat and message views
- Implement chat-related routes
- Add message broadcasting and user interactions
- Update application layout to support chat sidebar
- Enhance user model with initials method
* Refactor AI sidebar with enhanced chat menu and interactions
- Update sidebar layout with dynamic width and improved responsiveness
- Add new chat menu Stimulus controller for toggling between chat and chat list views
- Improve chat list display with recent chats and empty state
- Extract AI avatar to a partial for reusability
- Enhance message display and interaction styling
- Add more contextual buttons and interaction hints
* Improve chat scroll behavior and message styling
- Refactor chat scroll functionality with Stimulus controller
- Optimize message scrolling in chat views
- Update message styling for better visual hierarchy
- Enhance chat container layout with flex and auto-scroll
- Simplify message rendering across different chat views
* Extract AI avatar to a shared partial for consistent styling
- Refactor AI avatar rendering across chat views
- Replace hardcoded avatar markup with a reusable partial
- Simplify avatar display in chats and messages views
* Update sidebar controller to handle right panel width dynamically
- Add conditional width class for right sidebar panel
- Ensure consistent sidebar toggle behavior for both left and right panels
- Use specific width class for right panel (w-[375px])
* Refactor chat form and AI greeting with flexible partials
- Extract message form to a reusable partial with dynamic context support
- Create flexible AI greeting partial for consistent welcome messages
- Simplify chat and sidebar views by leveraging new partials
- Add support for different form scenarios (chat, new chat, sidebar)
- Improve code modularity and reduce duplication
* Add chat clearing functionality with dynamic menu options
- Implement clear chat action in ChatsController
- Add clear chat route to support clearing messages
- Update AI sidebar with dropdown menu for chat actions
- Preserve system message when clearing chat
- Enhance chat interaction with new menu options
* Add frontmatter to project structure documentation
- Create initial frontmatter for structure.mdc file
- Include description and configuration options
- Prepare for potential dynamic documentation rendering
* Update general project rules with additional guidelines
- Add rule for using `Current.family` instead of `current_family`
- Include new guidelines for testing, API routes, and solution approach
- Expand project-specific rules for more consistent development practices
* Add OpenAI gem and AI-friendly data representations
- Add `ruby-openai` gem for AI integration
- Implement `to_ai_readable_hash` methods in BalanceSheet and IncomeStatement
- Include Promptable module in both models
- Add savings rate calculation method in IncomeStatement
- Prepare financial models for AI-powered insights and interactions
* Enhance AI Financial Assistant with Advanced Querying and Debugging Capabilities
- Implement comprehensive AI financial query system with function-based interactions
- Add detailed debug logging for AI responses and function calls
- Extend BalanceSheet and IncomeStatement models with AI-friendly methods
- Create robust error handling and fallback mechanisms for AI queries
- Update chat and message views to support debug mode and enhanced rendering
- Add AI query routes and initial test coverage for financial assistant
* Refactor AI sidebar and chat layout with improved structure and comments
- Remove inline AI chat from application layout
- Enhance AI sidebar with more semantic HTML structure
- Add descriptive comments to clarify different sections of chat view
- Improve flex layout and scrolling behavior in chat messages container
- Optimize message rendering with more explicit class names and structure
* Add Markdown rendering support for AI chat messages
- Implement `markdown` helper method in ApplicationHelper using Redcarpet
- Update message view to render AI messages with Markdown formatting
- Add comprehensive Markdown rendering options (tables, code blocks, links)
- Enhance AI Financial Assistant prompt to encourage Markdown usage
- Remove commented Markdown CSS in Tailwind application stylesheet
* Missing comma
* Enhance AI response processing with chat history context
* Improve AI debug logging with payload size limits and internal message flag
* Enhance AI chat interaction with improved thinking indicator and scrolling behavior
* Add AI consent and enable/disable functionality for AI chat
* Upgrade Biome and refactor JavaScript template literals
- Update @biomejs/biome to latest version with caret (^) notation
- Refactor AI query and chat controllers to use template literals
- Standardize npm scripts formatting in package.json
* Add beta testing usage note to AI consent modal
* Update test fixtures and configurations for AI chat functionality
- Add family association to chat fixtures and tests
- Set consistent password digest for test users
- Enable AI for test users
- Add OpenAI access token for test environment
- Update chat and user model tests to include family context
* Simplify data model and get tests passing
* Remove structure.mdc from version control
* Integrate AI chat styles into existing prose pattern
* Match Figma design spec, implement Turbo frames and actions for chats controller
* AI rules refresh
* Consolidate Stimulus controllers, thinking state, controllers, and views
* Naming, domain alignment
* Reset migrations
* Improve data model to support tool calls and message types
* Tool calling tests and fixtures
* Tool call implementation and test
* Get assistant test working again
* Test updates
* Process tool calls within provider
* Chat UI back to working state again
* Remove stale code
* Tests passing
* Update openai class naming to avoid conflicts
* Reconfigure test env
* Rebuild gemfile
* Fix naming conflicts for ChatResponse
* Message styles
* Use OpenAI conversation state management
* Assistant function base implementation
* Add back thinking messages, clean up error handling for chat
* Fix sync error when security price has bad data from provider
* Add balance sheet function to assistant
* Add better function calling error visibility
* Add income statement function
* Simplify and clean up "thinking" interactions with Turbo frames
* Remove stale data definitions from functions
* Ensure VCR fixtures working with latest code
* basic stream implementation
* Get streaming working
* Make AI sidebar wider when left sidebar is collapsed
* Get tests working with streaming responses
* Centralize provider error handling
* Provider data boundaries
---------
Co-authored-by: Josh Pigford <josh@joshpigford.com>
2025-03-28 13:08:22 -04:00
|
|
|
button {
|
|
|
|
@apply cursor-pointer focus-visible:outline-gray-900;
|
2025-02-21 11:57:59 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
hr {
|
|
|
|
@apply text-gray-200;
|
|
|
|
}
|
|
|
|
|
2025-04-30 18:14:22 -04:00
|
|
|
/* We control the sizing through DialogComponent, so reset this value */
|
|
|
|
dialog:modal {
|
|
|
|
max-width: 100dvw;
|
|
|
|
max-height: 100dvh;
|
|
|
|
}
|
|
|
|
|
2025-02-13 11:31:07 -05:00
|
|
|
details>summary::-webkit-details-marker {
|
|
|
|
@apply hidden;
|
|
|
|
}
|
2025-04-23 10:42:30 -03:00
|
|
|
|
2025-02-13 11:31:07 -05:00
|
|
|
details>summary {
|
|
|
|
@apply list-none;
|
|
|
|
}
|
2025-04-11 09:28:00 -05:00
|
|
|
|
|
|
|
input[type='radio'] {
|
2025-04-23 10:42:30 -03:00
|
|
|
@apply border-gray-300 text-indigo-600 focus:ring-indigo-600;
|
|
|
|
/* Default light mode */
|
|
|
|
|
2025-04-11 09:28:00 -05:00
|
|
|
@variant theme-dark {
|
|
|
|
/* Dark mode radio button base and checked styles */
|
|
|
|
@apply border-gray-600 bg-gray-700 checked:bg-blue-500 focus:ring-blue-500 focus:ring-offset-gray-800;
|
|
|
|
}
|
|
|
|
}
|
2025-02-13 11:31:07 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
@layer components {
|
|
|
|
/* Forms */
|
|
|
|
.form-field {
|
2025-04-11 09:28:00 -05:00
|
|
|
@apply flex flex-col gap-1 relative px-3 py-2 rounded-md border bg-container border-secondary shadow-xs w-full;
|
|
|
|
@apply focus-within:border-secondary focus-within:shadow-none focus-within:ring-4 focus-within:ring-alpha-black-200;
|
2025-02-28 09:29:07 -05:00
|
|
|
@apply transition-all duration-300;
|
2025-04-23 10:42:30 -03:00
|
|
|
|
2025-04-11 09:28:00 -05:00
|
|
|
@variant theme-dark {
|
|
|
|
@apply focus-within:ring-alpha-white-300;
|
|
|
|
}
|
|
|
|
|
2025-02-28 09:29:07 -05:00
|
|
|
/* Add styles for multiple select within form fields */
|
|
|
|
select[multiple] {
|
|
|
|
@apply py-2 pr-2 space-y-0.5 overflow-y-auto;
|
2025-04-23 10:42:30 -03:00
|
|
|
|
2025-02-28 09:29:07 -05:00
|
|
|
option {
|
|
|
|
@apply py-2 rounded-md;
|
|
|
|
}
|
2025-04-23 10:42:30 -03:00
|
|
|
|
2025-02-28 09:29:07 -05:00
|
|
|
option:checked {
|
2025-04-11 09:28:00 -05:00
|
|
|
@apply after:content-['\2713'] bg-container-inset after:text-gray-500 after:ml-2;
|
2025-02-28 09:29:07 -05:00
|
|
|
}
|
2025-04-23 10:42:30 -03:00
|
|
|
|
2025-02-28 09:29:07 -05:00
|
|
|
option:active,
|
|
|
|
option:focus {
|
2025-04-11 09:28:00 -05:00
|
|
|
@apply bg-container-inset;
|
2025-02-28 09:29:07 -05:00
|
|
|
}
|
|
|
|
}
|
2025-02-13 11:31:07 -05:00
|
|
|
}
|
2025-04-23 10:42:30 -03:00
|
|
|
|
2025-02-13 11:31:07 -05:00
|
|
|
.form-field__label {
|
2025-04-11 09:28:00 -05:00
|
|
|
@apply block text-xs text-secondary peer-disabled:text-subdued;
|
2025-02-13 11:31:07 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
.form-field__input {
|
|
|
|
@apply border-none bg-transparent text-sm opacity-100 w-full p-0;
|
|
|
|
@apply focus:opacity-100 focus:outline-hidden focus:ring-0;
|
|
|
|
@apply placeholder-shown:opacity-50;
|
2025-04-11 09:28:00 -05:00
|
|
|
@apply disabled:text-subdued;
|
2025-02-13 11:31:07 -05:00
|
|
|
@apply text-ellipsis overflow-hidden whitespace-nowrap;
|
2025-02-28 09:29:07 -05:00
|
|
|
@apply transition-opacity duration-300;
|
2025-04-23 10:42:30 -03:00
|
|
|
@apply placeholder:text-subdued;
|
|
|
|
|
2025-02-13 11:31:07 -05:00
|
|
|
&select {
|
|
|
|
@apply pr-8;
|
|
|
|
}
|
2025-04-23 10:42:30 -03:00
|
|
|
|
|
|
|
@variant theme-dark {
|
|
|
|
&::-webkit-calendar-picker-indicator {
|
|
|
|
filter: invert(1);
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2025-02-13 11:31:07 -05:00
|
|
|
}
|
2025-04-23 10:42:30 -03:00
|
|
|
|
2025-02-13 11:31:07 -05:00
|
|
|
.form-field__radio {
|
2025-04-11 09:28:00 -05:00
|
|
|
@apply text-primary;
|
2025-02-13 11:31:07 -05:00
|
|
|
}
|
2025-04-23 10:42:30 -03:00
|
|
|
|
2025-02-13 11:31:07 -05:00
|
|
|
.form-field__submit {
|
2025-04-11 09:28:00 -05:00
|
|
|
@apply cursor-pointer rounded-lg bg-surface p-3 text-center text-white hover:bg-surface-hover;
|
2025-02-13 11:31:07 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Checkboxes */
|
|
|
|
.checkbox {
|
|
|
|
&[type='checkbox'] {
|
|
|
|
@apply rounded-sm;
|
2025-02-28 09:29:07 -05:00
|
|
|
@apply transition-colors duration-300;
|
2025-02-13 11:31:07 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.checkbox--light {
|
|
|
|
&[type='checkbox'] {
|
|
|
|
@apply border-alpha-black-200 checked:bg-gray-900 checked:ring-gray-900 focus:ring-gray-900 focus-visible:ring-gray-900 checked:hover:bg-gray-500;
|
|
|
|
}
|
2025-04-23 10:42:30 -03:00
|
|
|
|
2025-02-13 11:31:07 -05:00
|
|
|
&[type='checkbox']:disabled {
|
|
|
|
@apply cursor-not-allowed opacity-80 bg-gray-50 border-gray-200 checked:bg-gray-400 checked:ring-gray-400;
|
|
|
|
}
|
2025-04-23 10:42:30 -03:00
|
|
|
|
|
|
|
@variant theme-dark {
|
|
|
|
&[type='checkbox'] {
|
|
|
|
@apply ring-gray-900 checked:text-white;
|
|
|
|
background-color: var(--color-gray-600);
|
|
|
|
}
|
|
|
|
|
|
|
|
&[type='checkbox']:disabled {
|
|
|
|
@apply cursor-not-allowed opacity-80 ring-gray-600;
|
|
|
|
}
|
2025-02-13 11:31:07 -05:00
|
|
|
|
2025-04-23 10:42:30 -03:00
|
|
|
&[type='checkbox']:checked {
|
|
|
|
background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e");
|
|
|
|
background-color: var(--color-gray-600);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2025-02-13 11:31:07 -05:00
|
|
|
.checkbox--dark {
|
|
|
|
&[type='checkbox'] {
|
|
|
|
@apply ring-gray-900 checked:text-white;
|
|
|
|
}
|
2025-04-23 10:42:30 -03:00
|
|
|
|
2025-02-13 11:31:07 -05:00
|
|
|
&[type='checkbox']:disabled {
|
|
|
|
@apply cursor-not-allowed opacity-80 ring-gray-600;
|
|
|
|
}
|
2025-04-23 10:42:30 -03:00
|
|
|
|
2025-02-13 11:31:07 -05:00
|
|
|
&[type='checkbox']:checked {
|
|
|
|
background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='111827' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Tooltips */
|
|
|
|
.tooltip {
|
|
|
|
@apply hidden absolute;
|
|
|
|
}
|
2025-04-23 10:42:30 -03:00
|
|
|
|
|
|
|
.qrcode svg path {
|
|
|
|
fill: var(--color-black);
|
|
|
|
@variant theme-dark {
|
|
|
|
fill: var(--color-white);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
2025-04-11 09:28:00 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2025-04-18 18:53:10 +05:30
|
|
|
|