Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
bobcat-su_full
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Sergey
bobcat-su_full
Commits
1f870a04
Commit
1f870a04
authored
Dec 03, 2018
by
Sergey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add hover and catalog
parent
19c377ee
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
188 additions
and
13 deletions
+188
-13
catalog.html
src/catalog.html
+7
-0
main-list.js
src/js/main-list.js
+35
-0
main-slider.js
src/js/main-slider.js
+5
-0
header-nav.scss
src/scss/common/header/header-nav.scss
+6
-0
link-list-red.scss
src/scss/link-list-red/link-list-red.scss
+14
-0
main-slider-common.scss
src/scss/main-slider/main-slider-common.scss
+26
-0
menu-list-main.scss
src/scss/menu-list/menu-list-main.scss
+20
-10
product-slider.scss
src/scss/product-slider/product-slider.scss
+27
-1
index.html
src/template/main-slider/index.html
+3
-0
index.html
src/template/menu-list-catalog/index.html
+43
-0
index.html
src/template/menu-list-main/index.html
+2
-2
index.html
src/template/product-slider/index.html
+0
-0
No files found.
src/catalog.html
0 → 100644
View file @
1f870a04
//= template/common/header.html
//= template/menu-list-catalog/index.html
//= template/common/footer.html
\ No newline at end of file
src/js/main-list.js
0 → 100644
View file @
1f870a04
'use strict'
;
(
function
()
{
var
checkActive
=
function
(
list
,
elem
)
{
list
.
forEach
(
function
(
item
)
{
console
.
log
(
'Here!'
);
if
(
item
!==
elem
){
if
(
item
.
classList
.
contains
(
'active'
)){
item
.
classList
.
remove
(
'active'
);
}
}
})
};
var
tabs
=
document
.
querySelector
(
'.menu-list__mainpage'
);
if
(
tabs
)
{
var
tab
=
tabs
.
querySelectorAll
(
'.menu-list__link'
);
tab
.
forEach
(
function
(
item
,
index
)
{
item
.
addEventListener
(
'click'
,
function
(
evt
)
{
checkActive
(
tab
,
item
);
if
(
item
.
classList
.
contains
(
'active'
)){
}
else
{
evt
.
preventDefault
();
item
.
classList
.
toggle
(
'active'
);
var
productSlider
=
document
.
querySelectorAll
(
'.product-slider__wrapper'
);
productSlider
[
index
].
classList
.
add
(
'active'
);
checkActive
(
productSlider
,
productSlider
[
index
]);
}
})
})
}
})();
\ No newline at end of file
src/js/main-slider.js
View file @
1f870a04
...
@@ -9,6 +9,10 @@
...
@@ -9,6 +9,10 @@
delay
:
3000
,
delay
:
3000
,
grabCursor
:
true
grabCursor
:
true
},
},
pagination
:
{
el
:
'.swiper-pagination'
,
clickable
:
true
}
});
});
});
});
})();
})();
\ No newline at end of file
src/scss/common/header/header-nav.scss
View file @
1f870a04
...
@@ -12,6 +12,12 @@
...
@@ -12,6 +12,12 @@
justify-content
:
space-between
;
justify-content
:
space-between
;
}
}
.nav__item
:hover
{
.nav__link
{
font-weight
:
bold
;
}
}
.nav__link
{
.nav__link
{
text-decoration
:
none
;
text-decoration
:
none
;
...
...
src/scss/link-list-red/link-list-red.scss
View file @
1f870a04
...
@@ -45,4 +45,17 @@
...
@@ -45,4 +45,17 @@
height
:
35px
;
height
:
35px
;
fill
:
$white-text
;
fill
:
$white-text
;
margin-right
:
15px
;
margin-right
:
15px
;
transition
:
.2s
;
}
.link-list-red__text
{
transition
:
.2s
;
}
.link-list-red__link
:hover
{
.link-list-red__text
{
transform
:
translateY
(
-4px
);
}
.link-list-red__ico
{
transform
:
translateY
(
-4px
);
}
}
}
\ No newline at end of file
src/scss/main-slider/main-slider-common.scss
View file @
1f870a04
...
@@ -4,3 +4,29 @@
...
@@ -4,3 +4,29 @@
background
:
radial-gradient
(
ellipse
at
center
,
rgba
(
255
,
255
,
255
,
0
)
0%
,
rgba
(
255
,
255
,
255
,
0
)
0%
,
rgba
(
0
,
0
,
0
,
0
.65
)
35%
,
#232021
80%
,
#232021
100%
)
,
url("/img/background-min.jpg")
no-repeat
;
background
:
radial-gradient
(
ellipse
at
center
,
rgba
(
255
,
255
,
255
,
0
)
0%
,
rgba
(
255
,
255
,
255
,
0
)
0%
,
rgba
(
0
,
0
,
0
,
0
.65
)
35%
,
#232021
80%
,
#232021
100%
)
,
url("/img/background-min.jpg")
no-repeat
;
background-size
:
cover
;
background-size
:
cover
;
}
}
.main-slider__wrapper
{
.swiper-pagination-bullet
{
position
:
relative
;
width
:
15px
;
height
:
15px
;
background
:
$white-text
;
border
:
1px
solid
$grey-text
;
opacity
:
1
;
}
.swiper-pagination-bullet-active
{
&
:after
{
content
:
""
;
display
:
inline-block
;
position
:
absolute
;
width
:
10px
;
height
:
10px
;
border-radius
:
50%
;
top
:
50%
;
left
:
50%
;
transform
:
translate
(
-55%
,
-55%
);
background
:
$red-color
;
}
}
}
src/scss/menu-list/menu-list-main.scss
View file @
1f870a04
@import
"../settings/color"
;
@import
"../settings/color"
;
.menu-list
{
.menu-list
{
background
:
$menu-list
;
background
:
$menu-list
;
}
}
.menu-list__wrapper
{
.menu-list__wrapper
{
padding
:
0
20px
;
padding
:
0
20px
;
}
}
.menu-list__list
{
.menu-list__list
{
display
:
flex
;
display
:
flex
;
list-style-type
:
none
;
list-style-type
:
none
;
padding-left
:
0
;
padding-left
:
0
;
...
@@ -14,9 +16,10 @@
...
@@ -14,9 +16,10 @@
justify-content
:
space-between
;
justify-content
:
space-between
;
}
}
.menu-list__item
{
.menu-list__item
{
position
:
relative
;
position
:
relative
;
&
:after
{
&
:after
{
content
:
""
;
content
:
""
;
display
:
inline-block
;
display
:
inline-block
;
position
:
absolute
;
position
:
absolute
;
...
@@ -27,15 +30,16 @@
...
@@ -27,15 +30,16 @@
height
:
100%
;
height
:
100%
;
background
:
rgba
(
$white-text
,
.6
);
background
:
rgba
(
$white-text
,
.6
);
}
}
&
:last-child
{
&
:after
{
&
:last-child
{
&
:after
{
content
:
""
;
content
:
""
;
display
:
none
;
display
:
none
;
}
}
}
}
}
}
.menu-list__link
{
.menu-list__link
{
display
:
flex
;
display
:
flex
;
flex-direction
:
column
;
flex-direction
:
column
;
align-items
:
center
;
align-items
:
center
;
...
@@ -43,7 +47,12 @@
...
@@ -43,7 +47,12 @@
color
:
$white-text
;
color
:
$white-text
;
padding
:
10px
20px
20px
;
padding
:
10px
20px
20px
;
transition
:
.2s
;
transition
:
.2s
;
&
:hover
{
background
:
$red-color
;
&
:hover
{
background
:
rgba
(
$red-color
,
.8
);
}
}
}
}
.menu-list__link.active
{
background
:
$red-color
;
}
\ No newline at end of file
src/scss/product-slider/product-slider.scss
View file @
1f870a04
...
@@ -3,10 +3,21 @@
...
@@ -3,10 +3,21 @@
padding
:
45px
0
;
padding
:
45px
0
;
}
}
.product-slider__wrapper
{
.product-slider__wrapper
{
visibility
:
hidden
;
opacity
:
0
;
height
:
0
;
width
:
0
;
position
:
relative
;
}
.product-slider__wrapper.active
{
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
flex-direction
:
column
;
flex-direction
:
column
;
position
:
relative
;
visibility
:
visible
;
opacity
:
1
;
height
:
auto
;
width
:
1170px
;
}
}
.product-slider__content
{
.product-slider__content
{
...
@@ -24,6 +35,7 @@
...
@@ -24,6 +35,7 @@
width
:
225px
;
width
:
225px
;
height
:
225px
;
height
:
225px
;
position
:
relative
;
position
:
relative
;
cursor
:
pointer
;
}
}
.product-slider__bg
{
.product-slider__bg
{
...
@@ -34,6 +46,7 @@
...
@@ -34,6 +46,7 @@
top
:
0
;
top
:
0
;
left
:
0
;
left
:
0
;
margin-left
:
25px
;
margin-left
:
25px
;
transition
:
.2s
;
}
}
.product-slider__model
{
.product-slider__model
{
...
@@ -50,4 +63,16 @@
...
@@ -50,4 +63,16 @@
bottom
:
0
;
bottom
:
0
;
left
:
0
;
left
:
0
;
max-width
:
100%
;
max-width
:
100%
;
width
:
276px
;
transition
:
.2s
;
}
.product-slider__item
:hover
{
.product-slider__bg
{
background
:
$red-color
;
transform
:
translateY
(
-10px
);
}
.product-slider__img
{
transform
:
translateY
(
-10px
);
}
}
}
\ No newline at end of file
src/template/main-slider/index.html
View file @
1f870a04
...
@@ -3,7 +3,9 @@
...
@@ -3,7 +3,9 @@
<div
class=
"slider__main swiper-container"
>
<div
class=
"slider__main swiper-container"
>
<div
class=
"swiper-wrapper"
>
<div
class=
"swiper-wrapper"
>
<div
class=
"slider__main-item swiper-slide"
><a
href=
"#"
><img
src=
"img/slide.jpg"
></a></div>
<div
class=
"slider__main-item swiper-slide"
><a
href=
"#"
><img
src=
"img/slide.jpg"
></a></div>
<div
class=
"slider__main-item swiper-slide"
><a
href=
"#"
><img
src=
"img/slide.jpg"
></a></div>
</div>
</div>
<div
class=
"swiper-pagination"
></div>
</div>
</div>
</div>
</div>
</div>
</div>
\ No newline at end of file
src/template/menu-list-catalog/index.html
0 → 100644
View file @
1f870a04
<div
class=
"menu-list"
>
<div
class=
"wrapper menu-list__wrapper"
>
<ul
class=
"menu-list__list"
>
<li
class=
"menu-list__item"
>
<a
href=
"#"
class=
"menu-list__link active"
>
<img
src=
"img/icon-test.png"
alt=
""
class=
"menu-list__ico"
>
<p
class=
"menu-list__tit"
>
Колесные мини-погрузчики
</p>
</a>
</li>
<li
class=
"menu-list__item"
>
<a
href=
"#"
class=
"menu-list__link"
>
<img
src=
"img/icon-test.png"
alt=
""
class=
"menu-list__ico"
>
<p
class=
"menu-list__tit"
>
Колесные мини-погрузчики
</p>
</a>
</li>
<li
class=
"menu-list__item"
>
<a
href=
"#"
class=
"menu-list__link"
>
<img
src=
"img/icon-test.png"
alt=
""
class=
"menu-list__ico"
>
<p
class=
"menu-list__tit"
>
Колесные мини-погрузчики
</p>
</a>
</li>
<li
class=
"menu-list__item"
>
<a
href=
"#"
class=
"menu-list__link"
>
<img
src=
"img/icon-test.png"
alt=
""
class=
"menu-list__ico"
>
<p
class=
"menu-list__tit"
>
Колесные мини-погрузчики
</p>
</a>
</li>
<li
class=
"menu-list__item"
>
<a
href=
"#"
class=
"menu-list__link"
>
<img
src=
"img/icon-test.png"
alt=
""
class=
"menu-list__ico"
>
<p
class=
"menu-list__tit"
>
Колесные мини-погрузчики
</p>
</a>
</li>
<li
class=
"menu-list__item"
>
<a
href=
"#"
class=
"menu-list__link"
>
<img
src=
"img/icon-test.png"
alt=
""
class=
"menu-list__ico"
>
<p
class=
"menu-list__tit"
>
Колесные мини-погрузчики
</p>
</a>
</li>
</ul>
</div>
</div>
\ No newline at end of file
src/template/menu-list-main/index.html
View file @
1f870a04
<div
class=
"menu-list"
>
<div
class=
"menu-list"
>
<div
class=
"wrapper menu-list__wrapper"
>
<div
class=
"wrapper menu-list__wrapper"
>
<ul
class=
"menu-list__list"
>
<ul
class=
"menu-list__list
menu-list__mainpage
"
>
<li
class=
"menu-list__item"
>
<li
class=
"menu-list__item"
>
<a
href=
"#"
class=
"menu-list__link"
>
<a
href=
"#"
class=
"menu-list__link
active
"
>
<img
src=
"img/icon-test.png"
alt=
""
class=
"menu-list__ico"
>
<img
src=
"img/icon-test.png"
alt=
""
class=
"menu-list__ico"
>
<p
class=
"menu-list__tit"
>
Колесные мини-погрузчики
</p>
<p
class=
"menu-list__tit"
>
Колесные мини-погрузчики
</p>
</a>
</a>
...
...
src/template/product-slider/index.html
View file @
1f870a04
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment