Skip to content

Commit

Permalink
refactor(docs): add rounded corners for table and fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
nzbin committed Apr 15, 2024
1 parent 2af22df commit 83d6c67
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ <h2 id="rule">
</li>
<li>
<code>$ne</code> -
<span>not eaqual</span>
<span>not equal</span>
</li>
<li>
<code>$gt</code> -
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,10 @@ import { ExampleViewerComponent, PageHeaderComponent } from '../../shared';
})
export class ConditionsComponent {
ruleJson = `{
"type": "...",
"name": "...",
...
"showIf": {
"conditions": [
[ "path", "operator", "value" ],
["path", "operator", "value"],
...
],
"logicalType": "$or"
Expand Down
48 changes: 41 additions & 7 deletions projects/docs/src/styles/_reboot.scss
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,47 @@ code {

table {
width: 100%;
caption-side: bottom;
border-collapse: collapse;

th,
td {
padding: 8px;
border: 1px solid var(--border-color);
border-spacing: 0;

tr {
th {
border-top: 1px solid var(--border-color);
}

th,
td {
padding: 8px;
border-right: 1px solid var(--border-color);
border-bottom: 1px solid var(--border-color);

&:first-child {
border-left: 1px solid var(--border-color);
}
}

&:first-child {
th {
&:first-child {
border-top-left-radius: 8px;
}

&:last-child {
border-top-right-radius: 8px;
}
}
}

&:last-child {
td {
&:first-child {
border-bottom-left-radius: 8px;
}

&:last-child {
border-bottom-right-radius: 8px;
}
}
}
}
}

Expand Down

0 comments on commit 83d6c67

Please sign in to comment.