From f43976a19ae96487134accc5e623e5ffffdcd05a Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Mon, 17 Nov 2014 16:54:29 +0100 Subject: [PATCH] css: centralize heading styles --- modules/doc/public/css/module.less | 8 ----- public/css/icinga/defaults.less | 42 +++++++++++++++++++++++++ public/css/icinga/layout-structure.less | 27 ---------------- 3 files changed, 42 insertions(+), 35 deletions(-) diff --git a/modules/doc/public/css/module.less b/modules/doc/public/css/module.less index d6d0d2a94..376eda6fd 100644 --- a/modules/doc/public/css/module.less +++ b/modules/doc/public/css/module.less @@ -1,11 +1,3 @@ -// W3C Recommendation (except h4) -h1 { font-size: 2em !important; } -h2 { font-size: 1.5em !important; } -h3 { font-size: 1.17em !important; } -h4 { font-size: 1em !important; } -h5 { font-size: .83em !important; } -h6 { font-size: .75em !important; } - div.chapter { padding-left: 5px; } diff --git a/public/css/icinga/defaults.less b/public/css/icinga/defaults.less index 17fa67159..4c990d0e9 100644 --- a/public/css/icinga/defaults.less +++ b/public/css/icinga/defaults.less @@ -49,6 +49,48 @@ a:hover { text-decoration: underline; } +/* W3C Recommendation (except h4) */ +h1 { + font-size: 2em; + color: @colorTextDefault; + border-bottom: 2px solid @colorPetrol; +} + +h2 { + font-size: 1.5em; + color: @colorPetrol; +} + +h3 { + font-size: 1.17em; + color: @colorTextDefault; + border-bottom: 1px solid @colorPetrol; +} + +h4 { + font-size: 1em; + color: @colorPetrol; +} + +h5 { + font-size: .83em; + border-bottom: 1px solid @colorPetrol; +} + +h6 { + font-size: .75em; + color: @colorPetrol; +} + +h1 a, h2 a, h3 a, h4 a, h5 a, h6 a { + text-decoration: none; + color: inherit; +} + +h1 a:hover, h2 a:hover, h3 a:hover, h4 a:hover, h5 a:hover, h6 a:hover { + text-decoration: underline; +} + #fontsize-calc { display: none; width: 1000em; diff --git a/public/css/icinga/layout-structure.less b/public/css/icinga/layout-structure.less index 907898d95..201f5c88a 100644 --- a/public/css/icinga/layout-structure.less +++ b/public/css/icinga/layout-structure.less @@ -124,12 +124,6 @@ html { z-index: 100; } -.controls h1 { - font-size: 1.5em; - margin-bottom: 0.2em; - border-bottom: 1px solid black; -} - .container .fake-controls { padding: 0; } @@ -152,13 +146,6 @@ html { margin-left: 1%; } -.dashboard > div.container h1, .container .content h1, .container .controls h1, .content h3 { - line-height: 2em; - font-size: 1em; - color: @colorTextDefault; - border-bottom: 2px solid @colorPetrol; -} - .content h3 { font-size: 0.9em; } @@ -167,24 +154,10 @@ html { margin-left: 1em; } -.container .controls h1 { - margin-left: 1em; - margin-right: 1em; -} - .container .controls .pagination { margin-left: 1.2em; } -.dashboard > div.container h1 a { - text-decoration: none; - color: inherit; -} - -.dashboard > div.container h1 a:hover { - text-decoration: underline; -} - .content { padding: 1em; }