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 = { module.exports = {
reactStrictMode: true, reactStrictMode: true,
sassOptions: { 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", "dev": "next dev",
"build": "next build", "build": "next build",
"start": "next start", "start": "next start",
"lint": "next lint" "lint:next": "next lint",
"lint:scss": "npx stylelint \"**/*.scss\" --fix"
}, },
"dependencies": { "dependencies": {
"next": "12.0.10", "next": "12.0.10",

View File

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

View File

@ -1,3 +1,5 @@
@import "variables";
%content { %content {
position: absolute; position: absolute;
content: ""; content: "";
@ -27,3 +29,11 @@
left: 50%; left: 50%;
transform: translate(-50%, -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;
}