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
2acf361c
Commit
2acf361c
authored
Apr 29, 2016
by
Nikolay Gromov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Улучшил блок «Загрузчик»
parent
7b784557
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
3 deletions
+11
-3
loader.svg
src/blocks/loader/img_to_bg/loader.svg
+1
-1
loader.less
src/blocks/loader/loader.less
+10
-2
No files found.
src/blocks/loader/img_to_bg/loader.svg
View file @
2acf361c
<svg
xmlns=
"http://www.w3.org/2000/svg"
width=
"40"
height=
"40"
viewBox=
"0 0 40 40"
stroke=
"#ccc"
><g
transform=
"translate(2 2)"
fill=
"none"
fill-rule=
"evenodd"
stroke-width=
"3"
><circle
cx=
"18"
cy=
"18"
r=
"18"
stroke-opacity=
".5"
/><path
d=
"M36 18c0-9.94-8.06-18-18-18"
><animateTransform
attributeName=
"transform"
type=
"rotate"
from=
"0 18 18"
to=
"360 18 18"
dur=
"1s"
repeatCount=
"indefinite"
/></path></g></svg>
\ No newline at end of file
<svg
xmlns=
"http://www.w3.org/2000/svg"
width=
"30"
height=
"30"
viewBox=
"0 0 30 30"
><path
d=
"M15 0A15 15 0 0 0 0 15a15 15 0 0 0 15 15 15 15 0 0 0 15-15h-1.707c0 3.48-1.432 6.938-3.893 9.398-2.46 2.46-5.92 3.895-9.4 3.895-3.48 0-6.94-1.434-9.4-3.895C3.14 21.938 1.707 18.48 1.707 15c0-3.48 1.432-6.94 3.893-9.4 2.46-2.46 5.92-3.893 9.4-3.893V0z"
fill=
"#f2f2f2"
/><path
d=
"M15 0v1.707c3.48 0 6.94 1.432 9.4 3.893 2.46 2.46 3.893 5.92 3.893 9.4H30A15 15 0 0 0 15 0z"
fill=
"#e6e6e6"
/></svg>
src/blocks/loader/loader.less
View file @
2acf361c
...
...
@@ -11,11 +11,19 @@
width: 3em;
height: 3em;
// background-image: data-uri('image/svg+xml;charset=UTF-8', './src/blocks/loader/img_to_bg/loader.svg');
// ВНИМАНИЕ! В строку с URL-кодированным SVG интерполирован
а переменная
с цветом!
@svg: escape('<svg xmlns="http://www.w3.org/2000/svg" width="
40" height="40" viewBox="0 0 40 40" stroke="@{gray-light}"><g transform="translate(2 2)" fill="none" fill-rule="evenodd" stroke-width="3"><circle cx="18" cy="18" r="18" stroke-opacity=".5"/><path d="M36 18c0-9.94-8.06-18-18-18"><animateTransform attributeName="transform" type="rotate" from="0 18 18" to="360 18 18" dur="1s" repeatCount="indefinite"/></path></g
></svg>');
// ВНИМАНИЕ! В строку с URL-кодированным SVG интерполирован
ы переменные
с цветом!
@svg: escape('<svg xmlns="http://www.w3.org/2000/svg" width="
30" height="30" viewBox="0 0 30 30"><path d="M15 0A15 15 0 0 0 0 15a15 15 0 0 0 15 15 15 15 0 0 0 15-15h-1.707c0 3.48-1.432 6.938-3.893 9.398-2.46 2.46-5.92 3.895-9.4 3.895-3.48 0-6.94-1.434-9.4-3.895C3.14 21.938 1.707 18.48 1.707 15c0-3.48 1.432-6.94 3.893-9.4 2.46-2.46 5.92-3.893 9.4-3.893V0z" fill="@{gray-light}"/><path d="M15 0v1.707c3.48 0 6.94 1.432 9.4 3.893 2.46 2.46 3.893 5.92 3.893 9.4H30A15 15 0 0 0 15 0z" fill="@{gray}"/
></svg>');
background-image: url("data:image/svg+xml,@{svg}");
background-repeat: no-repeat;
background-size: 100% 100%;
background-position: center;
animation: loader-rotate 1s linear infinite;
}
}
@keyframes loader-rotate {
0% { transform: rotate(0); }
100% { transform: rotate(360deg); }
}
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