Skip to content

Commit

Permalink
minor: css for table.disable-selection
Browse files Browse the repository at this point in the history
  • Loading branch information
umaranis committed Apr 17, 2023
1 parent 09c3a04 commit 22a69b6
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 6 deletions.
21 changes: 19 additions & 2 deletions demos/playground/src/index.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
* Copyright (c) Syed Umar Anis.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
Expand Down Expand Up @@ -1143,7 +1143,24 @@ i.prettier-error {
.actions i.connect {
background-image: url(images/icons/plug-fill.svg);
}


table.disable-selection {
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}

table.disable-selection span::selection {
background-color: transparent;
}

table.disable-selection br::selection {
background-color: transparent;
}

.table-cell-action-button-container {
position: absolute;
top: 0;
Expand Down
21 changes: 19 additions & 2 deletions demos/richtext-editor/src/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -1143,7 +1143,24 @@ i.prettier-error {
.actions i.connect {
background-image: url(images/icons/plug-fill.svg);
}


table.disable-selection {
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}

table.disable-selection span::selection {
background-color: transparent;
}

table.disable-selection br::selection {
background-color: transparent;
}

.table-cell-action-button-container {
position: absolute;
top: 0;
Expand Down Expand Up @@ -1627,7 +1644,7 @@ button.item.dropdown-item-active i {
}
.Input__input {
display: flex;
flex: 2;
flex: 3;
border: 1px solid #999;
padding-top: 7px;
padding-bottom: 7px;
Expand Down
21 changes: 19 additions & 2 deletions demos/sveltekit/src/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -1143,7 +1143,24 @@ i.prettier-error {
.actions i.connect {
background-image: url(images/icons/plug-fill.svg);
}


table.disable-selection {
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}

table.disable-selection span::selection {
background-color: transparent;
}

table.disable-selection br::selection {
background-color: transparent;
}

.table-cell-action-button-container {
position: absolute;
top: 0;
Expand Down Expand Up @@ -1627,7 +1644,7 @@ button.item.dropdown-item-active i {
}
.Input__input {
display: flex;
flex: 2;
flex: 3;
border: 1px solid #999;
padding-top: 7px;
padding-bottom: 7px;
Expand Down

0 comments on commit 22a69b6

Please sign in to comment.