├── .gitattributes
├── .gitignore
├── app
├── commands
│ └── .gitkeep
├── config
│ ├── app.php
│ ├── auth.php
│ ├── cache.php
│ ├── compile.php
│ ├── config.php
│ ├── database.php
│ ├── local
│ │ ├── cache.php
│ │ ├── database.php
│ │ └── session.php
│ ├── mail.php
│ ├── packages
│ │ └── .gitkeep
│ ├── queue.php
│ ├── remote.php
│ ├── session.php
│ ├── testing
│ │ ├── cache.php
│ │ └── session.php
│ ├── view.php
│ └── workbench.php
├── controllers
│ ├── .gitkeep
│ ├── Admin
│ │ └── SeoController.php
│ ├── Api
│ │ └── SearchController.php
│ ├── BaseController.php
│ └── HomeController.php
├── database
│ ├── migrations
│ │ └── .gitkeep
│ ├── production.sqlite
│ └── seeds
│ │ ├── .gitkeep
│ │ └── DatabaseSeeder.php
├── filters.php
├── lang
│ └── en
│ │ ├── pagination.php
│ │ ├── reminders.php
│ │ └── validation.php
├── models
│ ├── Category.php
│ ├── Product.php
│ ├── Review.php
│ ├── Seo.php
│ └── User.php
├── routes.php
├── start
│ ├── artisan.php
│ ├── global.php
│ └── local.php
├── storage
│ ├── .gitignore
│ ├── cache
│ │ └── .gitignore
│ ├── logs
│ │ └── .gitignore
│ ├── meta
│ │ └── .gitignore
│ ├── sessions
│ │ └── .gitignore
│ └── views
│ │ └── .gitignore
├── tests
│ ├── ExampleTest.php
│ └── TestCase.php
└── views
│ ├── admin
│ └── seo
│ │ ├── edit.blade.php
│ │ └── list.blade.php
│ ├── categories
│ └── single.blade.php
│ ├── emails
│ └── auth
│ │ └── reminder.blade.php
│ ├── index.blade.php
│ ├── layout.blade.php
│ ├── partials
│ └── sidebar
│ │ └── categories.blade.php
│ └── products
│ └── single.blade.php
├── artisan
├── bootstrap
├── autoload.php
├── paths.php
└── start.php
├── composer.json
├── install.sql
├── phpunit.xml
├── public
├── .htaccess
├── css
│ └── styles.css
├── img
│ ├── icons
│ │ ├── category-icon.png
│ │ ├── product-1.jpg
│ │ ├── product-2.jpg
│ │ ├── product-3.jpg
│ │ ├── product-4.jpg
│ │ └── product-5.jpg
│ └── spinner.gif
├── index.php
├── js
│ ├── expanding.js
│ ├── jquery.charcounter.js
│ ├── main.js
│ └── starrr.js
├── packages
│ └── .gitkeep
├── robots.txt
└── vendor
│ └── selectize
│ ├── css
│ ├── selectize.bootstrap2.css
│ ├── selectize.bootstrap3.css
│ ├── selectize.css
│ ├── selectize.default.css
│ └── selectize.legacy.css
│ ├── js
│ ├── selectize.js
│ ├── selectize.min.js
│ └── standalone
│ │ ├── selectize.js
│ │ └── selectize.min.js
│ └── less
│ ├── plugins
│ ├── drag_drop.less
│ ├── dropdown_header.less
│ ├── optgroup_columns.less
│ └── remove_button.less
│ ├── selectize.bootstrap2.less
│ ├── selectize.bootstrap3.less
│ ├── selectize.default.less
│ ├── selectize.legacy.less
│ └── selectize.less
├── readme.md
├── server.php
└── shop-search.gif
/.gitattributes:
--------------------------------------------------------------------------------
1 | * text=auto
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | /bootstrap/compiled.php
2 | /vendor
3 | composer.phar
4 | composer.lock
5 | .DS_Store
6 | Thumbs.db
--------------------------------------------------------------------------------
/app/commands/.gitkeep:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/msurguy/laravel-smart-search/e1ecf795793146f93e0b220bf76f454e2f75a765/app/commands/.gitkeep
--------------------------------------------------------------------------------
/app/config/app.php:
--------------------------------------------------------------------------------
1 | false,
17 |
18 | /*
19 | |--------------------------------------------------------------------------
20 | | Application URL
21 | |--------------------------------------------------------------------------
22 | |
23 | | This URL is used by the console to properly generate URLs when using
24 | | the Artisan command line tool. You should set this to the root of
25 | | your application so that it is used when running Artisan tasks.
26 | |
27 | */
28 |
29 | 'url' => 'http://localhost',
30 |
31 | /*
32 | |--------------------------------------------------------------------------
33 | | Application Timezone
34 | |--------------------------------------------------------------------------
35 | |
36 | | Here you may specify the default timezone for your application, which
37 | | will be used by the PHP date and date-time functions. We have gone
38 | | ahead and set this to a sensible default for you out of the box.
39 | |
40 | */
41 |
42 | 'timezone' => 'UTC',
43 |
44 | /*
45 | |--------------------------------------------------------------------------
46 | | Application Locale Configuration
47 | |--------------------------------------------------------------------------
48 | |
49 | | The application locale determines the default locale that will be used
50 | | by the translation service provider. You are free to set this value
51 | | to any of the locales which will be supported by the application.
52 | |
53 | */
54 |
55 | 'locale' => 'en',
56 |
57 | /*
58 | |--------------------------------------------------------------------------
59 | | Encryption Key
60 | |--------------------------------------------------------------------------
61 | |
62 | | This key is used by the Illuminate encrypter service and should be set
63 | | to a random, 32 character string, otherwise these encrypted strings
64 | | will not be safe. Please do this before deploying an application!
65 | |
66 | */
67 |
68 | 'key' => 'SgiePGY4571j2VYRDQlEHaULBdzL27CR',
69 |
70 | /*
71 | |--------------------------------------------------------------------------
72 | | Autoloaded Service Providers
73 | |--------------------------------------------------------------------------
74 | |
75 | | The service providers listed here will be automatically loaded on the
76 | | request to your application. Feel free to add your own services to
77 | | this array to grant expanded functionality to your applications.
78 | |
79 | */
80 |
81 | 'providers' => array(
82 | 'Illuminate\Foundation\Providers\ArtisanServiceProvider',
83 | 'Illuminate\Auth\AuthServiceProvider',
84 | 'Illuminate\Cache\CacheServiceProvider',
85 | 'Illuminate\Session\CommandsServiceProvider',
86 | 'Illuminate\Foundation\Providers\ConsoleSupportServiceProvider',
87 | 'Illuminate\Routing\ControllerServiceProvider',
88 | 'Illuminate\Cookie\CookieServiceProvider',
89 | 'Illuminate\Database\DatabaseServiceProvider',
90 | 'Illuminate\Encryption\EncryptionServiceProvider',
91 | 'Illuminate\Filesystem\FilesystemServiceProvider',
92 | 'Illuminate\Hashing\HashServiceProvider',
93 | 'Illuminate\Html\HtmlServiceProvider',
94 | 'Illuminate\Log\LogServiceProvider',
95 | 'Illuminate\Mail\MailServiceProvider',
96 | 'Illuminate\Database\MigrationServiceProvider',
97 | 'Illuminate\Pagination\PaginationServiceProvider',
98 | 'Illuminate\Queue\QueueServiceProvider',
99 | 'Illuminate\Redis\RedisServiceProvider',
100 | 'Illuminate\Remote\RemoteServiceProvider',
101 | 'Illuminate\Auth\Reminders\ReminderServiceProvider',
102 | 'Illuminate\Database\SeedServiceProvider',
103 | 'Illuminate\Session\SessionServiceProvider',
104 | 'Illuminate\Translation\TranslationServiceProvider',
105 | 'Illuminate\Validation\ValidationServiceProvider',
106 | 'Illuminate\View\ViewServiceProvider',
107 | 'Illuminate\Workbench\WorkbenchServiceProvider',
108 |
109 |
110 | ),
111 |
112 | /*
113 | |--------------------------------------------------------------------------
114 | | Service Provider Manifest
115 | |--------------------------------------------------------------------------
116 | |
117 | | The service provider manifest is used by Laravel to lazy load service
118 | | providers which are not needed for each request, as well to keep a
119 | | list of all of the services. Here, you may set its storage spot.
120 | |
121 | */
122 |
123 | 'manifest' => storage_path().'/meta',
124 |
125 | /*
126 | |--------------------------------------------------------------------------
127 | | Class Aliases
128 | |--------------------------------------------------------------------------
129 | |
130 | | This array of class aliases will be registered when this application
131 | | is started. However, feel free to register as many as you wish as
132 | | the aliases are "lazy" loaded so they don't hinder performance.
133 | |
134 | */
135 |
136 | 'aliases' => array(
137 |
138 | 'App' => 'Illuminate\Support\Facades\App',
139 | 'Artisan' => 'Illuminate\Support\Facades\Artisan',
140 | 'Auth' => 'Illuminate\Support\Facades\Auth',
141 | 'Blade' => 'Illuminate\Support\Facades\Blade',
142 | 'Cache' => 'Illuminate\Support\Facades\Cache',
143 | 'ClassLoader' => 'Illuminate\Support\ClassLoader',
144 | 'Config' => 'Illuminate\Support\Facades\Config',
145 | 'Controller' => 'Illuminate\Routing\Controller',
146 | 'Cookie' => 'Illuminate\Support\Facades\Cookie',
147 | 'Crypt' => 'Illuminate\Support\Facades\Crypt',
148 | 'DB' => 'Illuminate\Support\Facades\DB',
149 | 'Eloquent' => 'Illuminate\Database\Eloquent\Model',
150 | 'Event' => 'Illuminate\Support\Facades\Event',
151 | 'File' => 'Illuminate\Support\Facades\File',
152 | 'Form' => 'Illuminate\Support\Facades\Form',
153 | 'Hash' => 'Illuminate\Support\Facades\Hash',
154 | 'HTML' => 'Illuminate\Support\Facades\HTML',
155 | 'Input' => 'Illuminate\Support\Facades\Input',
156 | 'Lang' => 'Illuminate\Support\Facades\Lang',
157 | 'Log' => 'Illuminate\Support\Facades\Log',
158 | 'Mail' => 'Illuminate\Support\Facades\Mail',
159 | 'Paginator' => 'Illuminate\Support\Facades\Paginator',
160 | 'Password' => 'Illuminate\Support\Facades\Password',
161 | 'Queue' => 'Illuminate\Support\Facades\Queue',
162 | 'Redirect' => 'Illuminate\Support\Facades\Redirect',
163 | 'Redis' => 'Illuminate\Support\Facades\Redis',
164 | 'Request' => 'Illuminate\Support\Facades\Request',
165 | 'Response' => 'Illuminate\Support\Facades\Response',
166 | 'Route' => 'Illuminate\Support\Facades\Route',
167 | 'Schema' => 'Illuminate\Support\Facades\Schema',
168 | 'Seeder' => 'Illuminate\Database\Seeder',
169 | 'Session' => 'Illuminate\Support\Facades\Session',
170 | 'SSH' => 'Illuminate\Support\Facades\SSH',
171 | 'Str' => 'Illuminate\Support\Str',
172 | 'URL' => 'Illuminate\Support\Facades\URL',
173 | 'Validator' => 'Illuminate\Support\Facades\Validator',
174 | 'View' => 'Illuminate\Support\Facades\View',
175 | ),
176 |
177 | );
178 |
--------------------------------------------------------------------------------
/app/config/auth.php:
--------------------------------------------------------------------------------
1 | 'eloquent',
19 |
20 | /*
21 | |--------------------------------------------------------------------------
22 | | Authentication Model
23 | |--------------------------------------------------------------------------
24 | |
25 | | When using the "Eloquent" authentication driver, we need to know which
26 | | Eloquent model should be used to retrieve your users. Of course, it
27 | | is often just the "User" model but you may use whatever you like.
28 | |
29 | */
30 |
31 | 'model' => 'User',
32 |
33 | /*
34 | |--------------------------------------------------------------------------
35 | | Authentication Table
36 | |--------------------------------------------------------------------------
37 | |
38 | | When using the "Database" authentication driver, we need to know which
39 | | table should be used to retrieve your users. We have chosen a basic
40 | | default value but you may easily change it to any table you like.
41 | |
42 | */
43 |
44 | 'table' => 'users',
45 |
46 | /*
47 | |--------------------------------------------------------------------------
48 | | Password Reminder Settings
49 | |--------------------------------------------------------------------------
50 | |
51 | | Here you may set the settings for password reminders, including a view
52 | | that should be used as your password reminder e-mail. You will also
53 | | be able to set the name of the table that holds the reset tokens.
54 | |
55 | | The "expire" time is the number of minutes that the reminder should be
56 | | considered valid. This security feature keeps tokens short-lived so
57 | | they have less time to be guessed. You may change this as needed.
58 | |
59 | */
60 |
61 | 'reminder' => array(
62 |
63 | 'email' => 'emails.auth.reminder',
64 |
65 | 'table' => 'password_reminders',
66 |
67 | 'expire' => 60,
68 |
69 | ),
70 |
71 | );
--------------------------------------------------------------------------------
/app/config/cache.php:
--------------------------------------------------------------------------------
1 | 'redis',
19 |
20 | /*
21 | |--------------------------------------------------------------------------
22 | | File Cache Location
23 | |--------------------------------------------------------------------------
24 | |
25 | | When using the "file" cache driver, we need a location where the cache
26 | | files may be stored. A sensible default has been specified, but you
27 | | are free to change it to any other place on disk that you desire.
28 | |
29 | */
30 |
31 | 'path' => storage_path().'/cache',
32 |
33 | /*
34 | |--------------------------------------------------------------------------
35 | | Database Cache Connection
36 | |--------------------------------------------------------------------------
37 | |
38 | | When using the "database" cache driver you may specify the connection
39 | | that should be used to store the cached items. When this option is
40 | | null the default database connection will be utilized for cache.
41 | |
42 | */
43 |
44 | 'connection' => null,
45 |
46 | /*
47 | |--------------------------------------------------------------------------
48 | | Database Cache Table
49 | |--------------------------------------------------------------------------
50 | |
51 | | When using the "database" cache driver we need to know the table that
52 | | should be used to store the cached items. A default table name has
53 | | been provided but you're free to change it however you deem fit.
54 | |
55 | */
56 |
57 | 'table' => 'cache',
58 |
59 | /*
60 | |--------------------------------------------------------------------------
61 | | Memcached Servers
62 | |--------------------------------------------------------------------------
63 | |
64 | | Now you may specify an array of your Memcached servers that should be
65 | | used when utilizing the Memcached cache driver. All of the servers
66 | | should contain a value for "host", "port", and "weight" options.
67 | |
68 | */
69 |
70 | 'memcached' => array(
71 |
72 | array('host' => '127.0.0.1', 'port' => 11211, 'weight' => 100),
73 |
74 | ),
75 |
76 | /*
77 | |--------------------------------------------------------------------------
78 | | Cache Key Prefix
79 | |--------------------------------------------------------------------------
80 | |
81 | | When utilizing a RAM based store such as APC or Memcached, there might
82 | | be other applications utilizing the same cache. So, we'll specify a
83 | | value to get prefixed to all our keys so we can avoid collisions.
84 | |
85 | */
86 |
87 | 'prefix' => 'shop',
88 |
89 | );
--------------------------------------------------------------------------------
/app/config/compile.php:
--------------------------------------------------------------------------------
1 | array(
7 | 'products' => 'Products',
8 | 'categories' => 'Categories',
9 | ),
10 | );
--------------------------------------------------------------------------------
/app/config/database.php:
--------------------------------------------------------------------------------
1 | PDO::FETCH_CLASS,
17 |
18 | /*
19 | |--------------------------------------------------------------------------
20 | | Default Database Connection Name
21 | |--------------------------------------------------------------------------
22 | |
23 | | Here you may specify which of the database connections below you wish
24 | | to use as your default connection for all database work. Of course
25 | | you may use many connections at once using the Database library.
26 | |
27 | */
28 |
29 | 'default' => 'mysql',
30 |
31 | /*
32 | |--------------------------------------------------------------------------
33 | | Database Connections
34 | |--------------------------------------------------------------------------
35 | |
36 | | Here are each of the database connections setup for your application.
37 | | Of course, examples of configuring each database platform that is
38 | | supported by Laravel is shown below to make development simple.
39 | |
40 | |
41 | | All database work in Laravel is done through the PHP PDO facilities
42 | | so make sure you have the driver for your particular database of
43 | | choice installed on your machine before you begin development.
44 | |
45 | */
46 |
47 | 'connections' => array(
48 |
49 | 'sqlite' => array(
50 | 'driver' => 'sqlite',
51 | 'database' => __DIR__.'/../database/production.sqlite',
52 | 'prefix' => '',
53 | ),
54 |
55 | 'mysql' => array(
56 | 'driver' => 'mysql',
57 | 'host' => getenv('db_host'),
58 | 'database' => getenv('db_name'),
59 | 'username' => getenv('db_username'),
60 | 'password' => getenv('db_password'),
61 | 'charset' => 'utf8',
62 | 'collation' => 'utf8_unicode_ci',
63 | 'prefix' => '',
64 | ),
65 |
66 | 'pgsql' => array(
67 | 'driver' => 'pgsql',
68 | 'host' => 'localhost',
69 | 'database' => 'database',
70 | 'username' => 'root',
71 | 'password' => '',
72 | 'charset' => 'utf8',
73 | 'prefix' => '',
74 | 'schema' => 'public',
75 | ),
76 |
77 | 'sqlsrv' => array(
78 | 'driver' => 'sqlsrv',
79 | 'host' => 'localhost',
80 | 'database' => 'database',
81 | 'username' => 'root',
82 | 'password' => '',
83 | 'prefix' => '',
84 | ),
85 |
86 | ),
87 |
88 | /*
89 | |--------------------------------------------------------------------------
90 | | Migration Repository Table
91 | |--------------------------------------------------------------------------
92 | |
93 | | This table keeps track of all the migrations that have already run for
94 | | your application. Using this information, we can determine which of
95 | | the migrations on disk haven't actually been run in the database.
96 | |
97 | */
98 |
99 | 'migrations' => 'migrations',
100 |
101 | /*
102 | |--------------------------------------------------------------------------
103 | | Redis Databases
104 | |--------------------------------------------------------------------------
105 | |
106 | | Redis is an open source, fast, and advanced key-value store that also
107 | | provides a richer set of commands than a typical key-value systems
108 | | such as APC or Memcached. Laravel makes it easy to dig right in.
109 | |
110 | */
111 |
112 |
113 | 'redis' => array(
114 |
115 | 'cluster' => false,
116 |
117 | 'default' => array(
118 | 'host' => '127.0.0.1',
119 | 'port' => 6379,
120 | 'database' => 0,
121 | ),
122 |
123 | ),
124 |
125 | );
126 |
--------------------------------------------------------------------------------
/app/config/local/cache.php:
--------------------------------------------------------------------------------
1 | 'file',
5 | );
--------------------------------------------------------------------------------
/app/config/local/database.php:
--------------------------------------------------------------------------------
1 | array(
6 |
7 | 'mysql' => array(
8 | 'driver' => 'mysql',
9 | 'host' => 'localhost',
10 | 'database' => 'shop-search',
11 | 'username' => 'root',
12 | 'password' => 'root',
13 | 'charset' => 'utf8',
14 | 'collation' => 'utf8_unicode_ci',
15 | 'prefix' => '',
16 | )
17 | )
18 | );
19 |
--------------------------------------------------------------------------------
/app/config/local/session.php:
--------------------------------------------------------------------------------
1 | 'native',
6 |
7 | );
--------------------------------------------------------------------------------
/app/config/mail.php:
--------------------------------------------------------------------------------
1 | 'smtp',
19 |
20 | /*
21 | |--------------------------------------------------------------------------
22 | | SMTP Host Address
23 | |--------------------------------------------------------------------------
24 | |
25 | | Here you may provide the host address of the SMTP server used by your
26 | | applications. A default option is provided that is compatible with
27 | | the Postmark mail service, which will provide reliable delivery.
28 | |
29 | */
30 |
31 | 'host' => 'smtp.mailgun.org',
32 |
33 | /*
34 | |--------------------------------------------------------------------------
35 | | SMTP Host Port
36 | |--------------------------------------------------------------------------
37 | |
38 | | This is the SMTP port used by your application to delivery e-mails to
39 | | users of your application. Like the host we have set this value to
40 | | stay compatible with the Postmark e-mail application by default.
41 | |
42 | */
43 |
44 | 'port' => 587,
45 |
46 | /*
47 | |--------------------------------------------------------------------------
48 | | Global "From" Address
49 | |--------------------------------------------------------------------------
50 | |
51 | | You may wish for all e-mails sent by your application to be sent from
52 | | the same address. Here, you may specify a name and address that is
53 | | used globally for all e-mails that are sent by your application.
54 | |
55 | */
56 |
57 | 'from' => array('address' => null, 'name' => null),
58 |
59 | /*
60 | |--------------------------------------------------------------------------
61 | | E-Mail Encryption Protocol
62 | |--------------------------------------------------------------------------
63 | |
64 | | Here you may specify the encryption protocol that should be used when
65 | | the application send e-mail messages. A sensible default using the
66 | | transport layer security protocol should provide great security.
67 | |
68 | */
69 |
70 | 'encryption' => 'tls',
71 |
72 | /*
73 | |--------------------------------------------------------------------------
74 | | SMTP Server Username
75 | |--------------------------------------------------------------------------
76 | |
77 | | If your SMTP server requires a username for authentication, you should
78 | | set it here. This will get used to authenticate with your server on
79 | | connection. You may also set the "password" value below this one.
80 | |
81 | */
82 |
83 | 'username' => null,
84 |
85 | /*
86 | |--------------------------------------------------------------------------
87 | | SMTP Server Password
88 | |--------------------------------------------------------------------------
89 | |
90 | | Here you may set the password required by your SMTP server to send out
91 | | messages from your application. This will be given to the server on
92 | | connection so that the application will be able to send messages.
93 | |
94 | */
95 |
96 | 'password' => null,
97 |
98 | /*
99 | |--------------------------------------------------------------------------
100 | | Sendmail System Path
101 | |--------------------------------------------------------------------------
102 | |
103 | | When using the "sendmail" driver to send e-mails, we will need to know
104 | | the path to where Sendmail lives on this server. A default path has
105 | | been provided here, which will work well on most of your systems.
106 | |
107 | */
108 |
109 | 'sendmail' => '/usr/sbin/sendmail -bs',
110 |
111 | /*
112 | |--------------------------------------------------------------------------
113 | | Mail "Pretend"
114 | |--------------------------------------------------------------------------
115 | |
116 | | When this option is enabled, e-mail will not actually be sent over the
117 | | web and will instead be written to your application's logs files so
118 | | you may inspect the message. This is great for local development.
119 | |
120 | */
121 |
122 | 'pretend' => false,
123 |
124 | );
--------------------------------------------------------------------------------
/app/config/packages/.gitkeep:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/msurguy/laravel-smart-search/e1ecf795793146f93e0b220bf76f454e2f75a765/app/config/packages/.gitkeep
--------------------------------------------------------------------------------
/app/config/queue.php:
--------------------------------------------------------------------------------
1 | 'sync',
19 |
20 | 'failed' => array(
21 | 'database' => 'mysql', 'table' => 'failed_jobs',
22 | ),
23 |
24 | /*
25 | |--------------------------------------------------------------------------
26 | | Queue Connections
27 | |--------------------------------------------------------------------------
28 | |
29 | | Here you may configure the connection information for each server that
30 | | is used by your application. A default configuration has been added
31 | | for each back-end shipped with Laravel. You are free to add more.
32 | |
33 | */
34 |
35 | 'connections' => array(
36 |
37 | 'sync' => array(
38 | 'driver' => 'sync',
39 | ),
40 |
41 | 'beanstalkd' => array(
42 | 'driver' => 'beanstalkd',
43 | 'host' => 'localhost',
44 | 'queue' => 'default',
45 | ),
46 |
47 | 'sqs' => array(
48 | 'driver' => 'sqs',
49 | 'key' => 'your-public-key',
50 | 'secret' => 'your-secret-key',
51 | 'queue' => 'your-queue-url',
52 | 'region' => 'us-east-1',
53 | ),
54 |
55 | 'iron' => array(
56 | 'driver' => 'iron',
57 | 'project' => 'your-project-id',
58 | 'token' => 'your-token',
59 | 'queue' => 'your-queue-name',
60 | ),
61 |
62 | ),
63 |
64 | );
65 |
--------------------------------------------------------------------------------
/app/config/remote.php:
--------------------------------------------------------------------------------
1 | 'production',
17 |
18 | /*
19 | |--------------------------------------------------------------------------
20 | | Remote Server Connections
21 | |--------------------------------------------------------------------------
22 | |
23 | | These are the servers that will be accessible via the SSH task runner
24 | | facilities of Laravel. This feature radically simplifies executing
25 | | tasks on your servers, such as deploying out these applications.
26 | |
27 | */
28 |
29 | 'connections' => array(
30 |
31 | 'production' => array(
32 | 'host' => '',
33 | 'username' => '',
34 | 'password' => '',
35 | 'key' => '',
36 | 'keyphrase' => '',
37 | 'root' => '/var/www',
38 | ),
39 |
40 | ),
41 |
42 | /*
43 | |--------------------------------------------------------------------------
44 | | Remote Server Groups
45 | |--------------------------------------------------------------------------
46 | |
47 | | Here you may list connections under a single group name, which allows
48 | | you to easily access all of the servers at once using a short name
49 | | that is extremely easy to remember, such as "web" or "database".
50 | |
51 | */
52 |
53 | 'groups' => array(
54 |
55 | 'web' => array('production')
56 |
57 | ),
58 |
59 | );
--------------------------------------------------------------------------------
/app/config/session.php:
--------------------------------------------------------------------------------
1 | 'redis',
20 |
21 | /*
22 | |--------------------------------------------------------------------------
23 | | Session Lifetime
24 | |--------------------------------------------------------------------------
25 | |
26 | | Here you may specify the number of minutes that you wish the session
27 | | to be allowed to remain idle before it expires. If you want them
28 | | to immediately expire when the browser closes, set it to zero.
29 | |
30 | */
31 |
32 | 'lifetime' => 180,
33 |
34 | /*
35 | |--------------------------------------------------------------------------
36 | | Session File Location
37 | |--------------------------------------------------------------------------
38 | |
39 | | When using the native session driver, we need a location where session
40 | | files may be stored. A default has been set for you but a different
41 | | location may be specified. This is only needed for file sessions.
42 | |
43 | */
44 |
45 | 'files' => storage_path().'/sessions',
46 |
47 | /*
48 | |--------------------------------------------------------------------------
49 | | Session Database Connection
50 | |--------------------------------------------------------------------------
51 | |
52 | | When using the "database" session driver, you may specify the database
53 | | connection that should be used to manage your sessions. This should
54 | | correspond to a connection in your "database" configuration file.
55 | |
56 | */
57 |
58 | 'connection' => null,
59 |
60 | /*
61 | |--------------------------------------------------------------------------
62 | | Session Database Table
63 | |--------------------------------------------------------------------------
64 | |
65 | | When using the "database" session driver, you may specify the table we
66 | | should use to manage the sessions. Of course, a sensible default is
67 | | provided for you; however, you are free to change this as needed.
68 | |
69 | */
70 |
71 | 'table' => 'sessions',
72 |
73 | /*
74 | |--------------------------------------------------------------------------
75 | | Session Sweeping Lottery
76 | |--------------------------------------------------------------------------
77 | |
78 | | Some session drivers must manually sweep their storage location to get
79 | | rid of old sessions from storage. Here are the chances that it will
80 | | happen on a given request. By default, the odds are 2 out of 100.
81 | |
82 | */
83 |
84 | 'lottery' => array(2, 100),
85 |
86 | /*
87 | |--------------------------------------------------------------------------
88 | | Session Cookie Name
89 | |--------------------------------------------------------------------------
90 | |
91 | | Here you may change the name of the cookie used to identify a session
92 | | instance by ID. The name specified here will get used every time a
93 | | new session cookie is created by the framework for every driver.
94 | |
95 | */
96 |
97 | 'cookie' => 'shop_session',
98 |
99 | /*
100 | |--------------------------------------------------------------------------
101 | | Session Cookie Path
102 | |--------------------------------------------------------------------------
103 | |
104 | | The session cookie path determines the path for which the cookie will
105 | | be regarded as available. Typically, this will be the root path of
106 | | your application but you are free to change this when necessary.
107 | |
108 | */
109 |
110 | 'path' => '/',
111 |
112 | /*
113 | |--------------------------------------------------------------------------
114 | | Session Cookie Domain
115 | |--------------------------------------------------------------------------
116 | |
117 | | Here you may change the domain of the cookie used to identify a session
118 | | in your application. This will determine which domains the cookie is
119 | | available to in your application. A sensible default has been set.
120 | |
121 | */
122 |
123 | 'domain' => null,
124 |
125 | 'expire_on_close' => false,
126 |
127 | );
--------------------------------------------------------------------------------
/app/config/testing/cache.php:
--------------------------------------------------------------------------------
1 | 'array',
19 |
20 | );
--------------------------------------------------------------------------------
/app/config/testing/session.php:
--------------------------------------------------------------------------------
1 | 'array',
20 |
21 | );
--------------------------------------------------------------------------------
/app/config/view.php:
--------------------------------------------------------------------------------
1 | array(__DIR__.'/../views'),
17 |
18 | /*
19 | |--------------------------------------------------------------------------
20 | | Pagination View
21 | |--------------------------------------------------------------------------
22 | |
23 | | This view will be used to render the pagination link output, and can
24 | | be easily customized here to show any view you like. A clean view
25 | | compatible with Twitter's Bootstrap is given to you by default.
26 | |
27 | */
28 |
29 | // Bootstrap 3 paginator
30 | 'pagination' => 'pagination::slider-3',
31 |
32 | );
33 |
--------------------------------------------------------------------------------
/app/config/workbench.php:
--------------------------------------------------------------------------------
1 | '',
17 |
18 | /*
19 | |--------------------------------------------------------------------------
20 | | Workbench Author E-Mail Address
21 | |--------------------------------------------------------------------------
22 | |
23 | | Like the option above, your e-mail address is used when generating new
24 | | workbench packages. The e-mail is placed in your composer.json file
25 | | automatically after the package is created by the workbench tool.
26 | |
27 | */
28 |
29 | 'email' => '',
30 |
31 | );
--------------------------------------------------------------------------------
/app/controllers/.gitkeep:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/msurguy/laravel-smart-search/e1ecf795793146f93e0b220bf76f454e2f75a765/app/controllers/.gitkeep
--------------------------------------------------------------------------------
/app/controllers/Admin/SeoController.php:
--------------------------------------------------------------------------------
1 | type = Input::get('type','products');
11 | }
12 |
13 | public function index()
14 | {
15 | switch ($this->type) {
16 | case 'categories':
17 | $list = Category::with('seo')->get(array('id','name'));
18 | break;
19 | default:
20 | $list = Product::with('seo')->get(array('id','name'));
21 | break;
22 | }
23 |
24 | $this->layout->content = View::make('admin.seo.list', array('type' => $this->type, 'list' => $list));
25 | }
26 |
27 | public function create()
28 | {
29 | $itemID = Input::get('id');
30 | $item = $this->getItem($this->type, $itemID);
31 | $this->layout->content = View::make('admin.seo.edit', array('type' => $this->type, 'item'=>$item));
32 | }
33 |
34 | public function store()
35 | {
36 | $itemID = Input::get('id');
37 |
38 | $item = $this->getItem($this->type, $itemID);
39 |
40 | $seo = new Seo;
41 | $seo->updateFromInput();
42 | $item->seo()->save($seo);
43 |
44 | return Redirect::to('admin/seo/'.$seo->id.'/edit?type='.$this->type.'&id='.$itemID)->with('seo_created', true);
45 | }
46 |
47 | public function edit($id)
48 | {
49 | $itemID = Input::get('id');
50 | $item = $this->getItem($this->type, $itemID);
51 | $seo = Seo::find($id);
52 |
53 | $this->layout->content = View::make('admin.seo.edit', array('type' => $this->type, 'seo' => $seo,'item'=>$item));
54 | }
55 |
56 | public function update($id)
57 | {
58 | $seo = Seo::find($id);
59 |
60 | $itemID = Input::get('id');
61 |
62 | $seo->updateFromInput();
63 |
64 | return Redirect::to('admin/seo/'.$id.'/edit?type='.$this->type.'&id='.$itemID)->with('seo_updated', true);;
65 | }
66 |
67 | public function getItem($type, $itemID)
68 | {
69 | switch ($type) {
70 | case 'categories':
71 | $item = Category::whereId($itemID)->get(array('id','name'))->first();
72 | break;
73 | default:
74 | $item = Product::whereId($itemID)->get(array('id','name'))->first();
75 | break;
76 | }
77 |
78 | return $item;
79 | }
80 |
81 | }
--------------------------------------------------------------------------------
/app/controllers/Api/SearchController.php:
--------------------------------------------------------------------------------
1 | & $item) {
14 | $item[$element] = $type;
15 | }
16 | return $data;
17 | }
18 |
19 | public function appendURL($data, $prefix)
20 | {
21 | // operate on the item passed by reference, adding the url based on slug
22 | foreach ($data as $key => & $item) {
23 | $item['url'] = url($prefix.'/'.$item['slug']);
24 | }
25 | return $data;
26 | }
27 |
28 | public function index()
29 | {
30 | $query = e(Input::get('q',''));
31 |
32 | if(!$query && $query == '') return Response::json(array(), 400);
33 |
34 | $products = Product::where('published', true)
35 | ->where('name','like','%'.$query.'%')
36 | ->orderBy('name','asc')
37 | ->take(5)
38 | ->get(array('slug','name','icon'))->toArray();
39 |
40 | $categories = Category::where('name','like','%'.$query.'%')
41 | ->has('products')
42 | ->take(5)
43 | ->get(array('slug', 'name'))
44 | ->toArray();
45 |
46 | // Data normalization
47 | $categories = $this->appendValue($categories, url('img/icons/category-icon.png'),'icon');
48 |
49 | $products = $this->appendURL($products, 'products');
50 | $categories = $this->appendURL($categories, 'categories');
51 |
52 | // Add type of data to each item of each set of results
53 | $products = $this->appendValue($products, 'product', 'class');
54 | $categories = $this->appendValue($categories, 'category', 'class');
55 |
56 | // Merge all data into one array
57 | $data = array_merge($products, $categories);
58 |
59 | return Response::json(array(
60 | 'data'=>$data
61 | ));
62 | }
63 | }
--------------------------------------------------------------------------------
/app/controllers/BaseController.php:
--------------------------------------------------------------------------------
1 | layout))
13 | {
14 | $this->layout = View::make($this->layout);
15 | }
16 | }
17 |
18 | }
--------------------------------------------------------------------------------
/app/controllers/HomeController.php:
--------------------------------------------------------------------------------
1 | call('UserTableSeeder');
15 | }
16 |
17 | }
--------------------------------------------------------------------------------
/app/filters.php:
--------------------------------------------------------------------------------
1 | '« Previous',
17 |
18 | 'next' => 'Next »',
19 |
20 | );
--------------------------------------------------------------------------------
/app/lang/en/reminders.php:
--------------------------------------------------------------------------------
1 | "Passwords must be six characters and match the confirmation.",
17 |
18 | "user" => "We can't find a user with that e-mail address.",
19 |
20 | "token" => "This password reset token is invalid.",
21 |
22 | );
--------------------------------------------------------------------------------
/app/lang/en/validation.php:
--------------------------------------------------------------------------------
1 | "The :attribute must be accepted.",
17 | "active_url" => "The :attribute is not a valid URL.",
18 | "after" => "The :attribute must be a date after :date.",
19 | "alpha" => "The :attribute may only contain letters.",
20 | "alpha_dash" => "The :attribute may only contain letters, numbers, and dashes.",
21 | "alpha_num" => "The :attribute may only contain letters and numbers.",
22 | "array" => "The :attribute must be an array.",
23 | "before" => "The :attribute must be a date before :date.",
24 | "between" => array(
25 | "numeric" => "The :attribute must be between :min - :max.",
26 | "file" => "The :attribute must be between :min - :max kilobytes.",
27 | "string" => "The :attribute must be between :min - :max characters.",
28 | "array" => "The :attribute must have between :min - :max items.",
29 | ),
30 | "confirmed" => "The :attribute confirmation does not match.",
31 | "date" => "The :attribute is not a valid date.",
32 | "date_format" => "The :attribute does not match the format :format.",
33 | "different" => "The :attribute and :other must be different.",
34 | "digits" => "The :attribute must be :digits digits.",
35 | "digits_between" => "The :attribute must be between :min and :max digits.",
36 | "email" => "The :attribute format is invalid.",
37 | "exists" => "The selected :attribute is invalid.",
38 | "image" => "The :attribute must be an image.",
39 | "in" => "The selected :attribute is invalid.",
40 | "integer" => "The :attribute must be an integer.",
41 | "ip" => "The :attribute must be a valid IP address.",
42 | "max" => array(
43 | "numeric" => "The :attribute may not be greater than :max.",
44 | "file" => "The :attribute may not be greater than :max kilobytes.",
45 | "string" => "The :attribute may not be greater than :max characters.",
46 | "array" => "The :attribute may not have more than :max items.",
47 | ),
48 | "mimes" => "The :attribute must be a file of type: :values.",
49 | "min" => array(
50 | "numeric" => "The :attribute must be at least :min.",
51 | "file" => "The :attribute must be at least :min kilobytes.",
52 | "string" => "The :attribute must be at least :min characters.",
53 | "array" => "The :attribute must have at least :min items.",
54 | ),
55 | "not_in" => "The selected :attribute is invalid.",
56 | "numeric" => "The :attribute must be a number.",
57 | "regex" => "The :attribute format is invalid.",
58 | "required" => "The :attribute field is required.",
59 | "required_if" => "The :attribute field is required when :other is :value.",
60 | "required_with" => "The :attribute field is required when :values is present.",
61 | "required_without" => "The :attribute field is required when :values is not present.",
62 | "same" => "The :attribute and :other must match.",
63 | "size" => array(
64 | "numeric" => "The :attribute must be :size.",
65 | "file" => "The :attribute must be :size kilobytes.",
66 | "string" => "The :attribute must be :size characters.",
67 | "array" => "The :attribute must contain :size items.",
68 | ),
69 | "unique" => "The :attribute has already been taken.",
70 | "url" => "The :attribute format is invalid.",
71 |
72 | /*
73 | |--------------------------------------------------------------------------
74 | | Custom Validation Language Lines
75 | |--------------------------------------------------------------------------
76 | |
77 | | Here you may specify custom validation messages for attributes using the
78 | | convention "attribute.rule" to name the lines. This makes it quick to
79 | | specify a specific custom language line for a given attribute rule.
80 | |
81 | */
82 |
83 | 'custom' => array(),
84 |
85 | /*
86 | |--------------------------------------------------------------------------
87 | | Custom Validation Attributes
88 | |--------------------------------------------------------------------------
89 | |
90 | | The following language lines are used to swap attribute place-holders
91 | | with something more reader friendly such as E-Mail Address instead
92 | | of "email". This simply helps us make messages a little cleaner.
93 | |
94 | */
95 |
96 | 'attributes' => array(),
97 |
98 | );
99 |
--------------------------------------------------------------------------------
/app/models/Category.php:
--------------------------------------------------------------------------------
1 | belongsToMany('Product');
8 | }
9 |
10 | public function seo()
11 | {
12 | return $this->morphMany('Seo', 'seoble');
13 | }
14 | }
--------------------------------------------------------------------------------
/app/models/Product.php:
--------------------------------------------------------------------------------
1 | hasMany('Review');
8 | }
9 |
10 | public function categories()
11 | {
12 | return $this->belongsToMany('Category');
13 | }
14 |
15 | public function seo()
16 | {
17 | return $this->morphMany('Seo', 'seoble');
18 | }
19 |
20 | public function getIconAttribute()
21 | {
22 | return $this->attributes['icon'] ? url($this->attributes['icon']) : 'http://placehold.it/20x20';
23 | }
24 |
25 | // The way average rating is calculated (and stored) is by getting an average of all ratings,
26 | // storing the calculated value in the rating_cache column (so that we don't have to do calculations later)
27 | // and incrementing the rating_count column by 1
28 |
29 | public function recalculateRating($rating)
30 | {
31 | $reviews = $this->reviews()->notSpam()->approved();
32 | $avgRating = $reviews->avg('rating');
33 | $this->rating_cache = round($avgRating,1);
34 | $this->rating_count = $reviews->count();
35 | $this->save();
36 | }
37 | }
--------------------------------------------------------------------------------
/app/models/Review.php:
--------------------------------------------------------------------------------
1 | 'required|min:10',
11 | 'rating'=>'required|integer|between:1,5'
12 | );
13 | }
14 |
15 | // Relationships
16 | public function user()
17 | {
18 | return $this->belongsTo('User');
19 | }
20 |
21 | public function product()
22 | {
23 | return $this->belongsTo('Product');
24 | }
25 |
26 | // Scopes
27 | public function scopeApproved($query)
28 | {
29 | return $query->where('approved', true);
30 | }
31 |
32 | public function scopeSpam($query)
33 | {
34 | return $query->where('spam', true);
35 | }
36 |
37 | public function scopeNotSpam($query)
38 | {
39 | return $query->where('spam', false);
40 | }
41 |
42 | // Attribute presenters
43 | public function getTimeagoAttribute()
44 | {
45 | $date = \Carbon\Carbon::createFromTimeStamp(strtotime($this->created_at))->diffForHumans();
46 | return $date;
47 | }
48 |
49 | // this function takes in product ID, comment and the rating and attaches the review to the product by its ID, then the average rating for the product is recalculated
50 | public function storeReviewForProduct($slug, $comment, $rating)
51 | {
52 | $product = Product::whereSlug($slug)->firstOrFail();
53 |
54 | //$this->user_id = Auth::user()->id;
55 | $this->comment = $comment;
56 | $this->rating = $rating;
57 | $product->reviews()->save($this);
58 |
59 | // recalculate ratings for the specified product
60 | $product->recalculateRating($rating);
61 | }
62 | }
--------------------------------------------------------------------------------
/app/models/Seo.php:
--------------------------------------------------------------------------------
1 | morphTo();
10 | }
11 |
12 | public function updateFromInput()
13 | {
14 | $this->title = e(Input::get('title'));
15 | $this->description = e(Input::get('description'));
16 | $this->keywords = e(Input::get('keywords'));
17 | $this->save();
18 | return true;
19 | }
20 |
21 | }
--------------------------------------------------------------------------------
/app/models/User.php:
--------------------------------------------------------------------------------
1 | getKey();
30 | }
31 |
32 | /**
33 | * Get the password for the user.
34 | *
35 | * @return string
36 | */
37 | public function getAuthPassword()
38 | {
39 | return $this->password;
40 | }
41 |
42 | /**
43 | * Get the e-mail address where password reminders are sent.
44 | *
45 | * @return string
46 | */
47 | public function getReminderEmail()
48 | {
49 | return $this->email;
50 | }
51 |
52 | public function getRememberToken()
53 | {
54 | return $this->remember_token;
55 | }
56 |
57 | public function setRememberToken($value)
58 | {
59 | $this->remember_token = $value;
60 | }
61 |
62 | public function getRememberTokenName()
63 | {
64 | return 'remember_token';
65 | }
66 |
67 | }
--------------------------------------------------------------------------------
/app/routes.php:
--------------------------------------------------------------------------------
1 | $products,
13 | 'categories' => $categories
14 | ));
15 | });
16 |
17 | // Route that shows an individual product by its slug
18 | Route::get('products/{slug}', function($slug)
19 | {
20 | $product = Product::whereSlug($slug)->firstOrFail();
21 | $categories = Category::all();
22 | $seo = $product->seo()->first();
23 |
24 | // Get all reviews that are not spam for the product and paginate them
25 | $reviews = $product->reviews()->with('user')->approved()->notSpam()->orderBy('created_at','desc')->paginate(100);
26 |
27 | return View::make('products.single', array(
28 | 'product' => $product,
29 | 'reviews' => $reviews,
30 | 'categories'=> $categories,
31 | 'seo' => $seo
32 | ));
33 | });
34 |
35 | // Route that handles submission of review - rating/comment
36 | Route::post('products/{slug}', array('before'=>'csrf', function($slug)
37 | {
38 | $input = array(
39 | 'comment' => Input::get('comment'),
40 | 'rating' => Input::get('rating')
41 | );
42 | // instantiate Rating model
43 | $review = new Review;
44 |
45 | // Validate that the user's input corresponds to the rules specified in the review model
46 | $validator = Validator::make( $input, $review->getCreateRules());
47 |
48 | // If input passes validation - store the review in DB, otherwise return to product page with error message
49 | if ($validator->passes()) {
50 | $review->storeReviewForProduct($slug, $input['comment'], $input['rating']);
51 | return Redirect::to('products/'.$slug.'#reviews-anchor')->with('review_posted',true);
52 | }
53 |
54 | return Redirect::to('products/'.$slug.'#reviews-anchor')->withErrors($validator)->withInput();
55 | }));
56 |
57 | // Route that shows an individual category by its slug
58 | Route::get('categories/{slug}', function($slug)
59 | {
60 | $category = Category::whereSlug($slug)->firstOrFail();
61 | $categories = Category::all();
62 | $seo = $category->seo()->first();
63 |
64 | return View::make('categories.single', array(
65 | 'category' => $category,
66 | 'categories'=> $categories,
67 | 'seo' => $seo
68 | ));
69 | });
70 |
71 | Route::get('api/search', 'ApiSearchController@index');
72 |
--------------------------------------------------------------------------------
/app/start/artisan.php:
--------------------------------------------------------------------------------
1 | client->request('GET', '/');
13 |
14 | $this->assertTrue($this->client->getResponse()->isOk());
15 | }
16 |
17 | }
--------------------------------------------------------------------------------
/app/tests/TestCase.php:
--------------------------------------------------------------------------------
1 |
3 |
22 | @stop
23 |
24 | @section('content')
25 |
26 |
27 | @if(Session::has('seo_created'))
28 |
29 |
The SEO data has been created!
30 |
31 | @endif
32 |
33 | @if(Session::has('seo_updated'))
34 |
35 |
The SEO data has been updated!
36 |
37 | @endif
38 |
39 |
40 |
41 |
42 |
43 | {{ Form::open(array('url'=>'admin/seo','method'=>'get','id'=>'selectForm','class'=>'form-vertical'))}}
44 | {{ Form::select('type', Config::get('config.seo_mapping'), $type, array('id'=> 'typeSelect' ,'class'=> 'form-control'))}}
45 | {{ Form::close()}}
46 |
47 |
50 |
51 |
52 |
53 |
54 | @if(isset($seo))
55 | {{ Form::model($seo, array('url' => 'admin/seo/'.$seo->id, 'method' => 'put')) }}
56 | @else
57 | {{ Form::open(array('url' => 'admin/seo')) }}
58 | @endif
59 |
60 |
61 |
62 |
63 | {{Form::label('title')}}
64 | {{ Form::text('title', null ,array('class'=>'form-control', 'placeholder'=>'SEO Title'))}}
65 |
66 |
67 |
68 | {{ Form::label('keywords')}}
69 | {{ Form::text('keywords', null ,array('class'=>'form-control', 'placeholder'=>'SEO Keywords'))}}
70 |
71 |
72 |
73 | {{ Form::label('description')}}
74 | {{ Form::textarea('description', null ,array('class'=>'form-control', 'placeholder'=>'SEO Description','rows' => 4))}}
75 |
76 |
77 | {{ Form::hidden('type', $type)}}
78 | {{ Form::hidden('id', $item->id)}}
79 |
80 |
81 | {{ Form::submit('Submit', array('class'=>'btn btn-default'))}}
82 |
83 |
84 | {{ Form::close()}}
85 |
86 |
87 | @stop
88 |
--------------------------------------------------------------------------------
/app/views/admin/seo/list.blade.php:
--------------------------------------------------------------------------------
1 | @section('scripts')
2 |
9 | @stop
10 |
11 | @section('content')
12 |
13 | {{ Form::open(array('url'=>'admin/seo','method'=>'get','id'=>'selectForm','class'=>'form-horizontal'))}}
14 |
15 |
16 | SEO
17 |
18 |
19 |
20 |
21 |
22 |
23 | {{ Form::select('type', Config::get('config.seo_mapping'), $type, array('id'=> 'typeSelect' ,'class'=> 'form-control'))}}
24 |
25 |
26 | {{ Form::close()}}
27 |
28 |
29 |
30 |
31 |
32 |
33 | Name |
34 | SEO Title |
35 | SEO Description |
36 | SEO Keywords |
37 | Action |
38 |
39 |
40 |
41 | @foreach ($list as $item)
42 |
43 |
44 | {{ $item->name }} |
45 | @if($seo = $item->seo->first())
46 | {{$seo->title}} |
47 | {{$seo->description}} |
48 | {{$seo->keywords}} |
49 | Edit |
50 | @else
51 | |
52 | |
53 | |
54 |
55 | Add
56 | |
57 | @endif
58 |
59 | @endforeach
60 |
61 |
62 |
63 |
64 | @stop
65 |
--------------------------------------------------------------------------------
/app/views/categories/single.blade.php:
--------------------------------------------------------------------------------
1 | @extends('layout')
2 |
3 | @section('title')
4 | {{{ $seo->title or 'Viewing Category '.$category->name }}}
5 | @endsection
6 |
7 | @section('description')
8 | {{{ $seo->description or 'My great category'}}}
9 | @endsection
10 |
11 | @section('keywords')
12 | {{{ $seo->keywords or 'default, keywords, for, my, category' }}}
13 | @endsection
14 |
15 | @section('content')
16 |
17 |
18 | @include('partials.sidebar.categories', array('categories' => $categories,'current' => $category->id))
19 |
20 |
21 | @foreach($category->products as $product)
22 |
23 |
24 |

