From 24e504e74b96b3b4b923f8944fdbe1a03f840b9e Mon Sep 17 00:00:00 2001 From: Luke Childs Date: Thu, 8 Sep 2016 12:00:53 +0100 Subject: [PATCH] Show number on list block layout --- assets/style.css | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/assets/style.css b/assets/style.css index 4658a1c..d162aa6 100644 --- a/assets/style.css +++ b/assets/style.css @@ -246,14 +246,14 @@ footer { display: block; } - /* Hide table headers and number cell */ - thead, - td:first-child { + /* Hide table headers */ + thead { display: none; } /* Redo padding and sections */ tr { + position: relative; background: rgba(255, 255, 255, 0.1); padding: 1em; } @@ -272,8 +272,16 @@ footer { margin-bottom: 0.5em; } + /* Position number on the right */ + td:first-child { + position: absolute; + top: 1em; + right: 1em; + } + td:first-child:before { content: '#'; } + /* Set labels */ - td:before { + td:not(:first-child):before { display: inline-block; min-width: 7em; margin-right: 1em;