Skip to content

Instantly share code, notes, and snippets.

@farmerbradllc
Created October 18, 2011 17:00
Show Gist options
  • Select an option

  • Save farmerbradllc/1295948 to your computer and use it in GitHub Desktop.

Select an option

Save farmerbradllc/1295948 to your computer and use it in GitHub Desktop.
CSS using Compass and SaSS
/* -------- Mobile Views 320px -------- */
$footer-width: 320px;
@function calculated-width($padding) {
@return $footer-width - $padding;
}
.aui-view-4,
.aui-view-320 {
#wrapper {
@include border-radius(4px);
margin: 20px auto 0;
width: calculated-width(20) !important;
}
.portlet-layout {
display: inline-block;
clear: both;
.portlet-column {
float: left;
clear: both;
padding: inherit 0 !important;
width: calculated-width(20) !important;
.portlet-column-content {
padding-left: 0;
padding-right: 0;
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment