Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mixed and vertical layouts #76

Open
ghost opened this issue Sep 15, 2012 · 0 comments
Open

Mixed and vertical layouts #76

ghost opened this issue Sep 15, 2012 · 0 comments

Comments

@ghost
Copy link

ghost commented Sep 15, 2012

Are there any plans to introduce mixed vertical and horizontal layouts, i.e.:
fixed nav-fluid content-fixed banners
or
fixed header-fluid items-fixed footer

Here's my shot at it in LESS:

.hxfx-123 (
@leftWidth,
@rightWidth,
@leftGutter: 0px,
@rightGutter: 0px,
@centerHasPadding: 0px) {
padding-left: @leftWidth + @leftGutter;
padding-right: @rightWidth + @rightGutter + 2 * @centerHasPadding;
.lc {
width: @leftWidth;
margin-left: -@leftWidth - @leftGutter;
float: left;
}
.cc {
width: 100%;
float: left;
}
.rc {
width: @rightWidth;
margin-right: -@rightWidth - @rightGutter - 2 * @centerHasPadding;
float: right;
}
}

.vxfx-123 (
@firstHeight,
@thirdHeight,
@secondOverflow: hidden) {
position: relative;
.fr {
height: @firstHeight;
}
.sr {
position: absolute;
top: @firstHeight;
bottom: @thirdHeight;
left: 0;
right: 0;
overflow: @secondOverflow;
}
.tr {
height: @thirdHeight;
position: absolute;
bottom: 0;
left: 0;
right: 0;
}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants