Browse Source

Adds large screen only and widescreen only grid variations #2467

flex-list
jlukic 9 years ago
parent
commit
bd46b4ce1e
1 changed files with 78 additions and 3 deletions
  1. 81
      src/definitions/collections/grid.less

81
src/definitions/collections/grid.less

@ -1666,7 +1666,7 @@
/* These include arbitrary class repetitions for forced specificity */ /* These include arbitrary class repetitions for forced specificity */
/* Mobile Only Hide */ /* Mobile Only Hide */
@media only screen and ( max-width: @largestMobileScreen ) {
@media only screen and (max-width: @largestMobileScreen) {
.ui.tablet:not(.mobile).only.grid.grid.grid, .ui.tablet:not(.mobile).only.grid.grid.grid,
.ui.grid.grid.grid > [class*="tablet only"].row:not(.mobile), .ui.grid.grid.grid > [class*="tablet only"].row:not(.mobile),
.ui.grid.grid.grid > [class*="tablet only"].column:not(.mobile), .ui.grid.grid.grid > [class*="tablet only"].column:not(.mobile),
@ -1679,9 +1679,21 @@
.ui.grid.grid.grid > .row > [class*="computer only"].column:not(.mobile) { .ui.grid.grid.grid > .row > [class*="computer only"].column:not(.mobile) {
display: none !important; display: none !important;
} }
.ui[class*="large screen only"].grid.grid.grid:not(.mobile),
.ui.grid.grid.grid > [class*="large screen only"].row:not(.mobile),
.ui.grid.grid.grid > [class*="large screen only"].column:not(.mobile),
.ui.grid.grid.grid > .row > [class*="large screen only"].column:not(.mobile) {
display: none !important;
}
.ui[class*="widescreen"].grid.grid.grid:not(.mobile),
.ui.grid.grid.grid > [class*="large screen only"].row:not(.mobile),
.ui.grid.grid.grid > [class*="large screen only"].column:not(.mobile),
.ui.grid.grid.grid > .row > [class*="large screen only"].column:not(.mobile) {
display: none !important;
}
} }
/* Tablet Only Hide */ /* Tablet Only Hide */
@media only screen and (min-width: @tabletBreakpoint ) and (max-width: @largestTabletScreen) {
@media only screen and (min-width: @tabletBreakpoint) and (max-width: @largestTabletScreen) {
.ui[class*="mobile only"].grid.grid.grid:not(.tablet), .ui[class*="mobile only"].grid.grid.grid:not(.tablet),
.ui.grid.grid.grid > [class*="mobile only"].row:not(.tablet), .ui.grid.grid.grid > [class*="mobile only"].row:not(.tablet),
.ui.grid.grid.grid > [class*="mobile only"].column:not(.tablet), .ui.grid.grid.grid > [class*="mobile only"].column:not(.tablet),
@ -1694,10 +1706,72 @@
.ui.grid.grid.grid > .row > [class*="computer only"].column:not(.tablet) { .ui.grid.grid.grid > .row > [class*="computer only"].column:not(.tablet) {
display: none !important; display: none !important;
} }
.ui[class*="large screen only"].grid.grid.grid:not(.mobile),
.ui.grid.grid.grid > [class*="large screen only"].row:not(.mobile),
.ui.grid.grid.grid > [class*="large screen only"].column:not(.mobile),
.ui.grid.grid.grid > .row > [class*="large screen only"].column:not(.mobile) {
display: none !important;
}
.ui[class*="widescreen"].grid.grid.grid:not(.mobile),
.ui.grid.grid.grid > [class*="widescreen only"].row:not(.mobile),
.ui.grid.grid.grid > [class*="widescreen only"].column:not(.mobile),
.ui.grid.grid.grid > .row > [class*="widescreen only"].column:not(.mobile) {
display: none !important;
}
} }
/* Computer Only Hide */ /* Computer Only Hide */
@media only screen and ( min-width: (@computerBreakpoint) ) {
@media only screen and (min-width: @computerBreakpoint) and (max-width: @largestSmallMonitor) {
.ui[class*="mobile only"].grid.grid.grid:not(.computer),
.ui.grid.grid.grid > [class*="mobile only"].row:not(.computer),
.ui.grid.grid.grid > [class*="mobile only"].column:not(.computer),
.ui.grid.grid.grid > .row > [class*="mobile only"].column:not(.computer) {
display: none !important;
}
.ui[class*="tablet only"].grid.grid.grid:not(.computer),
.ui.grid.grid.grid > [class*="tablet only"].row:not(.computer),
.ui.grid.grid.grid > [class*="tablet only"].column:not(.computer),
.ui.grid.grid.grid > .row > [class*="tablet only"].column:not(.computer) {
display: none !important;
}
.ui[class*="large screen only"].grid.grid.grid:not(.mobile),
.ui.grid.grid.grid > [class*="large screen only"].row:not(.mobile),
.ui.grid.grid.grid > [class*="large screen only"].column:not(.mobile),
.ui.grid.grid.grid > .row > [class*="large screen only"].column:not(.mobile) {
display: none !important;
}
.ui[class*="widescreen"].grid.grid.grid:not(.mobile),
.ui.grid.grid.grid > [class*="widescreen only"].row:not(.mobile),
.ui.grid.grid.grid > [class*="widescreen only"].column:not(.mobile),
.ui.grid.grid.grid > .row > [class*="widescreen only"].column:not(.mobile) {
display: none !important;
}
}
/* Large Screen Only Hide */
@media only screen and (min-width: @largeMonitorBreakpoint) and (max-width: @largestLargeMonitor) {
.ui[class*="mobile only"].grid.grid.grid:not(.computer),
.ui.grid.grid.grid > [class*="mobile only"].row:not(.computer),
.ui.grid.grid.grid > [class*="mobile only"].column:not(.computer),
.ui.grid.grid.grid > .row > [class*="mobile only"].column:not(.computer) {
display: none !important;
}
.ui[class*="tablet only"].grid.grid.grid:not(.computer),
.ui.grid.grid.grid > [class*="tablet only"].row:not(.computer),
.ui.grid.grid.grid > [class*="tablet only"].column:not(.computer),
.ui.grid.grid.grid > .row > [class*="tablet only"].column:not(.computer) {
display: none !important;
}
.ui[class*="widescreen"].grid.grid.grid:not(.mobile),
.ui.grid.grid.grid > [class*="widescreen only"].row:not(.mobile),
.ui.grid.grid.grid > [class*="widescreen only"].column:not(.mobile),
.ui.grid.grid.grid > .row > [class*="widescreen only"].column:not(.mobile) {
display: none !important;
}
}
/* Widescreen Only Hide */
@media only screen and (min-width: @widescreenMonitorBreakpoint) {
.ui[class*="mobile only"].grid.grid.grid:not(.computer), .ui[class*="mobile only"].grid.grid.grid:not(.computer),
.ui.grid.grid.grid > [class*="mobile only"].row:not(.computer), .ui.grid.grid.grid > [class*="mobile only"].row:not(.computer),
.ui.grid.grid.grid > [class*="mobile only"].column:not(.computer), .ui.grid.grid.grid > [class*="mobile only"].column:not(.computer),
@ -1712,4 +1786,5 @@
} }
} }
.loadUIOverrides(); .loadUIOverrides();
Loading…
Cancel
Save