diff --git a/public/css/lanyon.css b/public/css/lanyon.css index 1069fd2c931..c6f0a76b606 100644 --- a/public/css/lanyon.css +++ b/public/css/lanyon.css @@ -208,45 +208,45 @@ a.sidebar-nav-item:focus { /* Style the `label` that we use to target the `.sidebar-checkbox` */ .sidebar-toggle { position: absolute; - top: 1rem; + top: .8rem; left: 1rem; display: block; - width: 2.2rem; - padding: .5rem .65rem; + padding: .25rem .75rem; color: #505050; background-color: #fff; - border-radius: 4px; + border-radius: .25rem; cursor: pointer; } + .sidebar-toggle:before { - display: block; + display: inline-block; + width: 1rem; + height: .75rem; content: ""; - width: 100%; - padding-bottom: .125rem; - border-top: .375rem double; - border-bottom: .125rem solid; - - /* Make the border inside the box */ - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; + background-image: -webkit-linear-gradient(to bottom, #555, #555 20%, #fff 20%, #fff 40%, #555 40%, #555 60%, #fff 60%, #fff 80%, #555 80%, #555 100%); + background-image: -moz-linear-gradient(to bottom, #555, #555 20%, #fff 20%, #fff 40%, #555 40%, #555 60%, #fff 60%, #fff 80%, #555 80%, #555 100%); + background-image: -ms-linear-gradient(to bottom, #555, #555 20%, #fff 20%, #fff 40%, #555 40%, #555 60%, #fff 60%, #fff 80%, #555 80%, #555 100%); + background-image: linear-gradient(to bottom, #555, #555 20%, #fff 20%, #fff 40%, #555 40%, #555 60%, #fff 60%, #fff 80%, #555 80%, #555 100%); } .sidebar-toggle:active, #sidebar-checkbox:checked ~ .sidebar-toggle { color: #fff; - background-color: #505050; + background-color: #555; +} + +.sidebar-toggle:active:before, +#sidebar-checkbox:focus ~ .sidebar-toggle:before, +#sidebar-checkbox:checked ~ .sidebar-toggle:before { + background-image: -webkit-linear-gradient(to bottom, #fff, #fff 20%, #555 20%, #555 40%, #fff 40%, #fff 60%, #555 60%, #555 80%, #fff 80%, #fff 100%); + background-image: -moz-linear-gradient(to bottom, #fff, #fff 20%, #555 20%, #555 40%, #fff 40%, #fff 60%, #555 60%, #555 80%, #fff 80%, #fff 100%); + background-image: -ms-linear-gradient(to bottom, #fff, #fff 20%, #555 20%, #555 40%, #fff 40%, #fff 60%, #555 60%, #555 80%, #fff 80%, #fff 100%); + background-image: linear-gradient(to bottom, #fff, #fff 20%, #555 20%, #555 40%, #fff 40%, #fff 60%, #555 60%, #555 80%, #fff 80%, #fff 100%); } @media (min-width: 30.1em) { .sidebar-toggle { position: fixed; - width: 2.25rem; - } - .sidebar-toggle:before { - padding-bottom: .15rem; - border-top-width: .45rem; - border-bottom-width: .15rem; } }