# HG changeset patch # User Andrew Shadura # Date 1464342197 -7200 # Node ID 3578484a86d255a9a37741f94c43243b4af9b597 # Parent 7d0052c68a6f386c0d51f34fd1e974914371694b style: make markup more Bootstrap-compatible Use Bootstrap classes for dropdowns. Use explicit Bootstrap-style carets instead of :after preudoclass. Use Bootstrap class for badges. Introduce Bootstrap data-toggle properties - currently unused. diff -r 7d0052c68a6f -r 3578484a86d2 kallithea/public/css/contextbar.css --- a/kallithea/public/css/contextbar.css Mon May 30 15:44:36 2016 +0200 +++ b/kallithea/public/css/contextbar.css Fri May 27 11:43:17 2016 +0200 @@ -249,7 +249,7 @@ #header #header-inner #quick a, #context-pages a, -#context-pages .admin_menu a { +#context-pages .dropdown-menu a { display: block; padding: 0px 10px 1px 10px; line-height: 35px; @@ -257,7 +257,7 @@ #header #header-inner #quick a.thin, #context-pages a.thin, -#context-pages .admin_menu a.thin { +#context-pages .dropdown-menu a.thin { line-height: 28px !important; } @@ -268,17 +268,7 @@ #header #header-inner #quick a { overflow: hidden; } -#quick a.childs:after, -#revision-changer:before, -#context-pages a.childs:after, -#context-pages a.dropdown:after { - font-family: 'kallithea'; - content: ' \23f7'; -} -#context-pages a.childs { - padding-right: 30px; -} -#context-pages a.childs:after { +#context-pages a.dropdown-toggle:after { position: absolute; float: right; padding-left: 5px; diff -r 7d0052c68a6f -r 3578484a86d2 kallithea/public/css/style.css --- a/kallithea/public/css/style.css Mon May 30 15:44:36 2016 +0200 +++ b/kallithea/public/css/style.css Fri May 27 11:43:17 2016 +0200 @@ -498,8 +498,6 @@ } td.quick_repo_menu.active:before { - font-family: "kallithea"; - content: "\23f7"; /* triangle-down */ margin-left: 1px; padding-right: 1px; } @@ -1634,11 +1632,8 @@ text-decoration: none; } -#summary-menu-stats a span { - background-color: #DEDEDE; - color: #888 !important; - border-radius: 4px; - padding: 2px 4px; +#summary-menu-stats .badge { + padding: 2px 4px !important; font-size: 10px; } @@ -3516,6 +3511,11 @@ display: block; } +.caret:after { + font-family: 'kallithea'; + content: ' \23f7'; /* triangle-down */ +} + .repo-switcher .select2-choice { padding: 0px 8px 1px !important; display: block; @@ -3535,11 +3535,6 @@ display: none !important; } -.repo-switcher .select2-chosen:after { - font-family: 'kallithea'; - content: ' \23f7'; -} - .repo-switcher-dropdown.select2-drop.select2-drop-active { box-shadow: none; color: #fff; @@ -4340,8 +4335,7 @@ padding: 0px 0px 4px 16px; } -#context-pages .pull-request span, -.menu_link_notifications { +.badge { padding: 4px 4px !important; text-align: center; color: #888 !important; @@ -4349,16 +4343,6 @@ border-radius: 4px !important; } -#context-pages .forks span, -.menu_link_notifications { - padding: 4px 4px !important; - text-align: center; - color: #888 !important; - background-color: #DEDEDE !important; - border-radius: 4px !important; -} - - .notification-header { padding-top: 6px; } diff -r 7d0052c68a6f -r 3578484a86d2 kallithea/templates/base/base.html --- a/kallithea/templates/base/base.html Mon May 30 15:44:36 2016 +0200 +++ b/kallithea/templates/base/base.html Fri May 27 11:43:17 2016 +0200 @@ -55,7 +55,7 @@ <%def name="admin_menu()"> -