-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: WIKI-19593: implementation of new table design #283
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -146,7 +146,7 @@ | |
} | ||
|
||
table { | ||
color: #333333; | ||
color: #333; | ||
|
||
display: inline-block; | ||
max-width: 100%; | ||
|
@@ -155,22 +155,50 @@ | |
position: relative; | ||
z-index: 1; | ||
|
||
border: 1px solid $borderColor; | ||
box-sizing: border-box; | ||
border-radius: 8px; | ||
border-collapse: collapse; | ||
border-collapse: separate; | ||
border-spacing: 0; | ||
background: $baseColor; | ||
|
||
thead, tr:nth-child(2n) { | ||
background-color: $tableRowBackgroundColor; | ||
} | ||
|
||
tr:first-child td:first-child { | ||
border-top-left-radius: $tableBorderRadius; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why this didn't fit you? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Alright, so let's leave as you did |
||
} | ||
|
||
tr:first-child td:last-child { | ||
border-top-right-radius: $tableBorderRadius; | ||
} | ||
|
||
tr:last-child td:first-child { | ||
border-bottom-left-radius: $tableBorderRadius; | ||
} | ||
|
||
tr:last-child td:last-child { | ||
border-bottom-right-radius: $tableBorderRadius; | ||
} | ||
|
||
tr:first-child td { | ||
border-top-style: solid; | ||
} | ||
|
||
tr td:first-child { | ||
border-left: 1px solid $borderColor; | ||
} | ||
|
||
th, td { | ||
padding: 10px 15px; | ||
padding: 10px 20px; | ||
white-space: nowrap; | ||
overflow: hidden; | ||
text-overflow: ellipsis; | ||
border: 1px solid $borderColor; | ||
|
||
p { | ||
padding: 0; | ||
margin: 0; | ||
} | ||
} | ||
|
||
th { | ||
|
@@ -180,7 +208,8 @@ | |
|
||
td { | ||
white-space: normal; | ||
vertical-align: baseline; | ||
vertical-align: top; | ||
border-style: none solid solid none; | ||
} | ||
} | ||
|
||
|
@@ -266,7 +295,7 @@ | |
margin-bottom: 0; | ||
} | ||
|
||
&:not(.yfm_no-list-reset){ | ||
&:not(.yfm_no-list-reset) { | ||
ol { | ||
list-style-type: none; | ||
counter-reset: list; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should leave
border-collapse: collapse;
. Because if we haveborder-collapse: separate;
than the border will be 2px wide.