Fixed tutorial design
diff --git a/public/scss/sidebar.scss b/public/scss/sidebar.scss
index 3920ef5..5829600 100644
--- a/public/scss/sidebar.scss
+++ b/public/scss/sidebar.scss
@@ -1,11 +1,11 @@
@charset "utf-8";
@import "util";
+$border-size: 2px;
+
#sidebar {
-/*
- box-shadow: 2px 2px 5px darken($dark-green, 15%);
-*/
-// box-shadow: $choose-box-shadow;
+ // box-shadow: 2px 2px 5px darken($dark-green, 15%);
+ // box-shadow: $choose-box-shadow;
outline: none;
display: block;
background-color: $dark-green;
@@ -18,7 +18,11 @@
height: 100%;
padding-top: 80px;
transition: all .3s ease-in-out;
-
+ > div {
+ overflow-y: auto;
+ overflow-x: visible;
+ max-height: 100%;
+ }
> * {
opacity: 1;
}
@@ -38,11 +42,92 @@
padding: 6pt;
border-top-right-radius: $standard-border-radius;
}
+ h2 {
+ font: {
+ size: 100%;
+ weight: bold;
+ }
+ line-height: 2em;
+ text-align: center;
+ padding: 0;
+ margin: 0;
+ }
+
+ ul {
+ list-style-type: none;
+/*
+ background-color: $light-green;
+*/
+ margin: 0;
+ font-size: 10pt;
+ text-indent: 0;
+ padding: 0;
+ li {
+ padding: 0;
+ > a {
+ @include choose-item;
+ padding: $item-padding;
+
+ border-right: {
+ width: $border-size;
+ style: solid;
+ }
+
+ display: block;
+ &:link, &:visited {
+ color: inherited;
+ }
+ &:hover {
+ color: inherit;
+ transition: none;
+ @include choose-hover;
+ }
+ &.active, &:active {
+ @include choose-active;
+ }
+ }
+ h3 {
+ font: {
+ weight: bold;
+ size: 100%;
+ }
+ padding: 0;
+ margin: 0;
+ }
+/*
+ &.active {
+ text-shadow: none;
+ h3 {
+ margin-bottom: 2pt;
+ padding-bottom: 2pt;
+ border-bottom: 1px solid black;
+ }
+ }
+*/
+ > a {
+ padding-left: 6pt;
+ }
+ li > a {
+ padding-left: 18pt;
+ }
+ li li > a {
+ padding-left: 36pt;
+ }
+ }
+ }
+ nav > ul > li > a {
+ font-weight: bold;
+ }
}
+
#sidebar:not(:focus):not(.active) {
margin-left: -1 * ($logo-left-distance - 15px);
// box-shadow: none;
+/*
+ overflow-y: hidden;
+ overflow-x: visible;
+*/
&::after {
opacity: 1;
}
@@ -83,43 +168,6 @@
left: 0;
border-top-right-radius: 5pt;
}
- h2 {
- font: {
- size: 100%;
- weight: bold;
- }
- text-align: center;
- padding: 0;
- margin: 0 0 5pt 0;
- }
- ul {
- list-style-type: none;
- margin: 0;
- font-size: 10pt;
- text-indent: 0;
- padding: 0;
- li {
- padding: 4pt 10pt;
- h3 {
- font: {
- weight: bold;
- size: 100%;
- }
- padding: 0;
- margin: 0;
- }
- &.active {
- background-color: $light-green;
-// text-shadow: 1px 1px rgba(0, 0, 0, 0.4);
- text-shadow: none;
- h3 {
- margin-bottom: 2pt;
- padding-bottom: 2pt;
- border-bottom: 1px solid black;
- }
- }
- }
- }
dl.info {
font-size: 9pt;
padding: 0 10pt;