You are here

slick.theme--full.css in Slick Carousel 8

Re-used rules for Fullscreen and Fullwidth.

File

css/theme/slick.theme--full.css
View source
  1. /**
  2. * @file
  3. * Re-used rules for Fullscreen and Fullwidth.
  4. */
  5. .slide__constrained {
  6. height: 100%;
  7. min-height: 210px;
  8. padding-top: 10%;
  9. pointer-events: none;
  10. top: 0;
  11. z-index: 2;
  12. }
  13. .slide__constrained::after {
  14. content: "";
  15. display: table;
  16. clear: both;
  17. }
  18. .slide__constrained > .slide__caption {
  19. pointer-events: auto;
  20. }
  21. .slide__constrained .slide__link a {
  22. text-decoration: none;
  23. }
  24. @media (min-width: 64em) {
  25. .slide__constrained > .slide__caption {
  26. position: absolute;
  27. }
  28. .slide--caption--center .slide__constrained > .slide__caption {
  29. top: 50%;
  30. }
  31. .slide--caption--center .slide__constrained > .slide__caption,
  32. .slide--caption--center-top .slide__constrained > .slide__caption {
  33. left: 50%;
  34. padding: 0;
  35. text-align: center;
  36. transform: translateX(-50%);
  37. }
  38. .slide--caption--center .slide__constrained > .slide__caption {
  39. transform: translate(-50%, -50%);
  40. }
  41. .slide--caption--right .slide__constrained > .slide__caption {
  42. left: auto;
  43. right: 0;
  44. }
  45. .slide--caption--top .slide__constrained > .slide__caption,
  46. .slide--caption--bottom .slide__constrained > .slide__caption {
  47. width: 100%;
  48. }
  49. .slide--caption--top .slide__constrained > .slide__caption {
  50. top: 0;
  51. }
  52. .slide--caption--bottom .slide__constrained > .slide__caption {
  53. bottom: 0;
  54. top: auto;
  55. }
  56. .slick--has-arrow-down .slide--caption--bottom .slide__constrained > .slide__caption {
  57. padding-bottom: 80px;
  58. }
  59. .slide--caption--stage-left .slide__constrained > .slide__caption,
  60. .slide--caption--stage-right .slide__constrained > .slide__caption,
  61. .slide--caption--stage-zebra .slide__constrained > .slide__caption {
  62. left: 50%;
  63. padding: 0;
  64. transform: translateX(-50%);
  65. width: 82%;
  66. }
  67. .slide--caption--stage-left .slide__constrained > .slide__caption > .slide__data,
  68. .slide--caption--stage-zebra:nth-child(odd) .slide__constrained > .slide__caption > .slide__data {
  69. margin-right: 56%;
  70. }
  71. .slide--caption--stage-right .slide__constrained > .slide__caption > .slide__data,
  72. .slide--caption--stage-zebra:nth-child(even) .slide__constrained > .slide__caption > .slide__data {
  73. margin-left: 56%;
  74. }
  75. .slide--caption--stage-left .slide__constrained > .slide__caption > .slide__overlay,
  76. .slide--caption--stage-zebra:nth-child(odd) .slide__constrained > .slide__caption > .slide__overlay {
  77. float: right;
  78. width: 52%;
  79. }
  80. .slide--caption--stage-right .slide__constrained > .slide__caption > .slide__overlay,
  81. .slide--caption--stage-zebra:nth-child(even) .slide__constrained > .slide__caption > .slide__overlay {
  82. float: left;
  83. width: 52%;
  84. }
  85. .slide--caption--below .slide__constrained > .slide__caption {
  86. padding: 20px 0;
  87. position: relative;
  88. top: auto;
  89. width: 100%;
  90. }
  91. }