@@ -486,7 +486,7 @@ div.repl-animation {
486486
487487div .trace {
488488 overflow-x : auto;
489- padding -top: 1px ;
489+ margin -top: 1px ;
490490}
491491div .trace .error {
492492 background-color : var (--trace-err-bg );
@@ -2304,23 +2304,42 @@ table.pyret-table.pyret-matrix {
23042304}
23052305
23062306
2307- table .pyret-table { width : 98% ; overflow : scroll; }
2307+ table .pyret-table { width : 98% ; overflow : scroll; border : none; }
2308+ /* make sure rotated elts in the table (like roughnums!) don't punch through */
23082309table .pyret-table thead {
23092310 box-shadow : 0px 2px 2px var (--shadow-color );
23102311 position : sticky;
23112312 top : 0 ;
2313+ z-index : 1 ;
23122314}
23132315
2314- table .pyret-table tr : last-child td : first-child {
2315- border-bottom-left-radius : var (--table-radius );
2316+ /* top/bottom borders on the first and last rows */
2317+ table .pyret-table th { border-top : solid 1px black; }
2318+ table .pyret-table > : nth-last-child (1 of : has (tr )) > tr : last-child td {
2319+ border-bottom : solid 1px black;
23162320}
2317- table .pyret-table tr : last-child td : last-child {
2318- border-bottom-right-radius : var (--table-radius );
2321+
2322+ /* left/right borders on the first and last cells */
2323+ table .pyret-table td : first-child , table .pyret-table th : first-child {
2324+ border-left : solid 1px black;
2325+ }
2326+ table .pyret-table td : last-child , table .pyret-table th : last-child {
2327+ border-right : solid 1px black;
23192328}
23202329
2321- /* style first and last th elements to use the table's rounded corners */
2322- table .pyret-table th : first-child { border-top-left-radius : var (--table-radius ); }
2323- table .pyret-table th : last-child { border-top-right-radius : var (--table-radius ); }
2330+ /* rounded borders for corners */
2331+ table .pyret-table th : first-child {
2332+ border-top-left-radius : var (--table-radius );
2333+ }
2334+ table .pyret-table th : last-child {
2335+ border-top-right-radius : var (--table-radius );
2336+ }
2337+ table .pyret-table > : nth-last-child (1 of : has (tr )) > tr : last-child td : first-child {
2338+ border-bottom-left-radius : var (--table-radius );
2339+ }
2340+ table .pyret-table > : nth-last-child (1 of : has (tr )) > tr : last-child td : last-child {
2341+ border-bottom-right-radius : var (--table-radius );
2342+ }
23242343
23252344
23262345
0 commit comments