项目作者: laravelnews

项目描述 :
Laravel 5 frontend preset for Twitter Bootstrap 4
高级语言: HTML
项目地址: git://github.com/laravelnews/laravel-twbs4.git
创建时间: 2017-10-29T00:31:14Z
项目社区:https://github.com/laravelnews/laravel-twbs4

开源协议:MIT License

下载


Laravel 5.5 Frontend Preset for Boostrap 4

Note: Laravel 5.6 includes Bootstrap 4, this preset is only needed for Laravel <= Laravel 5.5 LTS

If you are upgrading a Laravel <= 5.5 application, remove this preset (laravelnews/laravel-twbs4) from your composer.json file. Laravel 5.6 includes Bootstrap 4, and this preset isn’t necessary.



A Laravel frontend preset for Bootstrap 4, the latest version of Bootstrap.

Current version is the stable release of ^4.0.0. To learn more about updating to the latest major release of Bootstrap, read the Migrating to v4 documentation.

Installation

You can install this package via composer:

  1. composer require laravelnews/laravel-twbs4

The package will automatically register it’s service provider.

Install the basic preset to only update the CSS and JavaScript files:

  1. php artisan preset bootstrap4

Or if you want to install everything, including auth views:

  1. php artisan preset bootstrap4-auth

Next, update NPM packages and build the CSS/JavaScript:

  1. yarn && yarn dev

Or via NPM:

  1. npm install && npm run dev

Important: Make sure you have a backup of your code. The presets update package.json, and replace views, CSS, and JavaScript.

jQuery Slim

Bootstrap’s download page includes jQuery slim. If you need $.ajax, effects, and deprecated methods, you can change the following line in resources/assets/js/boostrap.js to use the full jQuery installation:

  1. window.$ = window.jQuery = require('jquery/dist/jquery.slim');

With full jQuery:

  1. // Full jQuery
  2. window.$ = window.jQuery = require('jquery');

Variables

The Bootstrap 4 presets include the same familiar resources/assets/scss/_variables.scss file, with some updated values to match Bootstrap 4 variable changes. This preset looks similar to the current 3.x version that ships with Laravel, but isn’t identical.

Here are the variables ported over thus far:

  1. // Body
  2. $body-bg: #fff;
  3. // Borders
  4. $laravel-border-color: darken($body-bg, 10%);
  5. $list-group-border-color: $laravel-border-color;
  6. $card-border-color: $laravel-border-color;
  7. // Brands
  8. $primary: #3097D1;
  9. $info: #8eb4cb;
  10. $success: #2ab27b;
  11. $warning: #cbb956;
  12. $danger: #bf5329;
  13. // Typography
  14. $font-family-sans-serif: "Raleway", sans-serif;
  15. $font-size-base: .875rem; // 14px
  16. $line-height-base: 1.6;
  17. $text-color: #636b6f;
  18. // Inputs
  19. $input-border-color: lighten($text-color, 40%);
  20. $input-placeholder-color: lighten($text-color, 30%);

Screenshots

Login

Register

Register

License

The MIT License (MIT). See License File for more information.