Skip to content

Commit

Permalink
Merge pull request #101 from TeamXFive/feat/knowledge
Browse files Browse the repository at this point in the history
[feat] Stylization for file upload drop location
  • Loading branch information
LoriaLawrenceZ authored Oct 24, 2024
2 parents 6f0d7a2 + 4de60fe commit 2b6a4b7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/style/Knowledge/Knowledge.css
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,9 @@
transition: all 0.3s;
}
.dragging {
border-color: var(--dex-red);
color: var(--dex-red);
border: 5px solid; /* Set the border width */
border-image: var(--dex-linear-gradient);
border-image-slice: 1;
background-color: var(--black-gray);
}

Expand Down
9 changes: 9 additions & 0 deletions src/style/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,15 @@
--dex-red-rgb: 255, 0, 59;
--dex-purple-rgb: 111, 66, 193;

/*Gradient*/
--dex-linear-gradient: linear-gradient(
90deg,
rgba(113, 59, 136, 1) 0%,
rgba(167, 46, 87, 1) 50%,
rgba(213, 25, 47, 1) 100%
);

/*Transition*/
--all-500ms-custom: all .5s cubic-bezier(0.85, 0.15, 0.15, 0.85);
--all-200ms-ease-in-out: all .2s cubic-bezier(0.85, 0.15, 0.15, 0.85);
}
Expand Down

0 comments on commit 2b6a4b7

Please sign in to comment.