_wrapper.scss 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. ///
  2. /// Hyperspace by HTML5 UP
  3. /// html5up.net | @ajlkn
  4. /// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
  5. ///
  6. /* Wrapper */
  7. .wrapper {
  8. position: relative;
  9. > .inner {
  10. @include padding(5em, 5em);
  11. max-width: 100%;
  12. width: _size(inner-width);
  13. @include breakpoint(xlarge) {
  14. @include padding(4em, 4em);
  15. }
  16. @include breakpoint(large) {
  17. width: 100%;
  18. }
  19. @include breakpoint(small) {
  20. @include padding(3em, 2em);
  21. }
  22. }
  23. &.alt {
  24. background-color: _palette(bg-alt);
  25. }
  26. &.style1 {
  27. background-color: _palette(accent1);
  28. }
  29. &.style1-alt {
  30. background-color: _palette(accent1-alt);
  31. }
  32. &.style2 {
  33. background-color: _palette(accent2);
  34. }
  35. &.style2-alt {
  36. background-color: _palette(accent2-alt);
  37. }
  38. &.style3 {
  39. background-color: _palette(accent3);
  40. }
  41. &.style3-alt {
  42. background-color: _palette(accent3-alt);
  43. }
  44. &.fullscreen {
  45. @include vendor('display', 'flex');
  46. @include vendor('flex-direction', 'column');
  47. @include vendor('justify-content', 'center');
  48. min-height: 100vh;
  49. body.is-ie & {
  50. height: 100vh;
  51. }
  52. @include breakpoint(large) {
  53. min-height: calc(100vh - 2.5em);
  54. body.is-ie & {
  55. height: calc(100vh - 2.5em);
  56. }
  57. }
  58. @include breakpoint(small) {
  59. padding: 2em 0;
  60. min-height: 0;
  61. body.is-ie & {
  62. height: auto;
  63. }
  64. }
  65. }
  66. &.fade-up {
  67. > .inner {
  68. @include vendor('transform', 'translateY(0)');
  69. @include vendor('transition', (
  70. 'opacity #{_duration(activation)} ease',
  71. 'transform #{_duration(activation)} ease'
  72. ));
  73. opacity: 1.0;
  74. }
  75. &.inactive,
  76. body.is-loading & {
  77. > .inner {
  78. opacity: 0;
  79. @include vendor('transform', 'translateY(1em)');
  80. }
  81. }
  82. }
  83. &.fade-down {
  84. > .inner {
  85. @include vendor('transform', 'translateY(0)');
  86. @include vendor('transition', (
  87. 'opacity #{_duration(activation)} ease',
  88. 'transform #{_duration(activation)} ease'
  89. ));
  90. opacity: 1.0;
  91. }
  92. &.inactive,
  93. body.is-loading & {
  94. > .inner {
  95. opacity: 0;
  96. @include vendor('transform', 'translateY(-1em)');
  97. }
  98. }
  99. }
  100. &.fade {
  101. > .inner {
  102. @include vendor('transition', (
  103. 'opacity #{_duration(activation)} ease'
  104. ));
  105. opacity: 1.0;
  106. }
  107. &.inactive,
  108. body.is-loading & {
  109. > .inner {
  110. opacity: 0;
  111. }
  112. }
  113. }
  114. }