FPSMS-frontend
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.

global.css 2.4 KiB

1 anno fa
1 anno fa
6 mesi fa
6 mesi fa
6 mesi fa
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. @tailwind base;
  2. @tailwind components;
  3. @tailwind utilities;
  4. /* FP-MTMS Version Checklist | Functions Ref. No. 57 | v1.0.0 | 2026-08-06 */
  5. /* UI standard: light default, primary #3b82f6, accent #10b981 */
  6. @layer base {
  7. :root {
  8. --primary: #3b82f6;
  9. --accent: #10b981;
  10. --background: #f8fafc;
  11. --foreground: #0f172a;
  12. --card: #ffffff;
  13. --card-foreground: #0f172a;
  14. --border: #e2e8f0;
  15. --muted: #64748b;
  16. }
  17. .dark {
  18. --background: #0f172a;
  19. --foreground: #f1f5f9;
  20. --card: #1e293b;
  21. --card-foreground: #f1f5f9;
  22. --border: #334155;
  23. --muted: #94a3b8;
  24. }
  25. }
  26. html,
  27. body {
  28. overscroll-behavior: none;
  29. }
  30. /* /po/workbench: lock document scroll (see `data-po-workbench-layout` on route layout). */
  31. /* Intentionally no `scrollbar-gutter: stable` on html/body: document does not scroll here, */
  32. /* and the gutter would inset the app from the viewport edge for no benefit. */
  33. html:has([data-po-workbench-layout]) {
  34. overflow: hidden;
  35. }
  36. html:has([data-po-workbench-layout]) body {
  37. overflow: hidden;
  38. }
  39. /* Tablet/mobile: stable layout when virtual keyboard opens */
  40. html {
  41. /* min-height (not height) so the document can grow with content;
  42. fixed height: 100% locked the box to the viewport and exposed white below long pages. */
  43. min-height: 100%;
  44. min-height: 100dvh;
  45. /* Base font size: slightly larger for readability */
  46. font-size: 16px;
  47. }
  48. @media (min-width: 640px) {
  49. html {
  50. font-size: 17px;
  51. }
  52. }
  53. @media (min-width: 1024px) {
  54. html {
  55. font-size: 18px;
  56. }
  57. }
  58. body {
  59. min-height: 100%;
  60. min-height: 100dvh;
  61. background-color: var(--background);
  62. color: var(--foreground);
  63. font-size: 1rem;
  64. line-height: 1.6;
  65. }
  66. /* Full-height containers: use dvh so keyboard doesn’t squash the layout when overlay is used */
  67. @media (max-width: 1024px) {
  68. .min-h-screen {
  69. min-height: 100dvh;
  70. }
  71. }
  72. /* Avoid iOS zoom on input focus (keep inputs ≥16px where possible) */
  73. @media (max-width: 1024px) {
  74. input,
  75. select,
  76. textarea {
  77. font-size: max(16px, 1rem);
  78. }
  79. }
  80. .app-search-criteria {
  81. border-radius: 8px;
  82. border: 1px solid var(--border);
  83. border-left-width: 4px;
  84. border-left-color: var(--primary);
  85. background-color: var(--card);
  86. box-shadow:
  87. 0 1px 3px 0 rgb(0 0 0 / 0.1),
  88. 0 1px 2px -1px rgb(0 0 0 / 0.1);
  89. }
  90. .app-search-criteria-label {
  91. font-size: 0.75rem;
  92. font-weight: 500;
  93. color: #334155;
  94. text-transform: uppercase;
  95. letter-spacing: 0.05em;
  96. }