refactor
This commit is contained in:
parent
a1438c170d
commit
fe31651001
@ -13,40 +13,32 @@ import gcmq from 'gulp-group-css-media-queries';
|
||||
import concat from 'gulp-concat';
|
||||
import minifyCss from 'gulp-minify-css';
|
||||
|
||||
// export const stylesBuild = () => {
|
||||
// return gulp.src(`${pathConfig.src.sass}/**/*.scss`, {
|
||||
// ignore: pathConfig.isProd && [`${pathConfig.src.sass}/parts/*.scss`]
|
||||
// })
|
||||
|
||||
// .pipe(newer('*'))
|
||||
// .pipe(gulpif(pathConfig.isDevelop, sourcemaps.init()))
|
||||
// .pipe(sass.sync().on('error', sass.logError))
|
||||
// .pipe(gulpif(pathConfig.isProd, gcmq()))
|
||||
// .pipe(gulpif(pathConfig.isProd, autoprefixer()))
|
||||
// .pipe(gulpif(pathConfig.isProd, cleanCSS({ level: 2 })))
|
||||
// .pipe(gulpif(pathConfig.isDevelop, sourcemaps.write('./')))
|
||||
// .pipe(gulp.dest(pathConfig.assets.css))
|
||||
|
||||
// .pipe(browser.reload({stream: true}));
|
||||
// }
|
||||
|
||||
export const stylesBuild = () => {
|
||||
return gulp.src(`${pathConfig.src.sass}/**/*.scss`)
|
||||
return gulp.src(`${pathConfig.src.sass}/**/*.scss`, {
|
||||
ignore: pathConfig.isProd && [`${pathConfig.src.sass}/parts/*.scss`]
|
||||
})
|
||||
|
||||
.pipe(newer('*'))
|
||||
.pipe(gulpif(pathConfig.isDevelop, sourcemaps.init()))
|
||||
.pipe(sass.sync().on('error', sass.logError))
|
||||
.pipe(concat("bundle.css"))
|
||||
.pipe(gulpif(pathConfig.isProd, gcmq()))
|
||||
.pipe(gulpif(pathConfig.isProd, autoprefixer()))
|
||||
.pipe(gulpif(pathConfig.isProd, cleanCSS({ level: 2 })))
|
||||
.pipe(gulpif(pathConfig.isDevelop, sourcemaps.write('./')))
|
||||
.pipe(gulp.dest(pathConfig.assets.css))
|
||||
|
||||
// return sass(`${pathConfig.src.sass}/**/*.scss`)
|
||||
// .pipe(sourcemaps.write())
|
||||
// .pipe(sourcemaps.init({loadMaps: true}))
|
||||
// .pipe(minifyCss({}))
|
||||
// .pipe(sourcemaps.init({loadMaps: true}))
|
||||
// .pipe(concat("app.min.css"))
|
||||
// .pipe(sourcemaps.write())
|
||||
// .pipe(gulp.dest( './build' ));
|
||||
.pipe(browser.reload({stream: true}));
|
||||
}
|
||||
|
||||
// export const stylesBuild = () => {
|
||||
// return gulp.src(`${pathConfig.src.sass}/**/*.scss`)
|
||||
// .pipe(gulpif(pathConfig.isDevelop, sourcemaps.init()))
|
||||
// .pipe(sass.sync().on('error', sass.logError))
|
||||
// .pipe(concat("bundle.css"))
|
||||
// .pipe(gulpif(pathConfig.isDevelop, sourcemaps.write('./')))
|
||||
// .pipe(gulp.dest(pathConfig.assets.css))
|
||||
//
|
||||
// }
|
||||
|
||||
|
||||
export const stylesDevelop = () => gulp.watch(`${pathConfig.src.sass}/**/*.scss`, stylesBuild).on('change', browser.reload.bind(null, {stream: true}));
|
||||
|
||||
@ -23,21 +23,21 @@
|
||||
|
||||
|
||||
// Common styles
|
||||
// wp_enqueue_style('armanty_style', $css . '/style.css', array(), $styleVersion);
|
||||
wp_enqueue_style('bundle', $css . '/bundle.css', array(), $styleVersion);
|
||||
wp_enqueue_style('armanty_style', $css . '/style.css', array(), $styleVersion);
|
||||
// wp_enqueue_style('bundle', $css . '/bundle.css', array(), $styleVersion);
|
||||
|
||||
// Pages styles
|
||||
// if (is_page_template('templates/about.php')) wp_enqueue_style('armanty_about', $pagesStyle . '/about.css', array(), $styleVersion);
|
||||
// if (is_page_template('templates/certificates.php')) wp_enqueue_style('armanty_certificates', $pagesStyle . '/certificates.css', array(), $styleVersion);
|
||||
// if (is_page_template('templates/contacts.php')) wp_enqueue_style('armanty_contacts', $pagesStyle . '/contacts.css', array(), $styleVersion);
|
||||
// if (is_page_template('templates/form.php')) wp_enqueue_style('armanty_form', $pagesStyle . '/form.css', array(), $styleVersion);
|
||||
// if (is_page_template('templates/gallery.php')) wp_enqueue_style('armanty_gallery', $pagesStyle . '/gallery.css', array(), $styleVersion);
|
||||
// if (is_page_template('templates/graduation.php')) wp_enqueue_style('armanty_graduation', $pagesStyle . '/graduation.css', array(), $styleVersion);
|
||||
// if (is_page_template('templates/holiday.php')) wp_enqueue_style('armanty_holiday', $pagesStyle . '/holiday.css', array(), $styleVersion);
|
||||
// if (is_page_template('templates/home.php')) wp_enqueue_style('armanty_home', $pagesStyle . '/home.css', array(), $styleVersion);
|
||||
// if (is_page_template('templates/price.php')) wp_enqueue_style('armanty_price', $pagesStyle . '/price.css', array(), $styleVersion);
|
||||
// if (is_page_template('templates/quests.php')) wp_enqueue_style('armanty_quests', $pagesStyle . '/quests.css', array(), $styleVersion);
|
||||
// if (is_page_template('templates/sales.php')) wp_enqueue_style('armanty_sales', $pagesStyle . '/sales.css', array(), $styleVersion);
|
||||
// if (is_page_template('templates/single-quest.php')) wp_enqueue_style('armanty_single-quest', $pagesStyle . '/single-quest.css', array(), $styleVersion);
|
||||
if (is_page_template('templates/about.php')) wp_enqueue_style('armanty_about', $pagesStyle . '/about.css', array(), $styleVersion);
|
||||
if (is_page_template('templates/certificates.php')) wp_enqueue_style('armanty_certificates', $pagesStyle . '/certificates.css', array(), $styleVersion);
|
||||
if (is_page_template('templates/contacts.php')) wp_enqueue_style('armanty_contacts', $pagesStyle . '/contacts.css', array(), $styleVersion);
|
||||
if (is_page_template('templates/form.php')) wp_enqueue_style('armanty_form', $pagesStyle . '/form.css', array(), $styleVersion);
|
||||
if (is_page_template('templates/gallery.php')) wp_enqueue_style('armanty_gallery', $pagesStyle . '/gallery.css', array(), $styleVersion);
|
||||
if (is_page_template('templates/graduation.php')) wp_enqueue_style('armanty_graduation', $pagesStyle . '/graduation.css', array(), $styleVersion);
|
||||
if (is_page_template('templates/holiday.php')) wp_enqueue_style('armanty_holiday', $pagesStyle . '/holiday.css', array(), $styleVersion);
|
||||
if (is_page_template('templates/home.php')) wp_enqueue_style('armanty_home', $pagesStyle . '/home.css', array(), $styleVersion);
|
||||
if (is_page_template('templates/price.php')) wp_enqueue_style('armanty_price', $pagesStyle . '/price.css', array(), $styleVersion);
|
||||
if (is_page_template('templates/quests.php')) wp_enqueue_style('armanty_quests', $pagesStyle . '/quests.css', array(), $styleVersion);
|
||||
if (is_page_template('templates/sales.php')) wp_enqueue_style('armanty_sales', $pagesStyle . '/sales.css', array(), $styleVersion);
|
||||
if (is_page_template('templates/single-quest.php')) wp_enqueue_style('armanty_single-quest', $pagesStyle . '/single-quest.css', array(), $styleVersion);
|
||||
}
|
||||
?>
|
||||
@ -1,4 +1,6 @@
|
||||
@import '../constansts';
|
||||
@import '../parts/header';
|
||||
@import '../parts/footer';
|
||||
|
||||
.about {
|
||||
&-text {
|
||||
|
||||
@ -1,3 +1,8 @@
|
||||
@import '../parts/header';
|
||||
@import '../parts/footer';
|
||||
@import '../parts/compound';
|
||||
@import '../parts/page-header';
|
||||
|
||||
.cert {
|
||||
&-text {
|
||||
margin-top: 50px;
|
||||
|
||||
@ -1,4 +1,7 @@
|
||||
@import '../constansts';
|
||||
@import '../parts/header';
|
||||
@import '../parts/page-header';
|
||||
@import '../parts/footer';
|
||||
|
||||
.contacts {
|
||||
padding-bottom: 30px;
|
||||
|
||||
@ -1,10 +1,12 @@
|
||||
@import '../constansts';
|
||||
@import '../parts/order';
|
||||
|
||||
@import '../../libs/bootstrap_datetimepicker/css/bootstrap-datetimepicker.min.css';
|
||||
@import '../../libs/bootstrap_datetimepicker/css/bootstrap.min.css';
|
||||
@import '../../libs/bootstrap-select/bootstrap-select.min.css';
|
||||
|
||||
@import '../parts/header';
|
||||
@import '../parts/order-modal';
|
||||
@import '../parts/footer';
|
||||
|
||||
.form-block {
|
||||
padding-bottom: 10px;
|
||||
@ -195,10 +197,11 @@
|
||||
}
|
||||
|
||||
.cheque-sum {
|
||||
padding:5px 10px;
|
||||
padding: 5px 10px;
|
||||
}
|
||||
|
||||
.cheque-info {
|
||||
padding:5px 10px;
|
||||
padding: 5px 10px;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 1200px) {
|
||||
|
||||
@ -1,3 +1,7 @@
|
||||
@import '../parts/header';
|
||||
@import '../parts/page-header';
|
||||
@import '../parts/footer';
|
||||
|
||||
.gallery_box_single {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
@ -1,8 +1,13 @@
|
||||
@import '../parts/adding-service';
|
||||
@import '../parts/header';
|
||||
@import '../parts/entertainments';
|
||||
@import '../parts/places';
|
||||
@import '../parts/adding-service';
|
||||
@import '../parts/order';
|
||||
@import '../pages/gallery';
|
||||
@import '../parts/holiday-photos';
|
||||
@import '../parts/packages';
|
||||
@import '../parts/variants';
|
||||
@import '../parts/compound';
|
||||
@import '../parts/footer';
|
||||
|
||||
.holiday {
|
||||
&-block {
|
||||
|
||||
@ -1,9 +1,10 @@
|
||||
@import '../parts/header';
|
||||
@import '../parts/main-block';
|
||||
@import '../parts/entertainments';
|
||||
@import '../parts/order';
|
||||
@import '../parts/places';
|
||||
@import '../parts/discounts';
|
||||
@import '../parts/present';
|
||||
@import '../parts/principals';
|
||||
|
||||
|
||||
@import '../parts/header';
|
||||
@import '../parts/callback-modal';
|
||||
@import '../parts/footer';
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
@import '../constansts';
|
||||
@import '../parts/main-block';
|
||||
@import '../parts/header';
|
||||
@import '../parts/footer';
|
||||
|
||||
.prices {
|
||||
padding-top: 30px;
|
||||
|
||||
@ -1,4 +1,8 @@
|
||||
@import '../parts/header';
|
||||
@import '../parts/page-header';
|
||||
@import '../parts/quests-list';
|
||||
@import '../parts/compound';
|
||||
@import '../parts/footer';
|
||||
|
||||
.quests {
|
||||
position: relative;
|
||||
@ -6,5 +10,4 @@
|
||||
margin-top: 30px;
|
||||
background-size: cover;
|
||||
font-family: 'PT Sans', sans-serif;
|
||||
|
||||
}
|
||||
|
||||
@ -1,4 +1,7 @@
|
||||
@import '../parts/header';
|
||||
@import '../parts/page-header';
|
||||
@import '../parts/discounts';
|
||||
@import '../parts/footer';
|
||||
|
||||
.sales-block {
|
||||
display: flex;
|
||||
|
||||
@ -1,3 +1,7 @@
|
||||
@import '../parts/header';
|
||||
@import '../parts/quest-single-slider';
|
||||
@import '../parts/footer';
|
||||
|
||||
.quest__booking {
|
||||
padding-bottom: 10px;
|
||||
|
||||
@ -9,7 +13,6 @@
|
||||
}
|
||||
|
||||
|
||||
|
||||
.quest-description {
|
||||
margin-top: 40px;
|
||||
margin-bottom: 40px;
|
||||
|
||||
@ -1,3 +1,5 @@
|
||||
@import './quests-slider';
|
||||
|
||||
.quest-description__icons_main {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
|
||||
@ -285,8 +285,8 @@
|
||||
|
||||
.header-phone-number-block {
|
||||
justify-content: center;
|
||||
border-right: 1px solid #fff;
|
||||
height: 100%;
|
||||
border-right: 1px solid #ffffff;
|
||||
}
|
||||
|
||||
.popover {
|
||||
|
||||
@ -1,4 +1,6 @@
|
||||
@import '../constansts';
|
||||
@import "./order-modal";
|
||||
|
||||
|
||||
.order {
|
||||
position: relative;
|
||||
|
||||
@ -1,16 +1,14 @@
|
||||
.package-currency {
|
||||
font-size: 16px !important
|
||||
font-size: 16px !important;
|
||||
}
|
||||
|
||||
|
||||
@media screen and (max-width: 576px) {
|
||||
.packages-item {
|
||||
padding: 25px 23px !important;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (max-width: 480px) {
|
||||
|
||||
|
||||
.packages-item {
|
||||
width: 255px;
|
||||
}
|
||||
|
||||
@ -6,8 +6,8 @@
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
height: 408px;
|
||||
color: #ffffff;
|
||||
background-size: cover;
|
||||
color: #ffffff;
|
||||
box-shadow: 0 5px 8px 0 rgba(0, 0, 0, 0.5);
|
||||
text-align: center;
|
||||
|
||||
@ -72,6 +72,8 @@
|
||||
.page {
|
||||
&__header {
|
||||
box-shadow: 0 5px 8px 0 rgba(0, 0, 0, 0.5);
|
||||
font-size: 28px;
|
||||
line-height: 1.2;
|
||||
|
||||
h1 {
|
||||
font-size: 28px;
|
||||
@ -84,14 +86,6 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.page__header {
|
||||
h1 {
|
||||
font-size: 28px;
|
||||
line-height: 1.2;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (max-width: 800px) {
|
||||
|
||||
@ -1,8 +1,3 @@
|
||||
.quest__slider {
|
||||
max-height: 600px;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.quest__slider {
|
||||
position: relative;
|
||||
max-height: 600px;
|
||||
|
||||
@ -131,8 +131,6 @@
|
||||
}
|
||||
|
||||
@media screen and (max-width: 576px) {
|
||||
|
||||
|
||||
.var-item {
|
||||
img {
|
||||
max-width: 100%;
|
||||
|
||||
@ -17,7 +17,6 @@
|
||||
get_template_part('parts/holiday/photos');
|
||||
get_template_part('parts/holiday/packages');
|
||||
get_template_part('parts/holiday/var');
|
||||
get_template_part('parts/home/principals');
|
||||
?>
|
||||
</div>
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user