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
b2bfbb25
Commit
b2bfbb25
authored
Mar 23, 2017
by
Nikolay Gromov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Добавил пагинацию
parent
15f04fa1
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
104 additions
and
2 deletions
+104
-2
projectConfig.json
projectConfig.json
+3
-2
blocks-demo.html
src/blocks-demo.html
+33
-0
pagination.html
src/blocks/pagination/pagination.html
+20
-0
pagination.scss
src/blocks/pagination/pagination.scss
+48
-0
No files found.
projectConfig.json
View file @
b2bfbb25
...
@@ -43,7 +43,8 @@
...
@@ -43,7 +43,8 @@
"table-responsive"
:
[],
"table-responsive"
:
[],
"table-mobile-scroll"
:
[],
"table-mobile-scroll"
:
[],
"owl-carousel"
:
[],
"owl-carousel"
:
[],
"swipe"
:
[]
"swipe"
:
[],
"pagination"
:
[]
},
},
"addCssBefore"
:
[
"addCssBefore"
:
[
"./src/scss/variables.scss"
,
"./src/scss/variables.scss"
,
...
...
src/blocks-demo.html
View file @
b2bfbb25
...
@@ -1357,6 +1357,39 @@
...
@@ -1357,6 +1357,39 @@
</section>
</section>
<section
class=
"blocks-library__item"
id=
"pagination"
data-name=
".pagination"
>
<h2
class=
"blocks-library__item-title"
>
Пагинация
</h2>
<div
class=
"pagination"
>
<a
href=
""
class=
"pagination__item"
>
1
</a>
<span
class=
"pagination__item"
>
...
</span>
<a
href=
""
class=
"pagination__item"
>
5
</a>
<a
href=
""
class=
"pagination__item pagination__item--active"
>
6
</a>
<a
href=
""
class=
"pagination__item"
>
123
</a>
<span
class=
"pagination__item"
>
...
</span>
<a
href=
""
class=
"pagination__item"
>
999
</a>
</div>
<div
class=
"blocks-library__code-wrapper"
>
<span
class=
"blocks-library__code-show-trigger"
title=
"Показать код"
><i
class=
"blocks-library__code-icon"
></i></span>
<div
class=
"blocks-library__code"
>
<pre
class=
"code"
>
<code>
<
/div class="pagination">
</code>
<code>
<
/a href="" class="pagination__item">1
<
//a>
</code>
<code>
<
/a href="" class="pagination__item">...
<
//a>
</code>
<code>
<
/a href="" class="pagination__item">5
<
//a>
</code>
<code>
<
/a href="" class="pagination__item pagination__item--active">6
<
//a>
</code>
<code>
<
/a href="" class="pagination__item">123
<
//a>
</code>
<code>
<
/a href="" class="pagination__item">...
<
//a>
</code>
<code>
<
/a href="" class="pagination__item">999
<
//a>
</code>
<code>
<
//div>
</code>
</pre>
</div>
</div>
</section>
<section
class=
"blocks-library__item"
id=
"dropdown"
data-name=
".dropdown"
>
<section
class=
"blocks-library__item"
id=
"dropdown"
data-name=
".dropdown"
>
<h2
class=
"blocks-library__item-title"
>
Выпадающий блок
</h2>
<h2
class=
"blocks-library__item-title"
>
Выпадающий блок
</h2>
...
...
src/blocks/pagination/pagination.html
0 → 100644
View file @
b2bfbb25
<!--DEV
Для использования этого файла как шаблона:
@ @include('blocks/pagination/pagination.html')
(Нужно убрать пробел между символами @)
Подробнее: https://www.npmjs.com/package/gulp-file-include
-->
<div
class=
"pagination"
>
<a
href=
""
class=
"pagination__item"
>
1
</a>
<a
href=
""
class=
"pagination__item"
>
...
</a>
<a
href=
""
class=
"pagination__item"
>
5
</a>
<a
href=
""
class=
"pagination__item pagination__item--active"
>
6
</a>
<a
href=
""
class=
"pagination__item"
>
123
</a>
<a
href=
""
class=
"pagination__item"
>
...
</a>
<a
href=
""
class=
"pagination__item"
>
999
</a>
</div>
src/blocks/pagination/pagination.scss
0 → 100644
View file @
b2bfbb25
// В этом файле должны быть стили только для БЭМ-блока pagination, его элементов,
// модификаторов, псевдоселекторов, псевдоэлементов, @media-условий...
// Не пишите здесь другие селекторы.
$line-height
:
1
.375em
!
default
;
$text-color
:
hsl
(
0
,
0%
,
10%
)
!
default
;
$border-color
:
hsl
(
0
,
0%
,
60%
)
!
default
;
.pagination
{
display
:
flex
;
flex-wrap
:
wrap
;
margin-top
:
$line-height
;
margin-bottom
:
$line-height
;
&
__item
{
display
:
block
;
padding
:
0
.5em
;
min-width
:
2
.5em
;
border
:
1px
solid
$border-color
;
text-decoration
:
none
;
text-align
:
center
;
color
:
$text-color
;
&
+
&
{
border-left
:
0
;
}
&
:hover
,
&
:focus
{
text-decoration
:
none
;
color
:
$text-color
;
}
@at-root
a
#{
&
}
{
&
:hover
,
&
:focus
{
background-color
:
$gray-lightest
;
}
}
&
--active
{
background-color
:
$gray-lightest
;
}
}
}
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