-
Notifications
You must be signed in to change notification settings - Fork 28
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
overflow of .twelve.columns div in fixed width tablet portrait view #28
Comments
/themes/fresh/_grid.scss:34
/core/_dependencies.scss:96
better solution to set @mixin _fixedGrid($width, $colWidth, $gutterWidth, $colCount) {
.container {
.column,
.columns {
max-width: 100%;
margin: {
left: $gutterWidth / 2;
right: $gutterWidth / 2;
};
}
}
/* The Grid */
/* ... */
} |
@dirkolbrich can you help me out with an exact repro? Here are some good sites for sharing code: |
Ok, here is the CodePen testing skeleton-sass fixed grid. Setup is right from the skeleton-scss README, no additional styles, except the gray-boxes. There are several issues with the base fixed-grid:
|
added basic layouts and offset to the CodePen. Following issue in addition to the above: |
/core/_dependencies.scss:96
* Addressing issue #31 * Adding styles for `.one-half` * Adding new selectors to fixed grid: * `.one-third.columns` * `.two-third.columns` * `.one-half.column` * `.one-half.columns` * `.full-width.column` * Addressing issue #28 * Fixing configuration issues when `$base-gutter-width` is something other than `20px` in fixed grid mixin * Enforcing `body` margin styles to fixed overflow issue in `960px - 1129px` * Applies only to `fresh` theme
@dirkolbrich thanks for all your hard work identifying the issues! I alongside our small Skeleton Sass community greatly appreciates it! I believe all issues you identified are resolved in release 3.1.4 |
Thanks. I am just finger pointing. You did the work. |
A
.twelve .column.
wide<div>
is too wide in iPad portrait screen. It overflows the surrounding.container
.Following html setup. Theme is
Fresh
with$is-fluid: false;
setup:Problem
Right in between the sweet spot of 960 - 1100px browser width (iPad is 1024px on portrait), the
.twelve.colums
div is wider than the surrounding.container
div. I think the reason is.twelve.colums
has nomax-width
set at that point.This is caused by the
@media only screen and (min-width: $tablet-width) and (max-width: $base-width - 1) {}
query in/themes/fresh/_grid.scss:34
as it stops at 959px browser width.From there on, the other smaller media queries kick in:
Proposed solution
Give all columns a
max-width: 100%
in/core/_dependencies.scss:96
:Yet I don`t know for sure, if this would cause any side effects on other settings.
The text was updated successfully, but these errors were encountered: