Skip to content

Commit c148d18

Browse files
authored
Merge pull request pattern-lab#1244 from pattern-lab/feature-enable-doc-tables
Enable doc tables and fix frontmatter bug
2 parents 84ffc90 + 3ace2ae commit c148d18

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

packages/uikit-workshop/src/sass/scss/04-components/_text-passage.scss

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,4 +136,29 @@
136136
li {
137137
margin-bottom: 0.5rem;
138138
}
139+
140+
table {
141+
width: 100%;
142+
max-width: 100%;
143+
border-collapse: collapse;
144+
overflow-x: auto;
145+
margin: 0.75rem auto;
146+
}
147+
148+
tr:nth-of-type(odd) {
149+
background: $pl-color-gray-07;
150+
}
151+
152+
th {
153+
background: $pl-color-gray-13;
154+
color: black;
155+
font-weight: bold;
156+
}
157+
158+
td,
159+
th {
160+
padding: 10px;
161+
border: 1px solid $pl-color-gray-20;
162+
text-align: left;
163+
}
139164
}

0 commit comments

Comments
 (0)