Skip to content

Instantly share code, notes, and snippets.

@ghae
Forked from barryvdh/colorbox.less
Created April 4, 2012 22:11
Show Gist options
  • Save ghae/2306068 to your computer and use it in GitHub Desktop.
Save ghae/2306068 to your computer and use it in GitHub Desktop.
Colorbox skin for Bootstrap
/*
ColorBox Core Style:
The following CSS is consistent between example themes and should not be altered.
*/
#colorbox, #cboxOverlay, #cboxWrapper{position:absolute; top:0; left:0; z-index:10001; overflow:hidden;}
#cboxOverlay{position:fixed; width:100%; height:100%;}
#cboxMiddleLeft, #cboxBottomLeft{clear:left;}
#cboxContent{position:relative;}
#cboxLoadedContent{overflow:auto;}
#cboxTitle{margin:0;}
#cboxLoadingOverlay, #cboxLoadingGraphic{position:absolute; top:0; left:0; width:100%;}
#cboxPrevious, #cboxNext, #cboxClose, #cboxSlideshow{cursor:pointer;}
.cboxPhoto{float:left; margin:auto; border:0; display:block;}
.cboxIframe{width:100%; height:100%; display:block; border:0;}
/*
User Style:
Change the following styles to modify the appearance of ColorBox. They are
ordered & tabbed in a way that represents the nesting of the generated HTML.
*/
#cboxOverlay{
background:#222;
}
#colorbox{
.modal();
margin:0 !important;
z-index:10002;
}
#cboxLoadedContent{
.modal-body();
margin-top:48px;
margin-bottom:59px;
max-height: none;
}
#cboxTitle{
.modal-header();
position:absolute;
top:10px;
left:10px;
right:10px;
font-size: 18px;
font-weight: bold;
color: @FCgreen;
line-height: @baseline * 2;
}
.modal-footer {
position:absolute;
left:0;
right:0;
bottom:0;
}
.cb-icon{
border:0;
font: 0/0 a;
text-shadow: none;
color: transparent;
background-color: transparent;
position: absolute;
width: 14px;
height: 14px;
line-height: 14px;
background-image: url("@{iconSpritePath}");
background-repeat: no-repeat;
.ie7-restore-right-whitespace();
}
#cboxCurrent{position:absolute; bottom:4px; left:58px; color:@grayDark;}
#cboxSlideshow{position:absolute; bottom:4px; right:30px; color:@grayDark;}
#cboxPrevious{.cb-icon(); .icon-arrow-left(); bottom:8px; left:5px;}
#cboxNext{.cb-icon(); .icon-arrow-right();bottom:8px; left:19px;}
#cboxClose{.cb-icon(); .icon-remove(); top:5px; right:5px; }
#cboxLoadingGraphic{background:url(img/loading.gif) no-repeat center center;}
.cboxIE #cboxTopLeft,
.cboxIE #cboxTopCenter,
.cboxIE #cboxTopRight,
.cboxIE #cboxBottomLeft,
.cboxIE #cboxBottomCenter,
.cboxIE #cboxBottomRight,
.cboxIE #cboxMiddleLeft,
.cboxIE #cboxMiddleRight {
filter: ~"progid:DXImageTransform.Microsoft.gradient(startColorstr=#00FFFFFF,endColorstr=#00FFFFFF)";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment