| 1 |
import Property from "./Property"; |
| 2 |
|
| 3 |
class BorderTopColor extends Property { |
| 4 |
generate() { |
| 5 |
if (this.attributes?.[this.id] != undefined) { |
| 6 |
this.data = { desktop: `border-top-color: ${this.attributes[this.id]};` }; |
| 7 |
} |
| 8 |
if ( |
| 9 |
this.args?.hover && |
| 10 |
this.attributes?.[this.args?.hover] != undefined |
| 11 |
) { |
| 12 |
this.data.hoverDesktop = `border-top-color: ${ |
| 13 |
this.attributes[this.args?.hover] |
| 14 |
};`; |
| 15 |
} |
| 16 |
} |
| 17 |
} |
| 18 |
|
| 19 |
export default BorderTopColor; |
| 20 |
|