From 13b58d97caaec4f40cf492661e9a557a1985d26f Mon Sep 17 00:00:00 2001 From: Alexey Pyltsyn Date: Thu, 10 Dec 2020 14:32:13 +0300 Subject: [PATCH 1/4] Improve inline code style --- src/static/css/2019.css | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/static/css/2019.css b/src/static/css/2019.css index d6cbef2668f..5fb5e3f62af 100644 --- a/src/static/css/2019.css +++ b/src/static/css/2019.css @@ -1494,7 +1494,9 @@ pre code { code { font-size: 1rem; - background-color: #ebedf0; + background: #f7f7f7; + border: 1px solid #dadce0; + padding: 1px 2px; } pre .comment { From 373618d81b72a96d27ab61b044a8fc410719991f Mon Sep 17 00:00:00 2001 From: Alexey Pyltsyn Date: Thu, 10 Dec 2020 14:36:15 +0300 Subject: [PATCH 2/4] Reset new styling for table cell --- src/static/css/2019.css | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/static/css/2019.css b/src/static/css/2019.css index 5fb5e3f62af..629b3d7ebe4 100644 --- a/src/static/css/2019.css +++ b/src/static/css/2019.css @@ -1484,7 +1484,9 @@ pre { margin-bottom: 20px; } -pre code { +pre code, +td code, +th code { border: 0; padding: 0; margin: 0; From fb4e4a3eb51cda8aed289b2ae166afa4e9182309 Mon Sep 17 00:00:00 2001 From: Alexey Pyltsyn Date: Thu, 10 Dec 2020 14:38:53 +0300 Subject: [PATCH 3/4] Refactor --- src/static/css/2019.css | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/static/css/2019.css b/src/static/css/2019.css index 629b3d7ebe4..3c84f82d9d0 100644 --- a/src/static/css/2019.css +++ b/src/static/css/2019.css @@ -1491,12 +1491,12 @@ th code { padding: 0; margin: 0; border-radius: 0; - background: none; + background-color: none; } code { font-size: 1rem; - background: #f7f7f7; + background-color: #f7f7f7; border: 1px solid #dadce0; padding: 1px 2px; } From f3ecdbb8aa6c20d1df825441a6694a9bf3a96c27 Mon Sep 17 00:00:00 2001 From: Alexey Pyltsyn Date: Thu, 10 Dec 2020 14:42:56 +0300 Subject: [PATCH 4/4] Fix lint error --- src/static/css/2019.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/static/css/2019.css b/src/static/css/2019.css index 3c84f82d9d0..d6d741e2e78 100644 --- a/src/static/css/2019.css +++ b/src/static/css/2019.css @@ -1486,7 +1486,7 @@ pre { pre code, td code, -th code { +th code { border: 0; padding: 0; margin: 0;