Skip to content
This repository has been archived by the owner on Nov 22, 2022. It is now read-only.

ivacuum/general-frontend-2018

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
js
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Общие компоненты для сайтов с использованием bootstrap 4.

Порядок подключения стилей

@import "~bootstrap/scss/functions";
@import "~vac-gfe/scss/variables"; // Переопределение переменных
@import "~bootstrap/scss/variables";
// ...
@import "~vac-gfe/scss/gfe"; // Компоненты самые последние

Пример подключения скрипта

import 'vac-gfe/js/pjax'

Шторка для pjax

В конце основного шаблона, перед подключением скриптов.

<div class="curtain curtain-closed js-curtain"></div>

Пустая карта для скриптов

Пример сборки для laravel-mix.

mix.copy('node_modules/vac-gfe/js/empty.map', 'public/assets/axios.min.map')