From 8241243f6b7dbfa00ada14ce859b91a5e7b17ea5 Mon Sep 17 00:00:00 2001
From: Peter Jaszkowiak
Date: Tue, 10 Feb 2015 21:34:19 -0700
Subject: [PATCH 1/2] Make ACP sidebar fixed
If you want to implement some kind of replacement for the CSS calc I
used, go ahead and do it yourself. I'm hoping webmasters can either deal
with a tad bit of overlap or have a modern browser.
---
public/less/admin/admin.less | 12 +++++++++++-
src/views/admin/advanced/events.tpl | 3 +--
src/views/admin/advanced/logs.tpl | 2 +-
src/views/admin/appearance/skins.tpl | 4 ++--
src/views/admin/development/logger.tpl | 2 +-
src/views/admin/extend/plugins.tpl | 4 ++--
src/views/admin/general/languages.tpl | 4 ++--
src/views/admin/general/sounds.tpl | 4 ++--
src/views/admin/manage/categories.tpl | 4 ++--
src/views/admin/manage/flags.tpl | 4 +---
src/views/admin/manage/groups.tpl | 2 +-
src/views/admin/manage/tags.tpl | 14 +++++++-------
src/views/admin/manage/users.tpl | 4 ++--
src/views/admin/settings/footer.tpl | 4 ++--
14 files changed, 37 insertions(+), 30 deletions(-)
diff --git a/public/less/admin/admin.less b/public/less/admin/admin.less
index 2e5b868048..6beb1525fd 100644
--- a/public/less/admin/admin.less
+++ b/public/less/admin/admin.less
@@ -266,4 +266,14 @@
// See: https://github.com/twbs/bootstrap/commit/8e2348e9eda51296eb680192379ab37f10355ca3
.navbar-brand > img {
display: inline-block;
-}
\ No newline at end of file
+}
+
+@media (min-width: 768px) {
+ .acp-sidebar {
+ position: fixed;
+ top: 70px;
+ right: 15px;
+ width: initial;
+ max-width: calc( ~"(100% - 200px)/4" );
+ }
+}
diff --git a/src/views/admin/advanced/events.tpl b/src/views/admin/advanced/events.tpl
index e3231b0099..eb22fb13db 100644
--- a/src/views/admin/advanced/events.tpl
+++ b/src/views/admin/advanced/events.tpl
@@ -20,7 +20,7 @@
-
+
-
diff --git a/src/views/admin/advanced/logs.tpl b/src/views/admin/advanced/logs.tpl
index 0311573d25..24f91ce60b 100644
--- a/src/views/admin/advanced/logs.tpl
+++ b/src/views/admin/advanced/logs.tpl
@@ -7,7 +7,7 @@
-
+
-
+
-
+
-
+
-
\ No newline at end of file
+
diff --git a/src/views/admin/manage/flags.tpl b/src/views/admin/manage/flags.tpl
index 929fd6674d..23a5d6f796 100644
--- a/src/views/admin/manage/flags.tpl
+++ b/src/views/admin/manage/flags.tpl
@@ -41,7 +41,7 @@
-
+
-
-
diff --git a/src/views/admin/manage/groups.tpl b/src/views/admin/manage/groups.tpl
index 69f8bad37b..26fe157dac 100644
--- a/src/views/admin/manage/groups.tpl
+++ b/src/views/admin/manage/groups.tpl
@@ -37,7 +37,7 @@
-
+