Skip to content

Commit

Permalink
add lighning css
Browse files Browse the repository at this point in the history
  • Loading branch information
aycact committed Oct 5, 2024
1 parent b094a58 commit 025f4b8
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 11 deletions.
6 changes: 0 additions & 6 deletions client/src/assets/scss/App.scss
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,6 @@ h5 {
color: $text-color;
}

// h1, h2, h3, h4, h5 {
// text-shadow: 2px 2px 3px rgb(180, 176, 176);

// }

.divider {
color: $primary-bg-color;
width: 100%;
Expand Down Expand Up @@ -78,7 +73,6 @@ h5 {
font-size: 2rem;
letter-spacing: 1px;
}
// breadcrumb
.breadcrumb {
margin: 5rem 5rem 2rem;
.breadcrumb-item {
Expand Down
4 changes: 2 additions & 2 deletions client/src/assets/scss/Card.scss
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
.flip-card {
width: 300px;
height: 200px;
perspective: 1000px; // Remove this if you don't want the 3D effect
perspective: 1000px;

&-inner {
position: relative;
Expand All @@ -70,7 +70,7 @@
position: absolute;
width: 100%;
height: 100%;
-webkit-backface-visibility: hidden; // Safari
-webkit-backface-visibility: hidden;
backface-visibility: hidden;
}
&-back {
Expand Down
6 changes: 3 additions & 3 deletions client/src/assets/scss/Navbar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
margin: 0 5px;
border-radius: 10px;
&:hover {
background-color: $primary-bg-color-hover; // Thay đổi màu khi hover
background-color: $primary-bg-color-hover;
color: $tertiary-bg-color;
}
&:focus,
&:active {
background-color: $primary-bg-color-hover; // Thay đổi màu khi hover
background-color: $primary-bg-color-hover;
color: $tertiary-bg-color;
}
}
Expand All @@ -33,7 +33,7 @@
.dropdown-item {
background-color: $quaternary-bg-color;
&:hover {
background-color: $quaternary-bg-color-hover; // Thay đổi màu khi hover
background-color: $quaternary-bg-color-hover;
}
}
}
Expand Down
10 changes: 10 additions & 0 deletions client/vite.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,18 @@
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import path from 'path'
import browserslist from 'browserslist'
import { browserslistToTargets } from 'lightningcss'
// https://vitejs.dev/config/
export default defineConfig({
css: {
lightningcss: {
targets: browserslistToTargets(browserslist('>= 0.25%')),
}
},
build: {
cssMinify: 'lightningcss'
},
base: '/',
plugins: [react()],
resolve: {
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"author": "",
"license": "ISC",
"devDependencies": {
"lightningcss": "^1.27.0",
"nodemon": "^3.1.3"
},
"dependencies": {
Expand Down

0 comments on commit 025f4b8

Please sign in to comment.