Refactor and improve sidebar css
This commit is contained in:
parent
256d7862b9
commit
e7ec3d495f
6 changed files with 93 additions and 112 deletions
|
|
@ -38,6 +38,10 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.as-results .as-list {
|
||||||
|
box-shadow: 0px 1px 1px #666;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.popover h3 {
|
.popover h3 {
|
||||||
|
|
|
||||||
|
|
@ -1,24 +1,16 @@
|
||||||
#leftNavBar {
|
#leftNavBar {
|
||||||
|
a {
|
||||||
.avatar {
|
color: $link-grey;
|
||||||
width: 50px;
|
font-weight: bold;
|
||||||
height: 50px;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
color: #222222;
|
|
||||||
|
|
||||||
ul {
|
ul {
|
||||||
margin: 0px;
|
margin: 0px;
|
||||||
padding: 0px;
|
padding: 0px;
|
||||||
list-style: none;
|
list-style: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
a {
|
|
||||||
color: $link-grey;
|
|
||||||
font-weight: bold;
|
|
||||||
text-decoration: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.selected { color: $black; }
|
.selected { color: $black; }
|
||||||
.selected a { color: $black; }
|
.selected a { color: $black; }
|
||||||
|
|
||||||
|
|
@ -27,11 +19,6 @@
|
||||||
margin-right: 6px;
|
margin-right: 6px;
|
||||||
padding: 4px;
|
padding: 4px;
|
||||||
&:hover { background-color: $background-blue; }
|
&:hover { background-color: $background-blue; }
|
||||||
|
|
||||||
.label {
|
|
||||||
background-color: $background-grey;
|
|
||||||
color: $text-grey;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.selectable {
|
.selectable {
|
||||||
|
|
@ -41,13 +28,40 @@
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#home_user_badge {
|
||||||
|
border-bottom: 1px dashed $border-grey;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
min-height: 50px;
|
||||||
|
padding-bottom: 10px;
|
||||||
|
padding-left: 4px;
|
||||||
|
|
||||||
|
.avatar {
|
||||||
|
float: left;
|
||||||
|
height: 50px;
|
||||||
|
width: 50px;
|
||||||
|
}
|
||||||
|
|
||||||
|
h4 {
|
||||||
|
margin-left: 60px;
|
||||||
|
padding-top: 15px;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
|
||||||
|
a { color: $black; }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#stream_selection {
|
||||||
|
& > li {
|
||||||
|
margin-bottom: 5px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#aspects_list, #tags_list {
|
#aspects_list, #tags_list {
|
||||||
.hoverable > .action {
|
.hoverable > .action {
|
||||||
visibility: hidden;
|
visibility: hidden;
|
||||||
float: right;
|
|
||||||
margin: 0 3px;
|
margin: 0 3px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.hoverable:hover > .action {
|
.hoverable:hover > .action {
|
||||||
visibility: visible;
|
visibility: visible;
|
||||||
}
|
}
|
||||||
|
|
@ -59,7 +73,6 @@
|
||||||
visibility: hidden;
|
visibility: hidden;
|
||||||
&.selected { visibility: visible; }
|
&.selected { visibility: visible; }
|
||||||
}
|
}
|
||||||
|
|
||||||
.selected + a {
|
.selected + a {
|
||||||
color: #333333;
|
color: #333333;
|
||||||
}
|
}
|
||||||
|
|
@ -70,5 +83,45 @@
|
||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
line-height: 15px;
|
line-height: 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#new_tag_following {
|
||||||
|
margin-left: 20px;
|
||||||
|
margin-top: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ---- override app/stylesheets/vendor/autoSuggest.css ---- */
|
||||||
|
ul.as-selections { padding: 1px 5px 4px 5px; }
|
||||||
|
.tag_input {
|
||||||
|
line-height: $font-size-text;
|
||||||
|
vertical-align: top;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.as-result {
|
||||||
|
margin-top: -1px;
|
||||||
|
margin-left: 1px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.as-list {
|
||||||
|
em {
|
||||||
|
background-color: #aabbcc;
|
||||||
|
color: black;
|
||||||
|
padding: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
color: black;
|
||||||
|
position: static; /* override absolute */
|
||||||
|
margin: 0px;
|
||||||
|
border-radius: 0px 0px 3px 3px;
|
||||||
|
box-shadow: 0px 1px 1px #666;
|
||||||
|
}
|
||||||
|
|
||||||
|
.as-result-item.active {
|
||||||
|
color: black;
|
||||||
|
text-shadow: none;
|
||||||
|
background-color: $background-blue;
|
||||||
|
border-color: $background-blue;
|
||||||
|
}
|
||||||
|
/* ---- end override app/stylesheets/vendor/autoSuggest.css ---- */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,121 +1,44 @@
|
||||||
#home_user_badge {
|
|
||||||
min-height: 50px;
|
|
||||||
margin-bottom: 20px;
|
|
||||||
margin-left: 4px;
|
|
||||||
|
|
||||||
img {
|
|
||||||
float: left;
|
|
||||||
}
|
|
||||||
|
|
||||||
h4 {
|
|
||||||
margin-left: 60px;
|
|
||||||
padding-top: 15px;
|
|
||||||
overflow: hidden;
|
|
||||||
text-overflow: ellipsis;
|
|
||||||
|
|
||||||
a {
|
|
||||||
color: inherit;
|
|
||||||
font-weight: bold;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#stream_selection {
|
|
||||||
& > li {
|
|
||||||
margin-bottom: 10px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#tags_list {
|
|
||||||
/* ---- override app/stylesheets/vendor/autoSuggest.css ---- */
|
|
||||||
.tag_input {
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.as-result {
|
|
||||||
margin-top: -1px;
|
|
||||||
margin-left: 1px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.as-list {
|
|
||||||
em {
|
|
||||||
background-color: #aabbcc;
|
|
||||||
color: black;
|
|
||||||
padding: 0px;
|
|
||||||
}
|
|
||||||
|
|
||||||
color: black;
|
|
||||||
position: static; /* override absolute */
|
|
||||||
margin: 0px;
|
|
||||||
border-radius: 0px 0px 3px 3px;
|
|
||||||
box-shadow: 0px 1px 1px #666;
|
|
||||||
}
|
|
||||||
|
|
||||||
.as-result-item.active {
|
|
||||||
color: black;
|
|
||||||
text-shadow: none;
|
|
||||||
background-color: $background-blue;
|
|
||||||
border-color: $background-blue;
|
|
||||||
}
|
|
||||||
/* ---- end override app/stylesheets/vendor/autoSuggest.css ---- */
|
|
||||||
}
|
|
||||||
|
|
||||||
.rightBar {
|
.rightBar {
|
||||||
|
|
||||||
padding-top: 20px;
|
padding-top: 20px;
|
||||||
|
|
||||||
.section {
|
.section {
|
||||||
margin-bottom: 20px;
|
margin-bottom: 20px;
|
||||||
|
|
||||||
.title {
|
> .title {
|
||||||
position: relative;
|
|
||||||
border-bottom: 1px solid $border-grey;
|
border-bottom: 1px solid $border-grey;
|
||||||
padding-bottom: 2px;
|
padding-bottom: 2px;
|
||||||
|
|
||||||
&.no_icon { padding-left: 8px; }
|
&.no_icon { padding-left: 8px; }
|
||||||
|
|
||||||
.right {
|
|
||||||
right: 4px;
|
|
||||||
top: 3px;
|
|
||||||
font-size: smaller;
|
|
||||||
font-weight: bold;
|
|
||||||
color: $text-dark-grey;
|
|
||||||
}
|
|
||||||
|
|
||||||
h5.title-header {
|
|
||||||
margin-left: 5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
h5 {
|
h5 {
|
||||||
font-size: 12px;
|
|
||||||
margin: 0;
|
|
||||||
color: $text-dark-grey;
|
color: $text-dark-grey;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
|
font-size: 13px;
|
||||||
|
margin: 0;
|
||||||
|
&.title-header { margin-left: 5px; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.content {
|
.content {
|
||||||
padding: 8px;
|
|
||||||
color: $text-grey;
|
color: $text-grey;
|
||||||
font-size: 11px;
|
font-size: 11px;
|
||||||
|
line-height: 18px;
|
||||||
|
padding: 5px;
|
||||||
|
|
||||||
p, ul {
|
p, ul { margin: 0; }
|
||||||
margin: 5px 0px;
|
|
||||||
}
|
|
||||||
|
|
||||||
ul {
|
ul {
|
||||||
|
margin-bottom: 5px;
|
||||||
padding-left: 0;
|
padding-left: 0;
|
||||||
|
li { list-style: none; }
|
||||||
li {
|
|
||||||
list-style: none;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
& > #invite_code {
|
& > #invite_code {
|
||||||
width: 100%;
|
background-color: $white;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
font-size: 11px;
|
font-size: 11px;
|
||||||
height: 30px;
|
height: 30px;
|
||||||
|
width: 100%;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
<a href="/contacts?a_id={{id}}" class="action modify_aspect">
|
<a href="/contacts?a_id={{id}}" class="action modify_aspect pull-right">
|
||||||
<i class="entypo pencil"></i>
|
<i class="entypo pencil"></i>
|
||||||
</a>
|
</a>
|
||||||
{{#if selected}}
|
{{#if selected}}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
<a href="#" id="unfollow_{{name}}" rel="nofollow" class="action delete_tag_following" title="{{t "delete"}}">×<a/>
|
<a href="#" id="unfollow_{{name}}" rel="nofollow" class="action delete_tag_following pull-right" title="{{t "delete"}}">×<a/>
|
||||||
<a href="/tags/{{name}}" class="selectable">
|
<a href="/tags/{{name}}" class="selectable">
|
||||||
#{{ name }}
|
#{{ name }}
|
||||||
</a>
|
</a>
|
||||||
|
|
|
||||||
|
|
@ -93,6 +93,7 @@
|
||||||
|
|
||||||
.section
|
.section
|
||||||
.title
|
.title
|
||||||
%ul.content
|
.content
|
||||||
= render "shared/links"
|
%ul
|
||||||
|
= render "shared/links"
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue