diaspora/app/assets/stylesheets/hovercard.css.scss
Srihari Sriraman a6dc845f59 First stab at extracting a color palette
- Pulled out the existing palette in _mixins
- Took a stab at naming greys after their usage count in contexts
- Replaced #a40802 with #a80000, since they are very close and $red was already in the palette

Missed importing 'colors' in a couple of places

Removing a redefined  in favor of  in colors.css.scss

Fixing missed imports #2

Renamed $background to $background-white

Explicitly calling out the color of the background, since we have many
background colors
2013-08-28 10:25:04 +02:00

105 lines
1.7 KiB
SCSS

@import "colors";
@import "_mixins.css.scss";
#hovercard {
@include border-radius(2px);
@include box-shadow(0, 0, 5px, #666666);
position: relative;
display: inline-block;
min-width: 250px;
max-width: 400px;
background-color: $background-white;
height: 70px;
border: 1px solid #999999;
font-size: small;
.avatar {
position: relative;
float: left;
height: 70px !important;
width: 70px !important;
top: 0 !important;
margin: {
right: 10px;
left: 0;
}
}
$image_width: 80px; /* including margin */
& > h4, & > div, & > p {
margin-left: $image_width;
}
& > h4, & > div, & > p, .hashtags {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
#hovercard_dropdown_container {
overflow: visible !important; /* otherwise the aspect dropdown is cropped */
}
padding: 5px {
bottom: 25px;
};
h4 {
margin-bottom: 0px;
padding-bottom: 0px;
}
a {
color: $blue;
font-weight: bold !important;
}
p {
color: $text-grey;
padding-top: 0px;
margin-top: 0px;
margin-bottom: 10px;
}
.hovercard_footer {
position: absolute;
bottom: 0;
left: 0;
background-color: $background-grey;
margin-left: 0;
width: 100%;
min-height: 19px;
font-size: smaller;
border-top: 1px solid #cccccc;
.footer_container {
padding: 1px 5px;
a {
color: $text-grey;
margin-right: 4px;
font-weight: normal;
}
}
}
}
#hovercard_container {
position: absolute;
display: none;
z-index: 10;
min-width: 250px;
max-width: 400px;
padding: 10px {
top: 5px;
}
}