|
288 | 288 | }
|
289 | 289 | }
|
290 | 290 | }
|
| 291 | + & when (@variationTableOverflowing) { |
| 292 | + & when (@variationTableOverflowingShort) { |
| 293 | + .ui.overflowing.table.short { |
| 294 | + max-height: @overflowingMobileMaxHeight * 0.75; |
| 295 | + } |
| 296 | + } |
| 297 | + & when (@variationTableOverflowingVeryShort) { |
| 298 | + .ui.overflowing.table[class*="very short"] { |
| 299 | + max-height: @overflowingMobileMaxHeight * 0.5; |
| 300 | + } |
| 301 | + } |
| 302 | + .ui.overflowing.table { |
| 303 | + max-height: @overflowingMobileMaxHeight; |
| 304 | + } |
| 305 | + & when (@variationTableOverflowingLong) { |
| 306 | + .ui.overflowing.table.long { |
| 307 | + max-height: @overflowingMobileMaxHeight * 2; |
| 308 | + } |
| 309 | + } |
| 310 | + & when (@variationTableOverflowingVeryLong) { |
| 311 | + .ui.overflowing.table[class*="very long"] { |
| 312 | + max-height: @overflowingMobileMaxHeight * 3; |
| 313 | + } |
| 314 | + } |
| 315 | + } |
291 | 316 | }
|
292 | 317 | & when (@variationTableScrolling) {
|
293 | 318 | /*--------------
|
|
461 | 486 | }
|
462 | 487 |
|
463 | 488 | }
|
| 489 | +& when (@variationTableOverflowing) { |
| 490 | + /*-------------- |
| 491 | + Overflowing |
| 492 | + ---------------*/ |
| 493 | + .ui.overflowing.table { |
| 494 | + display: block; |
| 495 | + overflow: auto; |
| 496 | + } |
| 497 | + @media only screen and (min-width: @tabletBreakpoint) { |
| 498 | + & when (@variationTableOverflowingShort) { |
| 499 | + .ui.overflowing.table.short { |
| 500 | + max-height: @overflowingTabletMaxHeight * 0.75; |
| 501 | + } |
| 502 | + } |
| 503 | + & when (@variationTableOverflowingVeryShort) { |
| 504 | + .ui.overflowing.table[class*="very short"] { |
| 505 | + max-height: @overflowingTabletMaxHeight * 0.5; |
| 506 | + } |
| 507 | + } |
| 508 | + .ui.overflowing.table { |
| 509 | + max-height: @overflowingTabletMaxHeight; |
| 510 | + } |
| 511 | + & when (@variationTableOverflowingLong) { |
| 512 | + .ui.overflowing.table.long { |
| 513 | + max-height: @overflowingTabletMaxHeight * 2; |
| 514 | + } |
| 515 | + } |
| 516 | + & when (@variationTableOverflowingVeryLong) { |
| 517 | + .ui.overflowing.table[class*="very long"] { |
| 518 | + max-height: @overflowingTabletMaxHeight * 3; |
| 519 | + } |
| 520 | + } |
| 521 | + } |
| 522 | + @media only screen and (min-width: @computerBreakpoint) { |
| 523 | + & when (@variationTableOverflowingShort) { |
| 524 | + .ui.overflowing.table.short { |
| 525 | + max-height: @overflowingComputerMaxHeight * 0.75; |
| 526 | + } |
| 527 | + } |
| 528 | + & when (@variationTableOverflowingVeryShort) { |
| 529 | + .ui.overflowing.table[class*="very short"] { |
| 530 | + max-height: @overflowingComputerMaxHeight * 0.5; |
| 531 | + } |
| 532 | + } |
| 533 | + .ui.overflowing.table { |
| 534 | + max-height: @overflowingComputerMaxHeight; |
| 535 | + } |
| 536 | + & when (@variationTableOverflowingLong) { |
| 537 | + .ui.overflowing.table.long { |
| 538 | + max-height: @overflowingComputerMaxHeight * 2; |
| 539 | + } |
| 540 | + } |
| 541 | + & when (@variationTableOverflowingVeryLong) { |
| 542 | + .ui.overflowing.table[class*="very long"]{ |
| 543 | + max-height: @overflowingComputerMaxHeight * 3; |
| 544 | + } |
| 545 | + } |
| 546 | + } |
| 547 | + @media only screen and (min-width: @widescreenMonitorBreakpoint) { |
| 548 | + & when (@variationTableOverflowingShort) { |
| 549 | + .ui.overflowing.table.short { |
| 550 | + max-height: @overflowingWidescreenMaxHeight * 0.75; |
| 551 | + } |
| 552 | + } |
| 553 | + & when (@variationTableOverflowingVeryShort) { |
| 554 | + .ui.overflowing.table[class*="very short"] { |
| 555 | + max-height: @overflowingWidescreenMaxHeight * 0.5; |
| 556 | + } |
| 557 | + } |
| 558 | + .ui.overflowing.table { |
| 559 | + max-height: @overflowingWidescreenMaxHeight; |
| 560 | + } |
| 561 | + & when (@variationTableOverflowingLong) { |
| 562 | + .ui.overflowing.table.long { |
| 563 | + max-height: @overflowingWidescreenMaxHeight * 2; |
| 564 | + } |
| 565 | + } |
| 566 | + & when (@variationTableOverflowingVeryLong) { |
| 567 | + .ui.overflowing.table[class*="very long"] { |
| 568 | + max-height: @overflowingWidescreenMaxHeight * 3; |
| 569 | + } |
| 570 | + } |
| 571 | + } |
| 572 | +} |
464 | 573 |
|
465 | 574 |
|
466 | 575 | /*******************************
|
|
1638 | 1747 | }
|
1639 | 1748 | }
|
1640 | 1749 |
|
| 1750 | +& when (@variationTableStuck) { |
| 1751 | + /*-------------- |
| 1752 | + Stuck |
| 1753 | + ---------------*/ |
| 1754 | + |
| 1755 | + .ui.stuck.table:not(.inverted) { |
| 1756 | + background: @stuckBackground; |
| 1757 | + & > thead > tr { |
| 1758 | + background: @stuckHeaderBackground; |
| 1759 | + } |
| 1760 | + & > tbody > tr { |
| 1761 | + background: @stuckBackground; |
| 1762 | + } |
| 1763 | + & > tfoot > tr { |
| 1764 | + background: @stuckFooterBackground; |
| 1765 | + } |
| 1766 | + &.basic when (@variationTableBasic) { |
| 1767 | + & > thead > tr, |
| 1768 | + > tfoot > tr { |
| 1769 | + background: @stuckBackground; |
| 1770 | + } |
| 1771 | + } |
| 1772 | + } |
| 1773 | + .ui.inverted.stuck.table when (@variationTableInverted) { |
| 1774 | + & > thead > tr { |
| 1775 | + background: @invertedStuckHeaderBackground; |
| 1776 | + } |
| 1777 | + & > tbody > tr { |
| 1778 | + background: @invertedStuckBackground; |
| 1779 | + } |
| 1780 | + & > tfoot > tr { |
| 1781 | + background: @invertedStuckFooterBackground; |
| 1782 | + } |
| 1783 | + &.basic when (@variationTableBasic){ |
| 1784 | + & > thead > tr, |
| 1785 | + > tfoot > tr { |
| 1786 | + background: @invertedStuckBackground; |
| 1787 | + } |
| 1788 | + } |
| 1789 | + } |
| 1790 | + & when (@variationTableStuckHead) or (@variationTableStuckFoot) { |
| 1791 | + .ui.head.stuck.table > thead, |
| 1792 | + .ui.foot.stuck.table > tfoot { |
| 1793 | + position: -webkit-sticky; |
| 1794 | + position: sticky; |
| 1795 | + z-index: @stuckZIndex; |
| 1796 | + } |
| 1797 | + } |
| 1798 | + .ui.head.stuck.table when (@variationTableStuckHead) { |
| 1799 | + border-top: 0; |
| 1800 | + & > thead { |
| 1801 | + top: 0; |
| 1802 | + bottom: auto; |
| 1803 | + & > tr:first-child > th { |
| 1804 | + border-top: @cellBorder; |
| 1805 | + } |
| 1806 | + } |
| 1807 | + &.inverted > thead > tr:first-child > th when (@variationTableInverted) { |
| 1808 | + border-top: @invertedCellBorder; |
| 1809 | + } |
| 1810 | + } |
| 1811 | + .ui.foot.stuck.table when (@variationTableStuckFoot) { |
| 1812 | + border-bottom: 0; |
| 1813 | + & > tfoot { |
| 1814 | + top: auto; |
| 1815 | + bottom: 0; |
| 1816 | + & > tr:last-child > td, |
| 1817 | + > tr:last-child > th { |
| 1818 | + border-bottom: @cellBorder; |
| 1819 | + } |
| 1820 | + } |
| 1821 | + & when (@variationTableInverted) { |
| 1822 | + &.inverted > tfoot > tr:first-child > td, |
| 1823 | + &.inverted > tfoot > tr:first-child > th { |
| 1824 | + border-top: @invertedCellBorder; |
| 1825 | + } |
| 1826 | + } |
| 1827 | + } |
| 1828 | + |
| 1829 | + .ui.first.stuck.table when (@variationTableStuckFirst) { |
| 1830 | + border-left: 0; |
| 1831 | + & th:first-child, |
| 1832 | + td:first-child { |
| 1833 | + position: -webkit-sticky; |
| 1834 | + position: sticky; |
| 1835 | + left: 0; |
| 1836 | + border-left: @cellBorder; |
| 1837 | + background: inherit; |
| 1838 | + } |
| 1839 | + & when (@variationTableInverted) { |
| 1840 | + &.inverted th:first-child, |
| 1841 | + &.inverted td:first-child { |
| 1842 | + border-left: @invertedCellBorder; |
| 1843 | + } |
| 1844 | + } |
| 1845 | + } |
| 1846 | + |
| 1847 | + .ui.last.stuck.table when (@variationTableStuckLast) { |
| 1848 | + border-right: 0; |
| 1849 | + & th:last-child, |
| 1850 | + td:last-child { |
| 1851 | + position: -webkit-sticky; |
| 1852 | + position: sticky; |
| 1853 | + right: 0; |
| 1854 | + border-right: @cellBorder; |
| 1855 | + background: inherit; |
| 1856 | + } |
| 1857 | + & when (@variationTableInverted) { |
| 1858 | + &.inverted th:last-child, |
| 1859 | + &.inverted td:last-child { |
| 1860 | + border-right: @invertedCellBorder; |
| 1861 | + } |
| 1862 | + } |
| 1863 | + } |
| 1864 | + & when (@variationTableCelled) { |
| 1865 | + & when (@variationTableStuckFirst) { |
| 1866 | + .ui.celled.first.stuck.table th:first-child, |
| 1867 | + .ui.celled.first.stuck.table td:first-child { |
| 1868 | + border-right: @cellBorder; |
| 1869 | + } |
| 1870 | + } |
| 1871 | + & when (@variationTableStuckLast) { |
| 1872 | + .ui.celled.last.stuck.table th:last-child, |
| 1873 | + .ui.celled.last.stuck.table td:last-child { |
| 1874 | + border-left: @cellBorder; |
| 1875 | + } |
| 1876 | + } |
| 1877 | + & when (@variationTableInverted) { |
| 1878 | + & when (@variationTableStuckFirst) { |
| 1879 | + .ui.inverted.celled.first.stuck.table th:first-child, |
| 1880 | + .ui.inverted.celled.first.stuck.table td:first-child { |
| 1881 | + border-right: @invertedCellBorder; |
| 1882 | + } |
| 1883 | + } |
| 1884 | + & when (@variationTableStuckLast) { |
| 1885 | + .ui.inverted.celled.last.stuck.table th:last-child, |
| 1886 | + .ui.inverted.celled.last.stuck.table td:last-child { |
| 1887 | + border-left: @invertedCellBorder; |
| 1888 | + } |
| 1889 | + } |
| 1890 | + } |
| 1891 | + } |
| 1892 | +} |
| 1893 | + |
1641 | 1894 | /*--------------
|
1642 | 1895 | Sizes
|
1643 | 1896 | ---------------*/
|
|
0 commit comments