chore: switch from scss to sass syntax

This commit is contained in:
Jeremy Kahn 2022-08-08 21:19:52 -05:00
parent 5c252bf84a
commit 6983bca544
6 changed files with 43 additions and 57 deletions

29
src/App.sass Normal file
View File

@ -0,0 +1,29 @@
.App
text-align: center
.App-logo
height: 40vmin
pointer-events: none
@media (prefers-reduced-motion: no-preference)
.App-logo
animation: App-logo-spin infinite 20s linear
.App-header
background-color: #282c34
min-height: 100vh
display: flex
flex-direction: column
align-items: center
justify-content: center
font-size: calc(10px + 2vmin)
color: white
.App-link
color: #61dafb
@keyframes App-logo-spin
from
transform: rotate(0deg)
to
transform: rotate(360deg)

View File

@ -1,38 +0,0 @@
.App {
text-align: center;
}
.App-logo {
height: 40vmin;
pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
.App-logo {
animation: App-logo-spin infinite 20s linear;
}
}
.App-header {
background-color: #282c34;
min-height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
font-size: calc(10px + 2vmin);
color: white;
}
.App-link {
color: #61dafb;
}
@keyframes App-logo-spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}

View File

@ -1,7 +1,7 @@
import React from 'react'
import logo from './logo.svg'
import './App.scss'
import './App.sass'
function App() {
return (

12
src/index.sass Normal file
View File

@ -0,0 +1,12 @@
@tailwind base
@tailwind components
@tailwind utilities
body
margin: 0
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif
-webkit-font-smoothing: antialiased
-moz-osx-font-smoothing: grayscale
code
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', monospace

View File

@ -1,17 +0,0 @@
@tailwind base;
@tailwind components;
@tailwind utilities;
body {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
code {
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
monospace;
}

View File

@ -1,7 +1,7 @@
import React from 'react'
import ReactDOM from 'react-dom/client'
import './index.scss'
import './index.sass'
import App from './App'
import reportWebVitals from './reportWebVitals'