Skip to content

Instantly share code, notes, and snippets.

@mkdynamic
Forked from nickw/gist:2363651
Created April 12, 2012 00:17
Show Gist options
  • Save mkdynamic/2363680 to your computer and use it in GitHub Desktop.
Save mkdynamic/2363680 to your computer and use it in GitHub Desktop.
.browser {
h3 {
margin-bottom: 10px;
}
ol {
@include pie-clearfix;
}
}
.browser-item {
position: relative;
float: left;
margin-left: 10px;
width: 50px;
height: 50px;
@include single-transition(opacity, 0.2s);
&:first-child {
margin-left: 0;
}
&:hover {
opacity: 0.75;
}
&.is-active {
margin: -2px -2px -2px 8px;
border: 2px solid $color_undefined;
outline: 2px solid $color_undefined;
}
}
.browser-item {
.browser-image {
display: block;
width: 100%;
height: 100%;
}
&.is-active .browser-image {
thing: awesome;
}
.browser-chrome {
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
background-image: image-url("detail/chrome_50.png");
}
}
.browser-item {
/* types: text */
&.browser-type-text {
.browser-content {
font-size: 8px;
line-height: 10px;
margin: 5px;
overflow: hidden;
text-overflow: ellipsis;
height: 40px;
}
}
/* types: event */
&.browser-type-event,
&.browser-type-eventbrite_event,
&.browser-type-facebook_event {
.browser-event-month {
height: 18px;
line-height: 18px;
text-align: center;
font-size: 10px;
text-transform: uppercase;
}
.browser-event-day {
height: 32px;
line-height: 32px;
text-align: center;
font-size: 24px;
}
}
/* types: blanks */
&.browser-type-blank {
&, &:hover {
opacity: 0.5;
}
}
/* types: files + tweets */
&.browser-type-file,
&.browser-type-twitter_tweet {
a:after {
@include font-pictos;
font-size: 25px;
text-align: center;
line-height: 50px;
width: 50px;
}
&.browser-type-file a:after {
content: 'F';
}
&.browser-type-twitter_tweet a:after {
content: 'T';
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment