123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139 |
- ///
- /// Hyperspace by HTML5 UP
- /// html5up.net | @ajlkn
- /// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
- ///
- /* Wrapper */
- .wrapper {
- position: relative;
- > .inner {
- @include padding(5em, 5em);
- max-width: 100%;
- width: _size(inner-width);
- @include breakpoint(xlarge) {
- @include padding(4em, 4em);
- }
- @include breakpoint(large) {
- width: 100%;
- }
- @include breakpoint(small) {
- @include padding(3em, 2em);
- }
- }
- &.alt {
- background-color: _palette(bg-alt);
- }
- &.style1 {
- background-color: _palette(accent1);
- }
- &.style1-alt {
- background-color: _palette(accent1-alt);
- }
- &.style2 {
- background-color: _palette(accent2);
- }
- &.style2-alt {
- background-color: _palette(accent2-alt);
- }
- &.style3 {
- background-color: _palette(accent3);
- }
- &.style3-alt {
- background-color: _palette(accent3-alt);
- }
- &.fullscreen {
- @include vendor('display', 'flex');
- @include vendor('flex-direction', 'column');
- @include vendor('justify-content', 'center');
- min-height: 100vh;
- body.is-ie & {
- height: 100vh;
- }
- @include breakpoint(large) {
- min-height: calc(100vh - 2.5em);
- body.is-ie & {
- height: calc(100vh - 2.5em);
- }
- }
- @include breakpoint(small) {
- padding: 2em 0;
- min-height: 0;
- body.is-ie & {
- height: auto;
- }
- }
- }
- &.fade-up {
- > .inner {
- @include vendor('transform', 'translateY(0)');
- @include vendor('transition', (
- 'opacity #{_duration(activation)} ease',
- 'transform #{_duration(activation)} ease'
- ));
- opacity: 1.0;
- }
- &.inactive,
- body.is-loading & {
- > .inner {
- opacity: 0;
- @include vendor('transform', 'translateY(1em)');
- }
- }
- }
- &.fade-down {
- > .inner {
- @include vendor('transform', 'translateY(0)');
- @include vendor('transition', (
- 'opacity #{_duration(activation)} ease',
- 'transform #{_duration(activation)} ease'
- ));
- opacity: 1.0;
- }
- &.inactive,
- body.is-loading & {
- > .inner {
- opacity: 0;
- @include vendor('transform', 'translateY(-1em)');
- }
- }
- }
- &.fade {
- > .inner {
- @include vendor('transition', (
- 'opacity #{_duration(activation)} ease'
- ));
- opacity: 1.0;
- }
- &.inactive,
- body.is-loading & {
- > .inner {
- opacity: 0;
- }
- }
- }
- }
|