Browse Source

Fix celled grid container sizing

pull/2053/head
jlukic 9 years ago
parent
commit
b465f28509
2 changed files with 12 additions and 4 deletions
  1. 8
      gulpfile.js
  2. 8
      src/definitions/elements/container.less

8
gulpfile.js

@ -10,6 +10,10 @@ var
// import tasks // import tasks
build = require('./tasks/build'), build = require('./tasks/build'),
buildJS = require('./tasks/build/javascript'),
buildCSS = require('./tasks/build/css'),
buildAssets = require('./tasks/build/assets'),
clean = require('./tasks/clean'), clean = require('./tasks/clean'),
version = require('./tasks/version'), version = require('./tasks/version'),
watch = require('./tasks/watch'), watch = require('./tasks/watch'),
@ -37,7 +41,11 @@ gulp.task('default', false, [
]); ]);
gulp.task('watch', 'Watch for site/theme changes', watch); gulp.task('watch', 'Watch for site/theme changes', watch);
gulp.task('build', 'Builds all files from source', build); gulp.task('build', 'Builds all files from source', build);
gulp.task('build-javascript', 'Builds all javascript from source', buildJS);
gulp.task('build-css', 'Builds all css from source', buildCSS);
gulp.task('build-assets', 'Copies all assets from source', buildAssets);
gulp.task('clean', 'Clean dist folder', clean); gulp.task('clean', 'Clean dist folder', clean);
gulp.task('version', 'Displays current version of Semantic', version); gulp.task('version', 'Displays current version of Semantic', version);

8
src/definitions/elements/container.less

@ -37,7 +37,7 @@
margin-right: @mobileGutter !important; margin-right: @mobileGutter !important;
} }
.ui.grid.container { .ui.grid.container {
width: @mobileGridWidth;
width: @mobileGridWidth !important;
} }
} }
@media only screen and (min-width: @tabletBreakpoint) and (max-width: @largestTabletScreen) { @media only screen and (min-width: @tabletBreakpoint) and (max-width: @largestTabletScreen) {
@ -47,7 +47,7 @@
margin-right: @tabletGutter !important; margin-right: @tabletGutter !important;
} }
.ui.grid.container { .ui.grid.container {
width: @tabletGridWidth;
width: @tabletGridWidth !important;
} }
} }
@media only screen and (min-width: @smallMonitorBreakpoint) and (max-width: @largeMonitorBreakpoint) { @media only screen and (min-width: @smallMonitorBreakpoint) and (max-width: @largeMonitorBreakpoint) {
@ -57,7 +57,7 @@
margin-right: @smallMonitorGutter !important; margin-right: @smallMonitorGutter !important;
} }
.ui.grid.container { .ui.grid.container {
width: @smallMonitorGridWidth;
width: @smallMonitorGridWidth !important;
} }
} }
@media only screen and (min-width: @largeMonitorBreakpoint) { @media only screen and (min-width: @largeMonitorBreakpoint) {
@ -67,7 +67,7 @@
margin-right: @largeMonitorGutter !important; margin-right: @largeMonitorGutter !important;
} }
.ui.grid.container { .ui.grid.container {
width: @largeMonitorGridWidth;
width: @largeMonitorGridWidth !important;
} }
} }

Loading…
Cancel
Save