Fixed sidebar to be non-focussable if empty
diff --git a/dev/scss/main/sidebar.scss b/dev/scss/main/sidebar.scss
index 5d9d4df..5fe57d0 100644
--- a/dev/scss/main/sidebar.scss
+++ b/dev/scss/main/sidebar.scss
@@ -4,8 +4,6 @@
$border-size: 2px;
aside {
- // box-shadow: 2px 2px 5px darken($dark-green, 15%);
- // box-shadow: $choose-box-shadow;
outline: none;
display: block;
background-color: $dark-green;
@@ -17,7 +15,6 @@
left: 0;
height: 100%;
padding-top: 80px;
- transition: all .3s ease-in-out;
> div {
overflow-y: auto;
overflow-x: visible;
@@ -133,20 +130,17 @@
}
}
+aside:focus {
+ transition: all .3s ease-in-out;
+}
-aside:not(:focus):not(.active) {
+aside.off, aside:not(:focus):not(.active) {
margin-left: -1 * ($logo-left-distance - ($standard-margin / 2));
-// box-shadow: none;
-/*
- overflow-y: hidden;
- overflow-x: visible;
-*/
&::after {
opacity: 1;
}
> * {
opacity: 0;
- // TODO
transition: {
property: opacity;
duration: .3s;
@@ -154,6 +148,10 @@
}
}
+aside.off::after {
+ display:none;
+}
+
/*
#sidebar {
text-shadow: none;
diff --git a/lib/Kalamar/Controller/Documentation.pm b/lib/Kalamar/Controller/Documentation.pm
index 3588560..fcb9b2b 100644
--- a/lib/Kalamar/Controller/Documentation.pm
+++ b/lib/Kalamar/Controller/Documentation.pm
@@ -8,8 +8,6 @@
$c->stash(embedded => 1);
};
- $c->stash(doc_base => 'http://localhost:3000/');
-
my @path = ('doc');
# There is a scope defined
diff --git a/lib/Kalamar/Plugin/KalamarHelpers.pm b/lib/Kalamar/Plugin/KalamarHelpers.pm
index be86f56..16d839a 100644
--- a/lib/Kalamar/Plugin/KalamarHelpers.pm
+++ b/lib/Kalamar/Plugin/KalamarHelpers.pm
@@ -17,7 +17,6 @@
my $url = $c->url_with('/img/korap-overview.svg');
# If there is a different base - append this as a base
- # $url->query([base => $c->stash('doc_base') // '/']);
$url->query([base => $c->url_for('doc_start')->to_abs // '/']);
$url->fragment($scope);