Skip to content

Instantly share code, notes, and snippets.

@ydnar
Created July 20, 2009 04:46
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save ydnar/150163 to your computer and use it in GitHub Desktop.
CSS for exported Vox blogs
/*
vox2mtif
Copyright 2009 Randy Reddig - http://ydnar.com
CSS suitable for basic styling of Vox enclosures in a TypePad or Movable Type blog.
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
'Software'), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
/* enclosures */
.enclosure {
margin: 0 0 18px 0;
text-align: center;
font-size: 12px;
}
/* set enclosure-inner defaults */
.enclosure-inner {
text-align: center;
overflow: hidden;
}
.embed-enclosure .enclosure-inner {
border: 0;
}
/* enclosure formats */
.enclosure-extra-large .enclosure-inner { width: 500px; }
.enclosure-large .enclosure-inner { width: 320px; }
.enclosure-medium .enclosure-inner { width: 200px; }
.enclosure-small .enclosure-inner { width: 120px; }
.enclosure-strip-vertical .enclosure-inner { width: 130px; }
.enclosure-strip .enclosure-inner,
.enclosure-strip .enclosure-inner a img {
margin: 0 5px 18px 5px;
}
/* enclosure alignment */
.enclosure-left { float: left; margin-right: 20px; }
.enclosure-right { float: right; margin-left: 20px; }
.enclosure-center { clear: both; }
.enclosure-center .enclosure-inner {
margin-left: auto;
margin-right: auto;
}
/* enclosure list */
.enclosure-list .enclosure-item {
margin-bottom: 18px;
}
.enclosure-list .last { margin-bottom: 0; }
.enclosure-asset-name {
margin-bottom: 0;
padding-bottom: 0;
overflow: hidden;
font-size: 12px;
}
.enclosure-comments a {
display: -moz-inline-box;
display: inline-block; /* win-ie - displays correctly */
padding-left: 10px;
}
.enclosure-embed-source {
overflow: hidden;
padding: 10px;
background: #eee;
font: normal 10px courier new, courier, monaco, fixed-width;
text-align: left;
}
.enclosure-embed {
overflow: hidden;
}
/* link assets */
.link-enclosure .enclosure-inner {
text-align: left;
}
.link-enclosure .enclosure-image {
float: left;
margin: 0 5px 0 0;
}
/* override custom bullets in enclosures */
.asset-body .enclosure ul li { list-style-image: none; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment