Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
K
kpp
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alexandr Veselov
kpp
Commits
67a1052b
Commit
67a1052b
authored
Mar 31, 2016
by
Nikolay Gromov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Начало стилизации навбара
parent
acc5f892
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
239 additions
and
40 deletions
+239
-40
logo.html
src/blocks/logo/logo.html
+7
-0
logo.less
src/blocks/logo/logo.less
+10
-0
main-nav.html
src/blocks/main-nav/main-nav.html
+8
-0
main-nav.less
src/blocks/main-nav/main-nav.less
+99
-0
navbar.html
src/blocks/navbar/navbar.html
+8
-0
navbar.less
src/blocks/navbar/navbar.less
+33
-0
blocks_library.html
src/blocks_library.html
+69
-40
style.less
src/less/style.less
+5
-0
No files found.
src/blocks/logo/logo.html
0 → 100644
View file @
67a1052b
<!--DEV
<a href="/" class="logo">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 100 100"><rect fill="#F90" width="100" height="100" rx="4" ry="4"/><rect fill="#FFB13B" width="50" height="50" rx="4" ry="4"/><rect x="50" y="50" fill="#DE8500" width="50" height="50" rx="4" ry="4"/><g fill="#F90"><circle cx="50" cy="18.4" r="18.4"/><circle cx="72.4" cy="27.6" r="18.4"/><circle cx="81.6" cy="50" r="18.4"/><circle cx="72.4" cy="72.4" r="18.4"/><circle cx="50" cy="81.6" r="18.4"/><circle cx="27.6" cy="72.4" r="18.4"/><circle cx="18.4" cy="50" r="18.4"/><circle cx="27.6" cy="27.6" r="18.4"/></g><path d="M63.086 18.385c0-7.227-5.86-13.086-13.1-13.086-7.235 0-13.096 5.858-13.096 13.085-5.1-5.11-13.395-5.11-18.497 0-5.12 5.12-5.12 13.408 0 18.524-7.234 0-13.103 5.858-13.103 13.084 0 7.23 5.87 13.098 13.103 13.098-5.12 5.11-5.12 13.395 0 18.515 5.102 5.104 13.397 5.104 18.497 0 0 7.228 5.86 13.083 13.096 13.083 7.24 0 13.1-5.855 13.1-13.083 5.118 5.104 13.416 5.104 18.513 0 5.1-5.12 5.1-13.41 0-18.515 7.215 0 13.08-5.87 13.08-13.098 0-7.227-5.865-13.085-13.08-13.085 5.1-5.12 5.1-13.407 0-18.525-5.098-5.11-13.394-5.11-18.514 0z"/><path fill="#FFF" d="M55.003 23.405v14.488L65.26 27.64c0-1.812.69-3.618 2.066-5.005 2.78-2.77 7.275-2.77 10.024 0 2.77 2.766 2.77 7.255 0 10.027-1.377 1.375-3.195 2.072-5.015 2.072L62.1 44.982h14.49c1.29-1.28 3.054-2.076 5.01-2.076 3.9 0 7.08 3.18 7.08 7.087 0 3.906-3.18 7.088-7.08 7.088-1.956 0-3.72-.797-5.01-2.07H62.1l10.23 10.243c1.823 0 3.64.694 5.014 2.086 2.774 2.758 2.774 7.25 0 10.01-2.75 2.773-7.24 2.773-10.025 0-1.373-1.373-2.065-3.193-2.065-5.004L55 62.094v14.5c1.27 1.275 2.084 3.053 2.084 5.012 0 3.906-3.177 7.077-7.098 7.077-3.92 0-7.094-3.167-7.094-7.077 0-1.96.81-3.732 2.08-5.013v-14.5L34.74 72.347c0 1.812-.705 3.627-2.084 5.003-2.77 2.77-7.25 2.77-10.024 0-2.775-2.765-2.775-7.254 0-10.013 1.377-1.39 3.214-2.086 5.012-2.086L37.9 55.01H23.413c-1.29 1.275-3.072 2.07-5.015 2.07-3.918 0-7.097-3.18-7.097-7.087s3.177-7.087 7.096-7.087c1.94 0 3.724.796 5.014 2.076h14.488L27.646 34.736c-1.797 0-3.632-.697-5.012-2.07-2.775-2.773-2.775-7.26 0-10.028 2.773-2.77 7.256-2.77 10.027 0 1.376 1.386 2.084 3.195 2.084 5.005L44.98 37.895V23.407c-1.27-1.287-2.083-3.053-2.083-5.023 0-3.908 3.175-7.08 7.096-7.08 3.92 0 7.097 3.17 7.097 7.08-.002 1.972-.816 3.735-2.087 5.02z"/><g><path d="M5.3 50h89.38v40q0 5-5 5H10.3q-5 0-5-5z"/><path fill="#3F3F3F" d="M14.657 54.21H86.05c2.91 0 5.313 2.386 5.313 5.316v17.91c-27.584-3.403-54.926-8.125-82.01-7.683V59.526c0-2.93 2.39-5.315 5.304-5.315z"/><path fill="#FFF" stroke="#000" stroke-width=".503" d="M18.312 72.927c-2.103-2.107-3.407-5.028-3.407-8.253 0-6.445 5.223-11.672 11.666-11.672 6.447 0 11.668 5.225 11.668 11.672h-6.832c0-2.674-2.168-4.837-4.835-4.837-2.662 0-4.837 2.163-4.837 4.837 0 1.338.55 2.536 1.415 3.42.883.874 2.1 1.405 3.423 1.405v.01c3.233 0 6.146 1.31 8.244 3.417 2.118 2.11 3.424 5.034 3.424 8.248 0 6.454-5.22 11.68-11.667 11.68-6.44 0-11.665-5.222-11.665-11.68h6.828c0 2.68 2.175 4.835 4.838 4.835 2.668 0 4.836-2.156 4.836-4.835 0-1.33-.545-2.527-1.43-3.407-.863-.88-2.08-1.418-3.405-1.418-3.23 0-6.14-1.314-8.258-3.423zM61.588 53.005l-8.244 39.85h-6.85l-8.258-39.85h6.846l4.838 23.337 4.835-23.337zM73.255 69.513h11.683v11.664c0 6.452-5.226 11.678-11.67 11.678-6.44 0-11.665-5.226-11.665-11.678v-16.5h-.017c0-6.448 5.24-11.677 11.667-11.677 6.46 0 11.683 5.225 11.683 11.676h-6.85c0-2.674-2.15-4.837-4.833-4.837-2.647 0-4.82 2.162-4.82 4.836v16.5c0 2.676 2.173 4.838 4.82 4.838 2.682 0 4.834-2.162 4.834-4.827V76.348h-4.834l.002-6.835z"/></g></svg>
</a>
-->
src/blocks/logo/logo.less
0 → 100644
View file @
67a1052b
// Для импорта в диспетчер подключений: @import './src/blocks/logo/logo.less';
@import '../../less/variables.less'; // только для удобства обращения к переменным
.logo {
display: block;
width: 5.5rem;
height: 5.5rem;
}
src/blocks/main-nav/main-nav.html
0 → 100644
View file @
67a1052b
<!--DEV
Нужно убрать пробел между @-ами:
@ @include('blocks/main-nav/main-nav.html')
-->
<div
class=
"main-nav"
>
content
</div>
src/blocks/main-nav/main-nav.less
0 → 100644
View file @
67a1052b
// Для импорта в диспетчер подключений: @import './src/blocks/main-nav/main-nav.less';
@import '../../less/variables.less'; // только для удобства обращения к переменным
.main-nav {
&__toggler {
position: relative;
z-index: 1;
top: 0;
right: 0;
display: flex;
align-items: center;
width: 4rem;
height: 4rem;
line-height: 4rem;
padding: 0.5rem;
user-select: none;
cursor: pointer;
color: @text-color;
background-color: @gray-lighter;
border: 1px solid @gray-light;
border-radius: @border-radius;
@media (min-width: @screen-lg) {
display: none;
}
}
&__toggler-icon {
display: inline-block;
vertical-align: bottom;
width: 100%;
height: 0.3rem;
background: currentColor;
border-radius: 0.2rem;
position: relative;
transition: background 0.3s 0.3s;
&:before,
&:after {
width: 100%;
height: 0.3rem;
background: currentColor;
border-radius: 0.2rem;
position: absolute;
left: 0;
content: '';
transform-origin: 50% 50%;
transition: top 0.3s 0.3s, transform 0.3s;
}
&:before {
top: 1rem;
}
&:after {
top: -1rem;
}
}
&__toggler-checkbox {
&:checked {
& ~ .main-nav__toggler .main-nav__toggler-icon {
transition: background .3s 0;
background: transparent;
&:before,
&:after {
transition: top 0.3s, transform 0.3s 0.3s;
top: 0;
}
&:before {
transform: rotate3d(0, 0, 1, 45deg);
}
&:after {
transform: rotate3d(0, 0, 1, -45deg);
}
}
}
}
&__list {
padding: 0;
list-style: none;
display: none;
&--level-2 {
display: none;
}
}
&__item {
display: block;
}
}
src/blocks/navbar/navbar.html
0 → 100644
View file @
67a1052b
<!--DEV
Нужно убрать пробел между @-ами:
@ @include('blocks/navbar/navbar.html')
-->
<div
class=
"navbar"
>
content
</div>
src/blocks/navbar/navbar.less
0 → 100644
View file @
67a1052b
// Для импорта в диспетчер подключений: @import './src/blocks/navbar/navbar.less';
@import '../../less/variables.less'; // только для удобства обращения к переменным
.navbar {
padding: 0.6rem;
background-color: @gray-lightest;
&__inner {
.container();
display: flex;
align-items: center;
justify-content: space-between;
}
&__left {
margin-right: 1em;
}
&__right {
flex-grow: 1;
display: flex;
align-items: center;
justify-content: space-between;
}
&__form {
.fields-group {
margin-bottom: 0;
}
}
}
src/blocks_library.html
View file @
67a1052b
...
...
@@ -17,15 +17,19 @@
<symbol
id=
"block-library-search"
viewBox=
"0 0 26 28"
><path
d=
"M18 13q0-2.89-2.055-4.945T11 6 6.055 8.055 4 13t2.055 4.945T11 20t4.945-2.055T18 13zm8 13q0 .812-.594 1.406T24 28q-.844 0-1.406-.594l-5.36-5.344Q14.44 24 11.002 24q-2.233 0-4.272-.868t-3.516-2.344-2.344-3.516T0 13 .87 8.725 3.212 5.21t3.516-2.344T11 2t4.274.866T18.79 5.21t2.344 3.516T22 13q0 3.436-1.936 6.233l5.36 5.36q.577.577.577 1.405z"
/></symbol>
</svg>
@@include('blocks/page-header/page-header.html')
<!--DEV @ @include('blocks/page-header/page-header.html') -->
<div
class=
"page-header"
>
<div
class=
"page-header__inner"
>
<header
class=
"page-header"
>
<div
class=
"navbar"
>
<div
class=
"navbar__inner"
>
<div
class=
"navbar__left"
>
<a
href=
"/"
class=
"logo"
>
<svg
xmlns=
"http://www.w3.org/2000/svg"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
viewBox=
"0 0 100 100"
><rect
fill=
"#F90"
width=
"100"
height=
"100"
rx=
"4"
ry=
"4"
/><rect
fill=
"#FFB13B"
width=
"50"
height=
"50"
rx=
"4"
ry=
"4"
/><rect
x=
"50"
y=
"50"
fill=
"#DE8500"
width=
"50"
height=
"50"
rx=
"4"
ry=
"4"
/><g
fill=
"#F90"
><circle
cx=
"50"
cy=
"18.4"
r=
"18.4"
/><circle
cx=
"72.4"
cy=
"27.6"
r=
"18.4"
/><circle
cx=
"81.6"
cy=
"50"
r=
"18.4"
/><circle
cx=
"72.4"
cy=
"72.4"
r=
"18.4"
/><circle
cx=
"50"
cy=
"81.6"
r=
"18.4"
/><circle
cx=
"27.6"
cy=
"72.4"
r=
"18.4"
/><circle
cx=
"18.4"
cy=
"50"
r=
"18.4"
/><circle
cx=
"27.6"
cy=
"27.6"
r=
"18.4"
/></g><path
d=
"M63.086 18.385c0-7.227-5.86-13.086-13.1-13.086-7.235 0-13.096 5.858-13.096 13.085-5.1-5.11-13.395-5.11-18.497 0-5.12 5.12-5.12 13.408 0 18.524-7.234 0-13.103 5.858-13.103 13.084 0 7.23 5.87 13.098 13.103 13.098-5.12 5.11-5.12 13.395 0 18.515 5.102 5.104 13.397 5.104 18.497 0 0 7.228 5.86 13.083 13.096 13.083 7.24 0 13.1-5.855 13.1-13.083 5.118 5.104 13.416 5.104 18.513 0 5.1-5.12 5.1-13.41 0-18.515 7.215 0 13.08-5.87 13.08-13.098 0-7.227-5.865-13.085-13.08-13.085 5.1-5.12 5.1-13.407 0-18.525-5.098-5.11-13.394-5.11-18.514 0z"
/><path
fill=
"#FFF"
d=
"M55.003 23.405v14.488L65.26 27.64c0-1.812.69-3.618 2.066-5.005 2.78-2.77 7.275-2.77 10.024 0 2.77 2.766 2.77 7.255 0 10.027-1.377 1.375-3.195 2.072-5.015 2.072L62.1 44.982h14.49c1.29-1.28 3.054-2.076 5.01-2.076 3.9 0 7.08 3.18 7.08 7.087 0 3.906-3.18 7.088-7.08 7.088-1.956 0-3.72-.797-5.01-2.07H62.1l10.23 10.243c1.823 0 3.64.694 5.014 2.086 2.774 2.758 2.774 7.25 0 10.01-2.75 2.773-7.24 2.773-10.025 0-1.373-1.373-2.065-3.193-2.065-5.004L55 62.094v14.5c1.27 1.275 2.084 3.053 2.084 5.012 0 3.906-3.177 7.077-7.098 7.077-3.92 0-7.094-3.167-7.094-7.077 0-1.96.81-3.732 2.08-5.013v-14.5L34.74 72.347c0 1.812-.705 3.627-2.084 5.003-2.77 2.77-7.25 2.77-10.024 0-2.775-2.765-2.775-7.254 0-10.013 1.377-1.39 3.214-2.086 5.012-2.086L37.9 55.01H23.413c-1.29 1.275-3.072 2.07-5.015 2.07-3.918 0-7.097-3.18-7.097-7.087s3.177-7.087 7.096-7.087c1.94 0 3.724.796 5.014 2.076h14.488L27.646 34.736c-1.797 0-3.632-.697-5.012-2.07-2.775-2.773-2.775-7.26 0-10.028 2.773-2.77 7.256-2.77 10.027 0 1.376 1.386 2.084 3.195 2.084 5.005L44.98 37.895V23.407c-1.27-1.287-2.083-3.053-2.083-5.023 0-3.908 3.175-7.08 7.096-7.08 3.92 0 7.097 3.17 7.097 7.08-.002 1.972-.816 3.735-2.087 5.02z"
/><g><path
d=
"M5.3 50h89.38v40q0 5-5 5H10.3q-5 0-5-5z"
/><path
fill=
"#3F3F3F"
d=
"M14.657 54.21H86.05c2.91 0 5.313 2.386 5.313 5.316v17.91c-27.584-3.403-54.926-8.125-82.01-7.683V59.526c0-2.93 2.39-5.315 5.304-5.315z"
/><path
fill=
"#FFF"
stroke=
"#000"
stroke-width=
".503"
d=
"M18.312 72.927c-2.103-2.107-3.407-5.028-3.407-8.253 0-6.445 5.223-11.672 11.666-11.672 6.447 0 11.668 5.225 11.668 11.672h-6.832c0-2.674-2.168-4.837-4.835-4.837-2.662 0-4.837 2.163-4.837 4.837 0 1.338.55 2.536 1.415 3.42.883.874 2.1 1.405 3.423 1.405v.01c3.233 0 6.146 1.31 8.244 3.417 2.118 2.11 3.424 5.034 3.424 8.248 0 6.454-5.22 11.68-11.667 11.68-6.44 0-11.665-5.222-11.665-11.68h6.828c0 2.68 2.175 4.835 4.838 4.835 2.668 0 4.836-2.156 4.836-4.835 0-1.33-.545-2.527-1.43-3.407-.863-.88-2.08-1.418-3.405-1.418-3.23 0-6.14-1.314-8.258-3.423zM61.588 53.005l-8.244 39.85h-6.85l-8.258-39.85h6.846l4.838 23.337 4.835-23.337zM73.255 69.513h11.683v11.664c0 6.452-5.226 11.678-11.67 11.678-6.44 0-11.665-5.226-11.665-11.678v-16.5h-.017c0-6.448 5.24-11.677 11.667-11.677 6.46 0 11.683 5.225 11.683 11.676h-6.85c0-2.674-2.15-4.837-4.833-4.837-2.647 0-4.82 2.162-4.82 4.836v16.5c0 2.676 2.173 4.838 4.82 4.838 2.682 0 4.834-2.162 4.834-4.827V76.348h-4.834l.002-6.835z"
/></g></svg>
</a>
</div>
<div
class=
"navbar__right"
>
<nav
class=
"main-nav"
>
<input
type=
"checkbox"
id=
"main-menu-show-toggler"
style=
"display:none!important;"
>
<input
class=
"main-nav__toggler-checkbox"
type=
"checkbox"
id=
"main-menu-show-toggler"
style=
"display:none!important;"
>
<label
class=
"main-nav__toggler"
for=
"main-menu-show-toggler"
>
<span
class=
"main-nav__toggler-icon"
></span>
</label>
...
...
@@ -69,8 +73,22 @@
</li>
</ul>
</nav>
<div
class=
"navbar__message"
>
Текст в шапке
</div>
<div
class=
"navbar__btns"
>
<a
href=
""
class=
"btn"
>
Кнопка
</a>
</div>
<form
class=
"navbar__form"
>
<div
class=
"fields-group"
>
<label
class=
"field-text fields-group__item"
>
<input
class=
"field-text__input"
type=
"search"
placeholder=
"input[type=search]"
>
</label>
<button
class=
"btn fields-group__item fields-group__item--addon"
>
Найти
</button>
</div>
</form>
</div>
</div>
</div>
</
div
>
</
header
>
<section
class=
"container blocks-library"
>
...
...
@@ -3126,6 +3144,17 @@
<div
class=
"blocks-library__code"
>
<pre
class=
"code"
>
<code
class=
"code__syntax html"
>
<span
class=
"code__line"
>
<
div class=
"
fields-group
">
</span>
<span
class=
"code__line"
>
<
span class=
"
fields-group__item fields-group__item--addon fields-group__item--text
">
</span>
<span
class=
"code__line"
>
$
</span>
<span
class=
"code__line"
>
<
/span
>
</span>
<span
class=
"code__line"
>
<
label class=
"
field-text fields-group__item
">
</span>
<span
class=
"code__line"
>
<
input class=
"
field-text__input
"
type=
"
text
"
placeholder=
"
input[type=text]
">
</span>
<span
class=
"code__line"
>
<
/label
>
</span>
<span
class=
"code__line"
>
<
button class=
"
btn fields-group__item fields-group__item--addon
">Отправить<
/button
>
</span>
<span
class=
"code__line"
>
<
button class=
"
btn fields-group__item fields-group__item--addon
">Отменить<
/button
>
</span>
<span
class=
"code__line"
>
<
/div
>
</span>
<span
class=
"code__line"
>
</span>
<span
class=
"code__line"
>
<
div class=
"
fields-group
">
</span>
<span
class=
"code__line"
>
<
span role=
"
presentation
"
class=
"
dropdown fields-group__item--dropdown
">
</span>
<span
class=
"code__line"
>
<
button class=
"
dropdown__toggler btn
"
type=
"
button
"
data-toggle=
"
dropdown
"
aria-haspopup=
"
true
"
aria-expanded=
"
false
">
</span>
...
...
src/less/style.less
View file @
67a1052b
...
...
@@ -7,6 +7,11 @@
@import './src/less/global/global-forms.less';
@import './src/less/global/global-tables.less';
@import './src/blocks/page-header/page-header.less';
@import './src/blocks/page-footer/page-footer.less';
@import './src/blocks/navbar/navbar.less';
@import './src/blocks/logo/logo.less';
@import './src/blocks/main-nav/main-nav.less';
@import './src/blocks/dl-horizontal/dl-horizontal.less';
@import './src/blocks/blockquote-right/blockquote-right.less';
@import './src/blocks/blocks-library/blocks-library.less';
...
...
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