Created
April 12, 2012 00:12
-
-
Save nickw/2363651 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.browser { | |
h3 { | |
margin-bottom: 10px; | |
} | |
ol { | |
@include pie-clearfix; | |
} | |
} | |
li.browser-item { | |
position: relative; | |
float: left; | |
margin-left: 10px; | |
width: 50px; | |
height: 50px; | |
@include single-transition(opacity, 0.2s); | |
&:first-child { | |
margin-left: 0; | |
} | |
/* states */ | |
&: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%; | |
} | |
.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