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
8ef991d2
Commit
8ef991d2
authored
Feb 01, 2019
by
Nikolay Gromov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Кнопка закрытия: рефакторинг
parent
002396fb
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
15 deletions
+14
-15
close.pug
src/blocks/close/close.pug
+1
-1
close.scss
src/blocks/close/close.scss
+13
-13
blocks-demo.pug
src/pages/blocks-demo.pug
+0
-1
No files found.
src/blocks/close/close.pug
View file @
8ef991d2
...
@@ -19,5 +19,5 @@ mixin close(label, mods)
...
@@ -19,5 +19,5 @@ mixin close(label, mods)
}
}
}
}
button.close(class=allMods, aria-label=label, title=label)&attributes(attributes)
button.close(class=allMods,
type='button',
aria-label=label, title=label)&attributes(attributes)
span= label
span= label
src/blocks/close/close.scss
View file @
8ef991d2
...
@@ -45,21 +45,21 @@
...
@@ -45,21 +45,21 @@
}
}
}
}
&
--sm
{
//
&--sm {
$toggler-part-height
:
1px
;
//
$toggler-part-height: 1px;
width
:
30px
;
//
width: 30px;
line-height
:
30px
;
//
line-height: 30px;
span
{
//
span {
width
:
60%
;
//
width: 60%;
&
:before
,
//
&:before,
&
:after
{
//
&:after {
height
:
$toggler-part-height
;
//
height: $toggler-part-height;
background
:
$toggler-part-bg-color
;
//
background: $toggler-part-bg-color;
}
//
}
}
//
}
}
//
}
}
}
src/pages/blocks-demo.pug
View file @
8ef991d2
...
@@ -186,7 +186,6 @@ block content
...
@@ -186,7 +186,6 @@ block content
include:markdown-it(html='true') ../blocks/close/readme.md
include:markdown-it(html='true') ../blocks/close/readme.md
div
div
+close('Закрыть')
+close('Закрыть')
+close('Закрыть', 'sm')
+block-lib-code()
+block-lib-code()
include:show-code(first-line='//- Pug-файл этого блока:') ../blocks/close/close.pug
include:show-code(first-line='//- Pug-файл этого блока:') ../blocks/close/close.pug
...
...
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