Skip to content
This repository has been archived by the owner on Aug 18, 2020. It is now read-only.

Commit

Permalink
feat(fonts): migrate to dependency approach
Browse files Browse the repository at this point in the history
moves font imports to the node modules dir
  • Loading branch information
eddier committed Mar 2, 2017
1 parent 4c22b38 commit 8f938fa
Show file tree
Hide file tree
Showing 89 changed files with 189 additions and 2,271 deletions.
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@
},
"dependencies": {
"d3": "^4.4.0",
"elegant-icons": "^0.0.1",
"flexbox-react": "^4.1.0",
"lato-font": "^2.0.0",
"react": "^15.4.1",
"react-dom": "^15.4.1",
"semantic-ui-react": "^0.66.0"
Expand Down
8 changes: 4 additions & 4 deletions semantic/src/themes/tripwire/elements/icon.variables
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
url("@{fontPath}/@{fontName}.ttf") format('truetype'),
url("@{fontPath}/@{fontName}.svg#icons") format('svg'),

url("../../src/styles/fonts/ElegantIcons.woff") format('woff'),
url("../../src/styles/fonts/ElegantIcons.eot") format('embedded-opentype'),
url("../../src/styles/fonts/ElegantIcons.ttf") format('truetype'),
url("../../src/styles/fonts/ElegantIcons.svg#icons") format('svg'),
url("../../node_modules/elegant-icons/fonts/ElegantIcons.woff") format('woff'),
url("../../node_modules/elegant-icons/fonts/ElegantIcons.eot") format('embedded-opentype'),
url("../../node_modules/elegant-icons/fonts/ElegantIcons.ttf") format('truetype'),
url("../../node_modules/elegant-icons/fonts/ElegantIcons.svg#icons") format('svg'),
;

@opacity: 1;
Expand Down
13 changes: 9 additions & 4 deletions semantic/src/themes/tripwire/modules/popup.overrides
Original file line number Diff line number Diff line change
Expand Up @@ -6,29 +6,34 @@
}

.ui.popup.red:before {
box-shadow: -1px -1px 0 0 @red !important;
color: @red !important;

}
.ui.popup:before{
color: darken(@borderColor, 10);
}


.ui.popup.yellow {
border: 1px solid @yellow !important;
}

.ui.popup.yellow:before {
box-shadow: -1px -1px 0 0 @yellow !important;
color: @yellow !important;
}

.ui.popup.grey {
border: 1px solid @grey !important;
}

.ui.popup.grey:before {
box-shadow: -1px -1px 0 0 @grey !important;
color: @grey !important;
}

.ui.popup.blue {
border: 1px solid @blue !important;
}

.ui.popup.blue:before {
box-shadow: -1px -1px 0 0 @blue !important;
color: @blue !important;
}
8 changes: 4 additions & 4 deletions semantic/src/themes/tripwire/modules/popup.variables
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@
@arrowCenterBackground: @arrowBackground;
@arrowBottomBackground: @arrowBackground;

@arrowBoxShadow: @arrowStroke @arrowStroke 0px 0px @arrowColor;
@leftArrowBoxShadow: @arrowStroke -@arrowStroke 0px 0px @arrowColor;
@rightArrowBoxShadow: -@arrowStroke @arrowStroke 0px 0px @arrowColor;
@bottomArrowBoxShadow: -@arrowStroke -@arrowStroke 0px 0px @arrowColor;
@arrowBoxShadow: @arrowStroke @arrowStroke 0px 0px;
@leftArrowBoxShadow: @arrowStroke -@arrowStroke 0px 0px;
@rightArrowBoxShadow: -@arrowStroke @arrowStroke 0px 0px;
@bottomArrowBoxShadow: -@arrowStroke -@arrowStroke 0px 0px;

