From 27feb67cc1b6bef4c95669f88579e925a5424c17 Mon Sep 17 00:00:00 2001 From: Tunghsiao Liu Date: Sat, 10 Dec 2016 15:34:23 +0800 Subject: [PATCH] feat(curtana): add description list styles --- _app/assets/themes/curtana/_less/common.less | 25 ++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/_app/assets/themes/curtana/_less/common.less b/_app/assets/themes/curtana/_less/common.less index 8100aecef..67d15fdbe 100644 --- a/_app/assets/themes/curtana/_less/common.less +++ b/_app/assets/themes/curtana/_less/common.less @@ -205,6 +205,7 @@ body:hover .latest { line-height: (@line-height * 1.2 / .8); text-align: right; opacity: .6; + pointer-events: none; } > ul, @@ -226,6 +227,30 @@ body:hover .latest { padding-right: .3em; } + dl { + line-height: (@line-height * 1.2); + + @media (max-width: @breakpoint-sm) { + margin-left: 1em; + } + + dt { + + &:before { + position: absolute; + width: 1em; + margin-left: -1em; + content: "-"; + opacity: .6; + pointer-events: none; + } + } + + dd { + margin-bottom: 1.8rem; + } + } + img, video, iframe,