Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
landing_pages
Project
Overview
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
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
alex
landing_pages
Commits
98127a69
Commit
98127a69
authored
Jan 30, 2019
by
Iren
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add button for header
parent
3dccf1a3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
129 additions
and
31 deletions
+129
-31
styles.css
css/styles.css
+52
-12
styles.css.map
css/styles.css.map
+0
-0
styles.less
css/styles.less
+44
-10
index.html
index.html
+33
-9
No files found.
css/styles.css
View file @
98127a69
...
...
@@ -119,6 +119,8 @@ header {
}
}
.header-img
{
display
:
flex
;
justify-content
:
space-between
;
position
:
relative
;
width
:
19.6%
;
margin-top
:
1.8%
;
...
...
@@ -129,6 +131,12 @@ header {
width
:
100%
;
height
:
37%
;
}
@media
(
max-width
:
576px
)
{
.header-img
img
{
width
:
50%
;
height
:
37%
;
}
}
@media
(
max-width
:
992px
)
{
.header-img
{
height
:
80px
;
...
...
@@ -144,32 +152,64 @@ header {
}
@media
(
max-width
:
576px
)
{
.header-img
{
margin-top
:
1
5
px
;
margin-top
:
1
3
px
;
height
:
92px
;
width
:
1
60px
;
width
:
1
00%
;
}
}
#header-img-navicon
{
position
:
absolute
;
display
:
none
;
}
@media
(
max-width
:
576px
)
{
@media
(
min-width
:
319px
)
{
#header-img-navicon
{
position
:
relative
;
/* margin-left: 103px;
margin-top: -3px;*/
display
:
inline-block
;
font-size
:
36px
;
color
:
white
;
left
:
260px
;
top
:
-15px
;
}
}
@media
(
min-width
:
576px
)
{
#header-img-navicon
{
position
:
absolute
;
display
:
none
;
z-index
:
0
;
}
}
#cat
{
position
:
relativ
e
;
position
:
absolut
e
;
width
:
80px
;
height
:
80px
;
background
:
#00ccff
;
left
:
1px
;
top
:
40px
;
/*@media (min-width: 320px){
display: none;
}*/
}
@media
(
min-width
:
577px
)
{
#cat
{
display
:
none
;
}
}
.header-link-mobile-container
{
display
:
flex
;
}
@media
(
max-width
:
576px
)
{
.header-link-mobile
{
font-size
:
14px
;
margin-right
:
20px
;
}
}
@media
(
max-width
:
480px
)
{
.header-link-mobile
{
font-size
:
10px
;
margin-right
:
8px
;
}
}
.header-link-mobile
a
{
font-family
:
SF-UI-Display-Black
;
color
:
white
;
}
.page-header__burger--active
{
display
:
inline-block
;
display
:
none
;
}
.header-nav
{
position
:
relative
;
...
...
css/styles.css.map
View file @
98127a69
This diff is collapsed.
Click to expand it.
css/styles.less
View file @
98127a69
...
...
@@ -105,6 +105,8 @@ header {
}
}
.header-img {
display: flex;
justify-content: space-between;
position: relative;
width: 19.6%;
margin-top: 1.8%;
...
...
@@ -113,6 +115,10 @@ header {
z-index: 3;
width: 100%;
height: 37%;
@media (max-width: 576px){
width: 50%;
height: 37%;
}
}
@media (max-width: 992px) {
height: 80px;
...
...
@@ -124,30 +130,58 @@ header {
width: 100px;
}
@media (max-width: 576px) {
margin-top: 1
5
px;
margin-top: 1
3
px;
height: 92px;
width: 1
60px
;
width: 1
00%
;
}
}
#header-img-navicon {
position: absolute;
display: none;
@media (max-width: 576px){
@media (min-width: 319px){
position: relative;
/* margin-left: 103px;
margin-top: -3px;*/
display: inline-block;
font-size: 36px;
color: white;
left: 260px;
top: -15px;
}
@media (min-width: 576px){
position: absolute;
display: none;
z-index: 0;
}
}
#cat {
position:
relativ
e;
position:
absolut
e;
width: 80px;
height: 80px;
background: #00ccff;
left: 1px;
top: 40px;
@media (min-width: 577px){
display: none;
}
/*@media (min-width: 320px){
display: none;
}*/
}
.header-link-mobile-container {
display: flex;
}
.header-link-mobile {
@media (max-width: 576px){
font-size: 14px;
margin-right: 20px;
}
@media (max-width: 480px) {
font-size: 10px;
margin-right: 8px;
}
a {
font-family: SF-UI-Display-Black;
color: white;
}
}
.page-header__burger--active {
display:
inline-block
;
display:
none
;
}
.header-nav {
position: relative;
...
...
index.html
View file @
98127a69
...
...
@@ -17,18 +17,33 @@
<div
class=
"main-container"
>
<div
class=
"header-container"
>
<div
class=
"header-wrapp"
>
<!--
<div id="cat" class="page-header__burger--active">
hhh
</div>
-->
<div
class=
"header-img"
>
<button
type=
"button"
id=
"header-img-navicon"
>
☰
</button>
<!--<div id="header-img-navicon">
☰
</div>-->
<div>
<img
src=
"img/header-logo.png"
>
</div>
<div
id=
"header-img-navicon"
>
☰
</div>
<div
id=
"cat"
class=
"page-header__burger--active"
>
<ul
class=
"header-link-mobile-container"
>
<li
class=
"header-link-mobile"
>
<a
href=
"#"
>
Продукт
</a>
</li>
<li
class=
"header-link-mobile"
>
<a
href=
"#"
>
Цены
</a>
</li>
<li
class=
"header-link-mobile"
>
<a
href=
"#"
>
Контакты
</a>
</li>
<li
class=
"header-link-mobile"
>
<a
href=
"#"
>
Войти
</a>
</li>
<li
class=
"header-link-mobile"
>
<a
href=
"#"
>
Зарегистрироваться
</a>
</li>
</ul>
</div>
</div>
<div
class=
"header-nav"
>
<div
class=
"header-link"
>
<a
href=
""
>
Продукт
</a>
...
...
@@ -1212,3 +1227,11 @@
</script>
</body>
</html>
$('#header-img-navicon').click(function(event) {
$('#cat').removeClass('page-header__burger--active');
});
\ No newline at end of file
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