Browse Source

Rearrange elements.

pull/29/head^2
Evan Theurer 12 years ago
parent
commit
c94de24f5b
  1. 134
      src/styles/components/_buddylist.scss
  2. 5
      src/styles/global/_mixins.scss

134
src/styles/components/_buddylist.scss

@ -20,41 +20,37 @@
*/ */
#buddylist { #buddylist {
bottom: 0;
position: absolute; position: absolute;
top: 0;
right: 0; right: 0;
bottom: 0; top: 0;
width: 285px; width: 285px;
z-index: 50; z-index: 50;
} }
#buddylist:before { #buddylist:before {
position: absolute;
width: 25px;
height: 55px;
line-height: 55px;
margin: auto;
left: 0;
top: 0;
bottom: 0;
content: "\f100";
font-family: 'FontAwesome';
color: rgba(0,0,0,0.3);
font-size: 1.8em;
text-align: center;
cursor: pointer;
pointer-events: auto;
background: $componentbg; background: $componentbg;
border-left: 1px solid $bordercolor; border-left: 1px solid $bordercolor;
border-top: 1px solid $bordercolor; border-top: 1px solid $bordercolor;
border-bottom: 1px solid $bordercolor; border-bottom: 1px solid $bordercolor;
-webkit-border-top-left-radius: 6px;
-webkit-border-bottom-left-radius: 6px;
-moz-border-radius-topleft: 6px;
-moz-border-radius-bottomleft: 6px;
border-top-left-radius: 6px; border-top-left-radius: 6px;
border-bottom-left-radius: 6px; border-bottom-left-radius: 6px;
bottom: 0;
color: rgba(0,0,0,0.3);
content: "\f100";
cursor: pointer;
display: none; display: none;
font-family: FontAwesome;
font-size: 1.8em;
height: 55px;
left: 0;
line-height: 55px;
margin: auto;
pointer-events: auto;
position: absolute;
text-align: center;
top: 0;
width: 25px;
} }
.withBuddylist #buddylist:before { .withBuddylist #buddylist:before {
@ -66,16 +62,16 @@
} }
.buddylist { .buddylist {
position: absolute; background: $componentbg;
left: 25px; border-top: 1px solid $bordercolor;
right: 0;
top: 0;
bottom: 0; bottom: 0;
left: 25px;
overflow-x: hidden; overflow-x: hidden;
overflow-y: auto; overflow-y: auto;
border-top: 1px solid $bordercolor;
background: $componentbg;
pointer-events: auto; pointer-events: auto;
position: absolute;
right: 0;
top: 0;
} }
.buddylist { .buddylist {
@ -90,39 +86,39 @@
} }
} }
.buddycontainer { .buddycontainer {
position: relative;
pointer-events: auto; pointer-events: auto;
position: relative;
user-select: none; user-select: none;
} }
.buddylistloading, .buddylistloading,
.buddylistempty { .buddylistempty {
padding:.4em; bottom: 0;
font-size: 1.4em; color: rgba(0,0,0,.3);
text-align: center;
display: none; display: none;
position: absolute; font-size: 1.4em;
height: 2em;
left: 0; left: 0;
margin: auto;
padding:.4em;
position: absolute;
right: 0; right: 0;
bottom: 0; text-align: center;
top: 0; top: 0;
margin: auto;
height: 2em;
color: rgba(0,0,0,0.3);
} }
} }
.buddy { .buddy {
overflow: hidden; background: $sidepanebg;
height: 66px;
display: block;
border-bottom: 1px solid $bordercolor; border-bottom: 1px solid $bordercolor;
position: relative;
cursor: pointer; cursor: pointer;
display: block;
font-size: 13px;
height: 66px;
overflow: hidden;
position: relative;
text-align: left; text-align: left;
width: 100%; width: 100%;
font-size: 13px; @include tap-highlight-color(rgba(0, 0, 0, 0));
background: $sidepanebg;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
} }
.buddy:hover { .buddy:hover {
@ -137,67 +133,65 @@
right: 0; right: 0;
} }
> .buddyimage { > .buddyimage {
float:left; background: $actioncolor1;
border-radius: 2px;
float: left;
height: 46px; height: 46px;
width: 46px;
overflow: hidden;
margin: 10px; margin: 10px;
overflow: hidden;
position: relative; position: relative;
border-radius: 2px;
background: $actioncolor1;
text-align: center; text-align: center;
width: 46px;
> i { > i {
line-height: 46px;
color: $actioncolor2; color: $actioncolor2;
line-height: 46px;
} }
> img { > img {
position: absolute; bottom: 0;
display: block;
left: 0; left: 0;
position: absolute;
right: 0; right: 0;
bottom: 0;
top: 0; top: 0;
display: block;
} }
} }
> .buddy1 { > .buddy1 {
position: absolute;
left: 65px;
white-space: nowrap;
overflow: hidden;
right: 4px;
height: 28px;
color: $componentfg1; color: $componentfg1;
font-weight: bold; font-weight: bold;
font-size: 14px; font-size: 14px;
top: 24px; height: 28px;
left: 65px;
position: absolute;
overflow: hidden;
right: 4px;
text-overflow: ellipsis; text-overflow: ellipsis;
top: 24px;
white-space: nowrap;
} }
> .buddy2 { > .buddy2 {
position: absolute; color: $componentfg2;
left: 65px; left: 65px;
white-space: nowrap;
overflow: hidden; overflow: hidden;
position: absolute;
right: 0px; right: 0px;
color: $componentfg2;
top: 33px; top: 33px;
white-space: nowrap;
} }
} }
.buddy .buddyactions { .buddy .buddyactions {
position: absolute;
right: -125px;
top: 0px;
bottom: 0px;
background: rgba(255,255,255,0.5); background: rgba(255,255,255,0.5);
z-index: 5; bottom: 0px;
line-height: 66px; line-height: 66px;
position: absolute;
right: -125px;
padding: 0 10px; padding: 0 10px;
text-align: right;
top: 0px;
transition-property: right; transition-property: right;
-webkit-transition-property: right;
transition-duration: .3s; transition-duration: .3s;
-webkit-transition-duration: .3s;
white-space: nowrap; white-space: nowrap;
text-align: right; z-index: 5;
i { i {
font-size: 2em; font-size: 2em;
} }

5
src/styles/global/_mixins.scss

@ -10,3 +10,8 @@
@content; @content;
} }
} }
// not handled by autoprefixer
@mixin tap-highlight-color($color) {
-webkit-tap-highlight-color: $color;
}

Loading…
Cancel
Save