Commit 7401d697 authored by Nikolay Gromov's avatar Nikolay Gromov

Рефакторинг

parent 9131b1f5
...@@ -7,6 +7,8 @@ ...@@ -7,6 +7,8 @@
* @return {string} Результат преобразования $px в em на основе $font-size * @return {string} Результат преобразования $px в em на основе $font-size
*/ */
$font-size: 14px !default;
@function px-to-em($px, $font-size: $font-size) { @function px-to-em($px, $font-size: $font-size) {
@return (($px * 100 / ($font-size / 1px)) / 100) * 1em; @return (($px * 100 / ($font-size / 1px)) / 100) * 1em;
} }
`style.scss` генерируется автоматически, не пишите туда ничего. `style.scss` генерируется автоматически, не пишите туда ничего.
Прочие файлы игнорируются, если не упомянуты в `./package.json` (см. `./README.md`). Прочие файлы игнорируются, если не упомянуты в `./projectConfig.json` (см. `./README.md`).
/// Базовые цвета https://colorscheme.ru/color-converter.html // Базовые цвета https://colorscheme.ru/color-converter.html
$black: hsl(0, 0%, 0%); $black: hsl(0, 0%, 0%);
$gray-darkest: hsl(0, 0%, 10%); $gray-darkest: hsl(0, 0%, 10%);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment