Change theme

This commit is contained in:
MD. Ariful Alam
2021-08-21 15:27:39 +06:00
parent 0229b5e453
commit e6935a32b9
13 changed files with 2563 additions and 109 deletions

103
src/index.scss Normal file
View File

@@ -0,0 +1,103 @@
@use "sass:meta";
@tailwind base;
@tailwind components;
@tailwind utilities;
::-webkit-scrollbar-track {
box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
-moz-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
}
@media screen and (min-width: 966px) {
::-webkit-scrollbar, .scroller {
width: 8px;
height: 8px;
background-color: #f1f1f1;
}
}
::-webkit-scrollbar-thumb {
background-color: #888;
border-radius: 10px;
}
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;
}
html:not([data-theme="dark"]),
html:not([data-theme="halloween"]),
html:not([data-theme="forest"]),
html:not([data-theme="black"]),
html:not([data-theme="luxury"]),
html:not([data-theme="dracula"]) {
@include meta.load-css("node_modules/antd/dist/antd.css", $with: null);
p {
margin-bottom: 0;
}
}
html[data-theme="dark"],
html[data-theme="halloween"],
html[data-theme="forest"],
html[data-theme="black"],
html[data-theme="luxury"],
html[data-theme="dracula"] {
@include meta.load-css("node_modules/antd/dist/antd.dark.css", $with: null);
p {
margin-bottom: 0;
}
}
svg {
vertical-align: unset
}
.z-hover {
transition: all ease-in-out 0.3s !important;
}
.z-hover:hover,
.z-hover:focus,
.z-hover:active {
transition: transform 0.3s !important;
-ms-transform: scale(1.03) !important;
-webkit-transform: scale(1.03) !important;
transform: scale(1.03) !important;
}
.fade-in {
opacity: 1;
animation-name: fadeIn;
animation-iteration-count: 1;
animation-timing-function: ease-in;
animation-duration: 1s;
}
@keyframes fadeIn {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}
@-webkit-keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}