From 015c272c197c178d86ebfe360beb23f563abbc4e Mon Sep 17 00:00:00 2001 From: Louis Jeckel Date: Wed, 29 Apr 2020 11:21:51 +0200 Subject: [PATCH] mailgin facade --- .idea/deployment.xml | 8 + .idea/php-test-framework.xml | 14 + .idea/php.xml | 82 ++++- .idea/webServers.xml | 10 + app/EmailBatch.php | 1 + app/Facades/Mailgun.php | 23 ++ app/Helpers/Asset.php | 13 + app/Http/Controllers/FileController.php | 4 + app/Jobs/ProcessEmailBatch.php | 15 +- app/Notifications/RegistrationComplete.php | 1 - app/PdfFile.php | 23 +- app/Providers/AppServiceProvider.php | 1 + composer.json | 2 +- composer.lock | 4 +- config/app.php | 4 + public/css/app.css | 399 ++++++++++++--------- resources/sass/_variables.scss | 14 + resources/views/emails/batch.blade.php | 2 +- resources/views/emails/layout.blade.php | 5 - routes/web.php | 4 +- 20 files changed, 429 insertions(+), 200 deletions(-) create mode 100644 .idea/php-test-framework.xml create mode 100644 .idea/webServers.xml create mode 100644 app/Facades/Mailgun.php create mode 100644 app/Helpers/Asset.php diff --git a/.idea/deployment.xml b/.idea/deployment.xml index 35488fa..812586a 100644 --- a/.idea/deployment.xml +++ b/.idea/deployment.xml @@ -9,6 +9,14 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/php-test-framework.xml b/.idea/php-test-framework.xml new file mode 100644 index 0000000..b459adc --- /dev/null +++ b/.idea/php-test-framework.xml @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/php.xml b/.idea/php.xml index 54d8ca9..70e1553 100644 --- a/.idea/php.xml +++ b/.idea/php.xml @@ -187,7 +187,87 @@ - + + + + + + + + + + + + /etc/php/7.4/cli/conf.d/10-mysqlnd.ini, /etc/php/7.4/cli/conf.d/10-opcache.ini, /etc/php/7.4/cli/conf.d/10-pdo.ini, /etc/php/7.4/cli/conf.d/15-xml.ini, /etc/php/7.4/cli/conf.d/20-bcmath.ini, /etc/php/7.4/cli/conf.d/20-bz2.ini, /etc/php/7.4/cli/conf.d/20-calendar.ini, /etc/php/7.4/cli/conf.d/20-ctype.ini, /etc/php/7.4/cli/conf.d/20-curl.ini, /etc/php/7.4/cli/conf.d/20-debug.ini, /etc/php/7.4/cli/conf.d/20-dom.ini, /etc/php/7.4/cli/conf.d/20-exif.ini, /etc/php/7.4/cli/conf.d/20-ffi.ini, /etc/php/7.4/cli/conf.d/20-fileinfo.ini, /etc/php/7.4/cli/conf.d/20-ftp.ini, /etc/php/7.4/cli/conf.d/20-gettext.ini, /etc/php/7.4/cli/conf.d/20-iconv.ini, /etc/php/7.4/cli/conf.d/20-igbinary.ini, /etc/php/7.4/cli/conf.d/20-imagick.ini, /etc/php/7.4/cli/conf.d/20-intl.ini, /etc/php/7.4/cli/conf.d/20-json.ini, /etc/php/7.4/cli/conf.d/20-ldap.ini, /etc/php/7.4/cli/conf.d/20-mbstring.ini, /etc/php/7.4/cli/conf.d/20-mysqli.ini, /etc/php/7.4/cli/conf.d/20-pdo_mysql.ini, /etc/php/7.4/cli/conf.d/20-phar.ini, /etc/php/7.4/cli/conf.d/20-posix.ini, /etc/php/7.4/cli/conf.d/20-readline.ini, /etc/php/7.4/cli/conf.d/20-redis.ini, /etc/php/7.4/cli/conf.d/20-shmop.ini, /etc/php/7.4/cli/conf.d/20-simplexml.ini, /etc/php/7.4/cli/conf.d/20-sockets.ini, /etc/php/7.4/cli/conf.d/20-sysvmsg.ini, /etc/php/7.4/cli/conf.d/20-sysvsem.ini, /etc/php/7.4/cli/conf.d/20-sysvshm.ini, /etc/php/7.4/cli/conf.d/20-tokenizer.ini, /etc/php/7.4/cli/conf.d/20-xmlreader.ini, /etc/php/7.4/cli/conf.d/20-xmlwriter.ini, /etc/php/7.4/cli/conf.d/20-xsl.ini + /etc/php/7.4/cli/php.ini + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/.idea/webServers.xml b/.idea/webServers.xml new file mode 100644 index 0000000..8ba5cf9 --- /dev/null +++ b/.idea/webServers.xml @@ -0,0 +1,10 @@ + + + + + + \ No newline at end of file diff --git a/app/EmailBatch.php b/app/EmailBatch.php index e9e086e..8380f04 100644 --- a/app/EmailBatch.php +++ b/app/EmailBatch.php @@ -16,6 +16,7 @@ use \Illuminate\Database\Eloquent\Relations; */ class EmailBatch extends Model { + protected $guarded = []; use BelongsToPdfFile; protected $casts = [ diff --git a/app/Facades/Mailgun.php b/app/Facades/Mailgun.php new file mode 100644 index 0000000..1c4f91b --- /dev/null +++ b/app/Facades/Mailgun.php @@ -0,0 +1,23 @@ + 'layouts.app', 'component' => 'file-instant-search' diff --git a/app/Jobs/ProcessEmailBatch.php b/app/Jobs/ProcessEmailBatch.php index 0e27677..72abddb 100644 --- a/app/Jobs/ProcessEmailBatch.php +++ b/app/Jobs/ProcessEmailBatch.php @@ -4,6 +4,7 @@ namespace App\Jobs; use App\EmailBatch; use App\Events\ProcessBatch; +use App\Facades\Mailgun; use App\User; use Illuminate\Bus\Queueable; use Illuminate\Contracts\Queue\ShouldQueue; @@ -12,7 +13,7 @@ use Illuminate\Foundation\Bus\Dispatchable; use Illuminate\Queue\InteractsWithQueue; use Illuminate\Queue\SerializesModels; use Illuminate\Support\Arr; -use Mailgun\Mailgun; + class ProcessEmailBatch implements ShouldQueue { @@ -32,12 +33,14 @@ class ProcessEmailBatch implements ShouldQueue $this->batch = $batch; } + /** + * @param $data + */ protected function processUpdate($data) { event(new ProcessBatch(array_merge($data, [ 'batch_id' => $this->batch->id ]))); - } /** @@ -60,7 +63,6 @@ class ProcessEmailBatch implements ShouldQueue 'current' => 0 ]); $i = 0; - $mailgun = resolve(Mailgun::class); foreach($chunks as $chunk) { @@ -87,7 +89,7 @@ class ProcessEmailBatch implements ShouldQueue 'o:testmode' => env('MAILGUN_TEST_MODE', 'yes'), ]; - $mailgun->messages()->send(env('MAILGUN_DOMAIN'), $params); + Mailgun::messages()->send(env('MAILGUN_DOMAIN'), $params); $this->processUpdate([ 'status' => 'processing', 'total' => $count, @@ -102,10 +104,7 @@ class ProcessEmailBatch implements ShouldQueue 'current' => $count ]); - $this->batch->update(['sent_to', $users->pluck('email')]); - - - + $this->batch->update(['sent_to' => $users->pluck('email')]); } } diff --git a/app/Notifications/RegistrationComplete.php b/app/Notifications/RegistrationComplete.php index e5646f1..05a80ce 100644 --- a/app/Notifications/RegistrationComplete.php +++ b/app/Notifications/RegistrationComplete.php @@ -11,7 +11,6 @@ class RegistrationComplete extends Notification implements ShouldQueue { use Queueable; - /** * Create a new notification instance. * diff --git a/app/PdfFile.php b/app/PdfFile.php index 31b8c47..e775d73 100644 --- a/app/PdfFile.php +++ b/app/PdfFile.php @@ -54,8 +54,6 @@ class PdfFile extends TwillModel implements Sortable 'coverUrl', ]; - - protected $fillable = [ 'public', 'position', @@ -71,6 +69,8 @@ class PdfFile extends TwillModel implements Sortable ]; + + /** * @param Request $request * @return PdfFile @@ -109,19 +109,17 @@ class PdfFile extends TwillModel implements Sortable } - /** * @throws PdfToImage\Exceptions\PdfDoesNotExist * @throws \Exception */ public function process(): void { - /** @todo REMOVE */ -// return; + $this->makeJson(); $this->makeCover(); $this->makeSearchable(); -// if(!env('APP_ENV') === 'local') + if(!env('APP_ENV') === 'local') $this->shortenLinks(); $this->saveToCloud(); @@ -129,6 +127,10 @@ class PdfFile extends TwillModel implements Sortable + + + + /** * @return Relations\BelongsTo */ @@ -183,6 +185,11 @@ class PdfFile extends TwillModel implements Sortable } + + + + + /** * @return int */ @@ -298,6 +305,10 @@ class PdfFile extends TwillModel implements Sortable } + + + + /** * @return string * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException diff --git a/app/Providers/AppServiceProvider.php b/app/Providers/AppServiceProvider.php index 109f678..a203ee8 100644 --- a/app/Providers/AppServiceProvider.php +++ b/app/Providers/AppServiceProvider.php @@ -36,6 +36,7 @@ class AppServiceProvider extends ServiceProvider } + /** * Bootstrap any application services. * diff --git a/composer.json b/composer.json index 24f540b..b25cbf7 100644 --- a/composer.json +++ b/composer.json @@ -8,7 +8,7 @@ ], "license": "MIT", "require": { - "php": "^7.2.5", + "php": "^7.4", "ext-dom": "*", "ext-json": "*", "algolia/algoliasearch-client-php": "^2.6", diff --git a/composer.lock b/composer.lock index 1e14f64..658a96a 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "0b4e0e19d3fc9c24169a8401ede1ddff", + "content-hash": "5c7ff2cb508ab34b1acf5cdff253d1c0", "packages": [ { "name": "algolia/algoliasearch-client-php", @@ -10938,7 +10938,7 @@ "prefer-stable": true, "prefer-lowest": false, "platform": { - "php": "^7.2.5", + "php": "^7.4", "ext-dom": "*", "ext-json": "*" }, diff --git a/config/app.php b/config/app.php index e237267..fa48a5f 100644 --- a/config/app.php +++ b/config/app.php @@ -123,6 +123,9 @@ return [ 'cipher' => 'AES-256-CBC', + 'aws_s3_url' => 'https://prescription-sante.s3.eu-west-3.amazonaws.com', + + /* |-------------------------------------------------------------------------- | Autoloaded Service Providers @@ -228,6 +231,7 @@ return [ 'URL' => Illuminate\Support\Facades\URL::class, 'Validator' => Illuminate\Support\Facades\Validator::class, 'View' => Illuminate\Support\Facades\View::class, + 'Asset' => App\Helpers\Asset::class, ], diff --git a/public/css/app.css b/public/css/app.css index aabc976..ffd0c12 100644 --- a/public/css/app.css +++ b/public/css/app.css @@ -1,5 +1,9 @@ @import url(https://fonts.googleapis.com/css?family=Nunito);@charset "UTF-8"; +/* + Begin Custom + */ + /*! * Bootstrap v4.4.1 (https://getbootstrap.com/) * Copyright 2011-2019 The Bootstrap Authors @@ -8,11 +12,11 @@ */ :root { - --blue: #3490dc; + --blue: #074e9c; --indigo: #6574cd; --purple: #9561e2; --pink: #f66d9b; - --red: #e3342f; + --red: #d04d4a; --orange: #f6993f; --yellow: #ffed4a; --green: #38c172; @@ -21,12 +25,12 @@ --white: #fff; --gray: #6c757d; --gray-dark: #343a40; - --primary: #3490dc; + --primary: #074e9c; --secondary: #6c757d; --success: #38c172; --info: #6cb2eb; --warning: #ffed4a; - --danger: #e3342f; + --danger: #d04d4a; --light: #f8f9fa; --dark: #343a40; --breakpoint-xs: 0; @@ -170,13 +174,13 @@ sup { } a { - color: #3490dc; + color: #074e9c; text-decoration: none; background-color: transparent; } a:hover { - color: #1d68a7; + color: #042953; text-decoration: underline; } @@ -515,6 +519,7 @@ mark, background-color: #f8fafc; border: 1px solid #dee2e6; border-radius: 0.25rem; + box-shadow: 0 1px 2px rgba(0, 0, 0, 0.075); max-width: 100%; height: auto; } @@ -549,12 +554,14 @@ kbd { color: #fff; background-color: #212529; border-radius: 0.2rem; + box-shadow: inset 0 -0.1rem 0 rgba(0, 0, 0, 0.25); } kbd kbd { padding: 0; font-size: 100%; font-weight: 700; + box-shadow: none; } pre { @@ -1860,23 +1867,23 @@ pre code { .table-primary, .table-primary > th, .table-primary > td { - background-color: #c6e0f5; + background-color: #bacde3; } .table-primary th, .table-primary td, .table-primary thead th, .table-primary tbody + tbody { - border-color: #95c5ed; + border-color: #7ea3cc; } .table-hover .table-primary:hover { - background-color: #b0d4f1; + background-color: #a8c0dc; } .table-hover .table-primary:hover > td, .table-hover .table-primary:hover > th { - background-color: #b0d4f1; + background-color: #a8c0dc; } .table-secondary, @@ -1970,23 +1977,23 @@ pre code { .table-danger, .table-danger > th, .table-danger > td { - background-color: #f7c6c5; + background-color: #f2cdcc; } .table-danger th, .table-danger td, .table-danger thead th, .table-danger tbody + tbody { - border-color: #f09593; + border-color: #e7a2a1; } .table-hover .table-danger:hover { - background-color: #f4b0af; + background-color: #edb9b8; } .table-hover .table-danger:hover > td, .table-hover .table-danger:hover > th { - background-color: #f4b0af; + background-color: #edb9b8; } .table-light, @@ -2161,6 +2168,7 @@ pre code { background-clip: padding-box; border: 1px solid #ced4da; border-radius: 0.25rem; + box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; } @@ -2187,9 +2195,9 @@ pre code { .ais-SearchBox-input:focus { color: #495057; background-color: #fff; - border-color: #a1cbef; + border-color: #2d8df6; outline: 0; - box-shadow: 0 0 0 0.2rem rgba(52, 144, 220, 0.25); + box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 0 0.2rem rgba(7, 78, 156, 0.25); } .form-control::-webkit-input-placeholder, .ais-SearchBox-input::-webkit-input-placeholder { @@ -2489,7 +2497,7 @@ textarea.is-valid.ais-SearchBox-input { width: 100%; margin-top: 0.25rem; font-size: 80%; - color: #e3342f; + color: #d04d4a; } .invalid-tooltip { @@ -2503,7 +2511,7 @@ textarea.is-valid.ais-SearchBox-input { font-size: 0.7875rem; line-height: 1.6; color: #fff; - background-color: rgba(227, 52, 47, 0.9); + background-color: rgba(208, 77, 74, 0.9); border-radius: 0.25rem; } @@ -2518,9 +2526,9 @@ textarea.is-valid.ais-SearchBox-input { .was-validated .ais-SearchBox-input:invalid, .form-control.is-invalid, .is-invalid.ais-SearchBox-input { - border-color: #e3342f; + border-color: #d04d4a; padding-right: calc(1.6em + 0.75rem); - background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23e3342f' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23e3342f' stroke='none'/%3e%3c/svg%3e"); + background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23d04d4a' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23d04d4a' stroke='none'/%3e%3c/svg%3e"); background-repeat: no-repeat; background-position: right calc(0.4em + 0.1875rem) center; background-size: calc(0.8em + 0.375rem) calc(0.8em + 0.375rem); @@ -2530,8 +2538,8 @@ textarea.is-valid.ais-SearchBox-input { .was-validated .ais-SearchBox-input:invalid:focus, .form-control.is-invalid:focus, .is-invalid.ais-SearchBox-input:focus { - border-color: #e3342f; - box-shadow: 0 0 0 0.2rem rgba(227, 52, 47, 0.25); + border-color: #d04d4a; + box-shadow: 0 0 0 0.2rem rgba(208, 77, 74, 0.25); } .was-validated textarea.form-control:invalid, @@ -2544,20 +2552,20 @@ textarea.is-invalid.ais-SearchBox-input { .was-validated .custom-select:invalid, .custom-select.is-invalid { - border-color: #e3342f; + border-color: #d04d4a; padding-right: calc(0.75em + 2.3125rem); - background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='4' height='5' viewBox='0 0 4 5'%3e%3cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e") no-repeat right 0.75rem center/8px 10px, url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23e3342f' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23e3342f' stroke='none'/%3e%3c/svg%3e") #fff no-repeat center right 1.75rem/calc(0.8em + 0.375rem) calc(0.8em + 0.375rem); + background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='4' height='5' viewBox='0 0 4 5'%3e%3cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e") no-repeat right 0.75rem center/8px 10px, url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23d04d4a' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23d04d4a' stroke='none'/%3e%3c/svg%3e") #fff no-repeat center right 1.75rem/calc(0.8em + 0.375rem) calc(0.8em + 0.375rem); } .was-validated .custom-select:invalid:focus, .custom-select.is-invalid:focus { - border-color: #e3342f; - box-shadow: 0 0 0 0.2rem rgba(227, 52, 47, 0.25); + border-color: #d04d4a; + box-shadow: 0 0 0 0.2rem rgba(208, 77, 74, 0.25); } .was-validated .form-check-input:invalid ~ .form-check-label, .form-check-input.is-invalid ~ .form-check-label { - color: #e3342f; + color: #d04d4a; } .was-validated .form-check-input:invalid ~ .invalid-feedback, @@ -2569,39 +2577,39 @@ textarea.is-invalid.ais-SearchBox-input { .was-validated .custom-control-input:invalid ~ .custom-control-label, .custom-control-input.is-invalid ~ .custom-control-label { - color: #e3342f; + color: #d04d4a; } .was-validated .custom-control-input:invalid ~ .custom-control-label::before, .custom-control-input.is-invalid ~ .custom-control-label::before { - border-color: #e3342f; + border-color: #d04d4a; } .was-validated .custom-control-input:invalid:checked ~ .custom-control-label::before, .custom-control-input.is-invalid:checked ~ .custom-control-label::before { - border-color: #e9605c; - background-color: #e9605c; + border-color: #db7572; + background-color: #db7572; } .was-validated .custom-control-input:invalid:focus ~ .custom-control-label::before, .custom-control-input.is-invalid:focus ~ .custom-control-label::before { - box-shadow: 0 0 0 0.2rem rgba(227, 52, 47, 0.25); + box-shadow: 0 0 0 0.2rem rgba(208, 77, 74, 0.25); } .was-validated .custom-control-input:invalid:focus:not(:checked) ~ .custom-control-label::before, .custom-control-input.is-invalid:focus:not(:checked) ~ .custom-control-label::before { - border-color: #e3342f; + border-color: #d04d4a; } .was-validated .custom-file-input:invalid ~ .custom-file-label, .custom-file-input.is-invalid ~ .custom-file-label { - border-color: #e3342f; + border-color: #d04d4a; } .was-validated .custom-file-input:invalid:focus ~ .custom-file-label, .custom-file-input.is-invalid:focus ~ .custom-file-label { - border-color: #e3342f; - box-shadow: 0 0 0 0.2rem rgba(227, 52, 47, 0.25); + border-color: #d04d4a; + box-shadow: 0 0 0 0.2rem rgba(208, 77, 74, 0.25); } .form-inline { @@ -2706,12 +2714,23 @@ textarea.is-invalid.ais-SearchBox-input { .btn:focus, .btn.focus { outline: 0; - box-shadow: 0 0 0 0.2rem rgba(52, 144, 220, 0.25); + box-shadow: 0 0 0 0.2rem rgba(7, 78, 156, 0.25); } .btn.disabled, .btn:disabled { opacity: 0.65; + box-shadow: none; +} + +.btn:not(:disabled):not(.disabled):active, +.btn:not(:disabled):not(.disabled).active { + box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125); +} + +.btn:not(:disabled):not(.disabled):active:focus, +.btn:not(:disabled):not(.disabled).active:focus { + box-shadow: 0 0 0 0.2rem rgba(7, 78, 156, 0.25), inset 0 3px 5px rgba(0, 0, 0, 0.125); } a.btn.disabled, @@ -2721,49 +2740,51 @@ fieldset:disabled a.btn { .btn-primary { color: #fff; - background-color: #3490dc; - border-color: #3490dc; + background-color: #074e9c; + border-color: #074e9c; + box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 1px 1px rgba(0, 0, 0, 0.075); } .btn-primary:hover { color: #fff; - background-color: #227dc7; - border-color: #2176bd; + background-color: #053c77; + border-color: #05366b; } .btn-primary:focus, .btn-primary.focus { color: #fff; - background-color: #227dc7; - border-color: #2176bd; - box-shadow: 0 0 0 0.2rem rgba(82, 161, 225, 0.5); + background-color: #053c77; + border-color: #05366b; + box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 0 0.2rem rgba(44, 105, 171, 0.5); } .btn-primary.disabled, .btn-primary:disabled { color: #fff; - background-color: #3490dc; - border-color: #3490dc; + background-color: #074e9c; + border-color: #074e9c; } .btn-primary:not(:disabled):not(.disabled):active, .btn-primary:not(:disabled):not(.disabled).active, .show > .btn-primary.dropdown-toggle { color: #fff; - background-color: #2176bd; - border-color: #1f6fb2; + background-color: #05366b; + border-color: #042f5f; } .btn-primary:not(:disabled):not(.disabled):active:focus, .btn-primary:not(:disabled):not(.disabled).active:focus, .show > .btn-primary.dropdown-toggle:focus { - box-shadow: 0 0 0 0.2rem rgba(82, 161, 225, 0.5); + box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125), 0 0 0 0.2rem rgba(44, 105, 171, 0.5); } .btn-secondary { color: #fff; background-color: #6c757d; border-color: #6c757d; + box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 1px 1px rgba(0, 0, 0, 0.075); } .btn-secondary:hover { @@ -2777,7 +2798,7 @@ fieldset:disabled a.btn { color: #fff; background-color: #5a6268; border-color: #545b62; - box-shadow: 0 0 0 0.2rem rgba(130, 138, 145, 0.5); + box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 0 0.2rem rgba(130, 138, 145, 0.5); } .btn-secondary.disabled, @@ -2798,13 +2819,14 @@ fieldset:disabled a.btn { .btn-secondary:not(:disabled):not(.disabled):active:focus, .btn-secondary:not(:disabled):not(.disabled).active:focus, .show > .btn-secondary.dropdown-toggle:focus { - box-shadow: 0 0 0 0.2rem rgba(130, 138, 145, 0.5); + box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125), 0 0 0 0.2rem rgba(130, 138, 145, 0.5); } .btn-success { color: #fff; background-color: #38c172; border-color: #38c172; + box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 1px 1px rgba(0, 0, 0, 0.075); } .btn-success:hover { @@ -2818,7 +2840,7 @@ fieldset:disabled a.btn { color: #fff; background-color: #2fa360; border-color: #2d995b; - box-shadow: 0 0 0 0.2rem rgba(86, 202, 135, 0.5); + box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 0 0.2rem rgba(86, 202, 135, 0.5); } .btn-success.disabled, @@ -2839,13 +2861,14 @@ fieldset:disabled a.btn { .btn-success:not(:disabled):not(.disabled):active:focus, .btn-success:not(:disabled):not(.disabled).active:focus, .show > .btn-success.dropdown-toggle:focus { - box-shadow: 0 0 0 0.2rem rgba(86, 202, 135, 0.5); + box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125), 0 0 0 0.2rem rgba(86, 202, 135, 0.5); } .btn-info { color: #212529; background-color: #6cb2eb; border-color: #6cb2eb; + box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 1px 1px rgba(0, 0, 0, 0.075); } .btn-info:hover { @@ -2859,7 +2882,7 @@ fieldset:disabled a.btn { color: #fff; background-color: #4aa0e6; border-color: #3f9ae5; - box-shadow: 0 0 0 0.2rem rgba(97, 157, 206, 0.5); + box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 0 0.2rem rgba(97, 157, 206, 0.5); } .btn-info.disabled, @@ -2880,13 +2903,14 @@ fieldset:disabled a.btn { .btn-info:not(:disabled):not(.disabled):active:focus, .btn-info:not(:disabled):not(.disabled).active:focus, .show > .btn-info.dropdown-toggle:focus { - box-shadow: 0 0 0 0.2rem rgba(97, 157, 206, 0.5); + box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125), 0 0 0 0.2rem rgba(97, 157, 206, 0.5); } .btn-warning { color: #212529; background-color: #ffed4a; border-color: #ffed4a; + box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 1px 1px rgba(0, 0, 0, 0.075); } .btn-warning:hover { @@ -2900,7 +2924,7 @@ fieldset:disabled a.btn { color: #212529; background-color: #ffe924; border-color: #ffe817; - box-shadow: 0 0 0 0.2rem rgba(222, 207, 69, 0.5); + box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 0 0.2rem rgba(222, 207, 69, 0.5); } .btn-warning.disabled, @@ -2921,54 +2945,56 @@ fieldset:disabled a.btn { .btn-warning:not(:disabled):not(.disabled):active:focus, .btn-warning:not(:disabled):not(.disabled).active:focus, .show > .btn-warning.dropdown-toggle:focus { - box-shadow: 0 0 0 0.2rem rgba(222, 207, 69, 0.5); + box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125), 0 0 0 0.2rem rgba(222, 207, 69, 0.5); } .btn-danger { color: #fff; - background-color: #e3342f; - border-color: #e3342f; + background-color: #d04d4a; + border-color: #d04d4a; + box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 1px 1px rgba(0, 0, 0, 0.075); } .btn-danger:hover { color: #fff; - background-color: #d0211c; - border-color: #c51f1a; + background-color: #c23532; + border-color: #b73330; } .btn-danger:focus, .btn-danger.focus { color: #fff; - background-color: #d0211c; - border-color: #c51f1a; - box-shadow: 0 0 0 0.2rem rgba(231, 82, 78, 0.5); + background-color: #c23532; + border-color: #b73330; + box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 0 0.2rem rgba(215, 104, 101, 0.5); } .btn-danger.disabled, .btn-danger:disabled { color: #fff; - background-color: #e3342f; - border-color: #e3342f; + background-color: #d04d4a; + border-color: #d04d4a; } .btn-danger:not(:disabled):not(.disabled):active, .btn-danger:not(:disabled):not(.disabled).active, .show > .btn-danger.dropdown-toggle { color: #fff; - background-color: #c51f1a; - border-color: #b91d19; + background-color: #b73330; + border-color: #ad302d; } .btn-danger:not(:disabled):not(.disabled):active:focus, .btn-danger:not(:disabled):not(.disabled).active:focus, .show > .btn-danger.dropdown-toggle:focus { - box-shadow: 0 0 0 0.2rem rgba(231, 82, 78, 0.5); + box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125), 0 0 0 0.2rem rgba(215, 104, 101, 0.5); } .btn-light { color: #212529; background-color: #f8f9fa; border-color: #f8f9fa; + box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 1px 1px rgba(0, 0, 0, 0.075); } .btn-light:hover { @@ -2982,7 +3008,7 @@ fieldset:disabled a.btn { color: #212529; background-color: #e2e6ea; border-color: #dae0e5; - box-shadow: 0 0 0 0.2rem rgba(216, 217, 219, 0.5); + box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 0 0.2rem rgba(216, 217, 219, 0.5); } .btn-light.disabled, @@ -3003,13 +3029,14 @@ fieldset:disabled a.btn { .btn-light:not(:disabled):not(.disabled):active:focus, .btn-light:not(:disabled):not(.disabled).active:focus, .show > .btn-light.dropdown-toggle:focus { - box-shadow: 0 0 0 0.2rem rgba(216, 217, 219, 0.5); + box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125), 0 0 0 0.2rem rgba(216, 217, 219, 0.5); } .btn-dark { color: #fff; background-color: #343a40; border-color: #343a40; + box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 1px 1px rgba(0, 0, 0, 0.075); } .btn-dark:hover { @@ -3023,7 +3050,7 @@ fieldset:disabled a.btn { color: #fff; background-color: #23272b; border-color: #1d2124; - box-shadow: 0 0 0 0.2rem rgba(82, 88, 93, 0.5); + box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 0 0.2rem rgba(82, 88, 93, 0.5); } .btn-dark.disabled, @@ -3044,28 +3071,28 @@ fieldset:disabled a.btn { .btn-dark:not(:disabled):not(.disabled):active:focus, .btn-dark:not(:disabled):not(.disabled).active:focus, .show > .btn-dark.dropdown-toggle:focus { - box-shadow: 0 0 0 0.2rem rgba(82, 88, 93, 0.5); + box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125), 0 0 0 0.2rem rgba(82, 88, 93, 0.5); } .btn-outline-primary { - color: #3490dc; - border-color: #3490dc; + color: #074e9c; + border-color: #074e9c; } .btn-outline-primary:hover { color: #fff; - background-color: #3490dc; - border-color: #3490dc; + background-color: #074e9c; + border-color: #074e9c; } .btn-outline-primary:focus, .btn-outline-primary.focus { - box-shadow: 0 0 0 0.2rem rgba(52, 144, 220, 0.5); + box-shadow: 0 0 0 0.2rem rgba(7, 78, 156, 0.5); } .btn-outline-primary.disabled, .btn-outline-primary:disabled { - color: #3490dc; + color: #074e9c; background-color: transparent; } @@ -3073,14 +3100,14 @@ fieldset:disabled a.btn { .btn-outline-primary:not(:disabled):not(.disabled).active, .show > .btn-outline-primary.dropdown-toggle { color: #fff; - background-color: #3490dc; - border-color: #3490dc; + background-color: #074e9c; + border-color: #074e9c; } .btn-outline-primary:not(:disabled):not(.disabled):active:focus, .btn-outline-primary:not(:disabled):not(.disabled).active:focus, .show > .btn-outline-primary.dropdown-toggle:focus { - box-shadow: 0 0 0 0.2rem rgba(52, 144, 220, 0.5); + box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125), 0 0 0 0.2rem rgba(7, 78, 156, 0.5); } .btn-outline-secondary { @@ -3116,7 +3143,7 @@ fieldset:disabled a.btn { .btn-outline-secondary:not(:disabled):not(.disabled):active:focus, .btn-outline-secondary:not(:disabled):not(.disabled).active:focus, .show > .btn-outline-secondary.dropdown-toggle:focus { - box-shadow: 0 0 0 0.2rem rgba(108, 117, 125, 0.5); + box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125), 0 0 0 0.2rem rgba(108, 117, 125, 0.5); } .btn-outline-success { @@ -3152,7 +3179,7 @@ fieldset:disabled a.btn { .btn-outline-success:not(:disabled):not(.disabled):active:focus, .btn-outline-success:not(:disabled):not(.disabled).active:focus, .show > .btn-outline-success.dropdown-toggle:focus { - box-shadow: 0 0 0 0.2rem rgba(56, 193, 114, 0.5); + box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125), 0 0 0 0.2rem rgba(56, 193, 114, 0.5); } .btn-outline-info { @@ -3188,7 +3215,7 @@ fieldset:disabled a.btn { .btn-outline-info:not(:disabled):not(.disabled):active:focus, .btn-outline-info:not(:disabled):not(.disabled).active:focus, .show > .btn-outline-info.dropdown-toggle:focus { - box-shadow: 0 0 0 0.2rem rgba(108, 178, 235, 0.5); + box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125), 0 0 0 0.2rem rgba(108, 178, 235, 0.5); } .btn-outline-warning { @@ -3224,28 +3251,28 @@ fieldset:disabled a.btn { .btn-outline-warning:not(:disabled):not(.disabled):active:focus, .btn-outline-warning:not(:disabled):not(.disabled).active:focus, .show > .btn-outline-warning.dropdown-toggle:focus { - box-shadow: 0 0 0 0.2rem rgba(255, 237, 74, 0.5); + box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125), 0 0 0 0.2rem rgba(255, 237, 74, 0.5); } .btn-outline-danger { - color: #e3342f; - border-color: #e3342f; + color: #d04d4a; + border-color: #d04d4a; } .btn-outline-danger:hover { color: #fff; - background-color: #e3342f; - border-color: #e3342f; + background-color: #d04d4a; + border-color: #d04d4a; } .btn-outline-danger:focus, .btn-outline-danger.focus { - box-shadow: 0 0 0 0.2rem rgba(227, 52, 47, 0.5); + box-shadow: 0 0 0 0.2rem rgba(208, 77, 74, 0.5); } .btn-outline-danger.disabled, .btn-outline-danger:disabled { - color: #e3342f; + color: #d04d4a; background-color: transparent; } @@ -3253,14 +3280,14 @@ fieldset:disabled a.btn { .btn-outline-danger:not(:disabled):not(.disabled).active, .show > .btn-outline-danger.dropdown-toggle { color: #fff; - background-color: #e3342f; - border-color: #e3342f; + background-color: #d04d4a; + border-color: #d04d4a; } .btn-outline-danger:not(:disabled):not(.disabled):active:focus, .btn-outline-danger:not(:disabled):not(.disabled).active:focus, .show > .btn-outline-danger.dropdown-toggle:focus { - box-shadow: 0 0 0 0.2rem rgba(227, 52, 47, 0.5); + box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125), 0 0 0 0.2rem rgba(208, 77, 74, 0.5); } .btn-outline-light { @@ -3296,7 +3323,7 @@ fieldset:disabled a.btn { .btn-outline-light:not(:disabled):not(.disabled):active:focus, .btn-outline-light:not(:disabled):not(.disabled).active:focus, .show > .btn-outline-light.dropdown-toggle:focus { - box-shadow: 0 0 0 0.2rem rgba(248, 249, 250, 0.5); + box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125), 0 0 0 0.2rem rgba(248, 249, 250, 0.5); } .btn-outline-dark { @@ -3332,17 +3359,17 @@ fieldset:disabled a.btn { .btn-outline-dark:not(:disabled):not(.disabled):active:focus, .btn-outline-dark:not(:disabled):not(.disabled).active:focus, .show > .btn-outline-dark.dropdown-toggle:focus { - box-shadow: 0 0 0 0.2rem rgba(52, 58, 64, 0.5); + box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125), 0 0 0 0.2rem rgba(52, 58, 64, 0.5); } .btn-link { font-weight: 400; - color: #3490dc; + color: #074e9c; text-decoration: none; } .btn-link:hover { - color: #1d68a7; + color: #042953; text-decoration: underline; } @@ -3464,6 +3491,7 @@ input[type=button].btn-block { background-clip: padding-box; border: 1px solid rgba(0, 0, 0, 0.15); border-radius: 0.25rem; + box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.175); } .dropdown-menu-left { @@ -3649,7 +3677,7 @@ input[type=button].btn-block { .dropdown-item:active { color: #fff; text-decoration: none; - background-color: #3490dc; + background-color: #074e9c; } .dropdown-item.disabled, @@ -3759,6 +3787,14 @@ input[type=button].btn-block { padding-left: 0.75rem; } +.btn-group.show .dropdown-toggle { + box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125); +} + +.btn-group.show .dropdown-toggle.btn-link { + box-shadow: none; +} + .btn-group-vertical { flex-direction: column; align-items: flex-start; @@ -4026,22 +4062,24 @@ input[type=button].btn-block { .custom-control-input:checked ~ .custom-control-label::before { color: #fff; - border-color: #3490dc; - background-color: #3490dc; + border-color: #074e9c; + background-color: #074e9c; + box-shadow: none; } .custom-control-input:focus ~ .custom-control-label::before { - box-shadow: 0 0 0 0.2rem rgba(52, 144, 220, 0.25); + box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 0 0.2rem rgba(7, 78, 156, 0.25); } .custom-control-input:focus:not(:checked) ~ .custom-control-label::before { - border-color: #a1cbef; + border-color: #2d8df6; } .custom-control-input:not(:disabled):active ~ .custom-control-label::before { color: #fff; - background-color: #cce3f6; - border-color: #cce3f6; + background-color: #5ea7f8; + border-color: #5ea7f8; + box-shadow: none; } .custom-control-input[disabled] ~ .custom-control-label, @@ -4071,6 +4109,7 @@ input[type=button].btn-block { content: ""; background-color: #fff; border: #adb5bd solid 1px; + box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); } .custom-control-label::after { @@ -4093,8 +4132,9 @@ input[type=button].btn-block { } .custom-checkbox .custom-control-input:indeterminate ~ .custom-control-label::before { - border-color: #3490dc; - background-color: #3490dc; + border-color: #074e9c; + background-color: #074e9c; + box-shadow: none; } .custom-checkbox .custom-control-input:indeterminate ~ .custom-control-label::after { @@ -4102,11 +4142,11 @@ input[type=button].btn-block { } .custom-checkbox .custom-control-input:disabled:checked ~ .custom-control-label::before { - background-color: rgba(52, 144, 220, 0.5); + background-color: rgba(7, 78, 156, 0.5); } .custom-checkbox .custom-control-input:disabled:indeterminate ~ .custom-control-label::before { - background-color: rgba(52, 144, 220, 0.5); + background-color: rgba(7, 78, 156, 0.5); } .custom-radio .custom-control-label::before { @@ -4118,7 +4158,7 @@ input[type=button].btn-block { } .custom-radio .custom-control-input:disabled:checked ~ .custom-control-label::before { - background-color: rgba(52, 144, 220, 0.5); + background-color: rgba(7, 78, 156, 0.5); } .custom-switch { @@ -4154,7 +4194,7 @@ input[type=button].btn-block { } .custom-switch .custom-control-input:disabled:checked ~ .custom-control-label::before { - background-color: rgba(52, 144, 220, 0.5); + background-color: rgba(7, 78, 156, 0.5); } .custom-select { @@ -4170,15 +4210,16 @@ input[type=button].btn-block { background: #fff url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='4' height='5' viewBox='0 0 4 5'%3e%3cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e") no-repeat right 0.75rem center/8px 10px; border: 1px solid #ced4da; border-radius: 0.25rem; + box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.075); -webkit-appearance: none; -moz-appearance: none; appearance: none; } .custom-select:focus { - border-color: #a1cbef; + border-color: #2d8df6; outline: 0; - box-shadow: 0 0 0 0.2rem rgba(52, 144, 220, 0.25); + box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.075), 0 0 0 0.2rem rgba(7, 78, 156, 0.25); } .custom-select:focus::-ms-value { @@ -4241,8 +4282,8 @@ input[type=button].btn-block { } .custom-file-input:focus ~ .custom-file-label { - border-color: #a1cbef; - box-shadow: 0 0 0 0.2rem rgba(52, 144, 220, 0.25); + border-color: #2d8df6; + box-shadow: 0 0 0 0.2rem rgba(7, 78, 156, 0.25); } .custom-file-input[disabled] ~ .custom-file-label, @@ -4272,6 +4313,7 @@ input[type=button].btn-block { background-color: #fff; border: 1px solid #ced4da; border-radius: 0.25rem; + box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); } .custom-file-label::after { @@ -4306,15 +4348,15 @@ input[type=button].btn-block { } .custom-range:focus::-webkit-slider-thumb { - box-shadow: 0 0 0 1px #f8fafc, 0 0 0 0.2rem rgba(52, 144, 220, 0.25); + box-shadow: 0 0 0 1px #f8fafc, 0 0 0 0.2rem rgba(7, 78, 156, 0.25); } .custom-range:focus::-moz-range-thumb { - box-shadow: 0 0 0 1px #f8fafc, 0 0 0 0.2rem rgba(52, 144, 220, 0.25); + box-shadow: 0 0 0 1px #f8fafc, 0 0 0 0.2rem rgba(7, 78, 156, 0.25); } .custom-range:focus::-ms-thumb { - box-shadow: 0 0 0 1px #f8fafc, 0 0 0 0.2rem rgba(52, 144, 220, 0.25); + box-shadow: 0 0 0 1px #f8fafc, 0 0 0 0.2rem rgba(7, 78, 156, 0.25); } .custom-range::-moz-focus-outer { @@ -4325,9 +4367,10 @@ input[type=button].btn-block { width: 1rem; height: 1rem; margin-top: -0.25rem; - background-color: #3490dc; + background-color: #074e9c; border: 0; border-radius: 1rem; + box-shadow: 0 0.1rem 0.25rem rgba(0, 0, 0, 0.1); -webkit-transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; -webkit-appearance: none; @@ -4342,7 +4385,7 @@ input[type=button].btn-block { } .custom-range::-webkit-slider-thumb:active { - background-color: #cce3f6; + background-color: #5ea7f8; } .custom-range::-webkit-slider-runnable-track { @@ -4353,14 +4396,16 @@ input[type=button].btn-block { background-color: #dee2e6; border-color: transparent; border-radius: 1rem; + box-shadow: inset 0 0.25rem 0.25rem rgba(0, 0, 0, 0.1); } .custom-range::-moz-range-thumb { width: 1rem; height: 1rem; - background-color: #3490dc; + background-color: #074e9c; border: 0; border-radius: 1rem; + box-shadow: 0 0.1rem 0.25rem rgba(0, 0, 0, 0.1); -moz-transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; -moz-appearance: none; @@ -4375,7 +4420,7 @@ input[type=button].btn-block { } .custom-range::-moz-range-thumb:active { - background-color: #cce3f6; + background-color: #5ea7f8; } .custom-range::-moz-range-track { @@ -4386,6 +4431,7 @@ input[type=button].btn-block { background-color: #dee2e6; border-color: transparent; border-radius: 1rem; + box-shadow: inset 0 0.25rem 0.25rem rgba(0, 0, 0, 0.1); } .custom-range::-ms-thumb { @@ -4394,9 +4440,10 @@ input[type=button].btn-block { margin-top: 0; margin-right: 0.2rem; margin-left: 0.2rem; - background-color: #3490dc; + background-color: #074e9c; border: 0; border-radius: 1rem; + box-shadow: 0 0.1rem 0.25rem rgba(0, 0, 0, 0.1); -ms-transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; appearance: none; @@ -4410,7 +4457,7 @@ input[type=button].btn-block { } .custom-range::-ms-thumb:active { - background-color: #cce3f6; + background-color: #5ea7f8; } .custom-range::-ms-track { @@ -4421,6 +4468,7 @@ input[type=button].btn-block { background-color: transparent; border-color: transparent; border-width: 0.5rem; + box-shadow: inset 0 0.25rem 0.25rem rgba(0, 0, 0, 0.1); } .custom-range::-ms-fill-lower { @@ -4537,7 +4585,7 @@ input[type=button].btn-block { .nav-pills .nav-link.active, .nav-pills .show > .nav-link { color: #fff; - background-color: #3490dc; + background-color: #074e9c; } .nav-fill .nav-item { @@ -5273,14 +5321,14 @@ input[type=button].btn-block { padding: 0.5rem 0.75rem; margin-left: -1px; line-height: 1.25; - color: #3490dc; + color: #074e9c; background-color: #fff; border: 1px solid #dee2e6; } .page-link:hover { z-index: 2; - color: #1d68a7; + color: #042953; text-decoration: none; background-color: #e9ecef; border-color: #dee2e6; @@ -5289,7 +5337,7 @@ input[type=button].btn-block { .page-link:focus { z-index: 3; outline: 0; - box-shadow: 0 0 0 0.2rem rgba(52, 144, 220, 0.25); + box-shadow: 0 0 0 0.2rem rgba(7, 78, 156, 0.25); } .page-item:first-child .page-link { @@ -5306,8 +5354,8 @@ input[type=button].btn-block { .page-item.active .page-link { z-index: 3; color: #fff; - background-color: #3490dc; - border-color: #3490dc; + background-color: #074e9c; + border-color: #074e9c; } .page-item.disabled .page-link { @@ -5391,19 +5439,19 @@ a.badge:focus { .badge-primary { color: #fff; - background-color: #3490dc; + background-color: #074e9c; } a.badge-primary:hover, a.badge-primary:focus { color: #fff; - background-color: #2176bd; + background-color: #05366b; } a.badge-primary:focus, a.badge-primary.focus { outline: 0; - box-shadow: 0 0 0 0.2rem rgba(52, 144, 220, 0.5); + box-shadow: 0 0 0 0.2rem rgba(7, 78, 156, 0.5); } .badge-secondary { @@ -5476,19 +5524,19 @@ a.badge-warning.focus { .badge-danger { color: #fff; - background-color: #e3342f; + background-color: #d04d4a; } a.badge-danger:hover, a.badge-danger:focus { color: #fff; - background-color: #c51f1a; + background-color: #b73330; } a.badge-danger:focus, a.badge-danger.focus { outline: 0; - box-shadow: 0 0 0 0.2rem rgba(227, 52, 47, 0.5); + box-shadow: 0 0 0 0.2rem rgba(208, 77, 74, 0.5); } .badge-light { @@ -5573,17 +5621,17 @@ a.badge-dark.focus { } .alert-primary { - color: #1b4b72; - background-color: #d6e9f8; - border-color: #c6e0f5; + color: #042951; + background-color: #cddceb; + border-color: #bacde3; } .alert-primary hr { - border-top-color: #b0d4f1; + border-top-color: #a8c0dc; } .alert-primary .alert-link { - color: #113049; + color: #021020; } .alert-secondary { @@ -5643,17 +5691,17 @@ a.badge-dark.focus { } .alert-danger { - color: #761b18; - background-color: #f9d6d5; - border-color: #f7c6c5; + color: #6c2826; + background-color: #f6dbdb; + border-color: #f2cdcc; } .alert-danger hr { - border-top-color: #f4b0af; + border-top-color: #edb9b8; } .alert-danger .alert-link { - color: #4c110f; + color: #461a19; } .alert-light { @@ -5711,6 +5759,7 @@ a.badge-dark.focus { font-size: 0.675rem; background-color: #e9ecef; border-radius: 0.25rem; + box-shadow: inset 0 0.1rem 0.1rem rgba(0, 0, 0, 0.1); } .progress-bar { @@ -5721,7 +5770,7 @@ a.badge-dark.focus { color: #fff; text-align: center; white-space: nowrap; - background-color: #3490dc; + background-color: #074e9c; transition: width 0.6s ease; } @@ -5811,8 +5860,8 @@ a.badge-dark.focus { .list-group-item.active { z-index: 2; color: #fff; - background-color: #3490dc; - border-color: #3490dc; + background-color: #074e9c; + border-color: #074e9c; } .list-group-item + .list-group-item { @@ -5987,20 +6036,20 @@ a.badge-dark.focus { } .list-group-item-primary { - color: #1b4b72; - background-color: #c6e0f5; + color: #042951; + background-color: #bacde3; } .list-group-item-primary.list-group-item-action:hover, .list-group-item-primary.list-group-item-action:focus { - color: #1b4b72; - background-color: #b0d4f1; + color: #042951; + background-color: #a8c0dc; } .list-group-item-primary.list-group-item-action.active { color: #fff; - background-color: #1b4b72; - border-color: #1b4b72; + background-color: #042951; + border-color: #042951; } .list-group-item-secondary { @@ -6072,20 +6121,20 @@ a.badge-dark.focus { } .list-group-item-danger { - color: #761b18; - background-color: #f7c6c5; + color: #6c2826; + background-color: #f2cdcc; } .list-group-item-danger.list-group-item-action:hover, .list-group-item-danger.list-group-item-action:focus { - color: #761b18; - background-color: #f4b0af; + color: #6c2826; + background-color: #edb9b8; } .list-group-item-danger.list-group-item-action.active { color: #fff; - background-color: #761b18; - border-color: #761b18; + background-color: #6c2826; + border-color: #6c2826; } .list-group-item-light { @@ -6302,6 +6351,7 @@ a.close.disabled { background-clip: padding-box; border: 1px solid rgba(0, 0, 0, 0.2); border-radius: 0.3rem; + box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.5); outline: 0; } @@ -6394,6 +6444,10 @@ a.close.disabled { height: calc(100vh - 3.5rem); } + .modal-content { + box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.5); + } + .modal-sm { max-width: 300px; } @@ -6562,6 +6616,7 @@ a.close.disabled { background-clip: padding-box; border: 1px solid rgba(0, 0, 0, 0.2); border-radius: 0.3rem; + box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.2); } .popover .arrow { @@ -6996,14 +7051,14 @@ a.close.disabled { } .bg-primary { - background-color: #3490dc !important; + background-color: #074e9c !important; } a.bg-primary:hover, a.bg-primary:focus, button.bg-primary:hover, button.bg-primary:focus { - background-color: #2176bd !important; + background-color: #05366b !important; } .bg-secondary { @@ -7051,14 +7106,14 @@ button.bg-warning:focus { } .bg-danger { - background-color: #e3342f !important; + background-color: #d04d4a !important; } a.bg-danger:hover, a.bg-danger:focus, button.bg-danger:hover, button.bg-danger:focus { - background-color: #c51f1a !important; + background-color: #b73330 !important; } .bg-light { @@ -7132,7 +7187,7 @@ button.bg-dark:focus { } .border-primary { - border-color: #3490dc !important; + border-color: #074e9c !important; } .border-secondary { @@ -7152,7 +7207,7 @@ button.bg-dark:focus { } .border-danger { - border-color: #e3342f !important; + border-color: #d04d4a !important; } .border-light { @@ -10709,12 +10764,12 @@ button.bg-dark:focus { } .text-primary { - color: #3490dc !important; + color: #074e9c !important; } a.text-primary:hover, a.text-primary:focus { - color: #1d68a7 !important; + color: #042953 !important; } .text-secondary { @@ -10754,12 +10809,12 @@ a.text-warning:focus { } .text-danger { - color: #e3342f !important; + color: #d04d4a !important; } a.text-danger:hover, a.text-danger:focus { - color: #ae1c17 !important; + color: #a32d2a !important; } .text-light { diff --git a/resources/sass/_variables.scss b/resources/sass/_variables.scss index 0407ab5..6b6ea00 100644 --- a/resources/sass/_variables.scss +++ b/resources/sass/_variables.scss @@ -17,3 +17,17 @@ $yellow: #ffed4a; $green: #38c172; $teal: #4dc0b5; $cyan: #6cb2eb; + + +/* + Begin Custom + */ + +$psq_red: #d04d4a; +$psq_blue: #074e9c; + + +$blue: $psq_blue; +$red: $psq_red; + +$enable-shadows: true; diff --git a/resources/views/emails/batch.blade.php b/resources/views/emails/batch.blade.php index 18919f3..c3edc77 100644 --- a/resources/views/emails/batch.blade.php +++ b/resources/views/emails/batch.blade.php @@ -2,7 +2,7 @@ @section('content') - PSQ Logo + PSQ Logo

L’ÉDITION DU JOUR

diff --git a/resources/views/emails/layout.blade.php b/resources/views/emails/layout.blade.php index d2a3c53..19e8040 100644 --- a/resources/views/emails/layout.blade.php +++ b/resources/views/emails/layout.blade.php @@ -8,14 +8,9 @@ Email - - - - - diff --git a/routes/web.php b/routes/web.php index 799f5bc..1d6f168 100644 --- a/routes/web.php +++ b/routes/web.php @@ -20,14 +20,12 @@ Auth::routes(); - - /** ADMIN ROUTES */ Route::domain(env('ADMIN_DOMAIN_NAME'))->middleware('auth:twill_users')->group(function() { /** Publishing and mass sending process */ Route::prefix('/publish')->group(function() { - Route::get('', 'PublishController@index'); + Route::get('', 'PublishController@index')->name('publish'); Route::post('', 'PublishController@publish'); Route::post('/upload-file', 'PublishController@uploadFile'); -- 2.39.5