Skip to content

Commit

Permalink
feat(border): have consistent border radius
Browse files Browse the repository at this point in the history
fix #521
  • Loading branch information
talha131 committed Dec 1, 2019
1 parent cd3bec0 commit 7307467
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 15 deletions.
4 changes: 2 additions & 2 deletions static/css/admonition.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ div.admonition {
margin-bottom: 20px;
background-color: #fcf8e3;
border: 1px solid;
border-bottom-left-radius: 4px;
border-bottom-right-radius: 4px;
border-bottom-left-radius: var(--border-radius);
border-bottom-right-radius: var(--border-radius);
}

div.admonition p {
Expand Down
29 changes: 16 additions & 13 deletions static/css/elegant.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
/* Base */
:root {
--border-radius: 4px;
}
html,
body {
height: 100%;
Expand Down Expand Up @@ -342,7 +345,7 @@ a.list-of-categories {
}
a.list-of-categories:hover {
background-color: #08c;
border-radius: 4px;
border-radius: var(--border-radius);
color: #fff;
}
/* Archives */
Expand Down Expand Up @@ -469,7 +472,7 @@ div.recent-posts-time {
}
#mc-embed-signup .button {
background-color: #eee;
border-radius: 4px;
border-radius: var(--border-radius);
border: 1px solid #d3d3d3;
clear: both;
color: #000;
Expand Down Expand Up @@ -585,9 +588,9 @@ table {
border-collapse: separate;
*border-collapse: collapse;
border-left: 0;
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 4px;
-webkit-border-radius: var(--border-radius);
-moz-border-radius: var(--border-radius);
border-radius: var(--border-radius);
}

table th,
Expand All @@ -602,26 +605,26 @@ table thead:first-child tr:first-child th {
}

table thead:first-child tr:first-child > th:first-child {
-webkit-border-top-left-radius: 4px;
border-top-left-radius: 4px;
-webkit-border-top-left-radius: var(--border-radius);
border-top-left-radius: var(--border-radius);
-moz-border-radius-topleft: 6px;
}

table thead:first-child tr:first-child > th:last-child {
-webkit-border-top-right-radius: 4px;
border-top-right-radius: 4px;
-webkit-border-top-right-radius: var(--border-radius);
border-top-right-radius: var(--border-radius);
-moz-border-radius-topright: 6px;
}

table tbody:last-child tr:last-child > td:first-child {
-webkit-border-bottom-left-radius: 4px;
border-bottom-left-radius: 4px;
-webkit-border-bottom-left-radius: var(--border-radius);
border-bottom-left-radius: var(--border-radius);
-moz-border-radius-bottomleft: 6px;
}

table tbody:last-child tr:last-child > td:last-child {
-webkit-border-bottom-right-radius: 4px;
border-bottom-right-radius: 4px;
-webkit-border-bottom-right-radius: var(--border-radius);
border-bottom-right-radius: var(--border-radius);
-moz-border-radius-bottomright: 6px;
}

Expand Down

0 comments on commit 7307467

Please sign in to comment.