feat: new feats (button, transition, config)

This commit is contained in:
Walid 2022-02-17 15:43:21 +01:00
parent bd06e3ce77
commit d737e9355c
No known key found for this signature in database
GPG Key ID: DB460971A22C0047
5 changed files with 25 additions and 2 deletions

View File

@ -4,6 +4,9 @@ const path = require("path");
module.exports = {
reactStrictMode: true,
sassOptions: {
includePaths: [path.join(__dirname, "styles/abstracts")],
includePaths: [
path.join(__dirname, "styles/abstracts"),
path.join(__dirname, "styles/base"),
],
},
};

View File

@ -5,7 +5,8 @@
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint"
"lint:next": "next lint",
"lint:scss": "npx stylelint \"**/*.scss\" --fix"
},
"dependencies": {
"next": "12.0.10",

View File

@ -1,3 +1,4 @@
$default-transition: 0.3s ease;
$breakpoints: (
small: 320px,
medium: 768px,

View File

@ -1,3 +1,5 @@
@import "variables";
%content {
position: absolute;
content: "";
@ -27,3 +29,11 @@
left: 50%;
transform: translate(-50%, -50%);
}
%button {
outline: none;
border: none;
background: none;
cursor: pointer;
transition: $default-transition;
}

View File

@ -7,3 +7,11 @@
}
}
}
*,
*::after,
*::before {
margin: 0;
padding: 0;
box-sizing: border-box;
}