25 |
26 |
${{ number_format($product->pricing, 2);}}
27 |
28 |
{{$product->short_description}}
29 |
30 |
31 |
{{$product->rating_count}} {{ Str::plural('review', $product->rating_count);}}
32 |
33 | @for ($i=1; $i <= 5 ; $i++)
34 |
35 | @endfor
36 |
37 |
38 |
39 |
40 | @endforeach
41 |
42 |
43 | @stop
--------------------------------------------------------------------------------
/app/views/emails/auth/reminder.blade.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | Password Reset
8 |
9 |
10 | To reset your password, complete this form: {{ URL::to('password/reset', array($token)) }}.
11 |
12 |
13 |
--------------------------------------------------------------------------------
/app/views/index.blade.php:
--------------------------------------------------------------------------------
1 | @extends('layout')
2 |
3 | @section('content')
4 |
5 |
6 | @include('partials.sidebar.categories', array('categories' => $categories,'current' => 0))
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 | @foreach($products as $product)
39 |
40 |
41 |

42 |
43 |
${{ number_format($product->pricing, 2);}}
44 |
45 |
{{$product->short_description}}
46 |
47 |
48 |
{{$product->rating_count}} {{ Str::plural('review', $product->rating_count);}}
49 |
50 | @for ($i=1; $i <= 5 ; $i++)
51 |
52 | @endfor
53 |
54 |
55 |
56 |
57 | @endforeach
58 |
59 |
60 |
61 | @stop
--------------------------------------------------------------------------------
/app/views/layout.blade.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 | @yield('title','My shop')
10 |
11 |
12 |
13 |
14 |
15 |
16 | @yield('styles')
17 |
18 |
19 |
52 |
53 |
54 | @yield('content')
55 |
56 |
63 |
64 |
65 |
66 |
69 |
70 |
71 |
72 |
73 | @yield('scripts')
74 |
75 |
76 |
77 |
78 |
--------------------------------------------------------------------------------
/app/views/partials/sidebar/categories.blade.php:
--------------------------------------------------------------------------------
1 | Shop Categories
2 |
3 |
--------------------------------------------------------------------------------
/app/views/products/single.blade.php:
--------------------------------------------------------------------------------
1 | @extends('layout')
2 |
3 | @section('title')
4 | {{{ $seo->title or 'Viewing Product '.$product->name }}}
5 | @endsection
6 |
7 | @section('description')
8 | {{{ $seo->description or 'My great product'}}}
9 | @endsection
10 |
11 | @section('keywords')
12 | {{{ $seo->keywords or 'default, keywords, for, my, product' }}}
13 | @endsection
14 |
15 | @section('scripts')
16 | {{HTML::script('js/expanding.js')}}
17 | {{HTML::script('js/starrr.js')}}
18 |
19 |
65 | @stop
66 |
67 | @section('styles')
68 |
83 | @stop
84 |
85 | @section('content')
86 |
87 |
88 | @include('partials.sidebar.categories', array('categories' => $categories,'current' => 0))
89 |
90 |
91 |
92 |

