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
a829e476
Commit
a829e476
authored
Jan 06, 2019
by
Nikolay Gromov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Рефакторинг: переменная для верт. отступа
parent
84648fa8
Changes
23
Show whitespace changes
Inline
Side-by-side
Showing
23 changed files
with
46 additions
and
41 deletions
+46
-41
alert.scss
src/blocks/alert/alert.scss
+3
-3
breadcrumbs.scss
src/blocks/breadcrumbs/breadcrumbs.scss
+2
-2
code.scss
src/blocks/code/code.scss
+2
-1
comment.scss
src/blocks/comment/comment.scss
+2
-2
embed-responsive.scss
src/blocks/embed-responsive/embed-responsive.scss
+2
-2
field-actions.scss
src/blocks/field-actions/field-actions.scss
+4
-4
field-checkbox.scss
src/blocks/field-checkbox/field-checkbox.scss
+2
-2
field-file.scss
src/blocks/field-file/field-file.scss
+1
-1
field-radio.scss
src/blocks/field-radio/field-radio.scss
+2
-2
field-range.scss
src/blocks/field-range/field-range.scss
+1
-1
field-select.scss
src/blocks/field-select/field-select.scss
+1
-1
field-text.scss
src/blocks/field-text/field-text.scss
+1
-1
field-toggler.scss
src/blocks/field-toggler/field-toggler.scss
+2
-2
form.scss
src/blocks/form/form.scss
+2
-2
or.scss
src/blocks/or/or.scss
+0
-3
page.scss
src/blocks/page/page.scss
+5
-3
pagination.scss
src/blocks/pagination/pagination.scss
+2
-2
progress.scss
src/blocks/progress/progress.scss
+2
-2
social.scss
src/blocks/social/social.scss
+2
-1
table-responsive.scss
src/blocks/table-responsive/table-responsive.scss
+2
-1
table.scss
src/blocks/table/table.scss
+2
-1
tabs.scss
src/blocks/tabs/tabs.scss
+2
-2
variables.scss
src/scss/variables.scss
+2
-0
No files found.
src/blocks/alert/alert.scss
View file @
a829e476
...
@@ -5,8 +5,8 @@
...
@@ -5,8 +5,8 @@
.alert
{
.alert
{
position
:
relative
;
position
:
relative
;
padding
:
0
.7em
1
.5em
0
.7em
1
.4em
;
padding
:
0
.7em
1
.5em
0
.7em
1
.4em
;
margin-top
:
1em
;
margin-top
:
$typo-margin-vertical
;
margin-bottom
:
1em
;
margin-bottom
:
$typo-margin-vertical
;
border-radius
:
$border-radius
;
border-radius
:
$border-radius
;
color
:
$text-color
;
color
:
$text-color
;
background-color
:
$gray-lightest
;
background-color
:
$gray-lightest
;
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
}
}
&
>
*
+
*
{
&
>
*
+
*
{
margin-top
:
1em
;
margin-top
:
$typo-margin-vertical
;
}
}
&
__header
{
&
__header
{
...
...
src/blocks/breadcrumbs/breadcrumbs.scss
View file @
a829e476
...
@@ -5,8 +5,8 @@
...
@@ -5,8 +5,8 @@
.breadcrumbs
{
.breadcrumbs
{
padding
:
0
;
padding
:
0
;
list-style
:
none
;
list-style
:
none
;
margin-top
:
1em
;
margin-top
:
$typo-margin-vertical
;
margin-bottom
:
1em
;
margin-bottom
:
$typo-margin-vertical
;
color
:
$text-color
;
color
:
$text-color
;
a
{
a
{
...
...
src/blocks/code/code.scss
View file @
a829e476
...
@@ -6,8 +6,9 @@
...
@@ -6,8 +6,9 @@
display
:
block
;
display
:
block
;
width
:
100%
;
width
:
100%
;
max-height
:
rem
(
500px
);
max-height
:
rem
(
500px
);
margin-top
:
$typo-margin-vertical
;
margin-bottom
:
$typo-margin-vertical
;
padding
:
0
.5rem
1rem
;
padding
:
0
.5rem
1rem
;
margin-bottom
:
1rem
;
overflow-x
:
auto
;
overflow-x
:
auto
;
background-color
:
$gray-lightest
;
background-color
:
$gray-lightest
;
border-radius
:
$border-radius
;
border-radius
:
$border-radius
;
...
...
src/blocks/comment/comment.scss
View file @
a829e476
...
@@ -3,8 +3,8 @@
...
@@ -3,8 +3,8 @@
// Очередность: http://nicothin.github.io/idiomatic-pre-CSS/#priority
// Очередность: http://nicothin.github.io/idiomatic-pre-CSS/#priority
.comment
{
.comment
{
margin-top
:
1em
;
margin-top
:
$typo-margin-vertical
;
margin-bottom
:
1em
;
margin-bottom
:
$typo-margin-vertical
;
@media
(
min-width
:
$screen-md
)
{
@media
(
min-width
:
$screen-md
)
{
...
...
src/blocks/embed-responsive/embed-responsive.scss
View file @
a829e476
...
@@ -6,8 +6,8 @@
...
@@ -6,8 +6,8 @@
position
:
relative
;
position
:
relative
;
display
:
block
;
display
:
block
;
width
:
100%
;
width
:
100%
;
margin-top
:
1rem
;
margin-top
:
$typo-margin-vertical
;
margin-bottom
:
1rem
;
margin-bottom
:
$typo-margin-vertical
;
padding
:
0
;
padding
:
0
;
overflow
:
hidden
;
overflow
:
hidden
;
...
...
src/blocks/field-actions/field-actions.scss
View file @
a829e476
...
@@ -4,13 +4,13 @@
...
@@ -4,13 +4,13 @@
.field-actions
{
.field-actions
{
display
:
block
;
display
:
block
;
margin-top
:
1em
;
margin-top
:
$typo-margin-vertical
;
margin-bottom
:
1em
;
margin-bottom
:
$typo-margin-vertical
;
&
__text
{
&
__text
{
display
:
block
;
display
:
block
;
margin-top
:
1rem
;
margin-top
:
$typo-margin-vertical
;
margin-bottom
:
1rem
;
margin-bottom
:
$typo-margin-vertical
;
font-size
:
$font-size--small
;
font-size
:
$font-size--small
;
color
:
$text-color--muted
;
color
:
$text-color--muted
;
line-height
:
1
.2em
;
line-height
:
1
.2em
;
...
...
src/blocks/field-checkbox/field-checkbox.scss
View file @
a829e476
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
$block-name
:
&
;
// #{$block-name}__element
$block-name
:
&
;
// #{$block-name}__element
display
:
block
;
display
:
block
;
margin-bottom
:
1em
;
margin-bottom
:
$typo-margin-vertical
;
&
__title
{
&
__title
{
display
:
block
;
display
:
block
;
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
&
__input-wrap
{
&
__input-wrap
{
&
+
&
{
&
+
&
{
margin-top
:
1em
;
margin-top
:
$typo-margin-vertical
;
}
}
&
--error
{
&
--error
{
...
...
src/blocks/field-file/field-file.scss
View file @
a829e476
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
$block-name
:
&
;
// #{$block-name}__element
$block-name
:
&
;
// #{$block-name}__element
display
:
block
;
display
:
block
;
margin-bottom
:
1em
;
margin-bottom
:
$typo-margin-vertical
;
&
__name
{
&
__name
{
@include
field-name
;
@include
field-name
;
...
...
src/blocks/field-radio/field-radio.scss
View file @
a829e476
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
$block-name
:
&
;
// #{$block-name}__element
$block-name
:
&
;
// #{$block-name}__element
display
:
block
;
display
:
block
;
margin-bottom
:
1em
;
margin-bottom
:
$typo-margin-vertical
;
&
__title
{
&
__title
{
display
:
block
;
display
:
block
;
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
&
__input-wrap
{
&
__input-wrap
{
&
+
&
{
&
+
&
{
margin-top
:
1em
;
margin-top
:
$typo-margin-vertical
;
}
}
&
--error
{
&
--error
{
...
...
src/blocks/field-range/field-range.scss
View file @
a829e476
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
.field-range
{
.field-range
{
display
:
block
;
display
:
block
;
margin-bottom
:
1rem
;
margin-bottom
:
$typo-margin-vertical
;
&
__name
{
&
__name
{
@include
field-name
;
@include
field-name
;
...
...
src/blocks/field-select/field-select.scss
View file @
a829e476
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
$block-name
:
&
;
// #{$block-name}__element
$block-name
:
&
;
// #{$block-name}__element
display
:
block
;
display
:
block
;
margin-bottom
:
1em
;
margin-bottom
:
$typo-margin-vertical
;
&
__name
{
&
__name
{
@include
field-name
;
@include
field-name
;
...
...
src/blocks/field-text/field-text.scss
View file @
a829e476
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
$block-name
:
&
;
// #{$block-name}__element
$block-name
:
&
;
// #{$block-name}__element
display
:
block
;
display
:
block
;
margin-bottom
:
1em
;
margin-bottom
:
$typo-margin-vertical
;
&
__name
{
&
__name
{
@include
field-name
;
@include
field-name
;
...
...
src/blocks/field-toggler/field-toggler.scss
View file @
a829e476
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
$block-name
:
&
;
// #{$block-name}__element
$block-name
:
&
;
// #{$block-name}__element
display
:
block
;
display
:
block
;
margin-bottom
:
1em
;
margin-bottom
:
$typo-margin-vertical
;
&
__title
{
&
__title
{
@include
field-name
;
@include
field-name
;
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
&
__input-wrap
{
&
__input-wrap
{
&
+
&
{
&
+
&
{
margin-top
:
1em
;
margin-top
:
$typo-margin-vertical
;
}
}
&
--error
{
&
--error
{
...
...
src/blocks/form/form.scss
View file @
a829e476
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
border
:
0
;
border
:
0
;
&
:not
(
:last-child
)
{
&
:not
(
:last-child
)
{
margin-bottom
:
1em
;
margin-bottom
:
$typo-margin-vertical
;
}
}
}
}
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
width
:
100%
;
width
:
100%
;
max-width
:
100%
;
// Привет IE
max-width
:
100%
;
// Привет IE
margin-top
:
0
;
margin-top
:
0
;
margin-bottom
:
1em
;
margin-bottom
:
$typo-margin-vertical
;
font-size
:
$font-size--h3
;
font-size
:
$font-size--h3
;
font-family
:
$font-family
;
font-family
:
$font-family
;
font-weight
:
700
;
font-weight
:
700
;
...
...
src/blocks/or/or.scss
View file @
a829e476
...
@@ -3,9 +3,6 @@
...
@@ -3,9 +3,6 @@
// Очередность: http://nicothin.github.io/idiomatic-pre-CSS/#priority
// Очередность: http://nicothin.github.io/idiomatic-pre-CSS/#priority
.or
{
.or
{
$block-name
:
&
;
// #{$block-name}__element
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
...
...
src/blocks/page/page.scss
View file @
a829e476
...
@@ -182,8 +182,8 @@ hr {
...
@@ -182,8 +182,8 @@ hr {
box-sizing
:
content-box
;
// Проблема Firefox
box-sizing
:
content-box
;
// Проблема Firefox
height
:
0
;
// Проблема Firefox
height
:
0
;
// Проблема Firefox
overflow
:
visible
;
// Проблема Edge и IE
overflow
:
visible
;
// Проблема Edge и IE
margin-top
:
2rem
;
margin-top
:
$typo-margin-vertical
*
2
;
margin-bottom
:
2rem
;
margin-bottom
:
$typo-margin-vertical
*
2
;
border
:
0
;
border
:
0
;
border-top
:
1px
solid
$border-color
;
border-top
:
1px
solid
$border-color
;
}
}
...
@@ -219,7 +219,7 @@ pre,
...
@@ -219,7 +219,7 @@ pre,
address
,
address
,
figure
{
figure
{
margin-top
:
0
;
margin-top
:
0
;
margin-bottom
:
1em
;
margin-bottom
:
$typo-margin-vertical
;
}
}
address
{
address
{
...
@@ -228,6 +228,7 @@ address {
...
@@ -228,6 +228,7 @@ address {
ul
,
ul
,
ol
{
ol
{
margin-bottom
:
$typo-margin-vertical
;
padding-left
:
1
.5em
;
padding-left
:
1
.5em
;
ul
,
ul
,
...
@@ -316,6 +317,7 @@ kbd {
...
@@ -316,6 +317,7 @@ kbd {
pre
{
pre
{
display
:
block
;
display
:
block
;
width
:
100%
;
width
:
100%
;
margin-bottom
:
$typo-margin-vertical
;
overflow-x
:
auto
;
overflow-x
:
auto
;
tab-size
:
2
;
tab-size
:
2
;
background-color
:
rgba
(
#000
,
0
.08
);
background-color
:
rgba
(
#000
,
0
.08
);
...
...
src/blocks/pagination/pagination.scss
View file @
a829e476
...
@@ -5,8 +5,8 @@
...
@@ -5,8 +5,8 @@
.pagination
{
.pagination
{
display
:
flex
;
display
:
flex
;
flex-wrap
:
wrap
;
flex-wrap
:
wrap
;
margin-top
:
1em
;
margin-top
:
$typo-margin-vertical
;
margin-bottom
:
1em
;
margin-bottom
:
$typo-margin-vertical
;
&
__item
{
&
__item
{
display
:
block
;
display
:
block
;
...
...
src/blocks/progress/progress.scss
View file @
a829e476
...
@@ -3,8 +3,8 @@
...
@@ -3,8 +3,8 @@
// Очередность: http://nicothin.github.io/idiomatic-pre-CSS/#priority
// Очередность: http://nicothin.github.io/idiomatic-pre-CSS/#priority
.progress
{
.progress
{
margin-top
:
1em
;
margin-top
:
$typo-margin-vertical
;
margin-bottom
:
1em
;
margin-bottom
:
$typo-margin-vertical
;
border
:
1px
solid
$border-color
;
border
:
1px
solid
$border-color
;
border-radius
:
$border-radius
;
border-radius
:
$border-radius
;
text-align
:
center
;
text-align
:
center
;
...
...
src/blocks/social/social.scss
View file @
a829e476
...
@@ -6,7 +6,8 @@
...
@@ -6,7 +6,8 @@
display
:
flex
;
display
:
flex
;
flex-wrap
:
wrap
;
flex-wrap
:
wrap
;
align-items
:
center
;
align-items
:
center
;
margin-bottom
:
1em
;
margin-top
:
$typo-margin-vertical
;
margin-bottom
:
$typo-margin-vertical
;
padding
:
0
;
padding
:
0
;
list-style
:
none
;
list-style
:
none
;
...
...
src/blocks/table-responsive/table-responsive.scss
View file @
a829e476
...
@@ -3,7 +3,8 @@
...
@@ -3,7 +3,8 @@
// Очередность: http://nicothin.github.io/idiomatic-pre-CSS/#priority
// Очередность: http://nicothin.github.io/idiomatic-pre-CSS/#priority
.table-responsive
{
.table-responsive
{
margin-bottom
:
1em
;
margin-top
:
$typo-margin-vertical
;
margin-bottom
:
$typo-margin-vertical
;
border-collapse
:
collapse
;
border-collapse
:
collapse
;
border
:
1px
solid
$border-color
;
border
:
1px
solid
$border-color
;
width
:
100%
;
width
:
100%
;
...
...
src/blocks/table/table.scss
View file @
a829e476
...
@@ -5,7 +5,8 @@
...
@@ -5,7 +5,8 @@
.table
{
.table
{
display
:
table
;
display
:
table
;
width
:
100%
;
width
:
100%
;
margin-bottom
:
1em
;
margin-top
:
$typo-margin-vertical
;
margin-bottom
:
$typo-margin-vertical
;
border
:
1px
solid
$border-color
;
border
:
1px
solid
$border-color
;
border-collapse
:
collapse
;
border-collapse
:
collapse
;
...
...
src/blocks/tabs/tabs.scss
View file @
a829e476
...
@@ -6,8 +6,8 @@
...
@@ -6,8 +6,8 @@
$block-name
:
&
;
// #{$block-name}__element
$block-name
:
&
;
// #{$block-name}__element
margin-top
:
1em
;
margin-top
:
$typo-margin-vertical
;
margin-bottom
:
1em
;
margin-bottom
:
$typo-margin-vertical
;
&
__links
{
&
__links
{
margin
:
0
;
margin
:
0
;
...
...
src/scss/variables.scss
View file @
a829e476
...
@@ -47,6 +47,8 @@ $font-size--small: 80%;
...
@@ -47,6 +47,8 @@ $font-size--small: 80%;
$line-height
:
1
.5
;
$line-height
:
1
.5
;
$typo-margin-vertical
:
1em
;
$font-family
:
-
apple-system
,
BlinkMacSystemFont
,
'Roboto'
,
'Ubuntu'
,
'Droid Sans'
,
'Helvetica Neue'
,
'Arial'
,
sans-serif
,
'Apple Color Emoji'
,
'Segoe UI Emoji'
,
'Segoe UI Symbol'
;
$font-family
:
-
apple-system
,
BlinkMacSystemFont
,
'Roboto'
,
'Ubuntu'
,
'Droid Sans'
,
'Helvetica Neue'
,
'Arial'
,
sans-serif
,
'Apple Color Emoji'
,
'Segoe UI Emoji'
,
'Segoe UI Symbol'
;
$font-family--monospace
:
SFMono-Regular
,
Menlo
,
Monaco
,
Consolas
,
Liberation
Mono
,
Courier
New
,
monospace
;
$font-family--monospace
:
SFMono-Regular
,
Menlo
,
Monaco
,
Consolas
,
Liberation
Mono
,
Courier
New
,
monospace
;
// Georgia, Times New Roman, Times, serif
// Georgia, Times New Roman, Times, serif
...
...
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