Skip to content

Commit 32534d7

Browse files
committed
fix corners on th elements
1 parent 2d3514e commit 32534d7

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/web/css/editor.css

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2176,12 +2176,13 @@ body.smallHeader #run-dropdown-content {
21762176
}
21772177

21782178
table {
2179+
--table-radius: 1em;
21792180
border-collapse: collapse;
21802181
width: 100%;
21812182
table-layout: auto;
21822183
display: table!important;
21832184
border:1px var(--table-border) solid;
2184-
border-radius:1em;
2185+
border-radius: var(--table-radius);
21852186
border-collapse: separate;
21862187
overflow:hidden;
21872188
background:var(--table-bg);
@@ -2305,6 +2306,10 @@ table.pyret-table thead {
23052306
position: sticky;
23062307
top: 0;
23072308
}
2309+
/* 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); }
2312+
23082313
/* Force tables to be the full height of the viewport, leaving 225px for other chrome */
23092314
table.pyret-table tbody {
23102315
--bgRGB: 200, 210, 220;

0 commit comments

Comments
 (0)