Sidebar work: added collapsing categories

Big refactoring of SCSS

active state for sidebar links

update gitignore for node_modules folder

removing node_modules from index

Sticky Liquid link in sidebar

Cleaned up index page

Adding fixed width to buttons

Refactoring

Converted sidebar to use Collections

Refactor sidebar CSS
This commit is contained in:
Tetsuro
2015-07-25 13:49:14 -04:00
parent 82249c99b3
commit 0ca571f58c
2158 changed files with 324 additions and 389974 deletions
+5 -1
View File
@@ -1,3 +1,7 @@
* {
box-sizing: border-box;
}
/**
* Reset some basic elements
*/
@@ -169,4 +173,4 @@ table {
border: 1px solid #ddd;
padding: 6px 13px;
}
}
}
+32
View File
@@ -0,0 +1,32 @@
.btn {
color: $color-white;
display: inline-block;
background: $color-blue-5;
padding: $spacing-unit/4 $spacing-unit/2;
width: 200px;
border-radius: 4px;
&:hover {
background: $color-blue-4;
text-decoration: none;
cursor: pointer;
}
}
.btn:visited {
color: $color-white;
}
.btn-row {
display: flex;
justify-content: center;
.btn:not(:first-child) {
margin-left: $spacing-unit / 2;
}
}
.icon {
vertical-align: middle;
margin-right: $spacing-unit / 4;
}
+8
View File
@@ -0,0 +1,8 @@
.home--banner {
text-align: center;
h1 {
font-weight: bold;
font-size: 5em;
}
}
+104
View File
@@ -0,0 +1,104 @@
$sidebar-width: 225px;
$logo-height: 130px;
$wrapper-width: 800px;
/*============================================================================
Content Area
==============================================================================*/
.content {
padding: $spacing-unit $spacing-unit $spacing-unit ($spacing-unit + $sidebar-width);
width: 100%;
}
.wrapper {
max-width: $wrapper-width;
margin: 0 auto;
padding: 0 $spacing-unit;
@extend %clearfix;
}
/*============================================================================
Sidebar
==============================================================================*/
.sidebar {
background: $color-blue-5;
width: $sidebar-width;
height: 100vh;
position: fixed;
}
.sidebar--logo {
font-size: $base-font-size * 2;
font-weight: bold;
text-align: center;
height: $logo-height;
line-height: $logo-height;
margin-bottom: 0;
border-bottom: 1px solid $color-blue-4;
a {
color: $color-white;
}
}
.sidebar--nav {
padding: $spacing-unit $spacing-unit ($spacing-unit + $logo-height); // Add a bit more padding at the bottom for consistency.
font-weight: bold;
max-height: 100%;
overflow-y: scroll;
li {
list-style: none;
a {
color: $color-white;
&:hover {
text-decoration: none;
}
}
}
}
.section {
margin: 0px;
> li {
margin-bottom: $spacing-unit / 2;
&:last-child {
margin-bottom: $spacing-unit;
}
}
}
.section__header {
font-weight: bold;
font-size: 1em;
color: $color-white;
margin-bottom: $spacing-unit / 4;
}
.section__links {
margin-left: $spacing-unit / 2;
font-weight: normal;
font-size: 0.9em;
}
.section__link {
display: inline-block;
margin-top: $spacing-unit/4;
opacity: 0.75;
&:hover {
opacity: 1;
}
}
.section__link--is-active {
font-weight: bold;
opacity: 1;
}
+10
View File
@@ -0,0 +1,10 @@
td {
code {
border: none;
background: none;
}
}
p {
line-height: 1.8;
}