Skip to content

Commit

Permalink
Updated styles to turn off text selection #87 resolved (#95)
Browse files Browse the repository at this point in the history
* Update custom.css

* Update index.module.css

* Update styles.module.css

* Update style.css

* Update toastStyles.css
  • Loading branch information
SuhainaFathimaM authored Jun 1, 2024
1 parent 0efb243 commit a706fb1
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 2 deletions.
9 changes: 8 additions & 1 deletion src/components/Chatbot/style.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@

body{
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;

}
/* These CSS rules sets the text direction of the paragraph (RTL or LTR) */
/* p, */
.bpw-from-bot > div,
Expand Down Expand Up @@ -237,4 +244,4 @@
.bpw-floating-button:hover {
background-color: #00bfa6;
box-shadow: none !important;
}
}
9 changes: 8 additions & 1 deletion src/components/HomepageFeatures/styles.module.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
body{
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}

.features {
display: flex;
flex-wrap: wrap;
Expand Down Expand Up @@ -43,4 +50,4 @@
.heading {
margin-top: 0;
font-size: 1.5rem;
}
}
8 changes: 8 additions & 0 deletions src/components/Toast/toastStyles.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
body{
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;

}

/* toastStyles.css */

.toast {
Expand Down
8 changes: 8 additions & 0 deletions src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,14 @@
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.1);
}

body{
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;

}

/* For readability concerns, you should choose a lighter palette in dark mode. */
[data-theme="dark"] {
--ifm-color-primary: #25c2a0;
Expand Down
7 changes: 7 additions & 0 deletions src/pages/index.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@
* and scoped locally.
*/

body{
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}

.heroBanner {
padding: 4rem 0;
text-align: center;
Expand Down

0 comments on commit a706fb1

Please sign in to comment.