| 1 |
<?php |
| 2 |
namespace Depicter\Document\Models\Common\Styles; |
| 3 |
|
| 4 |
|
| 5 |
use Depicter\Document\CSS\Breakpoints; |
| 6 |
|
| 7 |
class Height extends States |
| 8 |
{ |
| 9 |
/** |
| 10 |
* style name |
| 11 |
*/ |
| 12 |
const NAME = 'height'; |
| 13 |
|
| 14 |
public function set( $css ) { |
| 15 |
$devices = Breakpoints::names(); |
| 16 |
foreach ( $devices as $device ) { |
| 17 |
if ( !empty( $this->{$device}->value ) ) { |
| 18 |
$css[ $device ][ self::NAME ] = $this->{$device}->value . $this->{$device}->unit; |
| 19 |
} |
| 20 |
} |
| 21 |
|
| 22 |
return $css; |
| 23 |
} |
| 24 |
} |
| 25 |
|