/*-------------------
Types
Expand Down
2 changes: 1 addition & 1 deletion src/components/charts/CircleChart/Circle.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const CircleChart = (props) => {
textAnchor='middle'
dy='.35em'
fontSize='2.5em'
fontWeight='lighter'
fontWeight='300'
>
{endPercentValue}
</text>
Expand Down
6 changes: 2 additions & 4 deletions src/styles/app.css
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
/*@import url('https://fonts.googleapis.com/css?family=Lato:300,400,400i,700');*/
@import "fonts/typography.css";
@import 'fonts/style.css';
@import 'fonts/Lato/latofonts.css';
@import "variables.css";
@import "./elegant-icons.css";
@import "./lato.css";
.svg-overflow-visible svg {
overflow: visible;
}
10 changes: 5 additions & 5 deletions src/styles/fonts/style.css → src/styles/elegant-icons.css
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
@font-face {
font-family: 'ElegantIcons';
src:url('fonts/ElegantIcons.eot');
src:url('fonts/ElegantIcons.eot?#iefix') format('embedded-opentype'),
url('fonts/ElegantIcons.woff') format('woff'),
url('fonts/ElegantIcons.ttf') format('truetype'),
url('fonts/ElegantIcons.svg#ElegantIcons') format('svg');
src:url('../../node_modules/elegant-icons/fonts/ElegantIcons.eot');
src:url('../../node_modules/elegant-icons/fonts/ElegantIcons.eot?#iefix') format('embedded-opentype'),
url('../../node_modules/elegant-icons/fonts/ElegantIcons.woff') format('woff'),
url('../../node_modules/elegant-icons/fonts/ElegantIcons.ttf') format('truetype'),
url('../../node_modules/elegant-icons/fonts/ElegantIcons.svg#ElegantIcons') format('svg');
font-weight: normal;
font-style: normal;
}
Expand Down
Binary file removed src/styles/fonts/ElegantIcons.eot
Binary file not shown.
1,832 changes: 0 additions & 1,832 deletions src/styles/fonts/ElegantIcons.svg

This file was deleted.

