Tweak precedence table styles a bit.

This commit is contained in:
Bob Nystrom
2015-03-13 07:24:45 -07:00
parent 06cea4f275
commit 860616244e
2 changed files with 23 additions and 16 deletions

View File

@ -260,9 +260,10 @@ class (or one of its subclasses).
## Precedence
When you mix these all together, you need to worry about
*precedence*—which operators bind more tightly than others. Wren mostly
*precedence*—which operators bind more tightly than others—and
*associativity*—how a series of the same operator is ordered. Wren mostly
follows C, except that it fixes the bitwise operator mistake. The full
precedence table, from lowest to highest, is:
precedence table, from highest to lowest, is:
<table class="precedence">
<tbody>

View File

@ -290,10 +290,26 @@ body.core {
}
}
table {
width: 100%;
border-collapse: collapse;
tr {
margin: 0;
padding: 0;
vertical-align: top;
}
th, td {
font-size: 14px;
line-height: 20px;
text-align: left;
}
}
// Bar charts on the performance page.
table.chart {
width: 100%;
padding-left: 25px;
padding: 5px 0 5px 25px;
td, th {
line-height: 14px;
@ -303,7 +319,6 @@ table.chart {
th {
font-size: 14px;
text-align: left;
width: 100px;
}
@ -325,18 +340,9 @@ table.chart {
// Precedence table on expressions page.
table.precedence {
width: 100%;
padding-left: 25px;
tr {
margin: 0;
padding: 0;
}
th, td {
font-size: 14px;
line-height: 20px;
text-align: left;
padding: 2px 0;
border-bottom: solid 1px $gray-10;
}
}