Browse Source

Iteration on container

pull/2034/head
jlukic 9 years ago
parent
commit
e4fa1aebe0
2 changed files with 21 additions and 15 deletions
  1. 30
      src/definitions/elements/container.less
  2. 6
      src/themes/default/elements/container.variables

30
src/definitions/elements/container.less

@ -27,36 +27,35 @@
.ui.container { .ui.container {
display: block; display: block;
margin: 0px auto !important;
max-width: @maxWidth; max-width: @maxWidth;
} }
@media only screen and (max-width: (@largestMobileScreen)) {
@media only screen and (max-width: @largestMobileScreen) {
.ui.container { .ui.container {
width: @mobileWidth; width: @mobileWidth;
margin-left: @mobileGutter;
margin-right: @mobileGutter;
margin-left: @mobileGutter !important;
margin-right: @mobileGutter !important;
} }
} }
@media only screen and (min-width: @tabletBreakpoint ) {
@media only screen and (min-width: @tabletBreakpoint) and (max-width: @largestTabletScreen) {
.ui.container { .ui.container {
width: @tabletWidth; width: @tabletWidth;
margin-left: @tabletGutter;
margin-right: @tabletGutter;
margin-left: @tabletGutter !important;
margin-right: @tabletGutter !important;
} }
} }
@media only screen and (min-width: @smallComputerBreakpoint) {
@media only screen and (min-width: @smallComputerBreakpoint) and (max-width: @largeComputerBreakpoint) {
.ui.container { .ui.container {
width: @smallComputerWidth; width: @smallComputerWidth;
margin-left: @smallComputerGutter;
margin-right: @smallComputerGutter;
margin-left: @smallComputerGutter !important;
margin-right: @smallComputerGutter !important;
} }
} }
@media only screen and (min-width: @largeComputerBreakpoint) { @media only screen and (min-width: @largeComputerBreakpoint) {
.ui.container { .ui.container {
width: @largeComputerWidth; width: @largeComputerWidth;
margin-left: @largeComputerGutter;
margin-right: @largeComputerGutter;
margin-left: @largeComputerGutter !important;
margin-right: @largeComputerGutter !important;
} }
} }
@ -69,7 +68,12 @@
.ui.text.container { .ui.text.container {
display: block; display: block;
margin: 0px auto; margin: 0px auto;
width: @textWidth;
max-width: @textWidth;
}
.ui.text.container p {
font-size: @textParagraphSize;
line-height: @textParagraphLineHeight;
} }

6
src/themes/default/elements/container.variables

@ -20,11 +20,13 @@
@largeComputerGutter: auto; @largeComputerGutter: auto;
/* Adjust breakpoints to match fixed width */ /* Adjust breakpoints to match fixed width */
@smallComputerBreakpoint: @smallComputerWidth + 28px;
@largeComputerBreakpoint: @largeComputerWidth + 28px;
@smallComputerBreakpoint: 988px;
@largeComputerBreakpoint: 1228px;
/*------------------- /*-------------------
Types Types
--------------------*/ --------------------*/
@textWidth: 700px; @textWidth: 700px;
@textParagraphSize: @large;
@textParagraphLineHeight: 1.5;
Loading…
Cancel
Save