From 79c323c50a2d873d00c6717966a295b0245c0d77 Mon Sep 17 00:00:00 2001 From: MaysWind Date: Sun, 14 May 2017 23:42:54 +0800 Subject: [PATCH] code refactor --- src/index.html | 54 +++++++++++++++++++++--------------- src/styles/core/core.css | 26 ++++++++++++++++- src/styles/theme/default.css | 38 ++++++++++++++----------- 3 files changed, 79 insertions(+), 39 deletions(-) diff --git a/src/index.html b/src/index.html index b297cee..33d1d36 100644 --- a/src/index.html +++ b/src/index.html @@ -242,36 +242,46 @@ diff --git a/src/styles/core/core.css b/src/styles/core/core.css index d7f55dc..e3ad338 100644 --- a/src/styles/core/core.css +++ b/src/styles/core/core.css @@ -69,8 +69,27 @@ td { overflow-y: scroll; } -.main-footer .toolbar { +.main-footer > .navbar { + margin-bottom: 0; + min-height: inherit; +} + +.main-footer > .navbar > .navbar-toolbar > .nav { + float: left; + margin: 0; +} + +.main-footer > .navbar > .navbar-toolbar > .nav > li { display: inline-block; + float: left; +} + +.main-footer > .navbar > .navbar-toolbar > .nav > li > a { + padding: 0 10px 0 10px; +} + +.main-footer > .navbar > .navbar-toolbar > .nav > li:first-child > a { + padding-left: 0; } .dropdown-menu.right-align { @@ -103,6 +122,11 @@ td { border: 1px solid #eee; background-color: #fff; } + + .main-footer > .navbar > .navbar-toolbar > .nav > li > a { + padding-left: 8px; + padding-right: 8px; + } } /* toolbar */ diff --git a/src/styles/theme/default.css b/src/styles/theme/default.css index 1c92afe..fd8414c 100644 --- a/src/styles/theme/default.css +++ b/src/styles/theme/default.css @@ -40,14 +40,6 @@ top: 15px; } -.skin-aria-ng .main-header .navbar .sidebar-toggle, .skin-aria-ng .main-footer .sidebar-toggle, .skin-aria-ng .main-footer .toolbar > a { - color: #707070; -} - -.skin-aria-ng .main-header .navbar .sidebar-toggle:hover, .skin-aria-ng .main-footer .sidebar-toggle:hover, .skin-aria-ng .main-footer .toolbar > a:hover, .skin-aria-ng .main-footer .toolbar.open > a { - color: #0080ff; -} - .skin-aria-ng .main-header .navbar .navbar-searchbar .form-control-icon { color: #999999; } @@ -210,16 +202,30 @@ font-size: 12px; } -.skin-aria-ng .main-footer .sidebar-toggle { - float: left; - background-color: transparent; - background-image: none; - padding: 0 15px 0 0; - font-family: fontAwesome; +.skin-aria-ng .main-footer > .navbar { + border: 0; } -.skin-aria-ng .main-footer .sidebar-toggle:before { - content: "\f0c9"; +.skin-aria-ng .main-footer > .navbar > .navbar-toolbar > .nav > li.divider { + padding-top: 16px; + margin-left: 4px; + margin-right: 4px; + border-right: 1px solid #ccc; + position: relative; + top: 0; +} + +.skin-aria-ng .main-footer > .navbar > .navbar-toolbar > .nav > li > a { + color: #707070; + line-height: 17px; +} + +.skin-aria-ng .main-footer > .navbar > .navbar-toolbar > .nav > li > a:hover, +.skin-aria-ng .main-footer > .navbar > .navbar-toolbar > .nav > li > a:active, +.skin-aria-ng .main-footer > .navbar > .navbar-toolbar > .nav > li > a:focus, +.skin-aria-ng .main-footer > .navbar > .navbar-toolbar > .nav > li.open > a { + color: #0080ff; + background: none; } .skin-aria-ng .global-status {