Skip to content

Commit

Permalink
removed fonts.js helper
Browse files Browse the repository at this point in the history
  • Loading branch information
ArthurStam committed Jun 17, 2018
1 parent d5d33ec commit b08efee
Showing 4 changed files with 1 addition and 18 deletions.
8 changes: 0 additions & 8 deletions src/components/Avatar/Avatar.css
Original file line number Diff line number Diff line change
@@ -9,11 +9,3 @@
display: block;
max-width: 100%;
}

.Avatar--ios {
font-family: map(fontFamilies, ios)
}

.Avatar--android {
font-family: map(fontFamilies, android)
}
6 changes: 0 additions & 6 deletions src/helpers/fonts.js

This file was deleted.

2 changes: 0 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import './lib/polyfills';
import './styles/common.css';
import { values as colors } from './helpers/colors';
import { families as fontFamilies } from './helpers/fonts';

/**
* Layout
@@ -81,6 +80,5 @@ export { default as getClassName } from './helpers/getClassName';
export { default as requestAnimationFrame } from './lib/requestAnimationFrame';
export { isWebView } from './lib/webview';
export { colors };
export { fontFamilies };

export const v = process.env.VKUI_VERSION;
3 changes: 1 addition & 2 deletions webpack.config.js
Original file line number Diff line number Diff line change
@@ -8,7 +8,6 @@ const cssImport = require('postcss-import');
const cssMaps = require('postcss-map');
const autoprefixer = require('autoprefixer');
const colorsMaps = require('./src/helpers/colors');
const fontMaps = require('./src/helpers/fonts');

const cssTransformOptions = [
{
@@ -25,7 +24,7 @@ const cssTransformOptions = [
cssImport(),
cssCustomProperties(),
cssMaps({
maps: [{ colors: colorsMaps.values, fontFamilies: fontMaps.families }]
maps: [{ colors: colorsMaps.values }]
}),
autoprefixer()
];

0 comments on commit b08efee

Please sign in to comment.