_features.scss 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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. /* Features */
  7. .features {
  8. @include vendor('display', 'flex');
  9. @include vendor('flex-wrap', 'wrap');
  10. border-radius: _size(border-radius);
  11. border: solid 1px _palette(border);
  12. background: _palette(border-bg);
  13. margin: 0 0 _size(element-margin) 0;
  14. section {
  15. @include padding(3em, 3em, (0.5em, 0, 0, 4em));
  16. width: 50%;
  17. border-top: solid 1px _palette(border);
  18. position: relative;
  19. &:nth-child(-n + 2) {
  20. border-top-width: 0;
  21. }
  22. &:nth-child(2n) {
  23. border-left: solid 1px _palette(border);
  24. }
  25. .icon {
  26. @include vendor('transition', (
  27. 'opacity #{_duration(activation) * 0.5} ease',
  28. 'transform #{_duration(activation) * 0.5} ease'
  29. ));
  30. @include vendor('transition-delay', '1s');
  31. @include vendor('transform', 'scale(1)');
  32. position: absolute;
  33. left: 3em;
  34. top: 3em;
  35. opacity: 1;
  36. }
  37. @for $i from 1 through _misc(max-features) {
  38. &:nth-child(#{$i}) {
  39. .icon {
  40. @include vendor('transition-delay', '#{(_duration(transition) * 0.75 * $i)}');
  41. }
  42. }
  43. }
  44. }
  45. &.inactive {
  46. section {
  47. .icon {
  48. @include vendor('transform', 'scale(0.5)');
  49. opacity: 0;
  50. }
  51. }
  52. }
  53. @include breakpoint(medium) {
  54. display: block;
  55. section {
  56. border-top-width: 1px !important;
  57. border-left-width: 0 !important;
  58. width: 100%;
  59. &:first-child {
  60. border-top-width: 0 !important;
  61. }
  62. }
  63. }
  64. @include breakpoint(small) {
  65. section {
  66. @include padding(2em, 1.5em, (0.5em, 0, 0, 4em));
  67. .icon {
  68. left: 1.5em;
  69. top: 2em;
  70. }
  71. }
  72. }
  73. @include breakpoint(xsmall) {
  74. section {
  75. @include padding(2em, 1.5em, (0, 0, 0, 0));
  76. .icon {
  77. left: 0;
  78. position: relative;
  79. top: 0;
  80. }
  81. }
  82. }
  83. }