-
Notifications
You must be signed in to change notification settings - Fork 33
/
nova-button.php
61 lines (56 loc) · 2.83 KB
/
nova-button.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<?php
return [
/*
|--------------------------------------------------------------------------
| Global defaults
|--------------------------------------------------------------------------
|
| This package makes a few assumptions for initial global settings, seen below
| Edit these values if you want the defaults to be different globally
| Scroll further down for the general Tailwind-CSS style classes
*/
'defaults' => [
'style' => 'link-primary',
'loadingStyle' => 'link-grey',
'loadingText' => 'Loading',
'successStyle' => 'link-success',
'successText' => 'Success',
'errorStyle' => 'link-danger',
'errorText' => 'Failed',
],
/*
|--------------------------------------------------------------------------
| Style options
|--------------------------------------------------------------------------
|
| This key value pair allows you to override the default nova button styles
| and add entirely new style key value pairs altogether that you need.
| The css classes below are Tailwind-CSS that are come with Nova.
|
*/
'styles' => [
// Fill
'success' => 'cursor-pointer btn btn-default bg-success text-white',
'primary' => 'cursor-pointer btn btn-default btn-primary',
'warning' => 'cursor-pointer btn btn-default bg-warning text-white',
'danger' => 'cursor-pointer btn btn-default bg-danger text-white',
'info' => 'cursor-pointer btn btn-default bg-info text-white',
'grey' => 'cursor-pointer btn btn-default bg-60 text-white',
// Outline
'success-outline' => 'cursor-pointer btn btn-default border border-success text-success',
'primary-outline' => 'cursor-pointer btn btn-default border border-primary text-primary',
'warning-outline' => 'cursor-pointer btn btn-default border border-warning text-warning ',
'danger-outline' => 'cursor-pointer btn btn-default border border-danger text-danger ',
'info-outline' => 'cursor-pointer btn btn-default border border-info text-info ',
'grey-outline' => 'cursor-pointer btn btn-default border border-60 text-80 ',
// Link
'success-link' => 'cursor-pointer dim inline-block text-success font-bold btn btn-link',
'primary-link' => 'cursor-pointer dim inline-block text-primary font-bold btn btn-link',
'warning-link' => 'cursor-pointer dim inline-block text-warning font-bold btn btn-link',
'danger-link' => 'cursor-pointer dim inline-block text-danger font-bold btn btn-link',
'info-link' => 'cursor-pointer dim inline-block text-info font-bold btn btn-link',
'grey-link' => 'cursor-pointer dim inline-block text-80 font-bold btn btn-link',
// Custom
'custom' => 'bg-orange',
],
];