93 |
94 |
${{ number_format($product->pricing, 2);}}
95 |
96 |
{{$product->short_description}}
97 |
{{$product->long_description}}
98 |
99 |
100 | @foreach($product->categories as $category)
101 | {{{ $category->name }}}
102 | @endforeach
103 |
104 |
105 |
106 |
{{$product->rating_count}} {{ Str::plural('review', $product->rating_count);}}
107 |
108 | @for ($i=1; $i <= 5 ; $i++)
109 |
110 | @endfor
111 | {{ number_format($product->rating_cache, 1);}} stars
112 |
113 |
114 |
115 |
116 |
117 |
118 | @if(Session::get('errors'))
119 |
120 |
121 |
There were errors while submitting this review:
122 | @foreach($errors->all(':message') as $message)
123 | {{$message}}
124 | @endforeach
125 |
126 | @endif
127 | @if(Session::has('review_posted'))
128 |
129 |
130 |
Your review has been posted!
131 |
132 | @endif
133 | @if(Session::has('review_removed'))
134 |
135 |
136 |
Your review has been removed!
137 |
138 | @endif
139 |
140 |
141 |
144 |
145 |
146 | {{Form::open()}}
147 | {{Form::hidden('rating', null, array('id'=>'ratings-hidden'))}}
148 | {{Form::textarea('comment', null, array('rows'=>'5','id'=>'new-review','class'=>'form-control animated','placeholder'=>'Enter your review here...'))}}
149 |
150 |
151 |
Cancel
152 |
153 |
154 | {{Form::close()}}
155 |
156 |
157 |
158 | @foreach($reviews as $review)
159 |
160 |
161 |
162 | @for ($i=1; $i <= 5 ; $i++)
163 |
164 | @endfor
165 |
166 | {{ $review->user ? $review->user->name : 'Anonymous'}}
{{$review->timeago}}
167 |
168 |
{{{$review->comment}}}
169 |
170 |
171 | @endforeach
172 | {{ $reviews->links(); }}
173 |
174 |
175 |
176 |
177 | @stop
--------------------------------------------------------------------------------
/artisan:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env php
2 | setRequestForConsoleEnvironment();
45 |
46 | $artisan = Illuminate\Console\Application::start($app);
47 |
48 | /*
49 | |--------------------------------------------------------------------------
50 | | Run The Artisan Application
51 | |--------------------------------------------------------------------------
52 | |
53 | | When we run the console application, the current CLI command will be
54 | | executed in this console and the response sent back to a terminal
55 | | or another output device for the developers. Here goes nothing!
56 | |
57 | */
58 |
59 | $status = $artisan->run();
60 |
61 | /*
62 | |--------------------------------------------------------------------------
63 | | Shutdown The Application
64 | |--------------------------------------------------------------------------
65 | |
66 | | Once Artisan has finished running. We will fire off the shutdown events
67 | | so that any final work may be done by the application before we shut
68 | | down the process. This is the last thing to happen to the request.
69 | |
70 | */
71 |
72 | $app->shutdown();
73 |
74 | exit($status);
--------------------------------------------------------------------------------
/bootstrap/autoload.php:
--------------------------------------------------------------------------------
1 | __DIR__.'/../app',
17 |
18 | /*
19 | |--------------------------------------------------------------------------
20 | | Public Path
21 | |--------------------------------------------------------------------------
22 | |
23 | | The public path contains the assets for your web application, such as
24 | | your JavaScript and CSS files, and also contains the primary entry
25 | | point for web requests into these applications from the outside.
26 | |
27 | */
28 |
29 | 'public' => __DIR__.'/../public',
30 |
31 | /*
32 | |--------------------------------------------------------------------------
33 | | Base Path
34 | |--------------------------------------------------------------------------
35 | |
36 | | The base path is the root of the Laravel installation. Most likely you
37 | | will not need to change this value. But, if for some wild reason it
38 | | is necessary you will do so here, just proceed with some caution.
39 | |
40 | */
41 |
42 | 'base' => __DIR__.'/..',
43 |
44 | /*
45 | |--------------------------------------------------------------------------
46 | | Storage Path
47 | |--------------------------------------------------------------------------
48 | |
49 | | The storage path is used by Laravel to store cached Blade views, logs
50 | | and other pieces of information. You may modify the path here when
51 | | you want to change the location of this directory for your apps.
52 | |
53 | */
54 |
55 | 'storage' => __DIR__.'/../app/storage',
56 |
57 | );
58 |
--------------------------------------------------------------------------------
/bootstrap/start.php:
--------------------------------------------------------------------------------
1 | detectEnvironment(array(
28 |
29 | 'local' => array('Maxoffsky-PC'),
30 |
31 | ));
32 |
33 | /*
34 | |--------------------------------------------------------------------------
35 | | Bind Paths
36 | |--------------------------------------------------------------------------
37 | |
38 | | Here we are binding the paths configured in paths.php to the app. You
39 | | should not be changing these here. If you need to change these you
40 | | may do so within the paths.php file and they will be bound here.
41 | |
42 | */
43 |
44 | $app->bindInstallPaths(require __DIR__.'/paths.php');
45 |
46 | /*
47 | |--------------------------------------------------------------------------
48 | | Load The Application
49 | |--------------------------------------------------------------------------
50 | |
51 | | Here we will load the Illuminate application. We'll keep this is in a
52 | | separate location so we can isolate the creation of an application
53 | | from the actual running of the application with a given request.
54 | |
55 | */
56 |
57 | $framework = $app['path.base'].'/vendor/laravel/framework/src';
58 |
59 | require $framework.'/Illuminate/Foundation/start.php';
60 |
61 | /*
62 | |--------------------------------------------------------------------------
63 | | Return The Application
64 | |--------------------------------------------------------------------------
65 | |
66 | | This script returns the application instance. The instance is given to
67 | | the calling script so we can separate the building of the instances
68 | | from the actual running of the application and sending responses.
69 | |
70 | */
71 |
72 | return $app;
73 |
--------------------------------------------------------------------------------
/composer.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "laravel/laravel",
3 | "description": "The Laravel Framework.",
4 | "keywords": ["framework", "laravel"],
5 | "license": "MIT",
6 | "require": {
7 | "laravel/framework": "4.1.*"
8 | },
9 | "autoload": {
10 | "classmap": [
11 | "app/commands",
12 | "app/controllers",
13 | "app/models",
14 | "app/database/migrations",
15 | "app/database/seeds",
16 | "app/tests/TestCase.php"
17 | ]
18 | },
19 | "scripts": {
20 | "post-install-cmd": [
21 | "php artisan optimize"
22 | ],
23 | "post-update-cmd": [
24 | "php artisan clear-compiled",
25 | "php artisan optimize"
26 | ],
27 | "post-create-project-cmd": [
28 | "php artisan key:generate"
29 | ]
30 | },
31 | "config": {
32 | "preferred-install": "dist"
33 | },
34 | "minimum-stability": "dev"
35 | }
36 |
--------------------------------------------------------------------------------
/install.sql:
--------------------------------------------------------------------------------
1 | -- phpMyAdmin SQL Dump
2 | -- version 4.0.6
3 | -- http://www.phpmyadmin.net
4 | --
5 | -- Host: localhost
6 | -- Generation Time: Dec 20, 2013 at 09:49 PM
7 | -- Server version: 5.5.25
8 | -- PHP Version: 5.4.4
9 |
10 | SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
11 | SET time_zone = "+00:00";
12 |
13 | --
14 | -- Database: `shop-search`
15 | --
16 |
17 | -- --------------------------------------------------------
18 |
19 | --
20 | -- Table structure for table `categories`
21 | --
22 |
23 | CREATE TABLE `categories` (
24 | `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
25 | `name` varchar(255) NOT NULL,
26 | `slug` varchar(255) NOT NULL,
27 | `description` varchar(255) DEFAULT NULL,
28 | `order` int(11) NOT NULL,
29 | `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
30 | `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
31 | PRIMARY KEY (`id`)
32 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=4 ;
33 |
34 | --
35 | -- Dumping data for table `categories`
36 | --
37 |
38 | INSERT INTO `categories` (`id`, `name`, `slug`, `description`, `order`, `created_at`, `updated_at`) VALUES
39 | (1, 'Cupcake wrappers', 'cupcake-wrappers', 'Printable cupcake wrappers', 1, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
40 | (2, 'Baby Shower Products', 'baby-shower-products', 'Baby shower supplies', 2, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
41 | (3, 'Bridal Shower', 'bridal-shower', 'Bridal shower supplies', 3, '0000-00-00 00:00:00', '0000-00-00 00:00:00');
42 |
43 | -- --------------------------------------------------------
44 |
45 | --
46 | -- Table structure for table `category_product`
47 | --
48 |
49 | CREATE TABLE `category_product` (
50 | `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
51 | `category_id` int(10) unsigned NOT NULL,
52 | `product_id` int(10) unsigned NOT NULL,
53 | `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
54 | `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
55 | PRIMARY KEY (`id`)
56 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=7 ;
57 |
58 | --
59 | -- Dumping data for table `category_product`
60 | --
61 |
62 | INSERT INTO `category_product` (`id`, `category_id`, `product_id`, `created_at`, `updated_at`) VALUES
63 | (1, 1, 1, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
64 | (2, 1, 2, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
65 | (3, 2, 3, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
66 | (4, 3, 4, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
67 | (5, 2, 5, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
68 | (6, 2, 1, '0000-00-00 00:00:00', '0000-00-00 00:00:00');
69 |
70 | -- --------------------------------------------------------
71 |
72 | --
73 | -- Table structure for table `products`
74 | --
75 |
76 | CREATE TABLE `products` (
77 | `id` int(11) NOT NULL AUTO_INCREMENT,
78 | `published` tinyint(1) NOT NULL DEFAULT '0',
79 | `rating_cache` float(2,1) unsigned NOT NULL DEFAULT '3.0',
80 | `rating_count` int(11) unsigned NOT NULL DEFAULT '0',
81 | `name` varchar(255) NOT NULL,
82 | `slug` varchar(300) NOT NULL,
83 | `pricing` float(9,2) unsigned NOT NULL DEFAULT '0.00',
84 | `short_description` varchar(255) NOT NULL,
85 | `long_description` text NOT NULL,
86 | `icon` varchar(255) NOT NULL,
87 | `created_at` datetime NOT NULL,
88 | `updated_at` datetime NOT NULL,
89 | PRIMARY KEY (`id`)
90 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=6 ;
91 |
92 | --
93 | -- Dumping data for table `products`
94 | --
95 |
96 | INSERT INTO `products` (`id`, `published`, `rating_cache`, `rating_count`, `name`, `slug`, `pricing`, `short_description`, `long_description`, `icon`, `created_at`, `updated_at`) VALUES
97 | (1, 1, 3.0, 0, 'Cupcake wrapper', '1-cupcake-wrapper', 20.99, 'This is a short description asdf as This is a short description asdf as', 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum', 'img/icons/product-1.jpg', '2013-11-06 05:11:00', '2013-12-14 21:40:10'),
98 | (2, 1, 3.0, 0, 'Second product', '2-second-product', 55.00, 'This is a short description', 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum', 'img/icons/product-2.jpg', '2013-11-06 05:11:00', '2013-11-11 16:17:23'),
99 | (3, 1, 3.0, 0, 'Third product', '3-third-product', 65.00, 'This is a short description', 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum', 'img/icons/product-3.jpg', '2013-11-06 05:11:00', '2013-11-06 06:08:00'),
100 | (4, 1, 3.0, 0, 'Fourth product', '4-fourth-product', 85.00, 'This is a short description', 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum', 'img/icons/product-4.jpg', '2013-11-06 05:11:00', '2013-11-06 06:08:00'),
101 | (5, 1, 3.0, 0, 'Fifth product', '5-fifth-product', 95.00, 'This is a short description', 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum', 'img/icons/product-5.jpg', '2013-11-06 05:11:00', '2013-11-06 06:08:00');
102 |
103 | -- --------------------------------------------------------
104 |
105 | --
106 | -- Table structure for table `reviews`
107 | --
108 |
109 | CREATE TABLE `reviews` (
110 | `id` int(11) NOT NULL AUTO_INCREMENT,
111 | `product_id` int(11) NOT NULL,
112 | `user_id` int(11) NOT NULL,
113 | `rating` int(11) NOT NULL,
114 | `comment` text NOT NULL,
115 | `approved` tinyint(1) unsigned NOT NULL DEFAULT '1',
116 | `spam` tinyint(1) unsigned NOT NULL DEFAULT '0',
117 | `created_at` datetime NOT NULL,
118 | `updated_at` datetime NOT NULL,
119 | PRIMARY KEY (`id`)
120 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
121 |
122 | -- --------------------------------------------------------
123 |
124 | --
125 | -- Table structure for table `seo`
126 | --
127 |
128 | CREATE TABLE `seo` (
129 | `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
130 | `title` varchar(255) NOT NULL,
131 | `description` varchar(255) NOT NULL,
132 | `keywords` varchar(255) NOT NULL,
133 | `seoble_id` int(11) unsigned NOT NULL,
134 | `seoble_type` varchar(255) NOT NULL,
135 | `created_at` datetime NOT NULL,
136 | `updated_at` datetime NOT NULL,
137 | PRIMARY KEY (`id`)
138 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
139 |
140 | -- --------------------------------------------------------
141 |
142 | --
143 | -- Table structure for table `users`
144 | --
145 |
146 | CREATE TABLE `users` (
147 | `id` int(11) NOT NULL AUTO_INCREMENT,
148 | `user_type` int(10) unsigned NOT NULL DEFAULT '0',
149 | `email` varchar(128) NOT NULL,
150 | `password` varchar(128) NOT NULL,
151 | `created_at` datetime NOT NULL,
152 | `updated_at` datetime NOT NULL,
153 | PRIMARY KEY (`id`)
154 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
155 |
--------------------------------------------------------------------------------
/phpunit.xml:
--------------------------------------------------------------------------------
1 |
2 |
13 |
14 |
15 | ./app/tests/
16 |
17 |
18 |
--------------------------------------------------------------------------------
/public/.htaccess:
--------------------------------------------------------------------------------
1 |
2 |
3 | Options -MultiViews
4 |
5 |
6 | RewriteEngine On
7 |
8 | # Redirect Trailing Slashes...
9 | RewriteRule ^(.*)/$ /$1 [L,R=301]
10 |
11 | # Handle Front Controller...
12 | RewriteCond %{REQUEST_FILENAME} !-d
13 | RewriteCond %{REQUEST_FILENAME} !-f
14 | RewriteRule ^ index.php [L]
15 |
--------------------------------------------------------------------------------
/public/css/styles.css:
--------------------------------------------------------------------------------
1 | .thumbnail{ padding: 0;}
2 |
3 | .carousel-control, .item{
4 | border-radius: 4px;
5 | }
6 |
7 | .caption{
8 | height: 130px;
9 | overflow: hidden;
10 | }
11 |
12 | .caption h4
13 | {
14 | white-space: nowrap;
15 | }
16 |
17 | .thumbnail img{
18 | width: 100%;
19 | }
20 |
21 | .ratings
22 | {
23 | color: #d17581;
24 | padding-left: 10px;
25 | padding-right: 10px;
26 | }
27 |
28 | .thumbnail .caption-full {
29 | padding: 9px;
30 | color: #333;
31 | }
32 |
33 | footer{
34 | margin-top: 50px;
35 | margin-bottom: 30px;
36 | }
37 |
38 | /* Search in the navigation bar */
39 |
40 | .form-control.selectize-control{
41 | height: 34px;
42 | }
43 |
44 | .selectize-dropdown-content img{ width:20px; height:20px; margin-right: 3px; float:left; }
45 |
46 | .selectize-control::before {
47 | -moz-transition: opacity 0.2s;
48 | -webkit-transition: opacity 0.2s;
49 | transition: opacity 0.2s;
50 | content: ' ';
51 | z-index: 2;
52 | position: absolute;
53 | display: block;
54 | top: 10px;
55 | right: 34px;
56 | width: 16px;
57 | height: 16px;
58 | background: url(../img/spinner.gif);
59 | background-size: 16px 16px;
60 | opacity: 0;
61 | }
62 | .selectize-control.loading::before {
63 | opacity: 1;
64 | }
65 |
--------------------------------------------------------------------------------
/public/img/icons/category-icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/msurguy/laravel-smart-search/e1ecf795793146f93e0b220bf76f454e2f75a765/public/img/icons/category-icon.png
--------------------------------------------------------------------------------
/public/img/icons/product-1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/msurguy/laravel-smart-search/e1ecf795793146f93e0b220bf76f454e2f75a765/public/img/icons/product-1.jpg
--------------------------------------------------------------------------------
/public/img/icons/product-2.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/msurguy/laravel-smart-search/e1ecf795793146f93e0b220bf76f454e2f75a765/public/img/icons/product-2.jpg
--------------------------------------------------------------------------------
/public/img/icons/product-3.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/msurguy/laravel-smart-search/e1ecf795793146f93e0b220bf76f454e2f75a765/public/img/icons/product-3.jpg
--------------------------------------------------------------------------------
/public/img/icons/product-4.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/msurguy/laravel-smart-search/e1ecf795793146f93e0b220bf76f454e2f75a765/public/img/icons/product-4.jpg
--------------------------------------------------------------------------------
/public/img/icons/product-5.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/msurguy/laravel-smart-search/e1ecf795793146f93e0b220bf76f454e2f75a765/public/img/icons/product-5.jpg
--------------------------------------------------------------------------------
/public/img/spinner.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/msurguy/laravel-smart-search/e1ecf795793146f93e0b220bf76f454e2f75a765/public/img/spinner.gif
--------------------------------------------------------------------------------
/public/index.php:
--------------------------------------------------------------------------------
1 |
7 | */
8 |
9 | /*
10 | |--------------------------------------------------------------------------
11 | | Register The Auto Loader
12 | |--------------------------------------------------------------------------
13 | |
14 | | Composer provides a convenient, automatically generated class loader
15 | | for our application. We just need to utilize it! We'll require it
16 | | into the script here so that we do not have to worry about the
17 | | loading of any our classes "manually". Feels great to relax.
18 | |
19 | */
20 |
21 | require __DIR__.'/../bootstrap/autoload.php';
22 |
23 | /*
24 | |--------------------------------------------------------------------------
25 | | Turn On The Lights
26 | |--------------------------------------------------------------------------
27 | |
28 | | We need to illuminate PHP development, so let's turn on the lights.
29 | | This bootstraps the framework and gets it ready for use, then it
30 | | will load up this application so that we can run it and send
31 | | the responses back to the browser and delight these users.
32 | |
33 | */
34 |
35 | $app = require_once __DIR__.'/../bootstrap/start.php';
36 |
37 | /*
38 | |--------------------------------------------------------------------------
39 | | Run The Application
40 | |--------------------------------------------------------------------------
41 | |
42 | | Once we have the application, we can simply call the run method,
43 | | which will execute the request and send the response back to
44 | | the client's browser allowing them to enjoy the creative
45 | | and wonderful application we have whipped up for them.
46 | |
47 | */
48 |
49 | $app->run();
--------------------------------------------------------------------------------
/public/js/expanding.js:
--------------------------------------------------------------------------------
1 | /*!
2 | Autosize v1.18.1 - 2013-11-05
3 | Automatically adjust textarea height based on user input.
4 | (c) 2013 Jack Moore - http://www.jacklmoore.com/autosize
5 | license: http://www.opensource.org/licenses/mit-license.php
6 | */
7 | (function(e){var t,o={className:"autosizejs",append:"",callback:!1,resizeDelay:10},i='',n=["fontFamily","fontSize","fontWeight","fontStyle","letterSpacing","textTransform","wordSpacing","textIndent"],s=e(i).data("autosize",!0)[0];s.style.lineHeight="99px","99px"===e(s).css("lineHeight")&&n.push("lineHeight"),s.style.lineHeight="",e.fn.autosize=function(i){return this.length?(i=e.extend({},o,i||{}),s.parentNode!==document.body&&e(document.body).append(s),this.each(function(){function o(){var t,o;"getComputedStyle"in window?(t=window.getComputedStyle(u,null),o=u.getBoundingClientRect().width,e.each(["paddingLeft","paddingRight","borderLeftWidth","borderRightWidth"],function(e,i){o-=parseInt(t[i],10)}),s.style.width=o+"px"):s.style.width=Math.max(p.width(),0)+"px"}function a(){var a={};if(t=u,s.className=i.className,d=parseInt(p.css("maxHeight"),10),e.each(n,function(e,t){a[t]=p.css(t)}),e(s).css(a),o(),window.chrome){var r=u.style.width;u.style.width="0px",u.offsetWidth,u.style.width=r}}function r(){var e,n;t!==u?a():o(),s.value=u.value+i.append,s.style.overflowY=u.style.overflowY,n=parseInt(u.style.height,10),s.scrollTop=0,s.scrollTop=9e4,e=s.scrollTop,d&&e>d?(u.style.overflowY="scroll",e=d):(u.style.overflowY="hidden",c>e&&(e=c)),e+=w,n!==e&&(u.style.height=e+"px",f&&i.callback.call(u,u))}function l(){clearTimeout(h),h=setTimeout(function(){var e=p.width();e!==g&&(g=e,r())},parseInt(i.resizeDelay,10))}var d,c,h,u=this,p=e(u),w=0,f=e.isFunction(i.callback),z={height:u.style.height,overflow:u.style.overflow,overflowY:u.style.overflowY,wordWrap:u.style.wordWrap,resize:u.style.resize},g=p.width();p.data("autosize")||(p.data("autosize",!0),("border-box"===p.css("box-sizing")||"border-box"===p.css("-moz-box-sizing")||"border-box"===p.css("-webkit-box-sizing"))&&(w=p.outerHeight()-p.height()),c=Math.max(parseInt(p.css("minHeight"),10)-w||0,p.height()),p.css({overflow:"hidden",overflowY:"hidden",wordWrap:"break-word",resize:"none"===p.css("resize")||"vertical"===p.css("resize")?"none":"horizontal"}),"onpropertychange"in u?"oninput"in u?p.on("input.autosize keyup.autosize",r):p.on("propertychange.autosize",function(){"value"===event.propertyName&&r()}):p.on("input.autosize",r),i.resizeDelay!==!1&&e(window).on("resize.autosize",l),p.on("autosize.resize",r),p.on("autosize.resizeIncludeStyle",function(){t=null,r()}),p.on("autosize.destroy",function(){t=null,clearTimeout(h),e(window).off("resize",l),p.off("autosize").off(".autosize").css(z).removeData("autosize")}),r())})):this}})(window.jQuery||window.$);
--------------------------------------------------------------------------------
/public/js/jquery.charcounter.js:
--------------------------------------------------------------------------------
1 | /**
2 | *
3 | * jquery.charcounter.js version 1.2
4 | * requires jQuery version 1.2 or higher
5 | * Copyright (c) 2007 Tom Deater (http://www.tomdeater.com)
6 | * Licensed under the MIT License:
7 | * http://www.opensource.org/licenses/mit-license.php
8 | *
9 | */
10 |
11 | (function($) {
12 | /**
13 | * attaches a character counter to each textarea element in the jQuery object
14 | * usage: $("#myTextArea").charCounter(max, settings);
15 | */
16 |
17 | $.fn.charCounter = function (max, settings) {
18 | max = max || 100;
19 | settings = $.extend({
20 | container: "",
21 | classname: "charcounter",
22 | format: "(%1 characters remaining)",
23 | pulse: true,
24 | delay: 0
25 | }, settings);
26 | var p, timeout;
27 |
28 | function count(el, container) {
29 | el = $(el);
30 | if (el.val().length > max) {
31 | el.val(el.val().substring(0, max));
32 | if (settings.pulse && !p) {
33 | pulse(container, true);
34 | };
35 | };
36 | if (settings.delay > 0) {
37 | if (timeout) {
38 | window.clearTimeout(timeout);
39 | }
40 | timeout = window.setTimeout(function () {
41 | container.html(settings.format.replace(/%1/, (max - el.val().length)));
42 | }, settings.delay);
43 | } else {
44 | container.html(settings.format.replace(/%1/, (max - el.val().length)));
45 | }
46 | };
47 |
48 | function pulse(el, again) {
49 | if (p) {
50 | window.clearTimeout(p);
51 | p = null;
52 | };
53 | el.animate({ opacity: 0.1 }, 100, function () {
54 | $(this).animate({ opacity: 1.0 }, 100);
55 | });
56 | if (again) {
57 | p = window.setTimeout(function () { pulse(el) }, 200);
58 | };
59 | };
60 |
61 | return this.each(function () {
62 | var container;
63 | if (!settings.container.match(/^<.+>$/)) {
64 | // use existing element to hold counter message
65 | container = $(settings.container);
66 | } else {
67 | // append element to hold counter message (clean up old element first)
68 | $(this).next("." + settings.classname).remove();
69 | container = $(settings.container)
70 | .insertAfter(this)
71 | .addClass(settings.classname);
72 | }
73 | $(this)
74 | .unbind(".charCounter")
75 | .bind("keydown.charCounter", function () { count(this, container); })
76 | .bind("keypress.charCounter", function () { count(this, container); })
77 | .bind("keyup.charCounter", function () { count(this, container); })
78 | .bind("focus.charCounter", function () { count(this, container); })
79 | .bind("mouseover.charCounter", function () { count(this, container); })
80 | .bind("mouseout.charCounter", function () { count(this, container); })
81 | .bind("paste.charCounter", function () {
82 | var me = this;
83 | setTimeout(function () { count(me, container); }, 10);
84 | });
85 | if (this.addEventListener) {
86 | this.addEventListener('input', function () { count(this, container); }, false);
87 | };
88 | count(this, container);
89 | });
90 | };
91 |
92 | })(jQuery);
--------------------------------------------------------------------------------
/public/js/main.js:
--------------------------------------------------------------------------------
1 | $(document).ready(function(){
2 | $('#searchbox').selectize({
3 | valueField: 'url',
4 | labelField: 'name',
5 | searchField: ['name'],
6 | maxOptions: 10,
7 | options: [],
8 | create: false,
9 | render: {
10 | option: function(item, escape) {
11 | return '
' +escape(item.name)+'
';
12 | }
13 | },
14 | optgroups: [
15 | {value: 'product', label: 'Products'},
16 | {value: 'category', label: 'Categories'}
17 | ],
18 | optgroupField: 'class',
19 | optgroupOrder: ['product','category'],
20 | load: function(query, callback) {
21 | if (!query.length) return callback();
22 | $.ajax({
23 | url: root+'/api/search',
24 | type: 'GET',
25 | dataType: 'json',
26 | data: {
27 | q: query
28 | },
29 | error: function() {
30 | callback();
31 | },
32 | success: function(res) {
33 | callback(res.data);
34 | }
35 | });
36 | },
37 | onChange: function(){
38 | window.location = this.items[0];
39 | }
40 | });
41 | });
--------------------------------------------------------------------------------
/public/js/starrr.js:
--------------------------------------------------------------------------------
1 | // Starrr plugin (https://github.com/dobtco/starrr)
2 | var __slice = [].slice;
3 |
4 | (function($, window) {
5 | var Starrr;
6 |
7 | Starrr = (function() {
8 | Starrr.prototype.defaults = {
9 | rating: void 0,
10 | numStars: 5,
11 | change: function(e, value) {}
12 | };
13 |
14 | function Starrr($el, options) {
15 | var i, _, _ref,
16 | _this = this;
17 |
18 | this.options = $.extend({}, this.defaults, options);
19 | this.$el = $el;
20 | _ref = this.defaults;
21 | for (i in _ref) {
22 | _ = _ref[i];
23 | if (this.$el.data(i) != null) {
24 | this.options[i] = this.$el.data(i);
25 | }
26 | }
27 | this.createStars();
28 | this.syncRating();
29 | this.$el.on('mouseover.starrr', 'span', function(e) {
30 | return _this.syncRating(_this.$el.find('span').index(e.currentTarget) + 1);
31 | });
32 | this.$el.on('mouseout.starrr', function() {
33 | return _this.syncRating();
34 | });
35 | this.$el.on('click.starrr', 'span', function(e) {
36 | return _this.setRating(_this.$el.find('span').index(e.currentTarget) + 1);
37 | });
38 | this.$el.on('starrr:change', this.options.change);
39 | }
40 |
41 | Starrr.prototype.createStars = function() {
42 | var _i, _ref, _results;
43 |
44 | _results = [];
45 | for (_i = 1, _ref = this.options.numStars; 1 <= _ref ? _i <= _ref : _i >= _ref; 1 <= _ref ? _i++ : _i--) {
46 | _results.push(this.$el.append(""));
47 | }
48 | return _results;
49 | };
50 |
51 | Starrr.prototype.setRating = function(rating) {
52 | if (this.options.rating === rating) {
53 | rating = void 0;
54 | }
55 | this.options.rating = rating;
56 | this.syncRating();
57 | return this.$el.trigger('starrr:change', rating);
58 | };
59 |
60 | Starrr.prototype.syncRating = function(rating) {
61 | var i, _i, _j, _ref;
62 |
63 | rating || (rating = this.options.rating);
64 | if (rating) {
65 | for (i = _i = 0, _ref = rating - 1; 0 <= _ref ? _i <= _ref : _i >= _ref; i = 0 <= _ref ? ++_i : --_i) {
66 | this.$el.find('span').eq(i).removeClass('glyphicon-star-empty').addClass('glyphicon-star');
67 | }
68 | }
69 | if (rating && rating < 5) {
70 | for (i = _j = rating; rating <= 4 ? _j <= 4 : _j >= 4; i = rating <= 4 ? ++_j : --_j) {
71 | this.$el.find('span').eq(i).removeClass('glyphicon-star').addClass('glyphicon-star-empty');
72 | }
73 | }
74 | if (!rating) {
75 | return this.$el.find('span').removeClass('glyphicon-star').addClass('glyphicon-star-empty');
76 | }
77 | };
78 |
79 | return Starrr;
80 |
81 | })();
82 | return $.fn.extend({
83 | starrr: function() {
84 | var args, option;
85 |
86 | option = arguments[0], args = 2 <= arguments.length ? __slice.call(arguments, 1) : [];
87 | return this.each(function() {
88 | var data;
89 |
90 | data = $(this).data('star-rating');
91 | if (!data) {
92 | $(this).data('star-rating', (data = new Starrr($(this), option)));
93 | }
94 | if (typeof option === 'string') {
95 | return data[option].apply(data, args);
96 | }
97 | });
98 | }
99 | });
100 | })(window.jQuery, window);
101 |
102 | $(function() {
103 | return $(".starrr").starrr();
104 | });
105 |
--------------------------------------------------------------------------------
/public/packages/.gitkeep:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/msurguy/laravel-smart-search/e1ecf795793146f93e0b220bf76f454e2f75a765/public/packages/.gitkeep
--------------------------------------------------------------------------------
/public/robots.txt:
--------------------------------------------------------------------------------
1 | User-agent: *
2 | Disallow:
3 |
--------------------------------------------------------------------------------
/public/vendor/selectize/css/selectize.bootstrap2.css:
--------------------------------------------------------------------------------
1 | /**
2 | * selectize.bootstrap2.css (v0.8.5) - Bootstrap 2 Theme
3 | * Copyright (c) 2013 Brian Reavis & contributors
4 | *
5 | * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this
6 | * file except in compliance with the License. You may obtain a copy of the License at:
7 | * http://www.apache.org/licenses/LICENSE-2.0
8 | *
9 | * Unless required by applicable law or agreed to in writing, software distributed under
10 | * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
11 | * ANY KIND, either express or implied. See the License for the specific language
12 | * governing permissions and limitations under the License.
13 | *
14 | * @author Brian Reavis
15 | */
16 |
17 | .selectize-control.plugin-drag_drop.multi > .selectize-input > div.ui-sortable-placeholder {
18 | background: #f2f2f2 !important;
19 | background: rgba(0, 0, 0, 0.06) !important;
20 | border: 0 none !important;
21 | visibility: visible !important;
22 | -webkit-box-shadow: inset 0 0 12px 4px #ffffff;
23 | box-shadow: inset 0 0 12px 4px #ffffff;
24 | }
25 |
26 | .selectize-control.plugin-drag_drop .ui-sortable-placeholder::after {
27 | content: '!';
28 | visibility: hidden;
29 | }
30 |
31 | .selectize-control.plugin-drag_drop .ui-sortable-helper {
32 | -webkit-box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
33 | box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
34 | }
35 |
36 | .selectize-dropdown-header {
37 | position: relative;
38 | padding: 3px 10px;
39 | background: #f8f8f8;
40 | border-bottom: 1px solid #d0d0d0;
41 | -webkit-border-radius: 4px 4px 0 0;
42 | -moz-border-radius: 4px 4px 0 0;
43 | border-radius: 4px 4px 0 0;
44 | }
45 |
46 | .selectize-dropdown-header-close {
47 | position: absolute;
48 | top: 50%;
49 | right: 10px;
50 | margin-top: -12px;
51 | font-size: 20px !important;
52 | line-height: 20px;
53 | color: #333333;
54 | opacity: 0.4;
55 | }
56 |
57 | .selectize-dropdown-header-close:hover {
58 | color: #000000;
59 | }
60 |
61 | .selectize-dropdown.plugin-optgroup_columns .optgroup {
62 | float: left;
63 | border-top: 0 none;
64 | border-right: 1px solid #f2f2f2;
65 | -webkit-box-sizing: border-box;
66 | -moz-box-sizing: border-box;
67 | box-sizing: border-box;
68 | }
69 |
70 | .selectize-dropdown.plugin-optgroup_columns .optgroup:last-child {
71 | border-right: 0 none;
72 | }
73 |
74 | .selectize-dropdown.plugin-optgroup_columns .optgroup:before {
75 | display: none;
76 | }
77 |
78 | .selectize-dropdown.plugin-optgroup_columns .optgroup-header {
79 | border-top: 0 none;
80 | }
81 |
82 | .selectize-control.plugin-remove_button [data-value] {
83 | position: relative;
84 | padding-right: 24px !important;
85 | }
86 |
87 | .selectize-control.plugin-remove_button [data-value] .remove {
88 | position: absolute;
89 | top: 0;
90 | right: 0;
91 | bottom: 0;
92 | display: inline-block;
93 | width: 17px;
94 | padding: 1px 0 0 0;
95 | font-size: 12px;
96 | font-weight: bold;
97 | color: inherit;
98 | text-align: center;
99 | text-decoration: none;
100 | vertical-align: middle;
101 | border-left: 1px solid #cccccc;
102 | -webkit-border-radius: 0 2px 2px 0;
103 | -moz-border-radius: 0 2px 2px 0;
104 | border-radius: 0 2px 2px 0;
105 | -webkit-box-sizing: border-box;
106 | -moz-box-sizing: border-box;
107 | box-sizing: border-box;
108 | }
109 |
110 | .selectize-control.plugin-remove_button [data-value] .remove:hover {
111 | background: rgba(0, 0, 0, 0.05);
112 | }
113 |
114 | .selectize-control.plugin-remove_button [data-value].active .remove {
115 | border-left-color: #0077b3;
116 | }
117 |
118 | .selectize-control.plugin-remove_button .disabled [data-value] .remove:hover {
119 | background: none;
120 | }
121 |
122 | .selectize-control.plugin-remove_button .disabled [data-value] .remove {
123 | border-left-color: #e0e0e0;
124 | }
125 |
126 | .selectize-control {
127 | position: relative;
128 | }
129 |
130 | .selectize-dropdown,
131 | .selectize-input,
132 | .selectize-input input {
133 | font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
134 | font-size: 14px;
135 | -webkit-font-smoothing: inherit;
136 | line-height: 20px;
137 | color: #333333;
138 | }
139 |
140 | .selectize-input,
141 | .selectize-control.single .selectize-input.input-active {
142 | display: inline-block;
143 | cursor: text;
144 | background: #ffffff;
145 | }
146 |
147 | .selectize-input {
148 | position: relative;
149 | z-index: 1;
150 | display: inline-block;
151 | width: 100%;
152 | padding: 7px 10px;
153 | overflow: hidden;
154 | border: 1px solid #d0d0d0;
155 | -webkit-border-radius: 4px;
156 | -moz-border-radius: 4px;
157 | border-radius: 4px;
158 | -webkit-box-shadow: none;
159 | box-shadow: none;
160 | -webkit-box-sizing: border-box;
161 | -moz-box-sizing: border-box;
162 | box-sizing: border-box;
163 | }
164 |
165 | .selectize-control.multi .selectize-input.has-items {
166 | padding: 5px 10px 2px;
167 | }
168 |
169 | .selectize-input.full {
170 | background-color: #ffffff;
171 | }
172 |
173 | .selectize-input.disabled,
174 | .selectize-input.disabled * {
175 | cursor: default !important;
176 | }
177 |
178 | .selectize-input.focus {
179 | -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.15);
180 | box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.15);
181 | }
182 |
183 | .selectize-input.dropdown-active {
184 | -webkit-border-radius: 4px 4px 0 0;
185 | -moz-border-radius: 4px 4px 0 0;
186 | border-radius: 4px 4px 0 0;
187 | }
188 |
189 | .selectize-input > * {
190 | display: -moz-inline-stack;
191 | display: inline-block;
192 | *display: inline;
193 | vertical-align: baseline;
194 | zoom: 1;
195 | }
196 |
197 | .selectize-control.multi .selectize-input > div {
198 | padding: 1px 3px;
199 | margin: 0 3px 3px 0;
200 | color: #333333;
201 | cursor: pointer;
202 | background: #e6e6e6;
203 | border: 1px solid #cccccc;
204 | }
205 |
206 | .selectize-control.multi .selectize-input > div.active {
207 | color: #ffffff;
208 | background: #0088cc;
209 | border: 1px solid #0077b3;
210 | }
211 |
212 | .selectize-control.multi .selectize-input.disabled > div,
213 | .selectize-control.multi .selectize-input.disabled > div.active {
214 | color: #474747;
215 | background: #fafafa;
216 | border: 1px solid #e0e0e0;
217 | }
218 |
219 | .selectize-input > input {
220 | max-width: 100% !important;
221 | max-height: none !important;
222 | min-height: 0 !important;
223 | padding: 0 !important;
224 | margin: 0 !important;
225 | line-height: inherit !important;
226 | text-indent: 0 !important;
227 | background: none !important;
228 | border: 0 none !important;
229 | -webkit-box-shadow: none !important;
230 | box-shadow: none !important;
231 | -webkit-user-select: auto !important;
232 | }
233 |
234 | .selectize-input > input:focus {
235 | outline: none !important;
236 | }
237 |
238 | .selectize-input::after {
239 | display: block;
240 | clear: left;
241 | content: ' ';
242 | }
243 |
244 | .selectize-input.dropdown-active::before {
245 | position: absolute;
246 | right: 0;
247 | bottom: 0;
248 | left: 0;
249 | display: block;
250 | height: 1px;
251 | background: #e5e5e5;
252 | content: ' ';
253 | }
254 |
255 | .selectize-dropdown {
256 | position: absolute;
257 | z-index: 10;
258 | margin: -1px 0 0 0;
259 | background: #ffffff;
260 | border: 1px solid #d0d0d0;
261 | border-top: 0 none;
262 | -webkit-border-radius: 0 0 4px 4px;
263 | -moz-border-radius: 0 0 4px 4px;
264 | border-radius: 0 0 4px 4px;
265 | -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
266 | box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
267 | -webkit-box-sizing: border-box;
268 | -moz-box-sizing: border-box;
269 | box-sizing: border-box;
270 | }
271 |
272 | .selectize-dropdown [data-selectable] {
273 | overflow: hidden;
274 | cursor: pointer;
275 | }
276 |
277 | .selectize-dropdown [data-selectable] .highlight {
278 | background: rgba(255, 237, 40, 0.4);
279 | -webkit-border-radius: 1px;
280 | -moz-border-radius: 1px;
281 | border-radius: 1px;
282 | }
283 |
284 | .selectize-dropdown [data-selectable],
285 | .selectize-dropdown .optgroup-header {
286 | padding: 3px 10px;
287 | }
288 |
289 | .selectize-dropdown .optgroup:first-child .optgroup-header {
290 | border-top: 0 none;
291 | }
292 |
293 | .selectize-dropdown .optgroup-header {
294 | color: #999999;
295 | cursor: default;
296 | background: #ffffff;
297 | }
298 |
299 | .selectize-dropdown .active {
300 | color: #ffffff;
301 | background-color: #0088cc;
302 | }
303 |
304 | .selectize-dropdown .active.create {
305 | color: #ffffff;
306 | }
307 |
308 | .selectize-dropdown .create {
309 | color: rgba(51, 51, 51, 0.5);
310 | }
311 |
312 | .selectize-dropdown-content {
313 | max-height: 200px;
314 | overflow-x: hidden;
315 | overflow-y: auto;
316 | }
317 |
318 | .selectize-control.single .selectize-input,
319 | .selectize-control.single .selectize-input input {
320 | cursor: pointer;
321 | }
322 |
323 | .selectize-control.single .selectize-input.input-active,
324 | .selectize-control.single .selectize-input.input-active input {
325 | cursor: text;
326 | }
327 |
328 | .selectize-control.single .selectize-input:after {
329 | position: absolute;
330 | top: 50%;
331 | right: 15px;
332 | display: block;
333 | width: 0;
334 | height: 0;
335 | margin-top: -3px;
336 | border-color: #000000 transparent transparent transparent;
337 | border-style: solid;
338 | border-width: 5px 5px 0 5px;
339 | content: ' ';
340 | }
341 |
342 | .selectize-control.single .selectize-input.dropdown-active:after {
343 | margin-top: -4px;
344 | border-color: transparent transparent #000000 transparent;
345 | border-width: 0 5px 5px 5px;
346 | }
347 |
348 | .selectize-control.rtl.single .selectize-input:after {
349 | right: auto;
350 | left: 15px;
351 | }
352 |
353 | .selectize-control.rtl .selectize-input > input {
354 | margin: 0 4px 0 -2px !important;
355 | }
356 |
357 | .selectize-control .selectize-input.disabled {
358 | background-color: #ffffff;
359 | opacity: 0.5;
360 | }
361 |
362 | .selectize-dropdown {
363 | z-index: 1000;
364 | margin: 2px 0 0 0;
365 | border: 1px solid rgba(0, 0, 0, 0.2);
366 | border-radius: 4px;
367 | -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
368 | -moz-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
369 | box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
370 | }
371 |
372 | .selectize-dropdown .optgroup-header {
373 | font-size: 11px;
374 | font-weight: bold;
375 | text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
376 | text-transform: uppercase;
377 | }
378 |
379 | .selectize-dropdown .optgroup:first-child:before {
380 | display: none;
381 | }
382 |
383 | .selectize-dropdown .optgroup:before {
384 | display: block;
385 | *width: 100%;
386 | height: 1px;
387 | margin: 9px 1px;
388 | *margin: -5px 0 5px;
389 | margin-right: -10px;
390 | margin-left: -10px;
391 | overflow: hidden;
392 | background-color: #e5e5e5;
393 | border-bottom: 1px solid #ffffff;
394 | content: ' ';
395 | }
396 |
397 | .selectize-dropdown [data-selectable].active {
398 | background-color: #0081c2;
399 | background-image: -moz-linear-gradient(top, #0088cc, #0077b3);
400 | background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#0088cc), to(#0077b3));
401 | background-image: -webkit-linear-gradient(top, #0088cc, #0077b3);
402 | background-image: -o-linear-gradient(top, #0088cc, #0077b3);
403 | background-image: linear-gradient(to bottom, #0088cc, #0077b3);
404 | background-repeat: repeat-x;
405 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff0088cc', endColorstr='#ff0077b3', GradientType=0);
406 | }
407 |
408 | .selectize-dropdown-content {
409 | padding: 5px 0;
410 | }
411 |
412 | .selectize-dropdown-header {
413 | padding: 6px 10px;
414 | }
415 |
416 | .selectize-input {
417 | -webkit-transition: border linear 0.2s, box-shadow linear 0.2s;
418 | -moz-transition: border linear 0.2s, box-shadow linear 0.2s;
419 | -o-transition: border linear 0.2s, box-shadow linear 0.2s;
420 | transition: border linear 0.2s, box-shadow linear 0.2s;
421 | }
422 |
423 | .selectize-input.dropdown-active {
424 | -webkit-border-radius: 4px;
425 | -moz-border-radius: 4px;
426 | border-radius: 4px;
427 | }
428 |
429 | .selectize-input.dropdown-active::before {
430 | display: none;
431 | }
432 |
433 | .selectize-input.input-active,
434 | .selectize-input.input-active:hover,
435 | .selectize-control.multi .selectize-input.focus {
436 | background: #ffffff !important;
437 | border-color: rgba(82, 168, 236, 0.8) !important;
438 | outline: 0 !important;
439 | outline: thin dotted \9 !important;
440 | -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6) !important;
441 | -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6) !important;
442 | box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6) !important;
443 | }
444 |
445 | .selectize-control.single .selectize-input {
446 | color: #333333;
447 | text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75);
448 | background-color: #f5f5f5;
449 | *background-color: #e6e6e6;
450 | background-image: -moz-linear-gradient(top, #ffffff, #e6e6e6);
451 | background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), to(#e6e6e6));
452 | background-image: -webkit-linear-gradient(top, #ffffff, #e6e6e6);
453 | background-image: -o-linear-gradient(top, #ffffff, #e6e6e6);
454 | background-image: linear-gradient(to bottom, #ffffff, #e6e6e6);
455 | background-repeat: repeat-x;
456 | border-color: #e6e6e6 #e6e6e6 #bfbfbf;
457 | border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
458 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#ffe6e6e6', GradientType=0);
459 | filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
460 | -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
461 | -moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
462 | box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
463 | }
464 |
465 | .selectize-control.single .selectize-input:hover,
466 | .selectize-control.single .selectize-input:focus,
467 | .selectize-control.single .selectize-input:active,
468 | .selectize-control.single .selectize-input.active,
469 | .selectize-control.single .selectize-input.disabled,
470 | .selectize-control.single .selectize-input[disabled] {
471 | color: #333333;
472 | background-color: #e6e6e6;
473 | *background-color: #d9d9d9;
474 | }
475 |
476 | .selectize-control.single .selectize-input:active,
477 | .selectize-control.single .selectize-input.active {
478 | background-color: #cccccc \9;
479 | }
480 |
481 | .selectize-control.single .selectize-input:hover {
482 | color: #333333;
483 | text-decoration: none;
484 | background-position: 0 -15px;
485 | -webkit-transition: background-position 0.1s linear;
486 | -moz-transition: background-position 0.1s linear;
487 | -o-transition: background-position 0.1s linear;
488 | transition: background-position 0.1s linear;
489 | }
490 |
491 | .selectize-control.single .selectize-input.disabled {
492 | background: #e6e6e6 !important;
493 | -webkit-box-shadow: none;
494 | -moz-box-shadow: none;
495 | box-shadow: none;
496 | }
497 |
498 | .selectize-control.multi .selectize-input {
499 | -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
500 | -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
501 | box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
502 | }
503 |
504 | .selectize-control.multi .selectize-input.has-items {
505 | padding-right: 7px;
506 | padding-left: 7px;
507 | }
508 |
509 | .selectize-control.multi .selectize-input > div {
510 | color: #333333;
511 | text-shadow: none;
512 | background-color: #f5f5f5;
513 | *background-color: #e6e6e6;
514 | background-image: -moz-linear-gradient(top, #ffffff, #e6e6e6);
515 | background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), to(#e6e6e6));
516 | background-image: -webkit-linear-gradient(top, #ffffff, #e6e6e6);
517 | background-image: -o-linear-gradient(top, #ffffff, #e6e6e6);
518 | background-image: linear-gradient(to bottom, #ffffff, #e6e6e6);
519 | background-repeat: repeat-x;
520 | border: 1px solid #cccccc;
521 | border-color: #e6e6e6 #e6e6e6 #bfbfbf;
522 | border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
523 | -webkit-border-radius: 4px;
524 | -moz-border-radius: 4px;
525 | border-radius: 4px;
526 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#ffe6e6e6', GradientType=0);
527 | -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
528 | -moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
529 | box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
530 | }
531 |
532 | .selectize-control.multi .selectize-input > div.active {
533 | color: #ffffff;
534 | text-shadow: none;
535 | background-color: #0081c2;
536 | *background-color: #0088cc;
537 | background-image: -moz-linear-gradient(top, #0088cc, #0077b3);
538 | background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#0088cc), to(#0077b3));
539 | background-image: -webkit-linear-gradient(top, #0088cc, #0077b3);
540 | background-image: -o-linear-gradient(top, #0088cc, #0077b3);
541 | background-image: linear-gradient(to bottom, #0088cc, #0077b3);
542 | background-repeat: repeat-x;
543 | border: 1px solid #0088cc;
544 | border-color: #0077b3 #0077b3 #004466;
545 | border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
546 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff0088cc', endColorstr='#ff0077b3', GradientType=0);
547 | -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
548 | -moz-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
549 | box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
550 | }
--------------------------------------------------------------------------------
/public/vendor/selectize/css/selectize.bootstrap3.css:
--------------------------------------------------------------------------------
1 | /**
2 | * selectize.bootstrap3.css (v0.8.5) - Bootstrap 3 Theme
3 | * Copyright (c) 2013 Brian Reavis & contributors
4 | *
5 | * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this
6 | * file except in compliance with the License. You may obtain a copy of the License at:
7 | * http://www.apache.org/licenses/LICENSE-2.0
8 | *
9 | * Unless required by applicable law or agreed to in writing, software distributed under
10 | * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
11 | * ANY KIND, either express or implied. See the License for the specific language
12 | * governing permissions and limitations under the License.
13 | *
14 | * @author Brian Reavis
15 | */
16 |
17 | .selectize-control.plugin-drag_drop.multi > .selectize-input > div.ui-sortable-placeholder {
18 | background: #f2f2f2 !important;
19 | background: rgba(0, 0, 0, 0.06) !important;
20 | border: 0 none !important;
21 | visibility: visible !important;
22 | -webkit-box-shadow: inset 0 0 12px 4px #ffffff;
23 | box-shadow: inset 0 0 12px 4px #ffffff;
24 | }
25 |
26 | .selectize-control.plugin-drag_drop .ui-sortable-placeholder::after {
27 | content: '!';
28 | visibility: hidden;
29 | }
30 |
31 | .selectize-control.plugin-drag_drop .ui-sortable-helper {
32 | -webkit-box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
33 | box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
34 | }
35 |
36 | .selectize-dropdown-header {
37 | position: relative;
38 | padding: 3px 12px;
39 | background: #f8f8f8;
40 | border-bottom: 1px solid #d0d0d0;
41 | -webkit-border-radius: 4px 4px 0 0;
42 | -moz-border-radius: 4px 4px 0 0;
43 | border-radius: 4px 4px 0 0;
44 | }
45 |
46 | .selectize-dropdown-header-close {
47 | position: absolute;
48 | top: 50%;
49 | right: 12px;
50 | margin-top: -12px;
51 | font-size: 20px !important;
52 | line-height: 20px;
53 | color: #333333;
54 | opacity: 0.4;
55 | }
56 |
57 | .selectize-dropdown-header-close:hover {
58 | color: #000000;
59 | }
60 |
61 | .selectize-dropdown.plugin-optgroup_columns .optgroup {
62 | float: left;
63 | border-top: 0 none;
64 | border-right: 1px solid #f2f2f2;
65 | -webkit-box-sizing: border-box;
66 | -moz-box-sizing: border-box;
67 | box-sizing: border-box;
68 | }
69 |
70 | .selectize-dropdown.plugin-optgroup_columns .optgroup:last-child {
71 | border-right: 0 none;
72 | }
73 |
74 | .selectize-dropdown.plugin-optgroup_columns .optgroup:before {
75 | display: none;
76 | }
77 |
78 | .selectize-dropdown.plugin-optgroup_columns .optgroup-header {
79 | border-top: 0 none;
80 | }
81 |
82 | .selectize-control.plugin-remove_button [data-value] {
83 | position: relative;
84 | padding-right: 24px !important;
85 | }
86 |
87 | .selectize-control.plugin-remove_button [data-value] .remove {
88 | position: absolute;
89 | top: 0;
90 | right: 0;
91 | bottom: 0;
92 | display: inline-block;
93 | width: 17px;
94 | padding: 1px 0 0 0;
95 | font-size: 12px;
96 | font-weight: bold;
97 | color: inherit;
98 | text-align: center;
99 | text-decoration: none;
100 | vertical-align: middle;
101 | border-left: 1px solid rgba(0, 0, 0, 0);
102 | -webkit-border-radius: 0 2px 2px 0;
103 | -moz-border-radius: 0 2px 2px 0;
104 | border-radius: 0 2px 2px 0;
105 | -webkit-box-sizing: border-box;
106 | -moz-box-sizing: border-box;
107 | box-sizing: border-box;
108 | }
109 |
110 | .selectize-control.plugin-remove_button [data-value] .remove:hover {
111 | background: rgba(0, 0, 0, 0.05);
112 | }
113 |
114 | .selectize-control.plugin-remove_button [data-value].active .remove {
115 | border-left-color: rgba(0, 0, 0, 0);
116 | }
117 |
118 | .selectize-control.plugin-remove_button .disabled [data-value] .remove:hover {
119 | background: none;
120 | }
121 |
122 | .selectize-control.plugin-remove_button .disabled [data-value] .remove {
123 | border-left-color: rgba(77, 77, 77, 0);
124 | }
125 |
126 | .selectize-control {
127 | position: relative;
128 | }
129 |
130 | .selectize-dropdown,
131 | .selectize-input,
132 | .selectize-input input {
133 | font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
134 | font-size: 14px;
135 | -webkit-font-smoothing: inherit;
136 | line-height: 20px;
137 | color: #333333;
138 | }
139 |
140 | .selectize-input,
141 | .selectize-control.single .selectize-input.input-active {
142 | display: inline-block;
143 | cursor: text;
144 | background: #ffffff;
145 | }
146 |
147 | .selectize-input {
148 | position: relative;
149 | z-index: 1;
150 | display: inline-block;
151 | width: 100%;
152 | padding: 6px 12px;
153 | overflow: hidden;
154 | border: 1px solid #cccccc;
155 | -webkit-border-radius: 4px;
156 | -moz-border-radius: 4px;
157 | border-radius: 4px;
158 | -webkit-box-shadow: none;
159 | box-shadow: none;
160 | -webkit-box-sizing: border-box;
161 | -moz-box-sizing: border-box;
162 | box-sizing: border-box;
163 | }
164 |
165 | .selectize-control.multi .selectize-input.has-items {
166 | padding: 5px 12px 2px;
167 | }
168 |
169 | .selectize-input.full {
170 | background-color: #ffffff;
171 | }
172 |
173 | .selectize-input.disabled,
174 | .selectize-input.disabled * {
175 | cursor: default !important;
176 | }
177 |
178 | .selectize-input.focus {
179 | -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.15);
180 | box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.15);
181 | }
182 |
183 | .selectize-input.dropdown-active {
184 | -webkit-border-radius: 4px 4px 0 0;
185 | -moz-border-radius: 4px 4px 0 0;
186 | border-radius: 4px 4px 0 0;
187 | }
188 |
189 | .selectize-input > * {
190 | display: -moz-inline-stack;
191 | display: inline-block;
192 | *display: inline;
193 | vertical-align: baseline;
194 | zoom: 1;
195 | }
196 |
197 | .selectize-control.multi .selectize-input > div {
198 | padding: 1px 3px;
199 | margin: 0 3px 3px 0;
200 | color: #333333;
201 | cursor: pointer;
202 | background: #efefef;
203 | border: 0 solid rgba(0, 0, 0, 0);
204 | }
205 |
206 | .selectize-control.multi .selectize-input > div.active {
207 | color: #ffffff;
208 | background: #428bca;
209 | border: 0 solid rgba(0, 0, 0, 0);
210 | }
211 |
212 | .selectize-control.multi .selectize-input.disabled > div,
213 | .selectize-control.multi .selectize-input.disabled > div.active {
214 | color: #808080;
215 | background: #ffffff;
216 | border: 0 solid rgba(77, 77, 77, 0);
217 | }
218 |
219 | .selectize-input > input {
220 | max-width: 100% !important;
221 | max-height: none !important;
222 | min-height: 0 !important;
223 | padding: 0 !important;
224 | margin: 0 !important;
225 | line-height: inherit !important;
226 | text-indent: 0 !important;
227 | background: none !important;
228 | border: 0 none !important;
229 | -webkit-box-shadow: none !important;
230 | box-shadow: none !important;
231 | -webkit-user-select: auto !important;
232 | }
233 |
234 | .selectize-input > input:focus {
235 | outline: none !important;
236 | }
237 |
238 | .selectize-input::after {
239 | display: block;
240 | clear: left;
241 | content: ' ';
242 | }
243 |
244 | .selectize-input.dropdown-active::before {
245 | position: absolute;
246 | right: 0;
247 | bottom: 0;
248 | left: 0;
249 | display: block;
250 | height: 1px;
251 | background: #ffffff;
252 | content: ' ';
253 | }
254 |
255 | .selectize-dropdown {
256 | position: absolute;
257 | z-index: 10;
258 | margin: -1px 0 0 0;
259 | background: #ffffff;
260 | border: 1px solid #cccccc;
261 | border-top: 0 none;
262 | -webkit-border-radius: 0 0 4px 4px;
263 | -moz-border-radius: 0 0 4px 4px;
264 | border-radius: 0 0 4px 4px;
265 | -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
266 | box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
267 | -webkit-box-sizing: border-box;
268 | -moz-box-sizing: border-box;
269 | box-sizing: border-box;
270 | }
271 |
272 | .selectize-dropdown [data-selectable] {
273 | overflow: hidden;
274 | cursor: pointer;
275 | }
276 |
277 | .selectize-dropdown [data-selectable] .highlight {
278 | background: rgba(255, 237, 40, 0.4);
279 | -webkit-border-radius: 1px;
280 | -moz-border-radius: 1px;
281 | border-radius: 1px;
282 | }
283 |
284 | .selectize-dropdown [data-selectable],
285 | .selectize-dropdown .optgroup-header {
286 | padding: 3px 12px;
287 | }
288 |
289 | .selectize-dropdown .optgroup:first-child .optgroup-header {
290 | border-top: 0 none;
291 | }
292 |
293 | .selectize-dropdown .optgroup-header {
294 | color: #999999;
295 | cursor: default;
296 | background: #ffffff;
297 | }
298 |
299 | .selectize-dropdown .active {
300 | color: #262626;
301 | background-color: #f5f5f5;
302 | }
303 |
304 | .selectize-dropdown .active.create {
305 | color: #262626;
306 | }
307 |
308 | .selectize-dropdown .create {
309 | color: rgba(51, 51, 51, 0.5);
310 | }
311 |
312 | .selectize-dropdown-content {
313 | max-height: 200px;
314 | overflow-x: hidden;
315 | overflow-y: auto;
316 | }
317 |
318 | .selectize-control.single .selectize-input,
319 | .selectize-control.single .selectize-input input {
320 | cursor: pointer;
321 | }
322 |
323 | .selectize-control.single .selectize-input.input-active,
324 | .selectize-control.single .selectize-input.input-active input {
325 | cursor: text;
326 | }
327 |
328 | .selectize-control.single .selectize-input:after {
329 | position: absolute;
330 | top: 50%;
331 | right: 17px;
332 | display: block;
333 | width: 0;
334 | height: 0;
335 | margin-top: -3px;
336 | border-color: #000000 transparent transparent transparent;
337 | border-style: solid;
338 | border-width: 5px 5px 0 5px;
339 | content: ' ';
340 | }
341 |
342 | .selectize-control.single .selectize-input.dropdown-active:after {
343 | margin-top: -4px;
344 | border-color: transparent transparent #000000 transparent;
345 | border-width: 0 5px 5px 5px;
346 | }
347 |
348 | .selectize-control.rtl.single .selectize-input:after {
349 | right: auto;
350 | left: 17px;
351 | }
352 |
353 | .selectize-control.rtl .selectize-input > input {
354 | margin: 0 4px 0 -2px !important;
355 | }
356 |
357 | .selectize-control .selectize-input.disabled {
358 | background-color: #ffffff;
359 | opacity: 0.5;
360 | }
361 |
362 | .selectize-dropdown,
363 | .selectize-dropdown.form-control {
364 | z-index: 1000;
365 | height: auto;
366 | padding: 0;
367 | margin: 2px 0 0 0;
368 | background: #ffffff;
369 | border: 1px solid #cccccc;
370 | border: 1px solid rgba(0, 0, 0, 0.15);
371 | -webkit-border-radius: 4px;
372 | -moz-border-radius: 4px;
373 | border-radius: 4px;
374 | -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
375 | box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
376 | }
377 |
378 | .selectize-dropdown .optgroup-header {
379 | font-size: 12px;
380 | line-height: 1.428571429;
381 | }
382 |
383 | .selectize-dropdown .optgroup:first-child:before {
384 | display: none;
385 | }
386 |
387 | .selectize-dropdown .optgroup:before {
388 | display: block;
389 | height: 1px;
390 | margin: 9px 0;
391 | margin-right: -12px;
392 | margin-left: -12px;
393 | overflow: hidden;
394 | background-color: #e5e5e5;
395 | content: ' ';
396 | }
397 |
398 | .selectize-dropdown-content {
399 | padding: 5px 0;
400 | }
401 |
402 | .selectize-dropdown-header {
403 | padding: 6px 12px;
404 | }
405 |
406 | .selectize-input {
407 | min-height: 34px;
408 | }
409 |
410 | .selectize-input.dropdown-active {
411 | -webkit-border-radius: 4px;
412 | -moz-border-radius: 4px;
413 | border-radius: 4px;
414 | }
415 |
416 | .selectize-input.dropdown-active::before {
417 | display: none;
418 | }
419 |
420 | .selectize-input.focus {
421 | border-color: #66afe9;
422 | outline: 0;
423 | -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6);
424 | box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6);
425 | }
426 |
427 | .selectize-control.multi .selectize-input.has-items {
428 | padding-right: 9px;
429 | padding-left: 9px;
430 | }
431 |
432 | .selectize-control.multi .selectize-input > div {
433 | -webkit-border-radius: 3px;
434 | -moz-border-radius: 3px;
435 | border-radius: 3px;
436 | }
437 |
438 | .form-control.selectize-control {
439 | height: auto;
440 | padding: 0;
441 | background: none;
442 | border: none;
443 | -webkit-border-radius: 0;
444 | -moz-border-radius: 0;
445 | border-radius: 0;
446 | -webkit-box-shadow: none;
447 | box-shadow: none;
448 | }
--------------------------------------------------------------------------------
/public/vendor/selectize/css/selectize.css:
--------------------------------------------------------------------------------
1 | /**
2 | * selectize.css (v0.8.5)
3 | * Copyright (c) 2013 Brian Reavis & contributors
4 | *
5 | * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this
6 | * file except in compliance with the License. You may obtain a copy of the License at:
7 | * http://www.apache.org/licenses/LICENSE-2.0
8 | *
9 | * Unless required by applicable law or agreed to in writing, software distributed under
10 | * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
11 | * ANY KIND, either express or implied. See the License for the specific language
12 | * governing permissions and limitations under the License.
13 | *
14 | * @author Brian Reavis
15 | */
16 |
17 | .selectize-control.plugin-drag_drop.multi > .selectize-input > div.ui-sortable-placeholder {
18 | background: #f2f2f2 !important;
19 | background: rgba(0, 0, 0, 0.06) !important;
20 | border: 0 none !important;
21 | visibility: visible !important;
22 | -webkit-box-shadow: inset 0 0 12px 4px #ffffff;
23 | box-shadow: inset 0 0 12px 4px #ffffff;
24 | }
25 |
26 | .selectize-control.plugin-drag_drop .ui-sortable-placeholder::after {
27 | content: '!';
28 | visibility: hidden;
29 | }
30 |
31 | .selectize-control.plugin-drag_drop .ui-sortable-helper {
32 | -webkit-box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
33 | box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
34 | }
35 |
36 | .selectize-dropdown-header {
37 | position: relative;
38 | padding: 5px 8px;
39 | background: #f8f8f8;
40 | border-bottom: 1px solid #d0d0d0;
41 | -webkit-border-radius: 3px 3px 0 0;
42 | -moz-border-radius: 3px 3px 0 0;
43 | border-radius: 3px 3px 0 0;
44 | }
45 |
46 | .selectize-dropdown-header-close {
47 | position: absolute;
48 | top: 50%;
49 | right: 8px;
50 | margin-top: -12px;
51 | font-size: 20px !important;
52 | line-height: 20px;
53 | color: #303030;
54 | opacity: 0.4;
55 | }
56 |
57 | .selectize-dropdown-header-close:hover {
58 | color: #000000;
59 | }
60 |
61 | .selectize-dropdown.plugin-optgroup_columns .optgroup {
62 | float: left;
63 | border-top: 0 none;
64 | border-right: 1px solid #f2f2f2;
65 | -webkit-box-sizing: border-box;
66 | -moz-box-sizing: border-box;
67 | box-sizing: border-box;
68 | }
69 |
70 | .selectize-dropdown.plugin-optgroup_columns .optgroup:last-child {
71 | border-right: 0 none;
72 | }
73 |
74 | .selectize-dropdown.plugin-optgroup_columns .optgroup:before {
75 | display: none;
76 | }
77 |
78 | .selectize-dropdown.plugin-optgroup_columns .optgroup-header {
79 | border-top: 0 none;
80 | }
81 |
82 | .selectize-control.plugin-remove_button [data-value] {
83 | position: relative;
84 | padding-right: 24px !important;
85 | }
86 |
87 | .selectize-control.plugin-remove_button [data-value] .remove {
88 | position: absolute;
89 | top: 0;
90 | right: 0;
91 | bottom: 0;
92 | display: inline-block;
93 | width: 17px;
94 | padding: 2px 0 0 0;
95 | font-size: 12px;
96 | font-weight: bold;
97 | color: inherit;
98 | text-align: center;
99 | text-decoration: none;
100 | vertical-align: middle;
101 | border-left: 1px solid #d0d0d0;
102 | -webkit-border-radius: 0 2px 2px 0;
103 | -moz-border-radius: 0 2px 2px 0;
104 | border-radius: 0 2px 2px 0;
105 | -webkit-box-sizing: border-box;
106 | -moz-box-sizing: border-box;
107 | box-sizing: border-box;
108 | }
109 |
110 | .selectize-control.plugin-remove_button [data-value] .remove:hover {
111 | background: rgba(0, 0, 0, 0.05);
112 | }
113 |
114 | .selectize-control.plugin-remove_button [data-value].active .remove {
115 | border-left-color: #cacaca;
116 | }
117 |
118 | .selectize-control.plugin-remove_button .disabled [data-value] .remove:hover {
119 | background: none;
120 | }
121 |
122 | .selectize-control.plugin-remove_button .disabled [data-value] .remove {
123 | border-left-color: #ffffff;
124 | }
125 |
126 | .selectize-control {
127 | position: relative;
128 | }
129 |
130 | .selectize-dropdown,
131 | .selectize-input,
132 | .selectize-input input {
133 | font-family: inherit;
134 | font-size: 13px;
135 | -webkit-font-smoothing: inherit;
136 | line-height: 18px;
137 | color: #303030;
138 | }
139 |
140 | .selectize-input,
141 | .selectize-control.single .selectize-input.input-active {
142 | display: inline-block;
143 | cursor: text;
144 | background: #ffffff;
145 | }
146 |
147 | .selectize-input {
148 | position: relative;
149 | z-index: 1;
150 | display: inline-block;
151 | width: 100%;
152 | padding: 8px 8px;
153 | overflow: hidden;
154 | border: 1px solid #d0d0d0;
155 | -webkit-border-radius: 3px;
156 | -moz-border-radius: 3px;
157 | border-radius: 3px;
158 | -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.1);
159 | box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.1);
160 | -webkit-box-sizing: border-box;
161 | -moz-box-sizing: border-box;
162 | box-sizing: border-box;
163 | }
164 |
165 | .selectize-control.multi .selectize-input.has-items {
166 | padding: 6px 8px 3px;
167 | }
168 |
169 | .selectize-input.full {
170 | background-color: #ffffff;
171 | }
172 |
173 | .selectize-input.disabled,
174 | .selectize-input.disabled * {
175 | cursor: default !important;
176 | }
177 |
178 | .selectize-input.focus {
179 | -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.15);
180 | box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.15);
181 | }
182 |
183 | .selectize-input.dropdown-active {
184 | -webkit-border-radius: 3px 3px 0 0;
185 | -moz-border-radius: 3px 3px 0 0;
186 | border-radius: 3px 3px 0 0;
187 | }
188 |
189 | .selectize-input > * {
190 | display: -moz-inline-stack;
191 | display: inline-block;
192 | *display: inline;
193 | vertical-align: baseline;
194 | zoom: 1;
195 | }
196 |
197 | .selectize-control.multi .selectize-input > div {
198 | padding: 2px 6px;
199 | margin: 0 3px 3px 0;
200 | color: #303030;
201 | cursor: pointer;
202 | background: #f2f2f2;
203 | border: 0 solid #d0d0d0;
204 | }
205 |
206 | .selectize-control.multi .selectize-input > div.active {
207 | color: #303030;
208 | background: #e8e8e8;
209 | border: 0 solid #cacaca;
210 | }
211 |
212 | .selectize-control.multi .selectize-input.disabled > div,
213 | .selectize-control.multi .selectize-input.disabled > div.active {
214 | color: #7d7d7d;
215 | background: #ffffff;
216 | border: 0 solid #ffffff;
217 | }
218 |
219 | .selectize-input > input {
220 | max-width: 100% !important;
221 | max-height: none !important;
222 | min-height: 0 !important;
223 | padding: 0 !important;
224 | margin: 0 2px 0 0 !important;
225 | line-height: inherit !important;
226 | text-indent: 0 !important;
227 | background: none !important;
228 | border: 0 none !important;
229 | -webkit-box-shadow: none !important;
230 | box-shadow: none !important;
231 | -webkit-user-select: auto !important;
232 | }
233 |
234 | .selectize-input > input:focus {
235 | outline: none !important;
236 | }
237 |
238 | .selectize-input::after {
239 | display: block;
240 | clear: left;
241 | content: ' ';
242 | }
243 |
244 | .selectize-input.dropdown-active::before {
245 | position: absolute;
246 | right: 0;
247 | bottom: 0;
248 | left: 0;
249 | display: block;
250 | height: 1px;
251 | background: #f0f0f0;
252 | content: ' ';
253 | }
254 |
255 | .selectize-dropdown {
256 | position: absolute;
257 | z-index: 10;
258 | margin: -1px 0 0 0;
259 | background: #ffffff;
260 | border: 1px solid #d0d0d0;
261 | border-top: 0 none;
262 | -webkit-border-radius: 0 0 3px 3px;
263 | -moz-border-radius: 0 0 3px 3px;
264 | border-radius: 0 0 3px 3px;
265 | -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
266 | box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
267 | -webkit-box-sizing: border-box;
268 | -moz-box-sizing: border-box;
269 | box-sizing: border-box;
270 | }
271 |
272 | .selectize-dropdown [data-selectable] {
273 | overflow: hidden;
274 | cursor: pointer;
275 | }
276 |
277 | .selectize-dropdown [data-selectable] .highlight {
278 | background: rgba(125, 168, 208, 0.2);
279 | -webkit-border-radius: 1px;
280 | -moz-border-radius: 1px;
281 | border-radius: 1px;
282 | }
283 |
284 | .selectize-dropdown [data-selectable],
285 | .selectize-dropdown .optgroup-header {
286 | padding: 5px 8px;
287 | }
288 |
289 | .selectize-dropdown .optgroup:first-child .optgroup-header {
290 | border-top: 0 none;
291 | }
292 |
293 | .selectize-dropdown .optgroup-header {
294 | color: #303030;
295 | cursor: default;
296 | background: #ffffff;
297 | }
298 |
299 | .selectize-dropdown .active {
300 | color: #495c68;
301 | background-color: #f5fafd;
302 | }
303 |
304 | .selectize-dropdown .active.create {
305 | color: #495c68;
306 | }
307 |
308 | .selectize-dropdown .create {
309 | color: rgba(48, 48, 48, 0.5);
310 | }
311 |
312 | .selectize-dropdown-content {
313 | max-height: 200px;
314 | overflow-x: hidden;
315 | overflow-y: auto;
316 | }
317 |
318 | .selectize-control.single .selectize-input,
319 | .selectize-control.single .selectize-input input {
320 | cursor: pointer;
321 | }
322 |
323 | .selectize-control.single .selectize-input.input-active,
324 | .selectize-control.single .selectize-input.input-active input {
325 | cursor: text;
326 | }
327 |
328 | .selectize-control.single .selectize-input:after {
329 | position: absolute;
330 | top: 50%;
331 | right: 15px;
332 | display: block;
333 | width: 0;
334 | height: 0;
335 | margin-top: -3px;
336 | border-color: #808080 transparent transparent transparent;
337 | border-style: solid;
338 | border-width: 5px 5px 0 5px;
339 | content: ' ';
340 | }
341 |
342 | .selectize-control.single .selectize-input.dropdown-active:after {
343 | margin-top: -4px;
344 | border-color: transparent transparent #808080 transparent;
345 | border-width: 0 5px 5px 5px;
346 | }
347 |
348 | .selectize-control.rtl.single .selectize-input:after {
349 | right: auto;
350 | left: 15px;
351 | }
352 |
353 | .selectize-control.rtl .selectize-input > input {
354 | margin: 0 4px 0 -2px !important;
355 | }
356 |
357 | .selectize-control .selectize-input.disabled {
358 | background-color: #fafafa;
359 | opacity: 0.5;
360 | }
--------------------------------------------------------------------------------
/public/vendor/selectize/css/selectize.default.css:
--------------------------------------------------------------------------------
1 | /**
2 | * selectize.default.css (v0.8.5) - Default Theme
3 | * Copyright (c) 2013 Brian Reavis & contributors
4 | *
5 | * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this
6 | * file except in compliance with the License. You may obtain a copy of the License at:
7 | * http://www.apache.org/licenses/LICENSE-2.0
8 | *
9 | * Unless required by applicable law or agreed to in writing, software distributed under
10 | * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
11 | * ANY KIND, either express or implied. See the License for the specific language
12 | * governing permissions and limitations under the License.
13 | *
14 | * @author Brian Reavis
15 | */
16 |
17 | .selectize-control.plugin-drag_drop.multi > .selectize-input > div.ui-sortable-placeholder {
18 | background: #f2f2f2 !important;
19 | background: rgba(0, 0, 0, 0.06) !important;
20 | border: 0 none !important;
21 | visibility: visible !important;
22 | -webkit-box-shadow: inset 0 0 12px 4px #ffffff;
23 | box-shadow: inset 0 0 12px 4px #ffffff;
24 | }
25 |
26 | .selectize-control.plugin-drag_drop .ui-sortable-placeholder::after {
27 | content: '!';
28 | visibility: hidden;
29 | }
30 |
31 | .selectize-control.plugin-drag_drop .ui-sortable-helper {
32 | -webkit-box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
33 | box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
34 | }
35 |
36 | .selectize-dropdown-header {
37 | position: relative;
38 | padding: 5px 8px;
39 | background: #f8f8f8;
40 | border-bottom: 1px solid #d0d0d0;
41 | -webkit-border-radius: 3px 3px 0 0;
42 | -moz-border-radius: 3px 3px 0 0;
43 | border-radius: 3px 3px 0 0;
44 | }
45 |
46 | .selectize-dropdown-header-close {
47 | position: absolute;
48 | top: 50%;
49 | right: 8px;
50 | margin-top: -12px;
51 | font-size: 20px !important;
52 | line-height: 20px;
53 | color: #303030;
54 | opacity: 0.4;
55 | }
56 |
57 | .selectize-dropdown-header-close:hover {
58 | color: #000000;
59 | }
60 |
61 | .selectize-dropdown.plugin-optgroup_columns .optgroup {
62 | float: left;
63 | border-top: 0 none;
64 | border-right: 1px solid #f2f2f2;
65 | -webkit-box-sizing: border-box;
66 | -moz-box-sizing: border-box;
67 | box-sizing: border-box;
68 | }
69 |
70 | .selectize-dropdown.plugin-optgroup_columns .optgroup:last-child {
71 | border-right: 0 none;
72 | }
73 |
74 | .selectize-dropdown.plugin-optgroup_columns .optgroup:before {
75 | display: none;
76 | }
77 |
78 | .selectize-dropdown.plugin-optgroup_columns .optgroup-header {
79 | border-top: 0 none;
80 | }
81 |
82 | .selectize-control.plugin-remove_button [data-value] {
83 | position: relative;
84 | padding-right: 24px !important;
85 | }
86 |
87 | .selectize-control.plugin-remove_button [data-value] .remove {
88 | position: absolute;
89 | top: 0;
90 | right: 0;
91 | bottom: 0;
92 | display: inline-block;
93 | width: 17px;
94 | padding: 2px 0 0 0;
95 | font-size: 12px;
96 | font-weight: bold;
97 | color: inherit;
98 | text-align: center;
99 | text-decoration: none;
100 | vertical-align: middle;
101 | border-left: 1px solid #0073bb;
102 | -webkit-border-radius: 0 2px 2px 0;
103 | -moz-border-radius: 0 2px 2px 0;
104 | border-radius: 0 2px 2px 0;
105 | -webkit-box-sizing: border-box;
106 | -moz-box-sizing: border-box;
107 | box-sizing: border-box;
108 | }
109 |
110 | .selectize-control.plugin-remove_button [data-value] .remove:hover {
111 | background: rgba(0, 0, 0, 0.05);
112 | }
113 |
114 | .selectize-control.plugin-remove_button [data-value].active .remove {
115 | border-left-color: #00578d;
116 | }
117 |
118 | .selectize-control.plugin-remove_button .disabled [data-value] .remove:hover {
119 | background: none;
120 | }
121 |
122 | .selectize-control.plugin-remove_button .disabled [data-value] .remove {
123 | border-left-color: #aaaaaa;
124 | }
125 |
126 | .selectize-control {
127 | position: relative;
128 | }
129 |
130 | .selectize-dropdown,
131 | .selectize-input,
132 | .selectize-input input {
133 | font-family: inherit;
134 | font-size: 13px;
135 | -webkit-font-smoothing: inherit;
136 | line-height: 18px;
137 | color: #303030;
138 | }
139 |
140 | .selectize-input,
141 | .selectize-control.single .selectize-input.input-active {
142 | display: inline-block;
143 | cursor: text;
144 | background: #ffffff;
145 | }
146 |
147 | .selectize-input {
148 | position: relative;
149 | z-index: 1;
150 | display: inline-block;
151 | width: 100%;
152 | padding: 8px 8px;
153 | overflow: hidden;
154 | border: 1px solid #d0d0d0;
155 | -webkit-border-radius: 3px;
156 | -moz-border-radius: 3px;
157 | border-radius: 3px;
158 | -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.1);
159 | box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.1);
160 | -webkit-box-sizing: border-box;
161 | -moz-box-sizing: border-box;
162 | box-sizing: border-box;
163 | }
164 |
165 | .selectize-control.multi .selectize-input.has-items {
166 | padding: 5px 8px 2px;
167 | }
168 |
169 | .selectize-input.full {
170 | background-color: #ffffff;
171 | }
172 |
173 | .selectize-input.disabled,
174 | .selectize-input.disabled * {
175 | cursor: default !important;
176 | }
177 |
178 | .selectize-input.focus {
179 | -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.15);
180 | box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.15);
181 | }
182 |
183 | .selectize-input.dropdown-active {
184 | -webkit-border-radius: 3px 3px 0 0;
185 | -moz-border-radius: 3px 3px 0 0;
186 | border-radius: 3px 3px 0 0;
187 | }
188 |
189 | .selectize-input > * {
190 | display: -moz-inline-stack;
191 | display: inline-block;
192 | *display: inline;
193 | vertical-align: baseline;
194 | zoom: 1;
195 | }
196 |
197 | .selectize-control.multi .selectize-input > div {
198 | padding: 2px 6px;
199 | margin: 0 3px 3px 0;
200 | color: #ffffff;
201 | cursor: pointer;
202 | background: #1da7ee;
203 | border: 1px solid #0073bb;
204 | }
205 |
206 | .selectize-control.multi .selectize-input > div.active {
207 | color: #ffffff;
208 | background: #92c836;
209 | border: 1px solid #00578d;
210 | }
211 |
212 | .selectize-control.multi .selectize-input.disabled > div,
213 | .selectize-control.multi .selectize-input.disabled > div.active {
214 | color: #ffffff;
215 | background: #d2d2d2;
216 | border: 1px solid #aaaaaa;
217 | }
218 |
219 | .selectize-input > input {
220 | max-width: 100% !important;
221 | max-height: none !important;
222 | min-height: 0 !important;
223 | padding: 0 !important;
224 | margin: 0 1px !important;
225 | line-height: inherit !important;
226 | text-indent: 0 !important;
227 | background: none !important;
228 | border: 0 none !important;
229 | -webkit-box-shadow: none !important;
230 | box-shadow: none !important;
231 | -webkit-user-select: auto !important;
232 | }
233 |
234 | .selectize-input > input:focus {
235 | outline: none !important;
236 | }
237 |
238 | .selectize-input::after {
239 | display: block;
240 | clear: left;
241 | content: ' ';
242 | }
243 |
244 | .selectize-input.dropdown-active::before {
245 | position: absolute;
246 | right: 0;
247 | bottom: 0;
248 | left: 0;
249 | display: block;
250 | height: 1px;
251 | background: #f0f0f0;
252 | content: ' ';
253 | }
254 |
255 | .selectize-dropdown {
256 | position: absolute;
257 | z-index: 10;
258 | margin: -1px 0 0 0;
259 | background: #ffffff;
260 | border: 1px solid #d0d0d0;
261 | border-top: 0 none;
262 | -webkit-border-radius: 0 0 3px 3px;
263 | -moz-border-radius: 0 0 3px 3px;
264 | border-radius: 0 0 3px 3px;
265 | -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
266 | box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
267 | -webkit-box-sizing: border-box;
268 | -moz-box-sizing: border-box;
269 | box-sizing: border-box;
270 | }
271 |
272 | .selectize-dropdown [data-selectable] {
273 | overflow: hidden;
274 | cursor: pointer;
275 | }
276 |
277 | .selectize-dropdown [data-selectable] .highlight {
278 | background: rgba(125, 168, 208, 0.2);
279 | -webkit-border-radius: 1px;
280 | -moz-border-radius: 1px;
281 | border-radius: 1px;
282 | }
283 |
284 | .selectize-dropdown [data-selectable],
285 | .selectize-dropdown .optgroup-header {
286 | padding: 5px 8px;
287 | }
288 |
289 | .selectize-dropdown .optgroup:first-child .optgroup-header {
290 | border-top: 0 none;
291 | }
292 |
293 | .selectize-dropdown .optgroup-header {
294 | color: #303030;
295 | cursor: default;
296 | background: #ffffff;
297 | }
298 |
299 | .selectize-dropdown .active {
300 | color: #495c68;
301 | background-color: #f5fafd;
302 | }
303 |
304 | .selectize-dropdown .active.create {
305 | color: #495c68;
306 | }
307 |
308 | .selectize-dropdown .create {
309 | color: rgba(48, 48, 48, 0.5);
310 | }
311 |
312 | .selectize-dropdown-content {
313 | max-height: 200px;
314 | overflow-x: hidden;
315 | overflow-y: auto;
316 | }
317 |
318 | .selectize-control.single .selectize-input,
319 | .selectize-control.single .selectize-input input {
320 | cursor: pointer;
321 | }
322 |
323 | .selectize-control.single .selectize-input.input-active,
324 | .selectize-control.single .selectize-input.input-active input {
325 | cursor: text;
326 | }
327 |
328 | .selectize-control.single .selectize-input:after {
329 | position: absolute;
330 | top: 50%;
331 | right: 15px;
332 | display: block;
333 | width: 0;
334 | height: 0;
335 | margin-top: -3px;
336 | border-color: #808080 transparent transparent transparent;
337 | border-style: solid;
338 | border-width: 5px 5px 0 5px;
339 | content: ' ';
340 | }
341 |
342 | .selectize-control.single .selectize-input.dropdown-active:after {
343 | margin-top: -4px;
344 | border-color: transparent transparent #808080 transparent;
345 | border-width: 0 5px 5px 5px;
346 | }
347 |
348 | .selectize-control.rtl.single .selectize-input:after {
349 | right: auto;
350 | left: 15px;
351 | }
352 |
353 | .selectize-control.rtl .selectize-input > input {
354 | margin: 0 4px 0 -2px !important;
355 | }
356 |
357 | .selectize-control .selectize-input.disabled {
358 | background-color: #fafafa;
359 | opacity: 0.5;
360 | }
361 |
362 | .selectize-control.multi .selectize-input.has-items {
363 | padding-right: 5px;
364 | padding-left: 5px;
365 | }
366 |
367 | .selectize-control.multi .selectize-input.disabled [data-value] {
368 | color: #999;
369 | text-shadow: none;
370 | background: none;
371 | -webkit-box-shadow: none;
372 | box-shadow: none;
373 | }
374 |
375 | .selectize-control.multi .selectize-input.disabled [data-value],
376 | .selectize-control.multi .selectize-input.disabled [data-value] .remove {
377 | border-color: #e6e6e6;
378 | }
379 |
380 | .selectize-control.multi .selectize-input.disabled [data-value] .remove {
381 | background: none;
382 | }
383 |
384 | .selectize-control.multi .selectize-input [data-value] {
385 | text-shadow: 0 1px 0 rgba(0, 51, 83, 0.3);
386 | background-color: #1b9dec;
387 | background-image: -moz-linear-gradient(top, #1da7ee, #178ee9);
388 | background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#1da7ee), to(#178ee9));
389 | background-image: -webkit-linear-gradient(top, #1da7ee, #178ee9);
390 | background-image: -o-linear-gradient(top, #1da7ee, #178ee9);
391 | background-image: linear-gradient(to bottom, #1da7ee, #178ee9);
392 | background-repeat: repeat-x;
393 | -webkit-border-radius: 3px;
394 | -moz-border-radius: 3px;
395 | border-radius: 3px;
396 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff1da7ee', endColorstr='#ff178ee9', GradientType=0);
397 | -webkit-box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2), inset 0 1px rgba(255, 255, 255, 0.03);
398 | box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2), inset 0 1px rgba(255, 255, 255, 0.03);
399 | }
400 |
401 | .selectize-control.multi .selectize-input [data-value].active {
402 | background-color: #0085d4;
403 | background-image: -moz-linear-gradient(top, #008fd8, #0075cf);
404 | background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#008fd8), to(#0075cf));
405 | background-image: -webkit-linear-gradient(top, #008fd8, #0075cf);
406 | background-image: -o-linear-gradient(top, #008fd8, #0075cf);
407 | background-image: linear-gradient(to bottom, #008fd8, #0075cf);
408 | background-repeat: repeat-x;
409 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff008fd8', endColorstr='#ff0075cf', GradientType=0);
410 | }
411 |
412 | .selectize-control.single .selectize-input {
413 | background-color: #f9f9f9;
414 | background-image: -moz-linear-gradient(top, #fefefe, #f2f2f2);
415 | background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#fefefe), to(#f2f2f2));
416 | background-image: -webkit-linear-gradient(top, #fefefe, #f2f2f2);
417 | background-image: -o-linear-gradient(top, #fefefe, #f2f2f2);
418 | background-image: linear-gradient(to bottom, #fefefe, #f2f2f2);
419 | background-repeat: repeat-x;
420 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffefefe', endColorstr='#fff2f2f2', GradientType=0);
421 | -webkit-box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.8);
422 | box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.8);
423 | }
424 |
425 | .selectize-control.single .selectize-input,
426 | .selectize-dropdown.single {
427 | border-color: #b8b8b8;
428 | }
429 |
430 | .selectize-dropdown .optgroup-header {
431 | padding-top: 7px;
432 | font-size: 0.85em;
433 | font-weight: bold;
434 | }
435 |
436 | .selectize-dropdown .optgroup {
437 | border-top: 1px solid #f0f0f0;
438 | }
439 |
440 | .selectize-dropdown .optgroup:first-child {
441 | border-top: 0 none;
442 | }
--------------------------------------------------------------------------------
/public/vendor/selectize/css/selectize.legacy.css:
--------------------------------------------------------------------------------
1 | /**
2 | * selectize.legacy.css (v0.8.5) - Default Theme
3 | * Copyright (c) 2013 Brian Reavis & contributors
4 | *
5 | * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this
6 | * file except in compliance with the License. You may obtain a copy of the License at:
7 | * http://www.apache.org/licenses/LICENSE-2.0
8 | *
9 | * Unless required by applicable law or agreed to in writing, software distributed under
10 | * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
11 | * ANY KIND, either express or implied. See the License for the specific language
12 | * governing permissions and limitations under the License.
13 | *
14 | * @author Brian Reavis
15 | */
16 |
17 | .selectize-control.plugin-drag_drop.multi > .selectize-input > div.ui-sortable-placeholder {
18 | background: #f2f2f2 !important;
19 | background: rgba(0, 0, 0, 0.06) !important;
20 | border: 0 none !important;
21 | visibility: visible !important;
22 | -webkit-box-shadow: inset 0 0 12px 4px #ffffff;
23 | box-shadow: inset 0 0 12px 4px #ffffff;
24 | }
25 |
26 | .selectize-control.plugin-drag_drop .ui-sortable-placeholder::after {
27 | content: '!';
28 | visibility: hidden;
29 | }
30 |
31 | .selectize-control.plugin-drag_drop .ui-sortable-helper {
32 | -webkit-box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
33 | box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
34 | }
35 |
36 | .selectize-dropdown-header {
37 | position: relative;
38 | padding: 7px 10px;
39 | background: #f8f8f8;
40 | border-bottom: 1px solid #d0d0d0;
41 | -webkit-border-radius: 3px 3px 0 0;
42 | -moz-border-radius: 3px 3px 0 0;
43 | border-radius: 3px 3px 0 0;
44 | }
45 |
46 | .selectize-dropdown-header-close {
47 | position: absolute;
48 | top: 50%;
49 | right: 10px;
50 | margin-top: -12px;
51 | font-size: 20px !important;
52 | line-height: 20px;
53 | color: #303030;
54 | opacity: 0.4;
55 | }
56 |
57 | .selectize-dropdown-header-close:hover {
58 | color: #000000;
59 | }
60 |
61 | .selectize-dropdown.plugin-optgroup_columns .optgroup {
62 | float: left;
63 | border-top: 0 none;
64 | border-right: 1px solid #f2f2f2;
65 | -webkit-box-sizing: border-box;
66 | -moz-box-sizing: border-box;
67 | box-sizing: border-box;
68 | }
69 |
70 | .selectize-dropdown.plugin-optgroup_columns .optgroup:last-child {
71 | border-right: 0 none;
72 | }
73 |
74 | .selectize-dropdown.plugin-optgroup_columns .optgroup:before {
75 | display: none;
76 | }
77 |
78 | .selectize-dropdown.plugin-optgroup_columns .optgroup-header {
79 | border-top: 0 none;
80 | }
81 |
82 | .selectize-control.plugin-remove_button [data-value] {
83 | position: relative;
84 | padding-right: 24px !important;
85 | }
86 |
87 | .selectize-control.plugin-remove_button [data-value] .remove {
88 | position: absolute;
89 | top: 0;
90 | right: 0;
91 | bottom: 0;
92 | display: inline-block;
93 | width: 17px;
94 | padding: 1px 0 0 0;
95 | font-size: 12px;
96 | font-weight: bold;
97 | color: inherit;
98 | text-align: center;
99 | text-decoration: none;
100 | vertical-align: middle;
101 | border-left: 1px solid #74b21e;
102 | -webkit-border-radius: 0 2px 2px 0;
103 | -moz-border-radius: 0 2px 2px 0;
104 | border-radius: 0 2px 2px 0;
105 | -webkit-box-sizing: border-box;
106 | -moz-box-sizing: border-box;
107 | box-sizing: border-box;
108 | }
109 |
110 | .selectize-control.plugin-remove_button [data-value] .remove:hover {
111 | background: rgba(0, 0, 0, 0.05);
112 | }
113 |
114 | .selectize-control.plugin-remove_button [data-value].active .remove {
115 | border-left-color: #6f9839;
116 | }
117 |
118 | .selectize-control.plugin-remove_button .disabled [data-value] .remove:hover {
119 | background: none;
120 | }
121 |
122 | .selectize-control.plugin-remove_button .disabled [data-value] .remove {
123 | border-left-color: #b4b4b4;
124 | }
125 |
126 | .selectize-control {
127 | position: relative;
128 | }
129 |
130 | .selectize-dropdown,
131 | .selectize-input,
132 | .selectize-input input {
133 | font-family: inherit;
134 | font-size: 13px;
135 | -webkit-font-smoothing: inherit;
136 | line-height: 20px;
137 | color: #303030;
138 | }
139 |
140 | .selectize-input,
141 | .selectize-control.single .selectize-input.input-active {
142 | display: inline-block;
143 | cursor: text;
144 | background: #ffffff;
145 | }
146 |
147 | .selectize-input {
148 | position: relative;
149 | z-index: 1;
150 | display: inline-block;
151 | width: 100%;
152 | padding: 10px 10px;
153 | overflow: hidden;
154 | border: 1px solid #d0d0d0;
155 | -webkit-border-radius: 3px;
156 | -moz-border-radius: 3px;
157 | border-radius: 3px;
158 | -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.1);
159 | box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.1);
160 | -webkit-box-sizing: border-box;
161 | -moz-box-sizing: border-box;
162 | box-sizing: border-box;
163 | }
164 |
165 | .selectize-control.multi .selectize-input.has-items {
166 | padding: 8px 10px 4px;
167 | }
168 |
169 | .selectize-input.full {
170 | background-color: #f2f2f2;
171 | }
172 |
173 | .selectize-input.disabled,
174 | .selectize-input.disabled * {
175 | cursor: default !important;
176 | }
177 |
178 | .selectize-input.focus {
179 | -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.15);
180 | box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.15);
181 | }
182 |
183 | .selectize-input.dropdown-active {
184 | -webkit-border-radius: 3px 3px 0 0;
185 | -moz-border-radius: 3px 3px 0 0;
186 | border-radius: 3px 3px 0 0;
187 | }
188 |
189 | .selectize-input > * {
190 | display: -moz-inline-stack;
191 | display: inline-block;
192 | *display: inline;
193 | vertical-align: baseline;
194 | zoom: 1;
195 | }
196 |
197 | .selectize-control.multi .selectize-input > div {
198 | padding: 1px 5px;
199 | margin: 0 4px 4px 0;
200 | color: #3d5d18;
201 | cursor: pointer;
202 | background: #b8e76f;
203 | border: 1px solid #74b21e;
204 | }
205 |
206 | .selectize-control.multi .selectize-input > div.active {
207 | color: #303030;
208 | background: #92c836;
209 | border: 1px solid #6f9839;
210 | }
211 |
212 | .selectize-control.multi .selectize-input.disabled > div,
213 | .selectize-control.multi .selectize-input.disabled > div.active {
214 | color: #878787;
215 | background: #f8f8f8;
216 | border: 1px solid #b4b4b4;
217 | }
218 |
219 | .selectize-input > input {
220 | max-width: 100% !important;
221 | max-height: none !important;
222 | min-height: 0 !important;
223 | padding: 0 !important;
224 | margin: 0 2px 0 0 !important;
225 | line-height: inherit !important;
226 | text-indent: 0 !important;
227 | background: none !important;
228 | border: 0 none !important;
229 | -webkit-box-shadow: none !important;
230 | box-shadow: none !important;
231 | -webkit-user-select: auto !important;
232 | }
233 |
234 | .selectize-input > input:focus {
235 | outline: none !important;
236 | }
237 |
238 | .selectize-input::after {
239 | display: block;
240 | clear: left;
241 | content: ' ';
242 | }
243 |
244 | .selectize-input.dropdown-active::before {
245 | position: absolute;
246 | right: 0;
247 | bottom: 0;
248 | left: 0;
249 | display: block;
250 | height: 1px;
251 | background: #f0f0f0;
252 | content: ' ';
253 | }
254 |
255 | .selectize-dropdown {
256 | position: absolute;
257 | z-index: 10;
258 | margin: -1px 0 0 0;
259 | background: #ffffff;
260 | border: 1px solid #d0d0d0;
261 | border-top: 0 none;
262 | -webkit-border-radius: 0 0 3px 3px;
263 | -moz-border-radius: 0 0 3px 3px;
264 | border-radius: 0 0 3px 3px;
265 | -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
266 | box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
267 | -webkit-box-sizing: border-box;
268 | -moz-box-sizing: border-box;
269 | box-sizing: border-box;
270 | }
271 |
272 | .selectize-dropdown [data-selectable] {
273 | overflow: hidden;
274 | cursor: pointer;
275 | }
276 |
277 | .selectize-dropdown [data-selectable] .highlight {
278 | background: rgba(255, 237, 40, 0.4);
279 | -webkit-border-radius: 1px;
280 | -moz-border-radius: 1px;
281 | border-radius: 1px;
282 | }
283 |
284 | .selectize-dropdown [data-selectable],
285 | .selectize-dropdown .optgroup-header {
286 | padding: 7px 10px;
287 | }
288 |
289 | .selectize-dropdown .optgroup:first-child .optgroup-header {
290 | border-top: 0 none;
291 | }
292 |
293 | .selectize-dropdown .optgroup-header {
294 | color: #303030;
295 | cursor: default;
296 | background: #f8f8f8;
297 | }
298 |
299 | .selectize-dropdown .active {
300 | color: #303030;
301 | background-color: #fffceb;
302 | }
303 |
304 | .selectize-dropdown .active.create {
305 | color: #303030;
306 | }
307 |
308 | .selectize-dropdown .create {
309 | color: rgba(48, 48, 48, 0.5);
310 | }
311 |
312 | .selectize-dropdown-content {
313 | max-height: 200px;
314 | overflow-x: hidden;
315 | overflow-y: auto;
316 | }
317 |
318 | .selectize-control.single .selectize-input,
319 | .selectize-control.single .selectize-input input {
320 | cursor: pointer;
321 | }
322 |
323 | .selectize-control.single .selectize-input.input-active,
324 | .selectize-control.single .selectize-input.input-active input {
325 | cursor: text;
326 | }
327 |
328 | .selectize-control.single .selectize-input:after {
329 | position: absolute;
330 | top: 50%;
331 | right: 15px;
332 | display: block;
333 | width: 0;
334 | height: 0;
335 | margin-top: -3px;
336 | border-color: #808080 transparent transparent transparent;
337 | border-style: solid;
338 | border-width: 5px 5px 0 5px;
339 | content: ' ';
340 | }
341 |
342 | .selectize-control.single .selectize-input.dropdown-active:after {
343 | margin-top: -4px;
344 | border-color: transparent transparent #808080 transparent;
345 | border-width: 0 5px 5px 5px;
346 | }
347 |
348 | .selectize-control.rtl.single .selectize-input:after {
349 | right: auto;
350 | left: 15px;
351 | }
352 |
353 | .selectize-control.rtl .selectize-input > input {
354 | margin: 0 4px 0 -2px !important;
355 | }
356 |
357 | .selectize-control .selectize-input.disabled {
358 | background-color: #fafafa;
359 | opacity: 0.5;
360 | }
361 |
362 | .selectize-control.multi .selectize-input [data-value] {
363 | text-shadow: 0 1px 0 rgba(255, 255, 255, 0.1);
364 | background-color: #b2e567;
365 | background-image: -moz-linear-gradient(top, #b8e76f, #a9e25c);
366 | background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#b8e76f), to(#a9e25c));
367 | background-image: -webkit-linear-gradient(top, #b8e76f, #a9e25c);
368 | background-image: -o-linear-gradient(top, #b8e76f, #a9e25c);
369 | background-image: linear-gradient(to bottom, #b8e76f, #a9e25c);
370 | background-repeat: repeat-x;
371 | -webkit-border-radius: 3px;
372 | -moz-border-radius: 3px;
373 | border-radius: 3px;
374 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffb8e76f', endColorstr='#ffa9e25c', GradientType=0);
375 | -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
376 | box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
377 | }
378 |
379 | .selectize-control.multi .selectize-input [data-value].active {
380 | background-color: #88c332;
381 | background-image: -moz-linear-gradient(top, #92c836, #7abc2c);
382 | background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#92c836), to(#7abc2c));
383 | background-image: -webkit-linear-gradient(top, #92c836, #7abc2c);
384 | background-image: -o-linear-gradient(top, #92c836, #7abc2c);
385 | background-image: linear-gradient(to bottom, #92c836, #7abc2c);
386 | background-repeat: repeat-x;
387 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff92c836', endColorstr='#ff7abc2c', GradientType=0);
388 | }
389 |
390 | .selectize-control.single .selectize-input {
391 | background-color: #f3f3f3;
392 | background-image: -moz-linear-gradient(top, #f5f5f5, #efefef);
393 | background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#f5f5f5), to(#efefef));
394 | background-image: -webkit-linear-gradient(top, #f5f5f5, #efefef);
395 | background-image: -o-linear-gradient(top, #f5f5f5, #efefef);
396 | background-image: linear-gradient(to bottom, #f5f5f5, #efefef);
397 | background-repeat: repeat-x;
398 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff5f5f5', endColorstr='#ffefefef', GradientType=0);
399 | -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 2px 0 #e0e0e0, 0 3px 0 #c8c8c8, 0 4px 1px rgba(0, 0, 0, 0.1);
400 | box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 2px 0 #e0e0e0, 0 3px 0 #c8c8c8, 0 4px 1px rgba(0, 0, 0, 0.1);
401 | }
402 |
403 | .selectize-control.single .selectize-input,
404 | .selectize-dropdown.single {
405 | border-color: #b8b8b8;
406 | }
407 |
408 | .selectize-dropdown .optgroup-header {
409 | font-size: 0.8em;
410 | font-weight: bold;
411 | border-top: 1px solid #f0f0f0;
412 | border-bottom: 1px solid #f0f0f0;
413 | }
--------------------------------------------------------------------------------
/public/vendor/selectize/less/plugins/drag_drop.less:
--------------------------------------------------------------------------------
1 | .selectize-control.plugin-drag_drop {
2 | &.multi > .selectize-input > div.ui-sortable-placeholder {
3 | visibility: visible !important;
4 | background: #f2f2f2 !important;
5 | background: rgba(0,0,0,0.06) !important;
6 | border: 0 none !important;
7 | .selectize-box-shadow(inset 0 0 12px 4px #fff);
8 | }
9 | .ui-sortable-placeholder::after {
10 | content: '!';
11 | visibility: hidden;
12 | }
13 | .ui-sortable-helper {
14 | .selectize-box-shadow(0 2px 5px rgba(0,0,0,0.2));
15 | }
16 | }
--------------------------------------------------------------------------------
/public/vendor/selectize/less/plugins/dropdown_header.less:
--------------------------------------------------------------------------------
1 | .selectize-dropdown-header {
2 | position: relative;
3 | padding: @selectize-padding-dropdown-item-y @selectize-padding-dropdown-item-x;
4 | border-bottom: 1px solid @selectize-color-border;
5 | background: mix(@selectize-color-dropdown, @selectize-color-border, 85%);
6 | .selectize-border-radius(@selectize-border-radius @selectize-border-radius 0 0);
7 | }
8 | .selectize-dropdown-header-close {
9 | position: absolute;
10 | right: @selectize-padding-dropdown-item-x;
11 | top: 50%;
12 | color: @selectize-color-text;
13 | opacity: 0.4;
14 | margin-top: -12px;
15 | line-height: 20px;
16 | font-size: 20px !important;
17 | }
18 | .selectize-dropdown-header-close:hover {
19 | color: darken(@selectize-color-text, 25%);
20 | }
--------------------------------------------------------------------------------
/public/vendor/selectize/less/plugins/optgroup_columns.less:
--------------------------------------------------------------------------------
1 | .selectize-dropdown.plugin-optgroup_columns {
2 | .optgroup {
3 | border-right: 1px solid #f2f2f2;
4 | border-top: 0 none;
5 | float: left;
6 | .selectize-box-sizing(border-box);
7 | }
8 | .optgroup:last-child {
9 | border-right: 0 none;
10 | }
11 | .optgroup:before {
12 | display: none;
13 | }
14 | .optgroup-header {
15 | border-top: 0 none;
16 | }
17 | }
--------------------------------------------------------------------------------
/public/vendor/selectize/less/plugins/remove_button.less:
--------------------------------------------------------------------------------
1 | .selectize-control.plugin-remove_button {
2 | [data-value] {
3 | position: relative;
4 | padding-right: 24px !important;
5 | }
6 | [data-value] .remove {
7 | position: absolute;
8 | top: 0;
9 | right: 0;
10 | bottom: 0;
11 | width: 17px;
12 | text-align: center;
13 | font-weight: bold;
14 | font-size: 12px;
15 | color: inherit;
16 | text-decoration: none;
17 | vertical-align: middle;
18 | display: inline-block;
19 | padding: @selectize-padding-item-y 0 0 0;
20 | border-left: 1px solid @selectize-color-item-border;
21 | .selectize-border-radius(0 2px 2px 0);
22 | .selectize-box-sizing(border-box);
23 | }
24 | [data-value] .remove:hover {
25 | background: rgba(0,0,0,0.05);
26 | }
27 | [data-value].active .remove {
28 | border-left-color: @selectize-color-item-active-border;
29 | }
30 | .disabled [data-value] .remove:hover {
31 | background: none;
32 | }
33 | .disabled [data-value] .remove {
34 | border-left-color: lighten(desaturate(@selectize-color-item-border, 100%), @selectize-lighten-disabled-item-border);
35 | }
36 | }
--------------------------------------------------------------------------------
/public/vendor/selectize/less/selectize.bootstrap2.less:
--------------------------------------------------------------------------------
1 | /**
2 | * selectize.bootstrap2.css (v0.8.5) - Bootstrap 2 Theme
3 | * Copyright (c) 2013 Brian Reavis & contributors
4 | *
5 | * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this
6 | * file except in compliance with the License. You may obtain a copy of the License at:
7 | * http://www.apache.org/licenses/LICENSE-2.0
8 | *
9 | * Unless required by applicable law or agreed to in writing, software distributed under
10 | * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
11 | * ANY KIND, either express or implied. See the License for the specific language
12 | * governing permissions and limitations under the License.
13 | *
14 | * @author Brian Reavis
15 | */
16 |
17 | @import "selectize";
18 |
19 | @selectize-font-family: @baseFontFamily;
20 | @selectize-font-size: @baseFontSize;
21 | @selectize-line-height: @baseLineHeight;
22 |
23 | @selectize-color-text: @textColor;
24 | @selectize-color-highlight: rgba(255,237,40,0.4);
25 | @selectize-color-input: @inputBackground;
26 | @selectize-color-input-full: @inputBackground;
27 | @selectize-color-disabled: @inputBackground;
28 | @selectize-color-item: @btnBackgroundHighlight;
29 | @selectize-color-item-border: @btnBorder;
30 | @selectize-color-item-active: @dropdownLinkBackgroundHover;
31 | @selectize-color-item-active-text: @dropdownLinkColorHover;
32 | @selectize-color-item-active-border: darken(@selectize-color-item-active, 5%);
33 | @selectize-color-optgroup: @dropdownBackground;
34 | @selectize-color-optgroup-text: @grayLight;
35 | @selectize-color-optgroup-border: @dropdownDividerTop;
36 | @selectize-color-dropdown: @dropdownBackground;
37 | @selectize-color-dropdown-border: @inputBorder;
38 | @selectize-color-dropdown-border-top: @dropdownDividerTop;
39 | @selectize-color-dropdown-item-active: @dropdownLinkBackgroundHover;
40 | @selectize-color-dropdown-item-active-text: @dropdownLinkColorHover;
41 | @selectize-color-dropdown-item-create-active-text: @dropdownLinkColorHover;
42 | @selectize-lighten-disabled-item: 8%;
43 | @selectize-lighten-disabled-item-text: 8%;
44 | @selectize-lighten-disabled-item-border: 8%;
45 | @selectize-opacity-disabled: 0.5;
46 | @selectize-shadow-input: none;
47 | @selectize-shadow-input-focus: inset 0 1px 2px rgba(0,0,0,0.15);
48 | @selectize-border-radius: @inputBorderRadius;
49 |
50 | @selectize-padding-x: 10px;
51 | @selectize-padding-y: 7px;
52 | @selectize-padding-dropdown-item-x: @selectize-padding-x;
53 | @selectize-padding-dropdown-item-y: 3px;
54 | @selectize-padding-item-x: 3px;
55 | @selectize-padding-item-y: 1px;
56 | @selectize-margin-item-x: 3px;
57 | @selectize-margin-item-y: 3px;
58 | @selectize-caret-margin: 0;
59 |
60 | @selectize-arrow-size: 5px;
61 | @selectize-arrow-color: @black;
62 | @selectize-arrow-offset: @selectize-padding-x + 5px;
63 |
64 | @selectize-width-item-border: 1px;
65 |
66 | .selectize-dropdown {
67 | margin: 2px 0 0 0;
68 | z-index: @zindexDropdown;
69 | border: 1px solid @dropdownBorder;
70 | border-radius: @baseBorderRadius;
71 | .box-shadow(0 5px 10px rgba(0,0,0,.2));
72 |
73 | .optgroup-header {
74 | font-size: 11px;
75 | font-weight: bold;
76 | text-shadow: 0 1px 0 rgba(255,255,255,.5);
77 | text-transform: uppercase;
78 | }
79 | .optgroup:first-child:before {
80 | display: none;
81 | }
82 | .optgroup:before {
83 | content: ' ';
84 | display: block;
85 | .nav-divider();
86 | margin-left: @selectize-padding-dropdown-item-x * -1;
87 | margin-right: @selectize-padding-dropdown-item-x * -1;
88 | }
89 |
90 | [data-selectable].active {
91 | #gradient > .vertical(@dropdownLinkBackgroundHover, darken(@dropdownLinkBackgroundHover, 5%));
92 | }
93 | }
94 |
95 | .selectize-dropdown-content {
96 | padding: 5px 0;
97 | }
98 |
99 | .selectize-dropdown-header {
100 | padding: @selectize-padding-dropdown-item-y * 2 @selectize-padding-dropdown-item-x;
101 | }
102 |
103 | .selectize-input {
104 | .transition(~"border linear .2s, box-shadow linear .2s");
105 |
106 | &.dropdown-active {
107 | .selectize-border-radius(@selectize-border-radius);
108 | }
109 | &.dropdown-active::before {
110 | display: none;
111 | }
112 | &.input-active, &.input-active:hover, .selectize-control.multi &.focus {
113 | background: @selectize-color-input !important;
114 | border-color: rgba(82,168,236,.8) !important;
115 | outline: 0 !important;
116 | outline: thin dotted \9 !important;
117 | .box-shadow(~"inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(82,168,236,.6)") !important;
118 | }
119 | }
120 |
121 | .selectize-control {
122 | &.single {
123 | .selectize-input {
124 | .buttonBackground(@btnBackground, @btnBackgroundHighlight, @grayDark, 0 1px 1px rgba(255,255,255,.75));
125 | .box-shadow(~"inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05)");
126 | &:hover {
127 | color: @grayDark;
128 | text-decoration: none;
129 | background-position: 0 -15px;
130 | .transition(background-position .1s linear);
131 | }
132 | &.disabled {
133 | background: @btnBackgroundHighlight !important;
134 | .box-shadow(none);
135 | }
136 | }
137 | }
138 | &.multi {
139 | .selectize-input {
140 | .box-shadow(inset 0 1px 1px rgba(0,0,0,.075));
141 | &.has-items {
142 | @padding-x: @selectize-padding-x - @selectize-padding-item-x;
143 | padding-left: @padding-x;
144 | padding-right: @padding-x;
145 | }
146 | }
147 | .selectize-input > div {
148 | .gradientBar(@btnBackground, @btnBackgroundHighlight, @selectize-color-item-text, none);
149 | *background-color: @selectize-color-item;
150 | border: @selectize-width-item-border solid @selectize-color-item-border;
151 | .border-radius(@baseBorderRadius);
152 | .box-shadow(~"inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05)");
153 | &.active {
154 | .box-shadow(~"0 1px 2px rgba(0,0,0,.05)");
155 | .gradientBar(@selectize-color-item-active, @selectize-color-item-active-border, @selectize-color-item-active-text, none);
156 | *background-color: @selectize-color-item-active;
157 | border: @selectize-width-item-border solid @dropdownLinkBackgroundHover;
158 | }
159 | }
160 | }
161 | }
--------------------------------------------------------------------------------
/public/vendor/selectize/less/selectize.bootstrap3.less:
--------------------------------------------------------------------------------
1 | /**
2 | * selectize.bootstrap3.css (v0.8.5) - Bootstrap 3 Theme
3 | * Copyright (c) 2013 Brian Reavis & contributors
4 | *
5 | * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this
6 | * file except in compliance with the License. You may obtain a copy of the License at:
7 | * http://www.apache.org/licenses/LICENSE-2.0
8 | *
9 | * Unless required by applicable law or agreed to in writing, software distributed under
10 | * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
11 | * ANY KIND, either express or implied. See the License for the specific language
12 | * governing permissions and limitations under the License.
13 | *
14 | * @author Brian Reavis
15 | */
16 |
17 | @import "selectize";
18 |
19 | @selectize-font-family: @font-family-base;
20 | @selectize-font-size: @font-size-base;
21 | @selectize-line-height: @line-height-computed;
22 |
23 | @selectize-color-text: @text-color;
24 | @selectize-color-highlight: rgba(255,237,40,0.4);
25 | @selectize-color-input: @input-bg;
26 | @selectize-color-input-full: @input-bg;
27 | @selectize-color-disabled: @input-bg;
28 | @selectize-color-item: #efefef;
29 | @selectize-color-item-border: rgba(0,0,0,0);
30 | @selectize-color-item-active: @component-active-bg;
31 | @selectize-color-item-active-text: #fff;
32 | @selectize-color-item-active-border: rgba(0,0,0,0);
33 | @selectize-color-optgroup: @dropdown-bg;
34 | @selectize-color-optgroup-text: @dropdown-header-color;
35 | @selectize-color-optgroup-border: @dropdown-divider-bg;
36 | @selectize-color-dropdown: @dropdown-bg;
37 | @selectize-color-dropdown-border-top: mix(@input-border, @input-bg, 0.8);
38 | @selectize-color-dropdown-item-active: @dropdown-link-hover-bg;
39 | @selectize-color-dropdown-item-active-text: @dropdown-link-hover-color;
40 | @selectize-color-dropdown-item-create-active-text: @dropdown-link-hover-color;
41 | @selectize-opacity-disabled: 0.5;
42 | @selectize-shadow-input: none;
43 | @selectize-shadow-input-focus: inset 0 1px 2px rgba(0,0,0,0.15);
44 | @selectize-border: 1px solid @input-border;
45 | @selectize-border-radius: @input-border-radius;
46 |
47 | @selectize-width-item-border: 0;
48 | @selectize-padding-x: @padding-base-horizontal;
49 | @selectize-padding-y: @padding-base-vertical;
50 | @selectize-padding-dropdown-item-x: @padding-base-horizontal;
51 | @selectize-padding-dropdown-item-y: 3px;
52 | @selectize-padding-item-x: 3px;
53 | @selectize-padding-item-y: 1px;
54 | @selectize-margin-item-x: 3px;
55 | @selectize-margin-item-y: 3px;
56 | @selectize-caret-margin: 0;
57 |
58 | @selectize-arrow-size: 5px;
59 | @selectize-arrow-color: @dropdown-caret-color;
60 | @selectize-arrow-offset: @selectize-padding-x + 5px;
61 |
62 | .selectize-dropdown, .selectize-dropdown.form-control {
63 | height: auto;
64 | padding: 0;
65 | margin: 2px 0 0 0;
66 | z-index: @zindex-dropdown;
67 | background: @selectize-color-dropdown;
68 | border: 1px solid @dropdown-fallback-border;
69 | border: 1px solid @dropdown-border;
70 | .selectize-border-radius(@border-radius-base);
71 | .selectize-box-shadow(0 6px 12px rgba(0,0,0,.175));
72 | }
73 |
74 | .selectize-dropdown {
75 | .optgroup-header {
76 | font-size: @font-size-small;
77 | line-height: @line-height-base;
78 | }
79 | .optgroup:first-child:before {
80 | display: none;
81 | }
82 | .optgroup:before {
83 | content: ' ';
84 | display: block;
85 | .nav-divider();
86 | margin-left: @selectize-padding-dropdown-item-x * -1;
87 | margin-right: @selectize-padding-dropdown-item-x * -1;
88 | }
89 | }
90 |
91 | .selectize-dropdown-content {
92 | padding: 5px 0;
93 | }
94 |
95 | .selectize-dropdown-header {
96 | padding: @selectize-padding-dropdown-item-y * 2 @selectize-padding-dropdown-item-x;
97 | }
98 |
99 | .selectize-input {
100 | min-height: @input-height-base;
101 |
102 | &.dropdown-active {
103 | .selectize-border-radius(@selectize-border-radius);
104 | }
105 | &.dropdown-active::before {
106 | display: none;
107 | }
108 | &.focus {
109 | @color: @input-border-focus;
110 | @color-rgba: rgba(red(@color), green(@color), blue(@color), .6);
111 | border-color: @color;
112 | outline: 0;
113 | .selectize-box-shadow(~"inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px @{color-rgba}");
114 | }
115 | }
116 |
117 | .selectize-control {
118 | &.multi {
119 | .selectize-input.has-items {
120 | padding-left: @selectize-padding-x - @selectize-padding-item-x;
121 | padding-right: @selectize-padding-x - @selectize-padding-item-x;
122 | }
123 | .selectize-input > div {
124 | .selectize-border-radius(@selectize-border-radius - 1px);
125 | }
126 | }
127 | }
128 |
129 | .form-control.selectize-control {
130 | padding: 0;
131 | height: auto;
132 | border: none;
133 | background: none;
134 | .selectize-box-shadow(none);
135 | .selectize-border-radius(0);
136 | }
--------------------------------------------------------------------------------
/public/vendor/selectize/less/selectize.default.less:
--------------------------------------------------------------------------------
1 | /**
2 | * selectize.default.css (v0.8.5) - Default Theme
3 | * Copyright (c) 2013 Brian Reavis & contributors
4 | *
5 | * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this
6 | * file except in compliance with the License. You may obtain a copy of the License at:
7 | * http://www.apache.org/licenses/LICENSE-2.0
8 | *
9 | * Unless required by applicable law or agreed to in writing, software distributed under
10 | * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
11 | * ANY KIND, either express or implied. See the License for the specific language
12 | * governing permissions and limitations under the License.
13 | *
14 | * @author Brian Reavis
15 | */
16 |
17 | @import "selectize";
18 |
19 | @selectize-color-item: #1da7ee;
20 | @selectize-color-item-text: #fff;
21 | @selectize-color-item-active-text: #fff;
22 | @selectize-color-item-border: #0073bb;
23 | @selectize-color-item-active: #92c836;
24 | @selectize-color-item-active-border: #00578d;
25 | @selectize-width-item-border: 1px;
26 | @selectize-caret-margin: 0 1px;
27 |
28 | .selectize-control {
29 | &.multi {
30 | .selectize-input {
31 | &.has-items {
32 | @padding-x: @selectize-padding-x - 3px;
33 | padding-left: @padding-x;
34 | padding-right: @padding-x;
35 | }
36 | &.disabled [data-value] {
37 | color: #999;
38 | text-shadow: none;
39 | background: none;
40 | .selectize-box-shadow(none);
41 |
42 | &, .remove {
43 | border-color: #e6e6e6;
44 | }
45 | .remove {
46 | background: none;
47 | }
48 | }
49 | [data-value] {
50 | text-shadow: 0 1px 0 rgba(0,51,83,0.3);
51 | .selectize-border-radius(3px);
52 | .selectize-vertical-gradient(#1da7ee, #178ee9);
53 | .selectize-box-shadow(~"0 1px 0 rgba(0,0,0,0.2),inset 0 1px rgba(255,255,255,0.03)");
54 | &.active {
55 | .selectize-vertical-gradient(#008fd8, #0075cf);
56 | }
57 | }
58 | }
59 | }
60 | &.single {
61 | .selectize-input {
62 | .selectize-box-shadow(~"0 1px 0 rgba(0,0,0,0.05), inset 0 1px 0 rgba(255,255,255,0.8)");
63 | .selectize-vertical-gradient(#fefefe, #f2f2f2);
64 | }
65 | }
66 | }
67 |
68 | .selectize-control.single .selectize-input, .selectize-dropdown.single {
69 | border-color: #b8b8b8;
70 | }
71 |
72 | .selectize-dropdown {
73 | .optgroup-header {
74 | padding-top: @selectize-padding-dropdown-item-y + 2px;
75 | font-weight: bold;
76 | font-size: 0.85em;
77 | }
78 | .optgroup {
79 | border-top: 1px solid @selectize-color-dropdown-border-top;
80 | &:first-child {
81 | border-top: 0 none;
82 | }
83 | }
84 | }
--------------------------------------------------------------------------------
/public/vendor/selectize/less/selectize.legacy.less:
--------------------------------------------------------------------------------
1 | /**
2 | * selectize.legacy.css (v0.8.5) - Default Theme
3 | * Copyright (c) 2013 Brian Reavis & contributors
4 | *
5 | * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this
6 | * file except in compliance with the License. You may obtain a copy of the License at:
7 | * http://www.apache.org/licenses/LICENSE-2.0
8 | *
9 | * Unless required by applicable law or agreed to in writing, software distributed under
10 | * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
11 | * ANY KIND, either express or implied. See the License for the specific language
12 | * governing permissions and limitations under the License.
13 | *
14 | * @author Brian Reavis
15 | */
16 |
17 | @import "selectize";
18 |
19 | @selectize-font-size: 13px;
20 | @selectize-line-height: 20px;
21 |
22 | @selectize-color-input-full: #f2f2f2;
23 | @selectize-color-item: #b8e76f;
24 | @selectize-color-item-text: #3d5d18;
25 | @selectize-color-item-border: #74b21e;
26 | @selectize-color-item-active: #92c836;
27 | @selectize-color-item-active-border: #6f9839;
28 | @selectize-color-highlight: rgba(255,237,40,0.4);
29 | @selectize-color-dropdown-item-active: #fffceb;
30 | @selectize-color-dropdown-item-active-text: @selectize-color-text;
31 | @selectize-color-optgroup: #f8f8f8;
32 | @selectize-color-optgroup-text: @selectize-color-text;
33 | @selectize-width-item-border: 1px;
34 |
35 | @selectize-padding-x: 10px;
36 | @selectize-padding-y: 10px;
37 | @selectize-padding-item-x: 5px;
38 | @selectize-padding-item-y: 1px;
39 | @selectize-padding-dropdown-item-x: 10px;
40 | @selectize-padding-dropdown-item-y: 7px;
41 | @selectize-margin-item-x: 4px;
42 | @selectize-margin-item-y: 4px;
43 |
44 | .selectize-control {
45 | &.multi {
46 | .selectize-input [data-value] {
47 | text-shadow: 0 1px 0 rgba(255,255,255,0.1);
48 | .selectize-border-radius(3px);
49 | .selectize-vertical-gradient(#b8e76f, #a9e25c);
50 | .selectize-box-shadow(0 1px 1px rgba(0,0,0,0.1));
51 | &.active {
52 | .selectize-vertical-gradient(#92c836, #7abc2c);
53 | }
54 | }
55 | }
56 | &.single {
57 | .selectize-input {
58 | .selectize-box-shadow(~"inset 0 1px 0 rgba(255,255,255,0.8), 0 2px 0 #e0e0e0, 0 3px 0 #c8c8c8, 0 4px 1px rgba(0,0,0,0.1)");
59 | .selectize-vertical-gradient(#f5f5f5, #efefef);
60 | }
61 | }
62 | }
63 |
64 | .selectize-control.single .selectize-input, .selectize-dropdown.single {
65 | border-color: #b8b8b8;
66 | }
67 |
68 | .selectize-dropdown {
69 | .optgroup-header {
70 | font-weight: bold;
71 | font-size: 0.8em;
72 | border-bottom: 1px solid @selectize-color-dropdown-border-top;
73 | border-top: 1px solid @selectize-color-dropdown-border-top;
74 | }
75 | }
--------------------------------------------------------------------------------
/public/vendor/selectize/less/selectize.less:
--------------------------------------------------------------------------------
1 | @import "plugins/drag_drop";
2 | @import "plugins/dropdown_header";
3 | @import "plugins/optgroup_columns";
4 | @import "plugins/remove_button";
5 |
6 | // base styles
7 |
8 | @selectize-font-family: inherit;
9 | @selectize-font-smoothing: inherit;
10 | @selectize-font-size: 13px;
11 | @selectize-line-height: 18px;
12 |
13 | @selectize-color-text: #303030;
14 | @selectize-color-border: #d0d0d0;
15 | @selectize-color-highlight: rgba(125,168,208,0.2);
16 | @selectize-color-input: #fff;
17 | @selectize-color-input-full: @selectize-color-input;
18 | @selectize-color-disabled: #fafafa;
19 | @selectize-color-item: #f2f2f2;
20 | @selectize-color-item-text: @selectize-color-text;
21 | @selectize-color-item-border: #d0d0d0;
22 | @selectize-color-item-active: #e8e8e8;
23 | @selectize-color-item-active-text: @selectize-color-text;
24 | @selectize-color-item-active-border: #cacaca;
25 | @selectize-color-dropdown: #fff;
26 | @selectize-color-dropdown-border: @selectize-color-border;
27 | @selectize-color-dropdown-border-top: #f0f0f0;
28 | @selectize-color-dropdown-item-active: #f5fafd;
29 | @selectize-color-dropdown-item-active-text: #495c68;
30 | @selectize-color-dropdown-item-create-text: rgba(red(@selectize-color-text), green(@selectize-color-text), blue(@selectize-color-text), 0.5);
31 | @selectize-color-dropdown-item-create-active-text: @selectize-color-dropdown-item-active-text;
32 | @selectize-color-optgroup: @selectize-color-dropdown;
33 | @selectize-color-optgroup-text: @selectize-color-text;
34 | @selectize-lighten-disabled-item: 30%;
35 | @selectize-lighten-disabled-item-text: 30%;
36 | @selectize-lighten-disabled-item-border: 30%;
37 | @selectize-opacity-disabled: 0.5;
38 |
39 | @selectize-shadow-input: inset 0 1px 1px rgba(0,0,0,0.1);
40 | @selectize-shadow-input-focus: inset 0 1px 2px rgba(0,0,0,0.15);
41 | @selectize-border: 1px solid @selectize-color-border;
42 | @selectize-border-radius: 3px;
43 |
44 | @selectize-width-item-border: 0;
45 | @selectize-max-height-dropdown: 200px;
46 |
47 | @selectize-padding-x: 8px;
48 | @selectize-padding-y: 8px;
49 | @selectize-padding-item-x: 6px;
50 | @selectize-padding-item-y: 2px;
51 | @selectize-padding-dropdown-item-x: @selectize-padding-x;
52 | @selectize-padding-dropdown-item-y: 5px;
53 | @selectize-margin-item-x: 3px;
54 | @selectize-margin-item-y: 3px;
55 |
56 | @selectize-arrow-size: 5px;
57 | @selectize-arrow-color: #808080;
58 | @selectize-arrow-offset: 15px;
59 |
60 | @selectize-caret-margin: 0 2px 0 0;
61 | @selectize-caret-margin-rtl: 0 4px 0 -2px;
62 |
63 | .selectize-border-radius (@radii) {
64 | -webkit-border-radius: @radii;
65 | -moz-border-radius: @radii;
66 | border-radius: @radii;
67 | }
68 | .selectize-unselectable () {
69 | -webkit-user-select: none;
70 | -moz-user-select: none;
71 | -ms-user-select: none;
72 | user-select: none;
73 | }
74 | .selectize-box-shadow (@shadow) {
75 | -webkit-box-shadow: @shadow;
76 | box-shadow: @shadow;
77 | }
78 | .selectize-box-sizing (@type: border-box) {
79 | -webkit-box-sizing: @type;
80 | -moz-box-sizing: @type;
81 | box-sizing: @type;
82 | }
83 | .selectize-vertical-gradient (@color-top, @color-bottom) {
84 | background-color: mix(@color-top, @color-bottom, 60%);
85 | background-image: -moz-linear-gradient(top, @color-top, @color-bottom); // FF 3.6+
86 | background-image: -webkit-gradient(linear, 0 0, 0 100%, from(@color-top), to(@color-bottom)); // Safari 4+, Chrome 2+
87 | background-image: -webkit-linear-gradient(top, @color-top, @color-bottom); // Safari 5.1+, Chrome 10+
88 | background-image: -o-linear-gradient(top, @color-top, @color-bottom); // Opera 11.10
89 | background-image: linear-gradient(to bottom, @color-top, @color-bottom); // Standard, IE10
90 | background-repeat: repeat-x;
91 | filter: e(%("progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=0)",argb(@color-top),argb(@color-bottom))); // IE9 and down
92 | }
93 |
94 | .selectize-control {
95 | position: relative;
96 | }
97 |
98 | .selectize-dropdown, .selectize-input, .selectize-input input {
99 | color: @selectize-color-text;
100 | font-family: @selectize-font-family;
101 | font-size: @selectize-font-size;
102 | line-height: @selectize-line-height;
103 | -webkit-font-smoothing: @selectize-font-smoothing;
104 | }
105 |
106 | .selectize-input, .selectize-control.single .selectize-input.input-active {
107 | background: @selectize-color-input;
108 | cursor: text;
109 | display: inline-block;
110 | }
111 |
112 | .selectize-input {
113 | border: @selectize-border;
114 | padding: @selectize-padding-y @selectize-padding-x;
115 | display: inline-block;
116 | width: 100%;
117 | overflow: hidden;
118 | position: relative;
119 | z-index: 1;
120 | .selectize-box-sizing(border-box);
121 | .selectize-box-shadow(@selectize-shadow-input);
122 | .selectize-border-radius(@selectize-border-radius);
123 |
124 | .selectize-control.multi &.has-items {
125 | @padding-x: @selectize-padding-x;
126 | @padding-top: @selectize-padding-y - @selectize-padding-item-y - @selectize-width-item-border;
127 | @padding-bottom: @selectize-padding-y - @selectize-padding-item-y - @selectize-margin-item-y - @selectize-width-item-border;
128 | padding: @padding-top @padding-x @padding-bottom;
129 | }
130 |
131 | &.full {
132 | background-color: @selectize-color-input-full;
133 | }
134 | &.disabled, &.disabled * {
135 | cursor: default !important;
136 | }
137 | &.focus {
138 | .selectize-box-shadow(@selectize-shadow-input-focus);
139 | }
140 | &.dropdown-active {
141 | .selectize-border-radius(@selectize-border-radius @selectize-border-radius 0 0);
142 | }
143 |
144 | > * {
145 | vertical-align: baseline;
146 | display: -moz-inline-stack;
147 | display: inline-block;
148 | zoom: 1;
149 | *display: inline;
150 | }
151 | .selectize-control.multi & > div {
152 | cursor: pointer;
153 | margin: 0 @selectize-margin-item-x @selectize-margin-item-y 0;
154 | padding: @selectize-padding-item-y @selectize-padding-item-x;
155 | background: @selectize-color-item;
156 | color: @selectize-color-item-text;
157 | border: @selectize-width-item-border solid @selectize-color-item-border;
158 |
159 | &.active {
160 | background: @selectize-color-item-active;
161 | color: @selectize-color-item-active-text;
162 | border: @selectize-width-item-border solid @selectize-color-item-active-border;
163 | }
164 | }
165 | .selectize-control.multi &.disabled > div {
166 | &, &.active {
167 | color: lighten(desaturate(@selectize-color-item-text, 100%), @selectize-lighten-disabled-item-text);
168 | background: lighten(desaturate(@selectize-color-item, 100%), @selectize-lighten-disabled-item);
169 | border: @selectize-width-item-border solid lighten(desaturate(@selectize-color-item-border, 100%), @selectize-lighten-disabled-item-border);
170 | }
171 | }
172 | > input {
173 | padding: 0 !important;
174 | min-height: 0 !important;
175 | max-height: none !important;
176 | max-width: 100% !important;
177 | margin: @selectize-caret-margin !important;
178 | text-indent: 0 !important;
179 | border: 0 none !important;
180 | background: none !important;
181 | line-height: inherit !important;
182 | -webkit-user-select: auto !important;
183 | .selectize-box-shadow(none) !important;
184 | &:focus { outline: none !important; }
185 | }
186 | }
187 |
188 | .selectize-input::after {
189 | content: ' ';
190 | display: block;
191 | clear: left;
192 | }
193 |
194 | .selectize-input.dropdown-active::before {
195 | content: ' ';
196 | display: block;
197 | position: absolute;
198 | background: @selectize-color-dropdown-border-top;
199 | height: 1px;
200 | bottom: 0;
201 | left: 0;
202 | right: 0;
203 | }
204 |
205 | .selectize-dropdown {
206 | position: absolute;
207 | z-index: 10;
208 | border: @selectize-border;
209 | background: @selectize-color-dropdown;
210 | margin: -1px 0 0 0;
211 | border-top: 0 none;
212 | .selectize-box-sizing(border-box);
213 | .selectize-box-shadow(0 1px 3px rgba(0,0,0,0.1));
214 | .selectize-border-radius(0 0 @selectize-border-radius @selectize-border-radius);
215 |
216 | [data-selectable] {
217 | cursor: pointer;
218 | overflow: hidden;
219 | .highlight {
220 | background: @selectize-color-highlight;
221 | .selectize-border-radius(1px);
222 | }
223 | }
224 | [data-selectable], .optgroup-header {
225 | padding: @selectize-padding-dropdown-item-y @selectize-padding-dropdown-item-x;
226 | }
227 | .optgroup:first-child .optgroup-header {
228 | border-top: 0 none;
229 | }
230 | .optgroup-header {
231 | color: @selectize-color-optgroup-text;
232 | background: @selectize-color-optgroup;
233 | cursor: default;
234 | }
235 | .active {
236 | background-color: @selectize-color-dropdown-item-active;
237 | color: @selectize-color-dropdown-item-active-text;
238 | &.create {
239 | color: @selectize-color-dropdown-item-create-active-text;
240 | }
241 | }
242 | .create {
243 | color: @selectize-color-dropdown-item-create-text;
244 | }
245 | }
246 |
247 | .selectize-dropdown-content {
248 | overflow-y: auto;
249 | overflow-x: hidden;
250 | max-height: @selectize-max-height-dropdown;
251 | }
252 |
253 | .selectize-control.single .selectize-input {
254 | &, input { cursor: pointer; }
255 | &.input-active, &.input-active input { cursor: text; }
256 |
257 | &:after {
258 | content: ' ';
259 | display: block;
260 | position: absolute;
261 | top: 50%;
262 | right: @selectize-arrow-offset;
263 | margin-top: round(-@selectize-arrow-size / 2);
264 | width: 0;
265 | height: 0;
266 | border-style: solid;
267 | border-width: @selectize-arrow-size @selectize-arrow-size 0 @selectize-arrow-size;
268 | border-color: @selectize-arrow-color transparent transparent transparent;
269 | }
270 | &.dropdown-active:after {
271 | margin-top: @selectize-arrow-size * -0.8;
272 | border-width: 0 @selectize-arrow-size @selectize-arrow-size @selectize-arrow-size;
273 | border-color: transparent transparent @selectize-arrow-color transparent;
274 | }
275 | }
276 |
277 | .selectize-control.rtl {
278 | &.single .selectize-input:after {
279 | left: @selectize-arrow-offset;
280 | right: auto;
281 | }
282 | .selectize-input > input {
283 | margin: @selectize-caret-margin-rtl !important;
284 | }
285 | }
286 |
287 | .selectize-control .selectize-input.disabled {
288 | opacity: @selectize-opacity-disabled;
289 | background-color: @selectize-color-disabled;
290 | }
291 |
--------------------------------------------------------------------------------
/readme.md:
--------------------------------------------------------------------------------
1 | ## Laravel smart search implementation
2 |
3 | See demo at: http://demos.maxoffsky.com/shop-search/
4 | Tutorial at: http://maxoffsky.com/code-blog/laravel-shop-tutorial-3-implementing-smart-search
5 |
6 | This application demonstrates usage of [Selectize.js](https://github.com/brianreavis/selectize.js) plugin to provide the user with Smart Search feature:
7 | 
8 |
9 | The search API controller is in app/controllers/Api/SearchController.php
10 |
11 | ### Star this repo!
12 |
13 | The more people star my repos - the more I will give back to the community.
14 |
15 | ### Read more on my blog and follow on Twitter
16 |
17 | I post tutorials all the time on my blog : http://maxoffsky.com, stay updated on my Twitter: http://twitter.com/msurguy
18 |
19 | ### License
20 |
21 | The Laravel SEO admin is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT)
22 |
--------------------------------------------------------------------------------
/server.php:
--------------------------------------------------------------------------------
1 |