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
6ef5b86c
Commit
6ef5b86c
authored
Dec 22, 2017
by
Nikolay Gromov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Правки глобальных стилей
parent
2e0dfbfb
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
45 additions
and
10 deletions
+45
-10
.stylelintignore
.stylelintignore
+1
-0
form.scss
src/blocks/form/form.scss
+2
-0
page.scss
src/blocks/page/page.scss
+42
-10
No files found.
.stylelintignore
View file @
6ef5b86c
# перечисление игнорируемых stylelint-ом файлов
src/blocks/sprite-png/sprite-png.scss
src/blocks/page/page.scss
src/blocks/form/form.scss
View file @
6ef5b86c
...
...
@@ -26,12 +26,14 @@ $line-height: 1.375em !default;
&
__legend
{
display
:
block
;
width
:
100%
;
max-width
:
100%
;
// Привет IE
margin-top
:
$line-height
;
margin-bottom
:
(
$line-height
/
2
);
font-size
:
$font-size--h3
;
font-family
:
$font-family--headings
;
font-weight
:
700
;
line-height
:
$line-height
;
white-space
:
normal
;
// Привет IE
color
:
currentColor
;
}
}
src/blocks/page/page.scss
View file @
6ef5b86c
...
...
@@ -3,7 +3,7 @@
// http://timkadlec.com/2012/10/ie10-snap-mode-and-responsive-design/
@at-root
{
@-ms-viewport
{
// stylelint-disable-line at-rule-no-vendor-prefix
@-ms-viewport
{
width
:
device-width
;
}
}
...
...
@@ -16,7 +16,7 @@
font-size
:
10px
;
-webkit-tap-highlight-color
:
rgba
(
0
,
0
,
0
,
0
);
-ms-overflow-style
:
scrollbar
;
-ms-text-size-adjust
:
100%
;
// stylelint-disable-line property-no-vendor-prefix
-ms-text-size-adjust
:
100%
;
min-width
:
320px
;
min-height
:
100%
;
...
...
@@ -51,7 +51,7 @@ body {
}
[
tabindex
=
'-1'
]
:focus
{
outline
:
none
!
important
;
// stylelint-disable-line declaration-no-important
outline
:
none
!
important
;
}
// Коррекция для кликабельных элементов с указанной ролью в iOS
...
...
@@ -61,28 +61,60 @@ body {
// Мы любим Сафари (на самом деле, нет).
input
[
type
=
'search'
]
{
-webkit-appearance
:
textfield
;
// stylelint-disable-line property-no-vendor-prefix
-webkit-appearance
:
textfield
;
}
// Стилевая коррекция 300ms задержки (для поддерживающих браузеров)
a
,
// area,
// summary,
a
,
button
,
[
role
=
'button'
],
input
,
label
,
select
,
//
summary
,
textarea
{
touch-action
:
manipulation
;
touch-action
:
manipulation
;
// Стилевая коррекция 300ms задержки (для поддерживающих браузеров)
margin
:
0
;
// Убираем margin в Firefox и Safari
}
button
,
input
{
overflow
:
visible
;
// Покажем торчащее в Edge
text-transform
:
none
;
// Уберём наследование text transform в Firefox
}
button
,
html
[
type
=
"button"
],
[
type
=
"reset"
],
[
type
=
"submit"
]
{
-webkit-appearance
:
button
;
// Коррекция проблем стилизации для Safari
}
button
:
:-
moz-focus-inner
,
[
type
=
"button"
]
::-
moz-focus-inner
,
[
type
=
"reset"
]
::-
moz-focus-inner
,
[
type
=
"submit"
]
::-
moz-focus-inner
{
padding
:
0
;
border-style
:
none
;
}
input
[
type
=
"date"
],
input
[
type
=
"time"
],
input
[
type
=
"datetime-local"
],
input
[
type
=
"month"
]
{
-webkit-appearance
:
listbox
;
// Коррекция для Mobile Safari (https://github.com/twbs/bootstrap/issues/11266)
}
textarea
{
overflow
:
auto
;
// Удаление верт. скролла в IE.
resize
:
vertical
;
// Правильное изменение размеров
}
svg
{
a
&
,
button
&
{
pointer-events
:
none
;
// Мы любим E
DGE! Это браузер! (нет
)
pointer-events
:
none
;
// Мы любим E
dge, это браузер! (почти
)
}
&
:not
(
:root
)
{
...
...
@@ -99,7 +131,7 @@ a {
color
:
$link-color
;
background-color
:
transparent
;
text-decoration-skip
:
ink
;
-webkit-text-decoration-skip
:
objects
;
// stylelint-disable-line property-no-vendor-prefix
-webkit-text-decoration-skip
:
objects
;
transition
:
color
0
.3s
;
&
:hover
,
...
...
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