From 7ca97f4825f8da6742fbaf87db5538a195fcec38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Gaulin?= Date: Sun, 31 Jul 2016 12:14:30 +0200 Subject: [PATCH] Styles for markdown tables in the plugin details view --- modules/system/assets/css/updates/details.css | 15 ++++++++++++++ .../system/assets/less/updates/details.less | 20 +++++++++++++++++++ 2 files changed, 35 insertions(+) diff --git a/modules/system/assets/css/updates/details.css b/modules/system/assets/css/updates/details.css index ed0cd9a20..d0f782ba0 100644 --- a/modules/system/assets/css/updates/details.css +++ b/modules/system/assets/css/updates/details.css @@ -52,3 +52,18 @@ margin-left: -50px; padding-left: 50px; } +.plugin-details-content table th { + font-weight: bold +} +.plugin-details-content table th, +.plugin-details-content table td { + padding: 6px 13px; + border: 1px solid #ddd +} +.plugin-details-content table tr { + background-color: #fff; + border-top: 1px solid #ccc +} +.plugin-details-content table tr:nth-child(2n) { + background-color: #f8f8f8 +} \ No newline at end of file diff --git a/modules/system/assets/less/updates/details.less b/modules/system/assets/less/updates/details.less index f9a591e61..66ab40bd3 100644 --- a/modules/system/assets/less/updates/details.less +++ b/modules/system/assets/less/updates/details.less @@ -48,4 +48,24 @@ margin-left: -((@padding-standard * 2) + @padding-container); padding-left: ((@padding-standard * 2) + @padding-container); } + + table { + th { + font-weight: bold; + } + + th, td { + padding: 6px 13px; + border: 1px solid #ddd; + } + + tr { + background-color: #fff; + border-top: 1px solid #ccc; + + &:nth-child(2n) { + background-color: #f8f8f8; + } + } + } } \ No newline at end of file