Skip to content
This repository has been archived by the owner on Mar 12, 2024. It is now read-only.

Commit

Permalink
refactoring style
Browse files Browse the repository at this point in the history
  • Loading branch information
Özgür Ersoy authored and Özgür Ersoy committed Feb 11, 2019
1 parent 9fc4201 commit 9bfb8fa
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 11 deletions.
3 changes: 1 addition & 2 deletions src/components/Apple/style.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
@import '../../app.scss';

@import '../../style/mixins.scss';

.apple-out {
visibility: hidden;
Expand Down
2 changes: 1 addition & 1 deletion src/components/Button/style.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import '../../app.scss';
@import '../../style/mixins.scss';

$shake-color: #a77600;

Expand Down
2 changes: 1 addition & 1 deletion src/components/Tree/style.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import '../../app.scss';
@import '../../style/mixins.scss';

.shake-tree {
animation: shake 1s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
Expand Down
2 changes: 2 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import { Provider } from 'react-redux';
import App from './containers/App';
import configureStore from './configureStore';

import './style/global.scss';

const store = configureStore();
const MOUNT_NODE = document.getElementById('app');

Expand Down
11 changes: 11 additions & 0 deletions src/style/global.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
html,
body {
margin: 0;
padding: 0;
overflow: hidden;
}

svg {
width: 100%;
height: 100%;
}
7 changes: 0 additions & 7 deletions src/app.scss → src/style/mixins.scss
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
html,
body {
margin: 0;
padding: 0;
overflow: hidden;
}

// translate3d
@mixin translate3d($x, $y, $z) {
-webkit-transform: translate3d($x, $y, $z);
Expand Down

0 comments on commit 9bfb8fa

Please sign in to comment.