@@ -2294,12 +2294,56 @@ table.pyret-table.pyret-matrix {
22942294 border-right-width : 2px ;
22952295}
22962296
2297+
2298+ table .pyret-table { width : 98% ; }
22972299table .pyret-table thead {
22982300 box-shadow : 0px 2px 2px var (--shadow-color );
22992301}
2300- /* Force tables to be the full height of the viewport, leaving 250px for other chrome */
2301- table .pyret-table tbody { max-height : calc (100vh - 250px ); display : block; overflow : scroll; }
23022302table .pyret-table tr { table-layout : fixed; display : table; width : 100% ; }
2303+ /* Force tables to be the full height of the viewport, leaving 225px for other chrome */
2304+ table .pyret-table tbody {
2305+ --bgRGB : 200 , 210 , 220 ;
2306+ --bg : rgb (var (--bgRGB ));
2307+ --bgTrans : rgba (var (--bgRGB ), 0 );
2308+
2309+ --shadow : rgba (41 , 50 , 56 , 0.5 );
2310+
2311+ max-height : calc (100vh - 225px ); display : block;
2312+ overflow : auto;
2313+
2314+ background :
2315+ /* Shadow Cover TOP */
2316+ linear-gradient (
2317+ var (--bg ) 30% ,
2318+ var (--bgTrans )
2319+ ) center top,
2320+
2321+ /* Shadow Cover BOTTOM */
2322+ linear-gradient (
2323+ var (--bgTrans ),
2324+ var (--bg ) 70%
2325+ ) center bottom,
2326+
2327+ /* Shadow TOP */
2328+ radial-gradient (
2329+ farthest-side at 50% 0 ,
2330+ var (--shadow ),
2331+ rgba (0 , 0 , 0 , 0 )
2332+ ) center top,
2333+
2334+ /* Shadow BOTTOM */
2335+ radial-gradient (
2336+ farthest-side at 50% 100% ,
2337+ var (--shadow ),
2338+ rgba (0 , 0 , 0 , 0 )
2339+ ) center bottom;
2340+
2341+ background-repeat : no-repeat;
2342+ background-size : 100% 8px , 100% 5px , 100% 5px , 100% 8px ;
2343+ background-attachment : local, local, scroll, scroll;
2344+ }
2345+
2346+
23032347table .pyret-row th {
23042348 box-shadow : 2px 0px 2px var (--shadow-color ), -2px 0px 2px var (--shadow-color );
23052349 border : none;
0 commit comments