Color.php
1 day ago
InputType.php
1 day ago
Positions.php
1 day ago
Size.php
1 day ago
Variant.php
1 day ago
Size.php
64 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Size constants for the components |
| 4 | * |
| 5 | * @package Tutor\Components |
| 6 | * @author Themeum |
| 7 | * @link https://themeum.com |
| 8 | * @since 4.0.0 |
| 9 | */ |
| 10 | |
| 11 | namespace Tutor\Components\Constants; |
| 12 | |
| 13 | defined( 'ABSPATH' ) || exit; |
| 14 | |
| 15 | /** |
| 16 | * Class for containing size constants |
| 17 | * |
| 18 | * @since 4.0.0 |
| 19 | */ |
| 20 | abstract class Size { |
| 21 | |
| 22 | /** |
| 23 | * Numeric sizes |
| 24 | * |
| 25 | * @since 4.0.0 |
| 26 | * |
| 27 | * @var int |
| 28 | */ |
| 29 | |
| 30 | public const SIZE_16 = 16; |
| 31 | public const SIZE_20 = 20; |
| 32 | public const SIZE_24 = 24; |
| 33 | public const SIZE_32 = 32; |
| 34 | public const SIZE_40 = 40; |
| 35 | public const SIZE_48 = 48; |
| 36 | public const SIZE_56 = 56; |
| 37 | public const SIZE_64 = 64; |
| 38 | public const SIZE_80 = 80; |
| 39 | public const SIZE_104 = 104; |
| 40 | |
| 41 | /** |
| 42 | * Semantic sizes |
| 43 | * |
| 44 | * @since 4.0.0 |
| 45 | * |
| 46 | * @var string |
| 47 | */ |
| 48 | public const X_SMALL = 'x-small'; |
| 49 | public const SMALL = 'small'; |
| 50 | public const MEDIUM = 'medium'; |
| 51 | public const LARGE = 'large'; |
| 52 | |
| 53 | /** |
| 54 | * Shorthand sizes |
| 55 | * |
| 56 | * @since 4.0.0 |
| 57 | * |
| 58 | * @var string |
| 59 | */ |
| 60 | public const SM = 'sm'; |
| 61 | public const MD = 'md'; |
| 62 | public const LG = 'lg'; |
| 63 | } |
| 64 |