Skip to content

Commit 9f5be5f

Browse files
author
Кирилл Э. Федотов
committed
from bb
1 parent 69a3866 commit 9f5be5f

File tree

2,308 files changed

+14479
-22
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,308 files changed

+14479
-22
lines changed

.enb/make.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const techs = {
1818
require('postcss-calc')(),
1919
require('postcss-nested'),
2020
require('rebem-css'),
21-
require('postcss-url')({ url: 'inline' }),
21+
require('postcss-url')({ url: 'rebase' }),
2222
require('autoprefixer')(),
2323
require('postcss-reporter')()
2424
],
@@ -41,7 +41,7 @@ const techs = {
4141
{ path: 'node_modules/bem-components-custom/desktop.blocks', check: false },
4242
{ path: 'node_modules/bem-components-custom/design/common.blocks', check: false },
4343
{ path: 'node_modules/bem-components-custom/design/desktop.blocks', check: false },
44-
{ path: 'node_modules/whitepaper-bem', check: false },
44+
4545
'common.blocks',
4646
'desktop.blocks',
4747
];
@@ -120,4 +120,4 @@ module.exports = function(config) {
120120

121121
// nodeConfig.addTargets([/* '?.bemtree.js', */ '../../?.html', '../../?.min.css', '../../?.min.js']);
122122
});
123-
};
123+
};

assets/rocket.png

283 KB
Loading

assets/trolly.svg

Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.avatar__photo_size_l {
2+
width: var(--graphics-size-3xl);
3+
height: var(--graphics-size-3xl);
4+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.avatar__photo_size_m {
2+
width: var(--graphics-size-2xl);
3+
height: var(--graphics-size-2xl);
4+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.avatar__photo_size_s {
2+
width: var(--graphics-size-xl);
3+
height: var(--graphics-size-xl);
4+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.avatar__photo_size_xs {
2+
width: var(--graphics-size-l);
3+
height: var(--graphics-size-l);
4+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
.avatar__photo {
2+
border-radius: 50%;
3+
height: 100%;
4+
overflow: hidden;
5+
background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23D8D8D8' fill-rule='evenodd'%3E%3Cpath d='M78 80c0-22.091-12-30-38-30S2 57.909 2 80h76zM40 45c8.942 0 15.048-8.954 16-20 1.143-13.258-7.058-20-16-20s-17.143 6.741-16 20c.952 11.046 7.058 20 16 20z'/%3E%3C/g%3E%3C/svg%3E");
6+
background-size: cover;
7+
object-fit: cover;
8+
}

common.blocks/avatar/avatar.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# avatar
2+
3+
Блок для отображения аватарки пользователя. Если изображение неопределено вставляется дефолтная картинка.
4+
5+
``` html
6+
<div class="avatar">
7+
<div class="avatar__photo avatar__photo_size_m"></div>
8+
</div>
9+
```
10+
11+
## Живые примеры и дизайн
12+
13+
[avatar на whitepaper.tools](http://whitepaper.tools/doc.html#/content-avatar)
14+
15+
___
16+
17+
18+
## Элементы блока
19+
20+
### Элемент photo
21+
22+
Элемент в который вставляется аватарка пользователя. За счёт модификаторов регулируется размер изображения.
23+
24+
Модификатор элемента | Значение | Описание
25+
-------------------- | ---------------- | --------
26+
`size` | `xs` `s` `m` `l` | Размер
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.avatar {
2+
display: inline-block;
3+
position: relative;
4+
}

0 commit comments

Comments
 (0)