This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React, { Component } from "react"; | |
| import logo from "./logo.svg"; | |
| import styles from "./App.scss"; | |
| class App extends Component { | |
| render() { | |
| return ( | |
| <div className={styles.App}> | |
| <header className={styles.App__header}> | |
| <img src={logo} className={styles.App__logo} alt="logo" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $bg-color: red; | |
| .App { | |
| text-align: center; | |
| color: $bg-color; | |
| } | |
| .App__logo { | |
| animation: App-logo-spin infinite 20s linear; | |
| height: 80px; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| loader: require.resolve("sass-loader"), | |
| options: { | |
| sourceMap: true, | |
| data: `@import "C:/workspace/scss_test/src/config/_variables.scss";` | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @mixin transform($property) { | |
| -webkit-transform: $property; | |
| -ms-transform: $property; | |
| transform: $property; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @import "./_colors.scss"; | |
| @import "./_sizes.scss"; | |
| @import "./_mixin.scss"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @import "./_colors.scss"; | |
| @import "./_mixin.scss"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @mixin breakpoint($breakpoint) { | |
| @if $breakpoint == "iphone" { | |
| @media (min-width: 320px) { | |
| @content; | |
| } | |
| } | |
| @else if $breakpoint == "mobile" { |