|
| 1 | +//----------------------------- |
| 2 | +// Link |
| 3 | +//----------------------------- |
| 4 | + |
| 5 | +@import '../../globals/scss/colors'; |
| 6 | +@import '../../globals/scss/vars'; |
| 7 | +@import '../../globals/scss/layout'; |
| 8 | +@import '../../globals/scss/typography'; |
| 9 | +@import '../../globals/scss/helper-mixins'; |
| 10 | +@import '../../globals/scss/import-once'; |
| 11 | +@import '../../globals/scss/css--reset'; |
| 12 | + |
| 13 | +@include exports('item') { |
| 14 | + .#{$prefix}--item { |
| 15 | + padding: $spacing-lg; |
| 16 | + margin: 0; |
| 17 | + display: flex !important; |
| 18 | + background: var(--ui-02); |
| 19 | + text-align: center; |
| 20 | + flex-direction: column; |
| 21 | + align-items: center; |
| 22 | + justify-content: center; |
| 23 | + |
| 24 | + &--section { |
| 25 | + padding: $spacing-xl 0; |
| 26 | + text-align: left; |
| 27 | + flex-direction: row; |
| 28 | + justify-content: space-between; |
| 29 | + h2 { |
| 30 | + @include typescale('epsilon'); |
| 31 | + } |
| 32 | + p { |
| 33 | + opacity: 0.6; |
| 34 | + @include typescale('caption'); |
| 35 | + } |
| 36 | + .#{$prefix}--empty__icon { |
| 37 | + margin-bottom: 1em; |
| 38 | + display: none; |
| 39 | + svg, |
| 40 | + .svg-inline--fa { |
| 41 | + width: 5rem; |
| 42 | + height: 5rem; |
| 43 | + path { |
| 44 | + fill: $interactive-01; |
| 45 | + } |
| 46 | + margin-bottom: $spacing-xs; |
| 47 | + } |
| 48 | + } |
| 49 | + } |
| 50 | + &--large { |
| 51 | + min-height: 17rem; |
| 52 | + padding: 2rem 0; |
| 53 | + height: 100%; |
| 54 | + width: 100%; |
| 55 | + |
| 56 | + > div { |
| 57 | + margin-top: 0rem; |
| 58 | + } |
| 59 | + |
| 60 | + h2 { |
| 61 | + margin-bottom: $spacing-xs; |
| 62 | + } |
| 63 | + |
| 64 | + p { |
| 65 | + color: var(--ui-05); |
| 66 | + } |
| 67 | + .#{$prefix}--item__button { |
| 68 | + margin-top: $spacing-md; |
| 69 | + .wfp--btn { |
| 70 | + margin: $spacing-2xs; |
| 71 | + } |
| 72 | + } |
| 73 | + } |
| 74 | + |
| 75 | + &--horizontal { |
| 76 | + padding: 1em; |
| 77 | + height: 100%; |
| 78 | + width: 100%; |
| 79 | + flex-direction: row; |
| 80 | + |
| 81 | + text-align: left; |
| 82 | + |
| 83 | + > div { |
| 84 | + margin-top: 0rem; |
| 85 | + } |
| 86 | + |
| 87 | + h2 { |
| 88 | + margin-bottom: $spacing-2xs; |
| 89 | + font-size: 1em; |
| 90 | + } |
| 91 | + |
| 92 | + p { |
| 93 | + color: var(--ui-05); |
| 94 | + } |
| 95 | + .#{$prefix}--item__button { |
| 96 | + .wfp--btn { |
| 97 | + margin: $spacing-2xs; |
| 98 | + } |
| 99 | + } |
| 100 | + } |
| 101 | + .#{$prefix}--item__content { |
| 102 | + flex: 1; |
| 103 | + } |
| 104 | + .#{$prefix}--item__text { |
| 105 | + flex: 1; |
| 106 | + font-size: 0.9em; |
| 107 | + } |
| 108 | + .#{$prefix}--item__subtext { |
| 109 | + color: var(--text-02); |
| 110 | + margin-top: $spacing-2xs; |
| 111 | + font-size: 0.9em; |
| 112 | + } |
| 113 | + .#{$prefix}--item__icon { |
| 114 | + width: 5rem; |
| 115 | + margin-right: 1em; |
| 116 | + img { |
| 117 | + width: 100%; |
| 118 | + } |
| 119 | + } |
| 120 | + } |
| 121 | + |
| 122 | + .#{$prefix}--item__icon { |
| 123 | + svg, |
| 124 | + .svg-inline--fa { |
| 125 | + width: 5rem; |
| 126 | + height: 5rem; |
| 127 | + path { |
| 128 | + fill: $interactive-01; |
| 129 | + } |
| 130 | + margin-bottom: $spacing-xs; |
| 131 | + } |
| 132 | + .#{$prefix}--item--large & { |
| 133 | + padding: 0 2rem; |
| 134 | + //height: 100%; |
| 135 | + img { |
| 136 | + width: 35rem; |
| 137 | + max-width: 100%; |
| 138 | + max-height: 15rem; |
| 139 | + height: auto; |
| 140 | + } |
| 141 | + svg, |
| 142 | + .svg-inline--fa { |
| 143 | + width: 15rem; |
| 144 | + height: 15rem; |
| 145 | + } |
| 146 | + margin-bottom: $spacing-lg; |
| 147 | + } |
| 148 | + } |
| 149 | +} |
0 commit comments