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
5fa5b6b4
Commit
5fa5b6b4
authored
Mar 27, 2016
by
Nikolay Gromov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Переделка представления кода, примесей модульных сеток
parent
db58d26a
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
260 additions
and
178 deletions
+260
-178
code.html
src/blocks/code/code.html
+0
-6
blocks_library.html
src/blocks_library.html
+251
-166
grid-mixins.less
src/less/mixins/grid-mixins.less
+9
-6
No files found.
src/blocks/code/code.html
View file @
5fa5b6b4
...
@@ -3,12 +3,6 @@
...
@@ -3,12 +3,6 @@
<pre class="code">
<pre class="code">
<code class="code__syntax css">
<code class="code__syntax css">
<span class="code__line">/* Родитель: */</span>
<span class="code__line">/* Родитель: */</span>
<span class="code__line">.block-name {</span>
<span class="code__line"> display: flex;</span>
<span class="code__line"> flex-wrap: wrap;</span>
<span class="code__line"> margin-left: -1.5rem;</span>
<span class="code__line"> margin-right: -1.5rem;</span>
<span class="code__line">}</span>
</code>
</code>
</pre>
</pre>
...
...
src/blocks_library.html
View file @
5fa5b6b4
This diff is collapsed.
Click to expand it.
src/less/mixins/grid-mixins.less
View file @
5fa5b6b4
...
@@ -44,7 +44,7 @@
...
@@ -44,7 +44,7 @@
// @xl-grid-gutter: @grid-gutter-width - промежуток между ячейками XL-сетки
// @xl-grid-gutter: @grid-gutter-width - промежуток между ячейками XL-сетки
// @xxl-grid-gutter: @grid-gutter-width - промежуток между ячейками XXL-сетки
// @xxl-grid-gutter: @grid-gutter-width - промежуток между ячейками XXL-сетки
//------------------------------------------------------------------------------
//------------------------------------------------------------------------------
//
Примеры: http://codepen.io/nicothin/pen/obRMgx?editors=1
100
//
Тестирование: http://codepen.io/nicothin/pen/NNggVx?editors=0
100
//------------------------------------------------------------------------------
//------------------------------------------------------------------------------
.row(@xs-grid-gutter: @grid-gutter-width; @sm-grid-gutter: @grid-gutter-width; @md-grid-gutter: @grid-gutter-width; @lg-grid-gutter: @grid-gutter-width; @xl-grid-gutter: @grid-gutter-width; @xxl-grid-gutter: @grid-gutter-width;) {
.row(@xs-grid-gutter: @grid-gutter-width; @sm-grid-gutter: @grid-gutter-width; @md-grid-gutter: @grid-gutter-width; @lg-grid-gutter: @grid-gutter-width; @xl-grid-gutter: @grid-gutter-width; @xxl-grid-gutter: @grid-gutter-width;) {
...
@@ -54,9 +54,12 @@
...
@@ -54,9 +54,12 @@
& > * {
& > * {
display: block;
display: block;
width: 100%;
width: 100%;
padding-left: (@grid-gutter-width / 2);
padding-right: (@grid-gutter-width / 2);
}
}
& when not (@xs-grid-gutter = false) {
// Если первая переданная переменная ноль — не выводим margin-ы по умолчанию
& when not (@xs-grid-gutter = 0) {
margin-left: (@xs-grid-gutter / -2);
margin-left: (@xs-grid-gutter / -2);
margin-right: (@xs-grid-gutter / -2);
margin-right: (@xs-grid-gutter / -2);
}
}
...
@@ -68,28 +71,28 @@
...
@@ -68,28 +71,28 @@
}
}
}
}
& when not (@md-grid-gutter = @
xs
-grid-gutter) {
& when not (@md-grid-gutter = @
sm
-grid-gutter) {
@media (min-width: @screen-md) {
@media (min-width: @screen-md) {
margin-left: (@md-grid-gutter / -2);
margin-left: (@md-grid-gutter / -2);
margin-right: (@md-grid-gutter / -2);
margin-right: (@md-grid-gutter / -2);
}
}
}
}
& when not (@lg-grid-gutter = @
xs
-grid-gutter) {
& when not (@lg-grid-gutter = @
md
-grid-gutter) {
@media (min-width: @screen-lg) {
@media (min-width: @screen-lg) {
margin-left: (@lg-grid-gutter / -2);
margin-left: (@lg-grid-gutter / -2);
margin-right: (@lg-grid-gutter / -2);
margin-right: (@lg-grid-gutter / -2);
}
}
}
}
& when not (@xl-grid-gutter = @
xs
-grid-gutter) {
& when not (@xl-grid-gutter = @
lg
-grid-gutter) {
@media (min-width: @screen-xl) {
@media (min-width: @screen-xl) {
margin-left: (@xl-grid-gutter / -2);
margin-left: (@xl-grid-gutter / -2);
margin-right: (@xl-grid-gutter / -2);
margin-right: (@xl-grid-gutter / -2);
}
}
}
}
& when not (@xxl-grid-gutter = @x
s
-grid-gutter) {
& when not (@xxl-grid-gutter = @x
l
-grid-gutter) {
@media (min-width: @screen-xxl) {
@media (min-width: @screen-xxl) {
margin-left: (@xxl-grid-gutter / -2);
margin-left: (@xxl-grid-gutter / -2);
margin-right: (@xxl-grid-gutter / -2);
margin-right: (@xxl-grid-gutter / -2);
...
...
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