Commit | Line | Data |
---|---|---|
1 | @mixin box($imageSize, $margin: 0) { | |
2 | display: flex; | |
3 | ||
4 | > :first-child fa-icon { | |
5 | left: #{($imageSize - $imageSize * 1.25) / 2}; | |
6 | position: relative; | |
7 | } | |
8 | ||
9 | > :first-child:not(:last-child) { | |
10 | flex: 0 0 $imageSize; | |
11 | margin-right: $margin; | |
12 | } | |
13 | ||
14 | > :last-child { | |
15 | flex: 1 1 auto; | |
16 | overflow: hidden; | |
17 | } | |
18 | } |