utility.pcss.css 785 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /**
  2. * @file
  3. * Utility classes.
  4. */
  5. @import "../base/variables.pcss.css";
  6. /*
  7. ie11-autorow
  8. IE11 does not automatically place new rows, which leads to overlapping
  9. content. We can work around this (when we know that each grid item is
  10. going to span the full width) by setting each child to a new row.
  11. */
  12. .ie11-autorow > * {
  13. &:nth-child(1) {
  14. -ms-grid-row: 1;
  15. }
  16. &:nth-child(2) {
  17. -ms-grid-row: 2;
  18. }
  19. &:nth-child(3) {
  20. -ms-grid-row: 3;
  21. }
  22. &:nth-child(4) {
  23. -ms-grid-row: 4;
  24. }
  25. &:nth-child(5) {
  26. -ms-grid-row: 5;
  27. }
  28. &:nth-child(6) {
  29. -ms-grid-row: 6;
  30. }
  31. &:nth-child(7) {
  32. -ms-grid-row: 7;
  33. }
  34. &:nth-child(8) {
  35. -ms-grid-row: 8;
  36. }
  37. &:nth-child(9) {
  38. -ms-grid-row: 9;
  39. }
  40. &:nth-child(10) {
  41. -ms-grid-row: 10;
  42. }
  43. }