Skip to content

Commit

Permalink
disable text select
Browse files Browse the repository at this point in the history
  • Loading branch information
ben99933 committed Feb 7, 2024
1 parent 2ad42e7 commit fb2c799
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,8 @@ import { RouterLink, RouterView } from 'vue-router'
<RouterView />
</template>

<style>
</style>

8 changes: 7 additions & 1 deletion src/assets/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,17 @@

:root {

-moz-user-select: none; /* Firefox */
-webkit-user-select: none; /* Chrome , Safari*/
-ms-user-select: none; /* IE10 */
-khtml-user-select: none; /* 古早瀏覽器 */
user-select: none;
/**
* colors
*/

/* gradient */

--bg-gradient-onyx: linear-gradient(
to bottom right,
hsl(240, 1%, 25%) 3%,
Expand Down Expand Up @@ -120,6 +125,7 @@
img{
pointer-events: none;
}




Expand Down

0 comments on commit fb2c799

Please sign in to comment.