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
8d714342
Commit
8d714342
authored
Mar 18, 2016
by
Nikolay Gromov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
syntax highlight to block
parent
f2c04c3c
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
121 additions
and
100 deletions
+121
-100
blocks-library.html
src/blocks/blocks-library/blocks-library.html
+10
-3
blocks-library.less
src/blocks/blocks-library/blocks-library.less
+0
-95
highlight.html
src/blocks/highlight/highlight.html
+8
-0
highlight.js
src/blocks/highlight/highlight.js
+5
-2
highlight.less
src/blocks/highlight/highlight.less
+95
-0
readme.md
src/blocks/highlight/readme.md
+1
-0
style.less
src/less/style.less
+2
-0
No files found.
src/blocks/blocks-library/blocks-library.html
View file @
8d714342
<!--DEV
<section class="blocks-library__item" data-name="Пояснение сбоку">
<section class="blocks-library__item"
id=""
data-name="Пояснение сбоку">
<h
2 class="blocks-library__title" id="">Заголовок</h2
>
<h
1 class="blocks-library__item-title">Раздел</h1
>
Контентю
Контент
<div class="blocks-library__sub-item">
<h2 class="blocks-library__sub-item-title">Подраздел</h2>
Контент
</div>
</section>
...
...
src/blocks/blocks-library/blocks-library.less
View file @
8d714342
...
...
@@ -46,98 +46,3 @@
&__sub-item-title {}
}
.hljs {
display: block;
width: auto;
color: @text-color;
background-color: transparent;
padding: 0;
}
.hljs-comment,
.hljs-quote {
color: #999;
}
.hljs-keyword,
.hljs-selector-tag,
.hljs-subst {
color: #333;
font-weight: bold;
}
.hljs-number,
.hljs-literal,
.hljs-variable,
.hljs-template-variable,
.hljs-tag .hljs-attr {
color: #4f9fcf;
}
.hljs-string,
.hljs-doctag {
color: #d44950;
}
.hljs-title,
.hljs-section,
.hljs-selector-id {
color: #900;
font-weight: bold;
}
.hljs-subst {
font-weight: normal;
}
.hljs-type,
.hljs-class .hljs-title {
color: #458;
font-weight: bold;
}
.hljs-tag,
.hljs-name,
.hljs-attribute {
color: #2f6f9f;
font-weight: normal;
}
.hljs-regexp,
.hljs-link {
color: #009926;
}
.hljs-symbol,
.hljs-bullet {
color: #990073;
}
.hljs-built_in,
.hljs-builtin-name {
color: #0086b3;
}
.hljs-meta {
color: #999;
font-weight: bold;
}
.hljs-deletion {
background: #fdd;
}
.hljs-addition {
background: #dfd;
}
.hljs-emphasis {
font-style: italic;
}
.hljs-strong {
font-weight: bold;
}
src/blocks/highlight/highlight.html
0 → 100644
View file @
8d714342
<!--DEV
<pre><code><input type="text" value="Текстовое поле для сравнения высоты">
<a href="" class="btn">Cсылка</a>
<input type="submit" class="btn" value="Input">
<button class="btn">Button</button></code></pre>
-->
src/blocks/
blocks-library/blocks-library
.js
→
src/blocks/
highlight/highlight
.js
View file @
8d714342
This diff is collapsed.
Click to expand it.
src/blocks/highlight/highlight.less
0 → 100644
View file @
8d714342
@import '../../less/variables.less'; // только для удобства обращения к переменным
.hljs {
display: block;
width: auto;
color: @text-color;
background-color: transparent;
padding: 0;
}
.hljs-comment,
.hljs-quote {
color: #999;
}
.hljs-keyword,
.hljs-selector-tag,
.hljs-subst {
color: #333;
font-weight: bold;
}
.hljs-number,
.hljs-literal,
.hljs-variable,
.hljs-template-variable,
.hljs-tag .hljs-attr {
color: #4f9fcf;
}
.hljs-string,
.hljs-doctag {
color: #d44950;
}
.hljs-title,
.hljs-section,
.hljs-selector-id {
color: #900;
font-weight: bold;
}
.hljs-subst {
font-weight: normal;
}
.hljs-type,
.hljs-class .hljs-title {
color: #458;
font-weight: bold;
}
.hljs-tag,
.hljs-name,
.hljs-attribute {
color: #2f6f9f;
font-weight: normal;
}
.hljs-regexp,
.hljs-link {
color: #009926;
}
.hljs-symbol,
.hljs-bullet {
color: #990073;
}
.hljs-built_in,
.hljs-builtin-name {
color: #0086b3;
}
.hljs-meta {
color: #999;
font-weight: bold;
}
.hljs-deletion {
background: #fdd;
}
.hljs-addition {
background: #dfd;
}
.hljs-emphasis {
font-style: italic;
}
.hljs-strong {
font-weight: bold;
}
src/blocks/highlight/readme.md
0 → 100644
View file @
8d714342
Это не обычный блок. Это компонент, служащий для подсветки синтаксиса в
<code>
pre>code
</code>
.
src/less/style.less
View file @
8d714342
...
...
@@ -7,6 +7,8 @@
@import './src/less/global/global-forms.less';
@import './src/less/global/global-tables.less';
@import './src/blocks/highlight/highlight.less';
@import './src/blocks/dl-horizontal/dl-horizontal.less';
@import './src/blocks/blockquote-right/blockquote-right.less';
@import './src/blocks/blocks-library/blocks-library.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