Mercurial > kallithea
changeset 7023:311e881d1a56
less: clean up .code-browser style
- remove unnecessary style
- use default table heading style
- move icon spacing style to separate block
author | domruf <dominikruf@gmail.com> |
---|---|
date | Sun, 29 Oct 2017 14:12:21 +0100 |
parents | 4c5073955784 |
children | e70bacdb1de7 |
files | kallithea/public/css/style.css kallithea/public/less/style.less |
diffstat | 2 files changed, 13 insertions(+), 78 deletions(-) [+] |
line wrap: on
line diff
--- a/kallithea/public/css/style.css Sun Oct 29 12:16:09 2017 +0100 +++ b/kallithea/public/css/style.css Sun Oct 29 14:12:21 2017 +0100 @@ -124,6 +124,12 @@ min-height: 100px; min-width: 400px; } +/* add some space between the code-browser icons and the file names */ +.browser-dir > i[class^='icon-'], +.submodule-dir > i[class^='icon-'], +.browser-file > i[class^='icon-'] { + padding-right: 0.3em; +} .form-group > label { float: left; } @@ -865,45 +871,6 @@ .pull-right .changes .deleted { background: #FAA; } -table.code-browser { - border-collapse: collapse; - width: 100%; -} -table.code-browser tr { - margin: 3px; -} -table.code-browser thead th { - background-color: #EEE; - height: 20px; - font-size: 1.1em; - font-weight: 700; - text-align: left; - padding-left: 10px; -} -table.code-browser tbody td { - padding-left: 10px; - height: 20px; -} -table.code-browser .browser-file { - height: 16px; - padding-left: 5px; - text-align: left; -} -table.code-browser .browser-dir { - height: 16px; - padding-left: 5px; - text-align: left; -} -table.code-browser .submodule-dir { - height: 16px; - padding-left: 5px; - text-align: left; -} -/* add some padding to the right of the file, folder, or submodule icon and -before the text */ -table.code-browser i[class^='icon-'] { - padding-right: .3em; -} .panel .search div.search_path { background: none repeat scroll 0 0 #EEE; border: 1px solid #CCC;
--- a/kallithea/public/less/style.less Sun Oct 29 12:16:09 2017 +0100 +++ b/kallithea/public/less/style.less Sun Oct 29 14:12:21 2017 +0100 @@ -141,6 +141,13 @@ min-width: 400px; } +/* add some space between the code-browser icons and the file names */ +.browser-dir > i[class^='icon-'], +.submodule-dir > i[class^='icon-'], +.browser-file > i[class^='icon-'] { + padding-right: 0.3em; +} + .form-group > label { float: left; } @@ -654,45 +661,6 @@ .pull-right .changes .deleted { background: #FAA; } -table.code-browser { - border-collapse: collapse; - width: 100%; -} -table.code-browser tr { - margin: 3px; -} -table.code-browser thead th { - background-color: #EEE; - height: 20px; - font-size: 1.1em; - font-weight: 700; - text-align: left; - padding-left: 10px; -} -table.code-browser tbody td { - padding-left: 10px; - height: 20px; -} -table.code-browser .browser-file { - height: 16px; - padding-left: 5px; - text-align: left; -} -table.code-browser .browser-dir { - height: 16px; - padding-left: 5px; - text-align: left; -} -table.code-browser .submodule-dir { - height: 16px; - padding-left: 5px; - text-align: left; -} -/* add some padding to the right of the file, folder, or submodule icon and -before the text */ -table.code-browser i[class^='icon-'] { - padding-right: .3em; -} .panel .search div.search_path { background: none repeat scroll 0 0 #EEE; border: 1px solid #CCC;