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
54939a91
Commit
54939a91
authored
Mar 18, 2016
by
Nikolay Gromov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
library add
parent
8d714342
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
79 additions
and
19 deletions
+79
-19
blocks-library.js
src/blocks/blocks-library/blocks-library.js
+0
-0
blocks-library.less
src/blocks/blocks-library/blocks-library.less
+44
-0
readme.md
src/blocks/highlight/readme.md
+2
-0
blocks_library.html
src/blocks_library.html
+24
-19
global-scaffolding.less
src/less/global/global-scaffolding.less
+9
-0
No files found.
src/blocks/blocks-library/blocks-library.js
0 → 100644
View file @
54939a91
src/blocks/blocks-library/blocks-library.less
View file @
54939a91
...
...
@@ -45,4 +45,48 @@
&__sub-item {}
&__sub-item-title {}
&__code-wrapper {
position: relative;
}
&__code-show-trigger {
position: absolute;
top: 0;
left: -4rem;
width: 3rem;
height: 3rem;
cursor: pointer;
}
&__code-icon {
display: block;
width: 3rem;
height: 0.2rem;
background-color: @gray-light;
&:before,
&:after {
position: absolute;
background-color: @gray-light;
width: 3rem;
height: 0.2rem;
left: 0;
content: '';
}
&:before {
top: 0.8rem;
}
&:after {
top: 1.6rem;
}
}
&__code {
max-height: 0;
overflow: hidden;
}
}
src/blocks/highlight/readme.md
View file @
54939a91
Это не обычный блок. Это компонент, служащий для подсветки синтаксиса в
<code>
pre>code
</code>
.
См.
[
highlightjs.org/download/
](
https://highlightjs.org/download/
)
src/blocks_library.html
View file @
54939a91
...
...
@@ -1542,25 +1542,30 @@
<input
type=
"submit"
class=
"btn btn--danger"
value=
"Input"
>
<button
class=
"btn btn--danger"
>
Button
</button>
</p>
<pre><code>
<
input type="text" value="Текстовое поле для сравнения высоты" style="width:70px"
>
<
a href="" class="btn"
>
Cсылка
<
/a
>
<
input type="submit" class="btn" value="Input"
>
<
button class="btn"
>
Button
<
/button
>
<
!-- .btn.btn--main --
>
<
a href="" class="btn btn--main"
>
Cсылка
<
/a
>
<
input type="submit" class="btn btn--main" value="Input"
>
<
button class="btn btn--main"
>
Button
<
/button
>
<
!-- .btn.btn--success --
>
<
a href="" class="btn btn--success"
>
Cсылка
<
/a
>
<
input type="submit" class="btn btn--success" value="Input"
>
<
button class="btn btn--success"
>
Button
<
/button
>
<
!-- .btn.btn--danger --
>
<
a href="" class="btn btn--danger"
>
Cсылка
<
/a
>
<
input type="submit" class="btn btn--danger" value="Input"
>
<
button class="btn btn--danger"
>
Button
<
/button
>
</code></pre>
<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>
<code
class=
"html"
>
<
input type="text" value="Текстовое поле для сравнения высоты" style="width:70px"
>
</code>
<code
class=
"html"
>
</code>
<code
class=
"html"
>
<
a class="btn" href=""
>
Cсылка
<
/a
>
</code>
<code
class=
"html"
>
<
input class="btn" type="submit" value="Input"
>
</code>
<code
class=
"html"
>
<
button class="btn"
>
Button
<
/button
>
</code>
<code
class=
"html"
>
</code>
<code
class=
"html"
>
<
a class="btn btn--main" href=""
>
Cсылка
<
/a
>
</code>
<code
class=
"html"
>
<
input class="btn btn--main" type="submit" value="Input"
>
</code>
<code
class=
"html"
>
<
button class="btn btn--main"
>
Button
<
/button
>
</code>
<code
class=
"html"
>
</code>
<code
class=
"html"
>
<
a class="btn btn--success" href=""
>
Cсылка
<
/a
>
</code>
<code
class=
"html"
>
<
input class="btn btn--success" type="submit" value="Input"
>
</code>
<code
class=
"html"
>
<
button class="btn btn--success"
>
Button
<
/button
>
</code>
<code
class=
"html"
>
</code>
<code
class=
"html"
>
<
a class="btn btn--danger" href=""
>
Cсылка
<
/a
>
</code>
<code
class=
"html"
>
<
input class="btn btn--danger" type="submit" value="Input"
>
</code>
<code
class=
"html"
>
<
button class="btn btn--danger"
>
Button
<
/button
>
</code>
</pre>
</div>
</div>
</div>
<div
class=
"blocks-library__sub-item"
>
<h2
class=
"blocks-library__sub-item-title"
>
Увеличение и уменьшение модификаторами
</h2>
...
...
src/less/global/global-scaffolding.less
View file @
54939a91
...
...
@@ -306,4 +306,13 @@ pre {
padding: 1em;
border-radius: @border-radius;
border: 1px solid @gray-lighter;
white-space: normal;
tab-size: 2;
code {
display: block;
padding: 0;
background-color: transparent;
white-space: pre;
}
}
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