okami.mom/strata
git clone https://git.nkp.pet/okami.mom/strata
a1cc285fa
main
1/* Original Monitor composition and chart geometry in the current design system. */ 2. monitor-dashboard { --st-chart-decode : var ( --st-accent ); --st-chart-prefill : color-mix ( in srgb, var ( --st-accent ) 65 % , black); padding : 0 ; } 3. monitor-state { display : flex; flex-direction : column; gap : 14 px ; } 4. monitor-state__head { display : flex; align-items : center; flex-wrap : wrap; gap : 12 px 18 px ; } 5. monitor-state h2 , . monitor-context h2 , . monitor-requests h2 , . monitor-cache h2 , . monitor-mcp h2 { margin : 0 ; } 6. monitor-state__badges { display : flex; flex-wrap : wrap; gap : 7 px ; } 7. monitor-state__badges . st-badge { opacity : .38 ; transition : opacityvar ( --st-dur ); } 8. monitor-state__badges . st-badge [data-active = 'true' ]{ opacity : 1 ; } 9. monitor-state__badges [data-phase = 'reading' ]{ background : var ( --st-info-tint ); color : var ( --st-info-text ); border-color : transparent; } 10. monitor-state__badges [data-phase = 'generating' ], . monitor-state__badges [data-phase = 'idle' ][data-active = 'true' ]{ background : var ( --st-accent-tint ); color : var ( --st-accent-text ); border-color : transparent; } 11. monitor-state__badges [data-phase = 'queued' ]{ background : var ( --st-warn-tint ); color : var ( --st-warn-text ); border-color : transparent; } 12. monitor-state__badges [data-phase = 'error' ]{ background : var ( --st-danger-tint ); color : var ( --st-danger-text ); border-color : transparent; } 13. monitor-state__reading { display : flex; justify-content : space-between; flex-wrap : wrap; gap : 6 px 18 px ; } 14. monitor-device-selectors { margin-left : auto; display : flex; flex-wrap : wrap; gap : 8 px ; max-width : 100 % ; } 15. monitor-device-selectors . select { width : auto; max-width : 280 px ; min-height : 32 px ; height : 32 px ; font-size : 12 px ; } 16. monitor-metrics { display : grid; grid-template-columns : repeat ( 4 , minmax ( 0 , 1 fr )); gap : 16 px ; } 17. monitor-metric { min-width : 0 ; min-height : 172 px ; padding : 18 px 20 px ; display : flex; flex-direction : column; gap : 16 px ; } 18. monitor-metric . st-metric__label { flex-wrap : wrap; gap : 6 px ; font-size : 12 px ; } 19. monitor-metric . st-metric__label . st-icon { flex : none; } 20. monitor-metric__source { margin-left : auto; color : var ( --st-ink-muted ); font-size : var ( --st-fs-xs ); font-weight : 400 ; } 21. monitor-metric . st-metric__value { font-size : clamp ( 22 px , 2.3 vw , 32 px ); overflow-wrap : anywhere; } 22. monitor-metric . st-metric__unit { font-size : 12 px ; white-space : nowrap; } 23. monitor-metric__sub { margin-top : 10 px ; min-height : 16 px ; line-height : 1.45 ; overflow-wrap : anywhere; } 24. monitor-speed-values { display : flex; justify-content : space-between; gap : 10 px ; } 25. monitor-speed-values > div { min-width : 0 ; } 26. monitor-speed-values > div : last-child { text-align : right; } 27. monitor-speed-values . st-metric__value { font-size : clamp ( 20 px , 2 vw , 28 px ); } 28/* The single-reading wrapper: the class Monitor.tsx has always put on the value 29block, which no stylesheet defined. It sits where the two-reading wrapper 30does, so a card without a second figure keeps the same baseline. */ 31. monitor-metric__reading { display : flex; flex-wrap : wrap; align-items : flex-end; gap : 12 px ; min-width : 0 ; } 32. monitor-spark { margin-top : auto; height : 32 px ; flex : none; } 33. monitor-spark > svg { display : block; width : 100 % ; height : 32 px ; overflow : visible; } 34. monitor-spark : focus-visible { outline : 1 px solidvar ( --st-ink-muted ); outline-offset : 4 px ; border-radius : 4 px ; } 35. monitor-spark . spark__readout { z-index : 2 ; top : -28 px ; max-width : max ( 100 % , 260 px ); font-size : 11 px ; white-space : normal; } 36. monitor-context-requests { display : grid; grid-template-columns : minmax ( 250 px , 1 fr ) minmax ( 0 , 2.4 fr ); gap : 16 px ; align-items : stretch; } 37. monitor-context { display : flex; flex-direction : column; gap : 8 px ; } 38. monitor-context__gauge { align-self : center; margin : 10 px auto16 px ; } 39. monitor-context__gauge . gauge__readout { text-align : center; padding : 0 16 px ; } 40. monitor-context__gauge . gauge__readout > span : last-child { line-height : 1.3 ; } 41. monitor-bar-reading { display : flex; justify-content : space-between; gap : 12 px ; font-size : 12 px ; margin-top : 8 px ; } 42. monitor-bar-reading > span : last-child { text-align : right; } 43. monitor-requests { min-width : 0 ; display : flex; flex-direction : column; gap : 14 px ; } 44. monitor-request-table { overflow : auto; border : 0 ; border-radius : 0 ; box-shadow : none; background : transparent; } 45. monitor-request-table [data-expanded = 'true' ]{ max-height : 420 px ; } 46. monitor-request-table . st-table { min-width : 630 px ; font-size : 12 px ; } 47. monitor-request-table . st-table th { font-size : 10 px ; font-weight : 500 ; letter-spacing : .03 em ; white-space : nowrap; } 48. monitor-request-table . st-table td { padding : 12 px 8 px ; white-space : nowrap; } 49. monitor-request-table . st-table th { padding : 10 px 8 px ; } 50. monitor-request-table . st-table . num { text-align : right; } 51. monitor-request-source { display : block; margin-top : 3 px ; } 52. monitor-request-totals { margin : auto0 0 ; padding-top : 10 px ; } 53. monitor-cache { display : flex; flex-direction : column; gap : 16 px ; } 54. monitor-cache p { margin : 0 ; } 55. monitor-cache . section-toolbar { flex-wrap : wrap; gap : 10 px ; } 56. monitor-cache-bars { display : grid; grid-template-columns : 1 fr 1 fr ; gap : 24 px ; } 57. monitor-cache-bars . st-progress { margin-top : 8 px ; } 58. monitor-cache-facts { display : grid; grid-template-columns : 1 fr 1 fr ; gap : 16 px 24 px ; margin : 0 ; } 59. monitor-cache-facts > div { display : flex; justify-content : space-between; gap : 16 px ; font-size : 12 px ; } 60. monitor-cache-facts dt { color : var ( --st-ink-muted ); } 61. monitor-cache-facts dd { margin : 0 ; text-align : right; } 62. monitor-mcp { display : flex; flex-direction : column; gap : 18 px ; } 63. monitor-mcp-tools { display : flex; flex-wrap : wrap; gap : 6 px ; margin-top : 10 px ; } 64@media ( max-width : 1100 px ) { 65. monitor-metric { padding : 16 px ; } 66. monitor-metric__source { flex-basis : 100 % ; margin : 0 ; } 67. monitor-cache-facts { grid-template-columns : 1 fr ; } 68} 69@media ( max-width : 950 px ) { 70. monitor-context-requests { grid-template-columns : 1 fr ; } 71. monitor-context { display : grid; grid-template-columns : minmax ( 170 px , 1 fr ) minmax ( 0 , 2 fr ); gap : 8 px 24 px ; } 72. monitor-context h2 { grid-column : 1 / -1 ; } 73. monitor-context__gauge { grid-row : 2 / 8 ; grid-column : 1 ; margin : 0 ; } 74. monitor-context > . monitor-bar-reading , . monitor-context > . st-progress { grid-column : 2 ; } 75} 76@media ( max-width : 767 px ) { 77. monitor-metrics { grid-template-columns : repeat ( 2 , minmax ( 0 , 1 fr )); gap : 12 px ; } 78. monitor-device-selectors { margin : 0 ; width : 100 % ; } 79. monitor-device-selectors . select { max-width : 100 % ; } 80. monitor-context , . monitor-cache-bars , . monitor-cache-facts { display : flex; flex-direction : column; } 81. monitor-context__gauge { margin : 8 px auto16 px ; } 82. monitor-state__badges { gap : 5 px ; } 83. monitor-state__badges . st-badge { font-size : 10 px ; padding-inline : 6 px ; } 84. monitor-request-table . st-table { min-width : 620 px ; } 85} 86@media ( max-width : 480 px ) { 87. monitor-metric { padding : 12 px ; min-height : 182 px ; gap : 12 px ; } 88. monitor-metric . st-metric__label { font-size : 11 px ; } 89. monitor-metric . st-metric__value { font-size : 22 px ; } 90. monitor-speed-values { gap : 6 px ; } 91. monitor-speed-values . st-metric__value { font-size : 19 px ; } 92. monitor-speed-values . st-metric__unit { font-size : 10 px ; margin-left : 2 px ; } 93. monitor-spark . spark__readout { right : auto; left : 0 ; max-width : 230 px ; } 94. monitor-metric : nth-child ( even) . monitor-spark . spark__readout { right : 0 ; left : auto; } 95} 96 97/* The energy and temperature readings (#3628): one thin row under the cards, a label and a value each, wrapping to 3 and 2 columns on narrow windows. */ 98. monitor-readings { padding : 12 px 20 px ; } 99. monitor-readings dl { margin : 0 ; display : grid; grid-template-columns : repeat ( auto-fit, minmax ( 150 px , 1 fr )); gap : 10 px 24 px ; } 100. monitor-readings dl > div { display : flex; flex-direction : column; gap : 2 px ; min-width : 0 ; } 101. monitor-readings dt { color : var ( --st-ink-muted ); font-size : 12 px ; } 102. monitor-readings dd { margin : 0 ; font-size : 15 px ; font-weight : 600 ; overflow-wrap : anywhere; } 103@media ( max-width : 1100 px ) { . monitor-readings dl { grid-template-columns : repeat ( 3 , minmax ( 0 , 1 fr )); } } 104@media ( max-width : 640 px ) { . monitor-readings { padding : 12 px 16 px ; } . monitor-readings dl { grid-template-columns : repeat ( 2 , minmax ( 0 , 1 fr )); } }