Binary file removed src/styles/fonts/ElegantIcons.ttf
Binary file not shown.
Binary file removed src/styles/fonts/ElegantIcons.woff
Binary file not shown.
Binary file removed src/styles/fonts/Lato/fonts/Lato-Black.eot
Binary file not shown.
Binary file removed src/styles/fonts/Lato/fonts/Lato-Black.ttf
Binary file not shown.
Binary file removed src/styles/fonts/Lato/fonts/Lato-Black.woff
Binary file not shown.
Binary file removed src/styles/fonts/Lato/fonts/Lato-Black.woff2
Binary file not shown.
Binary file removed src/styles/fonts/Lato/fonts/Lato-BlackItalic.eot
Binary file not shown.
Binary file removed src/styles/fonts/Lato/fonts/Lato-BlackItalic.ttf
Binary file not shown.
Binary file removed src/styles/fonts/Lato/fonts/Lato-BlackItalic.woff
Binary file not shown.
Binary file removed src/styles/fonts/Lato/fonts/Lato-BlackItalic.woff2
Binary file not shown.
Binary file removed src/styles/fonts/Lato/fonts/Lato-Bold.eot
Binary file not shown.
Binary file removed src/styles/fonts/Lato/fonts/Lato-Bold.ttf
Binary file not shown.
Binary file removed src/styles/fonts/Lato/fonts/Lato-Bold.woff
Binary file not shown.
Binary file removed src/styles/fonts/Lato/fonts/Lato-Bold.woff2
Binary file not shown.
Binary file removed src/styles/fonts/Lato/fonts/Lato-BoldItalic.eot
Binary file not shown.
Binary file removed src/styles/fonts/Lato/fonts/Lato-BoldItalic.ttf
Binary file not shown.
Binary file removed src/styles/fonts/Lato/fonts/Lato-BoldItalic.woff
Binary file not shown.
Binary file removed src/styles/fonts/Lato/fonts/Lato-BoldItalic.woff2
Binary file not shown.
Binary file removed src/styles/fonts/Lato/fonts/Lato-Hairline.eot
Binary file not shown.
Binary file removed src/styles/fonts/Lato/fonts/Lato-Hairline.ttf
Binary file not shown.
Binary file removed src/styles/fonts/Lato/fonts/Lato-Hairline.woff
Binary file not shown.
Binary file removed src/styles/fonts/Lato/fonts/Lato-Hairline.woff2
Binary file not shown.
Binary file removed src/styles/fonts/Lato/fonts/Lato-HairlineItalic.eot
Binary file not shown.
Binary file removed src/styles/fonts/Lato/fonts/Lato-HairlineItalic.ttf
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed src/styles/fonts/Lato/fonts/Lato-Heavy.eot
Binary file not shown.
Binary file removed src/styles/fonts/Lato/fonts/Lato-Heavy.ttf
Binary file not shown.
Binary file removed src/styles/fonts/Lato/fonts/Lato-Heavy.woff
Binary file not shown.
Binary file removed src/styles/fonts/Lato/fonts/Lato-Heavy.woff2
Binary file not shown.
Binary file removed src/styles/fonts/Lato/fonts/Lato-HeavyItalic.eot
Binary file not shown.
Binary file removed src/styles/fonts/Lato/fonts/Lato-HeavyItalic.ttf
Binary file not shown.
Binary file removed src/styles/fonts/Lato/fonts/Lato-HeavyItalic.woff
Binary file not shown.
Binary file removed src/styles/fonts/Lato/fonts/Lato-HeavyItalic.woff2
Binary file not shown.
Binary file removed src/styles/fonts/Lato/fonts/Lato-Italic.eot
Binary file not shown.
Binary file removed src/styles/fonts/Lato/fonts/Lato-Italic.ttf
Binary file not shown.
Binary file removed src/styles/fonts/Lato/fonts/Lato-Italic.woff
Binary file not shown.
Binary file removed src/styles/fonts/Lato/fonts/Lato-Italic.woff2
Binary file not shown.
Binary file removed src/styles/fonts/Lato/fonts/Lato-Light.eot
Binary file not shown.
Binary file removed src/styles/fonts/Lato/fonts/Lato-Light.ttf
Binary file not shown.
Binary file removed src/styles/fonts/Lato/fonts/Lato-Light.woff
Binary file not shown.
Binary file removed src/styles/fonts/Lato/fonts/Lato-Light.woff2
Binary file not shown.
Binary file removed src/styles/fonts/Lato/fonts/Lato-LightItalic.eot
Binary file not shown.
Binary file removed src/styles/fonts/Lato/fonts/Lato-LightItalic.ttf
Binary file not shown.
Binary file removed src/styles/fonts/Lato/fonts/Lato-LightItalic.woff
Binary file not shown.
Binary file removed src/styles/fonts/Lato/fonts/Lato-LightItalic.woff2
Binary file not shown.
Binary file removed src/styles/fonts/Lato/fonts/Lato-Medium.eot
Binary file not shown.
Binary file removed src/styles/fonts/Lato/fonts/Lato-Medium.ttf
Binary file not shown.
Binary file removed src/styles/fonts/Lato/fonts/Lato-Medium.woff
Binary file not shown.
Binary file removed src/styles/fonts/Lato/fonts/Lato-Medium.woff2
Binary file not shown.
Binary file removed src/styles/fonts/Lato/fonts/Lato-MediumItalic.eot
Binary file not shown.
Binary file removed src/styles/fonts/Lato/fonts/Lato-MediumItalic.ttf
Binary file not shown.
Binary file removed src/styles/fonts/Lato/fonts/Lato-MediumItalic.woff
Binary file not shown.
Binary file removed src/styles/fonts/Lato/fonts/Lato-MediumItalic.woff2
Binary file not shown.
Binary file removed src/styles/fonts/Lato/fonts/Lato-Regular.eot
Binary file not shown.
Binary file removed src/styles/fonts/Lato/fonts/Lato-Regular.ttf
Binary file not shown.
Binary file removed src/styles/fonts/Lato/fonts/Lato-Regular.woff
Binary file not shown.
Binary file removed src/styles/fonts/Lato/fonts/Lato-Regular.woff2
Binary file not shown.
Binary file removed src/styles/fonts/Lato/fonts/Lato-Semibold.eot
Binary file not shown.
Binary file removed src/styles/fonts/Lato/fonts/Lato-Semibold.ttf
Binary file not shown.
Binary file removed src/styles/fonts/Lato/fonts/Lato-Semibold.woff
Binary file not shown.
Binary file removed src/styles/fonts/Lato/fonts/Lato-Semibold.woff2
Binary file not shown.
Binary file removed src/styles/fonts/Lato/fonts/Lato-SemiboldItalic.eot
Binary file not shown.
Binary file removed src/styles/fonts/Lato/fonts/Lato-SemiboldItalic.ttf
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed src/styles/fonts/Lato/fonts/Lato-Thin.eot
Binary file not shown.
Binary file removed src/styles/fonts/Lato/fonts/Lato-Thin.ttf
Binary file not shown.
Binary file removed src/styles/fonts/Lato/fonts/Lato-Thin.woff
Binary file not shown.
Binary file removed src/styles/fonts/Lato/fonts/Lato-Thin.woff2
Binary file not shown.
Binary file removed src/styles/fonts/Lato/fonts/Lato-ThinItalic.eot
Binary file not shown.
Binary file removed src/styles/fonts/Lato/fonts/Lato-ThinItalic.ttf
Binary file not shown.
Binary file removed src/styles/fonts/Lato/fonts/Lato-ThinItalic.woff
Binary file not shown.
Binary file removed src/styles/fonts/Lato/fonts/Lato-ThinItalic.woff2
Binary file not shown.
116 changes: 0 additions & 116 deletions src/styles/fonts/Lato/lato.html

This file was deleted.

216 changes: 0 additions & 216 deletions src/styles/fonts/Lato/latofonts.css

This file was deleted.

Loading

0 comments on commit 8f938fa

Please sign in to comment.