diff --git a/index.php b/index.php index 0744d18..a8c720b 100644 --- a/index.php +++ b/index.php @@ -156,11 +156,15 @@ input[type=search] { width: 14rem; padding: 0.3rem 0.4rem; font-size: 1rem; colo input[type=search]::-webkit-input-placeholder { color : rgba(255, 255, 255, 0.75); } input[type=button], input[type=submit] { cursor: pointer; } -.sidebar { background: #9e7eb4; box-shadow: inset -0.6rem 0 0.8rem -0.5rem rgba(50, 50, 50, 0.5); } -.sidebar-tree { position: relative; } + +.sidebar { position: relative; z-index: 100; margin-top: 0.6rem; padding: 1rem 3rem 2rem 0.4rem; background: #9e7eb4; box-shadow: inset -0.6rem 0 0.8rem -0.5rem rgba(50, 50, 50, 0.5); } +.sidebar a { color: #ffa74d; } + +.sidebar ul { position: relative; margin: 0.3rem 0.3rem 0.3rem 1rem; padding: 0.3rem 0.3rem 0.3rem 1rem; list-style-type: none; } +.sidebar li { position: relative; margin: 0.3rem; padding: 0.3rem; } + .sidebar ul:before { content: \"\"; position: absolute; top: 0; left: 0; height: 100%; border-left: 2px dashed rgba(50, 50, 50, 0.4); } .sidebar li:before { content: \"\"; position: absolute; width: 1rem; top: 0.8rem; left: -1.2rem; border-bottom: 2px dashed rgba(50, 50, 50, 0.4); } -.sidebar a { color: #ffa74d; } h1 { text-align: center; } .sitename { margin-top: 5rem; margin-bottom: 3rem; font-size: 2.5rem; } @@ -878,11 +882,6 @@ register_module([ "; } }); diff --git a/module_index.json b/module_index.json index c7ccb09..04f7889 100644 --- a/module_index.json +++ b/module_index.json @@ -13,7 +13,7 @@ "author": "Starbeamrainbowlabs", "description": "Adds a sidebar to the left hand side of every page. Add '$settings->sidebar_show = true;' to your configuration, or append '&sidebar=yes' to the url to enable. Adding to the url sets a cookie to remember your setting.", "id": "extra-sidebar", - "lastupdate": 1438714978 + "lastupdate": 1438715409 }, { "name": "Credits", diff --git a/modules/extra-sidebar.php b/modules/extra-sidebar.php index c3f5828..258d0b9 100644 --- a/modules/extra-sidebar.php +++ b/modules/extra-sidebar.php @@ -54,11 +54,6 @@ register_module([ "; } }); diff --git a/settings.fragment.php b/settings.fragment.php index 8c98f3d..02ff41a 100644 --- a/settings.fragment.php +++ b/settings.fragment.php @@ -153,11 +153,15 @@ input[type=search] { width: 14rem; padding: 0.3rem 0.4rem; font-size: 1rem; colo input[type=search]::-webkit-input-placeholder { color : rgba(255, 255, 255, 0.75); } input[type=button], input[type=submit] { cursor: pointer; } -.sidebar { background: #9e7eb4; box-shadow: inset -0.6rem 0 0.8rem -0.5rem rgba(50, 50, 50, 0.5); } -.sidebar-tree { position: relative; } + +.sidebar { position: relative; z-index: 100; margin-top: 0.6rem; padding: 1rem 3rem 2rem 0.4rem; background: #9e7eb4; box-shadow: inset -0.6rem 0 0.8rem -0.5rem rgba(50, 50, 50, 0.5); } +.sidebar a { color: #ffa74d; } + +.sidebar ul { position: relative; margin: 0.3rem 0.3rem 0.3rem 1rem; padding: 0.3rem 0.3rem 0.3rem 1rem; list-style-type: none; } +.sidebar li { position: relative; margin: 0.3rem; padding: 0.3rem; } + .sidebar ul:before { content: \"\"; position: absolute; top: 0; left: 0; height: 100%; border-left: 2px dashed rgba(50, 50, 50, 0.4); } .sidebar li:before { content: \"\"; position: absolute; width: 1rem; top: 0.8rem; left: -1.2rem; border-bottom: 2px dashed rgba(50, 50, 50, 0.4); } -.sidebar a { color: #ffa74d; } h1 { text-align: center; } .sitename { margin-top: 5rem; margin-bottom: 3rem; font-size: 2.5rem; }