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
5ce6499d
Commit
5ce6499d
authored
Mar 08, 2016
by
Nikolay Gromov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dropdown fix
parent
6888801e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
7 deletions
+39
-7
dropdown.less
src/blocks/dropdown/dropdown.less
+13
-1
blocks_library.html
src/blocks_library.html
+26
-6
No files found.
src/blocks/dropdown/dropdown.less
View file @
5ce6499d
...
...
@@ -14,7 +14,19 @@
}
}
&__toggler {}
// &__toggler {
// &:after {
// content: '';
// display: inline-block;
// vertical-align: middle;
// margin-left: .3em;
// width: 0;
// height: 0;
// border-style: solid;
// border-width: 0.5em 0.3em 0;
// border-color: currentColor transparent transparent transparent;
// }
// }
&__menu {
position: absolute;
...
...
src/blocks_library.html
View file @
5ce6499d
...
...
@@ -719,14 +719,14 @@
<button
class=
"dropdown__toggler btn"
id=
"dLabel"
type=
"button"
data-toggle=
"dropdown"
aria-haspopup=
"true"
aria-expanded=
"false"
>
Выпадает список
</button>
<ul
class=
"dropdown__menu"
aria-labelledby=
"dLabel"
id=
"qwer"
>
<ul
class=
"dropdown__menu"
id=
"qwer"
>
<li><a
href=
"#"
>
Пункт списка (выпадает
<code>
ul
</code>
)
</a></li>
<li><a
href=
""
>
Пункт меню весьма длинный
</a></li>
<li><a
href=
""
>
Второй пункт
</a></li>
</ul>
</span>
<span
role=
"presentation"
class=
"dropdown"
id=
"test_2"
>
<button
class=
"dropdown__toggler btn"
id=
"dLabel"
type=
"button"
data-toggle=
"dropdown"
aria-haspopup=
"true"
aria-expanded=
"false"
>
<span
role=
"presentation"
class=
"dropdown"
>
<button
class=
"dropdown__toggler btn"
type=
"button"
data-toggle=
"dropdown"
aria-haspopup=
"true"
aria-expanded=
"false"
>
Выпадает блок
</button>
<div
class=
"dropdown__menu"
>
...
...
@@ -742,11 +742,31 @@
</form>
</div>
</span>
<span
role=
"presentation"
class=
"dropdown"
id=
"test_2"
>
<button
class=
"dropdown__toggler btn"
id=
"dLabel"
type=
"button"
data-toggle=
"dropdown"
aria-haspopup=
"true"
aria-expanded=
"false"
>
<span
role=
"presentation"
class=
"dropdown"
>
<button
class=
"dropdown__toggler btn"
type=
"button"
data-toggle=
"dropdown"
aria-haspopup=
"true"
aria-expanded=
"false"
>
Выпадение вверх
</button>
<ul
class=
"dropdown__menu dropdown__menu--up"
>
<li><a
href=
"#"
>
Пункт списка (выпадает
<code>
ul
</code>
)
</a></li>
<li><a
href=
""
>
Пункт меню весьма длинный
</a></li>
<li><a
href=
""
>
Второй пункт
</a></li>
</ul>
</span>
<span
role=
"presentation"
class=
"dropdown"
>
<button
class=
"dropdown__toggler btn"
type=
"button"
data-toggle=
"dropdown"
aria-haspopup=
"true"
aria-expanded=
"false"
>
Выпадение от пр. края
</button>
<ul
class=
"dropdown__menu dropdown__menu--right"
>
<li><a
href=
"#"
>
Пункт списка (выпадает
<code>
ul
</code>
)
</a></li>
<li><a
href=
""
>
Пункт меню весьма длинный
</a></li>
<li><a
href=
""
>
Второй пункт
</a></li>
</ul>
</span>
<span
role=
"presentation"
class=
"dropdown"
>
<button
class=
"dropdown__toggler btn"
type=
"button"
data-toggle=
"dropdown"
aria-haspopup=
"true"
aria-expanded=
"false"
>
Выпадение вверх от пр. края
</button>
<ul
class=
"dropdown__menu dropdown__menu--up dropdown__menu--right"
aria-labelledby=
"dLabel"
id=
"qwer"
>
<ul
class=
"dropdown__menu dropdown__menu--up dropdown__menu--right"
>
<li><a
href=
"#"
>
Пункт списка (выпадает
<code>
ul
</code>
)
</a></li>
<li><a
href=
""
>
Пункт меню весьма длинный
</a></li>
<li><a
href=
""
>
Второй пункт
</a></li>
...
...
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