Commit 5950520e by Tom Giannattasio

tweaked sequence nav and discussion profile sidebar

parent a2372e65
......@@ -61,13 +61,12 @@ nav.sequence-nav {
min-width: 20px;
a {
width: 34px;
height: 34px;
margin: 4px auto;
background-position: center 10px;
width: 100%;
height: 42px;
margin: 0;
background-position: center 14px;
background-repeat: no-repeat;
border: 1px solid transparent;
@include border-radius(35px);
cursor: pointer;
display: block;
padding: 0;
......@@ -82,7 +81,7 @@ nav.sequence-nav {
&:hover {
background-color: #fff;
background-repeat: no-repeat;
background-position: center 10px;
background-position: center 14px;
}
&.active {
......@@ -103,7 +102,7 @@ nav.sequence-nav {
&:hover {
background-color: #fff;
background-repeat: no-repeat;
background-position: center 10px;
background-position: center 14px;
}
}
......
......@@ -55,6 +55,7 @@ class @Sequence
element.removeClass('progress-none')
.removeClass('progress-some')
.removeClass('progress-done')
switch progress
when 'none' then element.addClass('progress-none')
when 'in_progress' then element.addClass('progress-some')
......
......@@ -27,11 +27,6 @@ var SequenceNav = function($element) {
var offset = e.pageX - mouseOrigin;
var targetLeft = clamp(listOrigin + offset, -maxScroll, 0);
console.log('---------------');
console.log('offset: ' + offset);
console.log('target left: ' + targetLeft);
console.log('max: ' + maxScroll);
updateHorizontalPosition(targetLeft);
setShadows(targetLeft);
......
......@@ -150,10 +150,15 @@ $tag-text-color: #5b614f;
//user profile
.user-profile {
@extend .sidebar;
}
.sidebar-username {
font-size: 1.5em;
font-weight: bold;
line-height: 1.5em;
margin-top: 20px;
}
.sidebar-user-roles {
......
......@@ -40,9 +40,6 @@
<script type="text/javascript">
var sequenceNav;
$(document).ready(function() {
// console.log($('.sequence-nav'));
sequenceNav = new SequenceNav($('.sequence-nav'));
console.log(sequenceNav);
});
</script>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment