From 94a441d44bbe6032863eb3d46feaee2dcf15d84e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Tue, 9 Oct 2012 14:15:35 +0200 Subject: [PATCH] diverse css experimente --- css/kivitendo/menu.css | 25 +++++++++++------ css/lx-office-erp/main.css | 56 +++++++++++++++++++++++++++++++++++++- 2 files changed, 72 insertions(+), 9 deletions(-) diff --git a/css/kivitendo/menu.css b/css/kivitendo/menu.css index 09a82eb01..2abe56f4d 100644 --- a/css/kivitendo/menu.css +++ b/css/kivitendo/menu.css @@ -289,24 +289,33 @@ div#menuv3 li:hover ul, div#menuv3 li li:hover ul, div#menuv3 li li li:hover ul, each line is a mi (menuitem) and has one mii (menu-item-icon) whcih is ms (menu-spacer) and one mic (menu-item-chunk) indenting is done with the levels s0, s1, s2 */ -#html-menu { float:left; width: 183px; } +#content.html-menu, #html-menu { + transition: margin-left 0.2s, width 0.2s; + -moz-transition: margin-left 0.2s, width 0.2s; + -webkit-transition: margin-left 0.2s, width 0.2s; + -o-transition: margin-left 0.2s, width 0.2s; +} +#content.html-menu { margin-left: 190px; } +#content.html-menu.folded { margin-left: 40px } +#html-menu.folded:hover + #content.html-menu.folded { margin-left: 190px } +#html-menu { float:left; width: 183px; font-size: 8pt; margin-top: 10px; overflow:hidden; } +#html-menu.folded { width: 32px; } +#html-menu.folded:hover { width: 183px; } #html-menu div.mi { margin-top: 4px; margin-bottom: 3px; white-space: nowrap; clear:both; position:relative; } #html-menu div.sm { font-weight: bold } #html-menu img { vertical-align: top; border: 0; } #html-menu a { vertical-align: top } -#html-menu .i span.ms { float: left; width: 24px } +#html-menu .i span.ms { float: left; width: 24px; margin-bottom: 4px; } #html-menu .m span.ms { float: left; width: 32px } #html-menu .sm span.ms { float: left; width: 24px; background: url(../../image/unterpunkt.png); } #html-menu div.m { height: 24px } -#html-menu div.m { color:#000000; background-color: #ffffff; position: relative; top: 5px; } -#html-menu div.m span.mic { position: relative; top: 5px; } -#html-menu a:link, -#html-menu a:visited, -#html-menu a:active { border-bottom: none; } +#html-menu div.m span.mic { color:black; position: relative; top: 4px } #html-menu div.m:hover, -#html-menu div.i:hover { color: #FE5F14; background-color: #d1d1d1; cursor: pointer; } +#html-menu div.i:hover { color:blue; background-color: #d1d1d1; cursor: pointer; } #html-menu span.mic { white-space: normal; display: inline-block; vertical-align: top; line-height: 1.2; } #html-menu a.ml span.mic { width: 145px } /* fix deep indents */ #html-menu div.s0 { padding-left: 2px } #html-menu div.s1 { padding-left: 8px } #html-menu div.s2 { padding-left: 16px } + +body { margin: 0 } diff --git a/css/lx-office-erp/main.css b/css/lx-office-erp/main.css index 08b3c6d76..c190cb7e5 100644 --- a/css/lx-office-erp/main.css +++ b/css/lx-office-erp/main.css @@ -9,9 +9,61 @@ A:hover { color: black; background-color: lemonchiffon; text-decoration: none; } +a, div { + transition: background-color 0.2s; + -moz-transition: background-color 0.2s; + -webkit-transition: background-color 0.2s; +} + +input, textarea, select { + border: 1px; + border-color: darkgray lightgray lightgray; + border-style: solid; + padding: 1px; + background-color: white; +} + +select { + padding: 0px; +} input:focus, textarea:focus, select:focus { - background-color: yellow; + background-color: whitesmoke; + border: 1px; + border-color: gray lightgray lightgray; + border-style: solid; +} + +input:hover, textarea:hover, select:hover { + border-color: dimgray darkgray darkgray; +} + +input[type="button"], +input[type="submit"], +button, +input[type="button"]:focus, +input[type="submit"]:focus, +button:focus { + border: 1px; + border-color: darkgray; + border-style: solid; + padding: 0px 4px; + -webkit-border-radius: 2px; + -moz-border-radius: 2px; + border-radius: 2px; + background-color: whitesmoke; +} + +button:hover, +input[type="button"]:hover, +input[type="submit"]:hover { + border: 1px; + background-color: lightgray; + border-color: gray; + border-style: solid; + -webkit-border-radius: 2px; + -moz-border-radius: 2px; + border-radius: 2px; } html { @@ -391,3 +443,5 @@ label { border-style:none; border-width:thin; } + + -- 2.20.1