Skip to content
This repository has been archived by the owner on May 18, 2021. It is now read-only.

Commit

Permalink
v2.10.5
Browse files Browse the repository at this point in the history
Tweaked sidebar behaviour
  • Loading branch information
sujan-s authored Mar 17, 2018
2 parents cc338d2 + 202a514 commit af410b3
Show file tree
Hide file tree
Showing 9 changed files with 177 additions and 148 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ It's still a bit rough around the edges, some functionality might break, but it
Just drop the `dist/fictoan.css` file into your project and you’re good to go.


`Current version is 2.10.4`
`Current version is 2.10.5`
64 changes: 35 additions & 29 deletions dist/fictoan.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/fictoan.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/fictoan.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/fictoan.min.css.map

Large diffs are not rendered by default.

159 changes: 81 additions & 78 deletions docs/docs.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
<h1 class="text-hue"><strong>FICTOAN Framework<span class="text-white">*</span></strong></h1>
<p class="text-white text-small">*Fuck I Couldn’t Think Of A Name Framework</p>
<h3 class="text-thin text-grey-30">&mdash;</h3>
<h3 class="margin-bottom-tiny text-grey-30">v2.10.4</h3>
<h3 class="margin-bottom-tiny text-grey-30">v2.10.5</h3>
<p class="text-regular text-large"><a href="https://github.com/sujan-s/fictoan/archive/master.zip" target="_blank">Download</a> / <a href="https://github.com/sujan-s/fictoan" target="_blank">Github</a> / <a href="docs/docs.html">view docs</a></p>
</div>
</div>
Expand Down
86 changes: 51 additions & 35 deletions scss/fictoan/components/_ff-sidebar.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// BASICS ===================================================================
.ff-sidebar-container {
position : fixed;
width : 240px;
Expand Down Expand Up @@ -30,6 +31,8 @@
width : calc(100% - 48px);
}


// THE LOGO =================================================================
#sidebar-logo #logo-small {
width : 48px;
height : 48px;
Expand All @@ -43,6 +46,8 @@
.ff-sidebar-container #sidebar-logo #logo-big { display: block; }
.ff-sidebar-container.collapsed #sidebar-logo #logo-big { display: none; }


// LINKS ====================================================================
.sidebar-links {
position : absolute;
top : 80px;
Expand All @@ -65,7 +70,16 @@
justify-self : center;
}

.sidebar-link svg { stroke: $sideBarLinkIconStrokeColor; }
.sidebar-link span svg {
width : 16px;
height : 16px;
fill : none;
stroke : $sideBarLinkIconStrokeColor;
stroke-linecap : round;
stroke-width : 2;
stroke-linejoin : round;
}

.sidebar-link:hover svg { stroke: $sideBarLinkIconStrokeColorOnHover; }

.sidebar-link label {
Expand All @@ -80,32 +94,51 @@

.sidebar-link label:hover { color: $sidebarTextColorOnHover; }


// NESTED LINKS =============================================================
.sidebar-links summary { position: relative; }

.sidebar-links details > summary::before {
display : none;
position : absolute;
width : 20px;
height : 20px;
top : 16px;
right : 11px;
content : "";
border-radius : 50%;
background-color : $sideBarLinkChevronBG;
cursor : pointer;
}

.sidebar-links details > summary:hover::before { display: inline-block; }
.sidebar-links details > summary::before { background-color : $sideBarLinkChevronBGOnHover; }

.sidebar-links details > summary::after {
display : inline-block;
position : absolute;
width : 10px;
height : 10px;
top : 16px;
right : 16px;
content : "";
padding : 2px;
border-style : solid;
border-width : 0 2px 2px 0;
transform : rotate(45deg);
color : $sideBarLinkChevronColor;
transition : all 0.2s;
cursor : pointer;
display : inline-block;
position : absolute;
width : 8px;
height : 8px;
top : 20px;
right : 17px;
content : "";
border-style : solid;
border-width : 0px 2px 2px 0;
transform : rotate(45deg);
color : $sideBarLinkChevronColor;
transition : all 0.2s;
cursor : pointer;
}

.sidebar-links details[open] > summary::after {
transform : rotate(225deg);
top : 22px;
}

.ff-sidebar-container.collapsed summary::after { display: none; }
.sidebar-links details[open] > summary:hover::after { color : $sideBarLinkChevronColorOnHover; }


// LABELS WHEN COLLAPSED ====================================================
.ff-sidebar-container.collapsed .sidebar-link span:hover + label {
display : inline-block;
position : fixed;
Expand All @@ -128,22 +161,5 @@
.sidebar-links details details > .sidebar-link:hover > label { color : $sidebarTextColorOnHover; }

// HIDE THE SCROLLBAR =======================================================
// Custom scrollbar, works only in webkit browsers
.ff-sidebar-container::-webkit-scrollbar {
position : absolute;
top : 0;
right : 0;
width : 12px;
}

.ff-sidebar-container::-webkit-scrollbar-track { display : none; }

.ff-sidebar-container::-webkit-scrollbar-thumb {
width : 6px;
height : 24px;
max-height : 24px;
background-color : rgba($colorGrey, 0.2);
border-radius : 10px;
padding : 2px;
}
.ff-sidebar-container::-webkit-scrollbar-thumb:hover { background-color : rgba($colorShade, 0.8); }
// works only in webkit browsers
.ff-sidebar-container::-webkit-scrollbar { display: none; }
6 changes: 5 additions & 1 deletion scss/fictoan/theme/_ff-variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,11 @@ $sidebarTextColorOnHover : $colorShade;

$sidebarSmallTextColor : $colorGrey-70;

$sideBarLinkChevronColor : $colorGrey-40;
$sideBarLinkChevronColor : $colorGrey-40;
$sideBarLinkChevronColorOnHover : $colorWhite;

$sideBarLinkChevronBG : $colorGrey-20;
$sideBarLinkChevronBGOnHover : $colorHue;

$sidebBarCollapsedLabelBG : $colorAnalogue;
$sidebBarCollapsedLabelTextColor : $colorWhite;
Expand Down

0 comments on commit af410b3

Please sign in to comment.