-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
164 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,111 @@ | ||
/** | ||
Нормализация блочной модели | ||
*/ | ||
*, | ||
*::before, | ||
*::after { | ||
box-sizing: border-box; | ||
} | ||
|
||
/** | ||
Убираем внутренние отступы слева тегам списков, | ||
у которых есть атрибут class | ||
*/ | ||
:where(ul, ol):where([class]) { | ||
padding-left: 0; | ||
} | ||
|
||
/** | ||
Убираем внешние отступы body и двум другим тегам, | ||
у которых есть атрибут class | ||
*/ | ||
body, | ||
:where(blockquote, figure):where([class]) { | ||
margin: 0; | ||
} | ||
|
||
/** | ||
Убираем внешние отступы вертикали нужным тегам, | ||
у которых есть атрибут class | ||
*/ | ||
:where( | ||
h1, | ||
h2, | ||
h3, | ||
h4, | ||
h5, | ||
h6, | ||
p, | ||
ul, | ||
ol, | ||
dl | ||
):where([class]) { | ||
margin-block: 0; | ||
} | ||
|
||
:where(dd[class]) { | ||
margin-left: 0; | ||
} | ||
|
||
/** | ||
Убираем стандартный маркер маркированному списку, | ||
у которого есть атрибут class | ||
*/ | ||
:where(ul[class]) { | ||
list-style: none; | ||
} | ||
|
||
/** | ||
Упрощаем работу с изображениями | ||
*/ | ||
img { | ||
display: block; | ||
max-width: 100%; | ||
} | ||
|
||
/** | ||
Наследуем свойства шрифт для полей ввода | ||
*/ | ||
input, | ||
textarea, | ||
select, | ||
button { | ||
font: inherit; | ||
} | ||
|
||
html { | ||
/** | ||
Пригодится в большинстве ситуаций | ||
(когда, например, нужно будет "прижать" футер к низу сайта) | ||
*/ | ||
height: 100%; | ||
/** | ||
Плавный скролл | ||
*/ | ||
scroll-behavior: smooth; | ||
} | ||
|
||
body { | ||
/** | ||
Пригодится в большинстве ситуаций | ||
(когда, например, нужно будет "прижать" футер к низу сайта) | ||
*/ | ||
min-height: 100%; | ||
/** | ||
Унифицированный интерлиньяж | ||
*/ | ||
line-height: 1.5; | ||
} | ||
|
||
/** | ||
Удаляем все анимации и переходы для людей, | ||
которые предпочитают их не использовать | ||
*/ | ||
@media (prefers-reduced-motion: reduce) { | ||
* { | ||
animation-duration: 0.01ms !important; | ||
animation-iteration-count: 1 !important; | ||
transition-duration: 0.01ms !important; | ||
scroll-behavior: auto !important; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
/* http://meyerweb.com/eric/tools/css/reset/ */ | ||
/* v1.0 | 20080212 */ | ||
|
||
html, body, div, span, applet, object, iframe, | ||
h1, h2, h3, h4, h5, h6, p, blockquote, pre, | ||
a, abbr, acronym, address, big, cite, code, | ||
del, dfn, em, font, img, ins, kbd, q, s, samp, | ||
small, strike, strong, sub, sup, tt, var, | ||
b, u, i, center, | ||
dl, dt, dd, ol, ul, li, | ||
fieldset, form, label, legend, | ||
table, caption, tbody, tfoot, thead, tr, th, td { | ||
margin: 0; | ||
padding: 0; | ||
border: 0; | ||
outline: 0; | ||
font-size: 100%; | ||
vertical-align: baseline; | ||
background: transparent; | ||
} | ||
body { | ||
line-height: 1; | ||
} | ||
ol, ul { | ||
list-style: none; | ||
} | ||
blockquote, q { | ||
quotes: none; | ||
} | ||
blockquote:before, blockquote:after, | ||
q:before, q:after { | ||
content: ''; | ||
content: none; | ||
} | ||
|
||
/* remember to define focus styles! */ | ||
:focus { | ||
outline: 0; | ||
} | ||
|
||
/* remember to highlight inserts somehow! */ | ||
ins { | ||
text-decoration: none; | ||
} | ||
del { | ||
text-decoration: line-through; | ||
} | ||
|
||
/* tables still need 'cellspacing="0"' in the markup */ | ||
table { | ||
border-collapse: collapse; | ||
border-spacing: 0; | ||
} |