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
cccbb5f7
Commit
cccbb5f7
authored
Mar 14, 2016
by
Nikolay Gromov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
label circle
parent
120337d4
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
5 deletions
+25
-5
label--circle.less
src/blocks/label/label--circle.less
+9
-0
label--tag.less
src/blocks/label/label--tag.less
+2
-2
blocks_library.html
src/blocks_library.html
+13
-3
style.less
src/less/style.less
+1
-0
No files found.
src/blocks/label/label--circle.less
0 → 100644
View file @
cccbb5f7
@import '../../less/variables.less'; // только для удобства обращения к переменным
.label {
&--circle {
border-radius: 1.45em;
}
}
src/blocks/label/label--tag.less
View file @
cccbb5f7
...
...
@@ -6,8 +6,8 @@
&--tag {
margin-left: 1em;
padding-left: 0.7em;
border-top-left-radius: 0;
border-bottom-left-radius: 0;
border-top-left-radius: 0
!important
;
border-bottom-left-radius: 0
!important
;
&:before {
content: '';
...
...
src/blocks_library.html
View file @
cccbb5f7
...
...
@@ -1396,6 +1396,11 @@ $('#test').on('hidden.nth.dropdown', function () {
<span
class=
"label label--tag label--main"
>
Метка
</span>
<span
class=
"label label--tag label--danger"
>
Метка
</span>
<span
class=
"label label--tag label--success"
>
Метка
</span>
|
<span
class=
"label label--circle"
>
Метка
</span>
<span
class=
"label label--circle label--main"
>
Метка
</span>
<span
class=
"label label--circle label--danger"
>
Метка
</span>
<span
class=
"label label--circle label--success"
>
Метка
</span>
<br>
Обычный текст
<div
class=
"label"
>
...
...
@@ -1418,22 +1423,27 @@ $('#test').on('hidden.nth.dropdown', function () {
<h1>
Заголовок 1
<span
class=
"label"
><svg
width=
".7em"
height=
".7em"
><use
xmlns:xlink=
"http://www.w3.org/1999/xlink"
xlink:href=
"#block-library-camera"
></use></svg>
Метка
</span>
<span
class=
"label label--tag"
>
Метка
</span>
<span
class=
"label label--circle label--tag"
>
Метка
</span>
</h1>
<h2>
Заголовок 2
<span
class=
"label label--main"
><svg
width=
".7em"
height=
".7em"
><use
xmlns:xlink=
"http://www.w3.org/1999/xlink"
xlink:href=
"#block-library-camera"
></use></svg>
Метка
</span>
<span
class=
"label label--tag"
>
Метка
</span>
<span
class=
"label label--circle label--tag"
>
Метка
</span>
</h2>
<h3>
Заголовок 3
<span
class=
"label label--danger"
><svg
width=
".7em"
height=
".7em"
><use
xmlns:xlink=
"http://www.w3.org/1999/xlink"
xlink:href=
"#block-library-camera"
></use></svg>
Метка
</span>
<span
class=
"label label--tag"
>
Метка
</span>
<span
class=
"label label--circle label--tag"
>
Метка
</span>
</h3>
<h4>
Заголовок 4
<span
class=
"label label--success"
><svg
width=
".7em"
height=
".7em"
><use
xmlns:xlink=
"http://www.w3.org/1999/xlink"
xlink:href=
"#block-library-camera"
></use></svg>
Метка
</span>
<span
class=
"label label--tag"
>
Метка
</span>
<span
class=
"label label--circle label--tag"
>
Метка
</span>
</h4>
<h5>
Заголовок 5
<span
class=
"label"
><svg
width=
".7em"
height=
".7em"
><use
xmlns:xlink=
"http://www.w3.org/1999/xlink"
xlink:href=
"#block-library-camera"
></use></svg>
Метка
</span>
<span
class=
"label label--tag"
>
Метка
</span>
<span
class=
"label label--circle label--tag"
>
Метка
</span>
</h5>
<h6>
Заголовок 6
<span
class=
"label"
><svg
width=
".7em"
height=
".7em"
><use
xmlns:xlink=
"http://www.w3.org/1999/xlink"
xlink:href=
"#block-library-camera"
></use></svg>
Метка
</span>
...
...
@@ -1443,9 +1453,9 @@ $('#test').on('hidden.nth.dropdown', function () {
<div
class=
"col-md-6"
>
<h1>
Только иконка:
<span
class=
"label"
><svg
width=
".7em"
height=
".7em"
><use
xmlns:xlink=
"http://www.w3.org/1999/xlink"
xlink:href=
"#block-library-camera"
></use></svg></span>
<span
class=
"label"
><svg
width=
".7em"
height=
".7em"
><use
xmlns:xlink=
"http://www.w3.org/1999/xlink"
xlink:href=
"#block-library-folder-open"
></use></svg></span>
<span
class=
"label"
><svg
width=
".7em"
height=
".7em"
><use
xmlns:xlink=
"http://www.w3.org/1999/xlink"
xlink:href=
"#block-library-road"
></use></svg></span>
<span
class=
"label"
><svg
width=
".7em"
height=
".7em"
><use
xmlns:xlink=
"http://www.w3.org/1999/xlink"
xlink:href=
"#block-library-search"
></use></svg></span>
<span
class=
"label
label--circle
"
><svg
width=
".7em"
height=
".7em"
><use
xmlns:xlink=
"http://www.w3.org/1999/xlink"
xlink:href=
"#block-library-folder-open"
></use></svg></span>
<span
class=
"label
label--circle label--tag
"
><svg
width=
".7em"
height=
".7em"
><use
xmlns:xlink=
"http://www.w3.org/1999/xlink"
xlink:href=
"#block-library-road"
></use></svg></span>
<span
class=
"label
label--danger
"
><svg
width=
".7em"
height=
".7em"
><use
xmlns:xlink=
"http://www.w3.org/1999/xlink"
xlink:href=
"#block-library-search"
></use></svg></span>
</h1>
<p>
Лейблы в кнопках:
...
...
src/less/style.less
View file @
cccbb5f7
...
...
@@ -38,3 +38,4 @@
@import './src/blocks/label/label__detail.less';
@import './src/blocks/label/label--absolute.less';
@import './src/blocks/label/label--tag.less';
@import './src/blocks/label/label--circle.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