leftnavbar with full sized clickable anchors, better padding, weight font reduced, overall looks polished
fixed background added for contrast, hideable on SM or XS bootstrap-based sizes.
This commit is contained in:
parent
c38da4c787
commit
267d98f132
4 changed files with 77 additions and 18 deletions
|
|
@ -36,3 +36,6 @@ $lime-green : rgb(143, 199,10);
|
||||||
$orange : rgb(237, 165, 13);
|
$orange : rgb(237, 165, 13);
|
||||||
$turquoise : rgb(8, 224, 173);
|
$turquoise : rgb(8, 224, 173);
|
||||||
$sand : rgb(245, 239, 237);
|
$sand : rgb(245, 239, 237);
|
||||||
|
|
||||||
|
$left-navbar-background: #f0f0f0;
|
||||||
|
$left-navbar-drawer-background: darken($left-navbar-background, 6%);
|
||||||
|
|
@ -1,14 +1,26 @@
|
||||||
|
/* Fixed backgrounds are a common practice to avoid height issues */
|
||||||
|
#left-navbar-fixed-background {
|
||||||
|
background: $left-navbar-background;
|
||||||
|
position: fixed;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
#leftNavBar {
|
#leftNavBar {
|
||||||
|
background: $left-navbar-background;
|
||||||
a {
|
a {
|
||||||
color: $link-grey;
|
color: $link-grey;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
|
outline: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
ul {
|
ul {
|
||||||
margin: 0px;
|
margin: 0px;
|
||||||
padding: 0px;
|
padding: 0px;
|
||||||
list-style: none;
|
list-style: none;
|
||||||
|
&#stream_selection {
|
||||||
|
margin: 0px -15px; /* -15px overrides Bootstrap's default gutter width */
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.selected { color: $black; }
|
.selected { color: $black; }
|
||||||
|
|
@ -16,21 +28,36 @@
|
||||||
|
|
||||||
.hoverable {
|
.hoverable {
|
||||||
display: block;
|
display: block;
|
||||||
margin-right: 6px;
|
&.selected a, &.selected a:hover {
|
||||||
padding: 4px;
|
color: white;
|
||||||
&:hover { background-color: $background-blue; }
|
background: #666;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.all_aspects a.hoverable.selected {
|
||||||
|
color: white;
|
||||||
|
background: #666;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hoverable a, .all_aspects a.hoverable, .followed_tags_sidebar a.hoverable {
|
||||||
|
padding: 10px 20px;
|
||||||
|
display: block;
|
||||||
|
font-weight: normal;
|
||||||
|
color: $link-grey;
|
||||||
|
border-bottom: 1px solid #ddd;
|
||||||
|
&:hover {
|
||||||
|
background-color: $background-blue;
|
||||||
|
color: $black;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.selectable {
|
.selectable {
|
||||||
display: block;
|
display: block;
|
||||||
margin-left: 21px;
|
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
}
|
}
|
||||||
|
|
||||||
#home_user_badge {
|
#home_user_badge {
|
||||||
border-bottom: 1px dashed $border-grey;
|
|
||||||
margin-bottom: 10px;
|
|
||||||
min-height: 50px;
|
min-height: 50px;
|
||||||
padding-bottom: 20px;
|
padding-bottom: 20px;
|
||||||
padding-left: 4px;
|
padding-left: 4px;
|
||||||
|
|
@ -51,27 +78,47 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#stream_selection {
|
#aspects_list {
|
||||||
& > li {
|
.hoverable {
|
||||||
margin-bottom: 5px;
|
position: relative;
|
||||||
|
}
|
||||||
|
.selectable {
|
||||||
|
padding-left: 40px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#aspects_list, #tags_list {
|
#aspects_list, #tags_list {
|
||||||
|
background: $left-navbar-drawer-background;
|
||||||
.hoverable > .action {
|
.hoverable > .action {
|
||||||
visibility: hidden;
|
visibility: hidden;
|
||||||
margin: 0 3px;
|
margin: 0;
|
||||||
|
position: absolute;
|
||||||
|
right: 0;
|
||||||
|
top: 0;
|
||||||
|
z-index: 200;
|
||||||
|
padding: 10px 15px;
|
||||||
|
border: none;
|
||||||
}
|
}
|
||||||
.hoverable:hover > .action {
|
.hoverable:hover > .action {
|
||||||
visibility: visible;
|
visibility: visible;
|
||||||
|
background: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#aspects_list {
|
#aspects_list {
|
||||||
.entypo-check {
|
.selectable {
|
||||||
float: left;
|
padding-right: 40px;
|
||||||
|
}
|
||||||
|
.entypo.check {
|
||||||
visibility: hidden;
|
visibility: hidden;
|
||||||
&.selected { visibility: visible; }
|
margin: 0;
|
||||||
|
position: absolute;
|
||||||
|
left: 20px;
|
||||||
|
top: 10px;
|
||||||
|
z-index: 200;
|
||||||
|
&.selected {
|
||||||
|
visibility: visible;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.selected + a {
|
.selected + a {
|
||||||
color: #333333;
|
color: #333333;
|
||||||
|
|
@ -79,14 +126,23 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
#tags_list {
|
#tags_list {
|
||||||
|
|
||||||
|
li {
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
.selectable {
|
||||||
|
padding-left: 30px;
|
||||||
|
padding-right: 30px;
|
||||||
|
}
|
||||||
|
|
||||||
.delete_tag_following {
|
.delete_tag_following {
|
||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
line-height: 15px;
|
line-height: 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#new_tag_following {
|
#new_tag_following {
|
||||||
margin-left: 20px;
|
padding: 10px 20px 10px 30px;
|
||||||
margin-top: 5px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ---- override app/stylesheets/vendor/autoSuggest.css ---- */
|
/* ---- override app/stylesheets/vendor/autoSuggest.css ---- */
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
.stream_container {
|
.stream_container {
|
||||||
border-left: 1px solid $border-grey;
|
|
||||||
padding-left: 10px;
|
padding-left: 10px;
|
||||||
padding-top: 20px;
|
padding-top: 20px;
|
||||||
margin-left: -10px;
|
margin-left: -10px;
|
||||||
|
|
|
||||||
|
|
@ -24,6 +24,7 @@
|
||||||
#right-sidebar-fixed-sub-background.col-md-3.visible-lg
|
#right-sidebar-fixed-sub-background.col-md-3.visible-lg
|
||||||
#right-sidebar-fixed-background.col-md-3.col-lg-2.hidden-sm.hidden-xs
|
#right-sidebar-fixed-background.col-md-3.col-lg-2.hidden-sm.hidden-xs
|
||||||
.row
|
.row
|
||||||
|
#left-navbar-fixed-background.col-md-offset-1.col-md-2.hidden-sm.hidden-xs
|
||||||
.col-md-offset-1.col-md-2#leftNavBar
|
.col-md-offset-1.col-md-2#leftNavBar
|
||||||
#home_user_badge
|
#home_user_badge
|
||||||
= owner_image_link
|
= owner_image_link
|
||||||
|
|
@ -39,7 +40,7 @@
|
||||||
= link_to t("streams.mentions.title"), mentioned_stream_path, rel: "backbone", class: "hoverable"
|
= link_to t("streams.mentions.title"), mentioned_stream_path, rel: "backbone", class: "hoverable"
|
||||||
%li.all_aspects
|
%li.all_aspects
|
||||||
= render "aspects/aspect_listings", stream: @stream
|
= render "aspects/aspect_listings", stream: @stream
|
||||||
%li
|
%li.followed_tags_sidebar
|
||||||
= render "tags/followed_tags_listings"
|
= render "tags/followed_tags_listings"
|
||||||
|
|
||||||
.col-md-6
|
.col-md-6
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue