Skip to content

Commit 1583a83

Browse files
committed
Round corners on pyret-table
- Scope the rules to pyret-table - Create rules for the last <td> to also be rounded
1 parent 94f8bad commit 1583a83

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

src/web/css/editor.css

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2306,9 +2306,19 @@ table.pyret-table thead {
23062306
position: sticky;
23072307
top: 0;
23082308
}
2309+
2310+
table.pyret-table tr:last-child td:first-child {
2311+
border-bottom-left-radius: var(--table-radius);
2312+
}
2313+
table.pyret-table tr:last-child td:last-child {
2314+
border-bottom-right-radius: var(--table-radius);
2315+
}
2316+
23092317
/* style first and last th elements to use the table's rounded corners */
2310-
th:first-child { border-top-left-radius: var(--table-radius); }
2311-
th:last-child { border-top-right-radius: var(--table-radius); }
2318+
table.pyret-table th:first-child { border-top-left-radius: var(--table-radius); }
2319+
table.pyret-table th:last-child { border-top-right-radius: var(--table-radius); }
2320+
2321+
23122322

23132323
/* Force tables to be the full height of the viewport, leaving 225px for other chrome */
23142324
table.pyret-table tbody {

0 commit comments

Comments
 (0)