1 | interface Colors {
|
2 | mongeral: string;
|
3 | regalBlue: string;
|
4 | }
|
5 |
|
6 | export default (Colors: Colors) => (svg: string) => `
|
7 | background-size: 200% 100%;
|
8 | background-image: linear-gradient(to right, ${Colors.mongeral} 50%, ${Colors.regalBlue} 50%);
|
9 | ${svg};
|
10 |
|
11 | svg {
|
12 | margin-left: -16px;
|
13 | margin-right: 6px;
|
14 | }
|
15 |
|
16 | &:hover {
|
17 | background-position: 100%;
|
18 | .link-arrow-elements { transform: translateX(5px); }
|
19 | }
|
20 |
|
21 | .mirrored { transform: rotate(180deg); }
|
22 | `;
|