Skip to content

Commit bd08eda

Browse files
committed
disabled highlighting for the entire page except for the tree
1 parent 3e4cdda commit bd08eda

File tree

6 files changed

+20
-19
lines changed

6 files changed

+20
-19
lines changed

src/app/styles/base/_helpers.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
%disable-highlight {
2+
-webkit-user-select: none; /* Safari */
3+
-moz-user-select: none; /* Firefox */
4+
-ms-user-select: none; /* IE10+/Edge */
5+
user-select: none; /* Standard */
6+
}

src/app/styles/components/_actionComponent.scss

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,13 @@
1010
border-color: $border-color;
1111
cursor: pointer;
1212
text-overflow: ellipsis;
13+
@extend %disable-highlight
1314
}
1415

1516
.action-component.selected {
1617
background-color: $light-grey-one;
1718
}
1819

19-
.action-component .empty-button {
20-
// grid-column: 1 / span 4;
21-
}
22-
23-
.action-component:hover .jump-button {
24-
visibility: visible;
25-
}
26-
2720
.action-component.exclude {
2821
display: flex;
2922
justify-content: center;

src/app/styles/components/_buttons.scss

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,18 @@
33
width: 120px;
44
}
55

6+
.action-component:hover .jump-button {
7+
opacity: 1;
8+
transform: rotateX(0deg);
9+
transition: opacity 300ms, transform 0.15s linear;
10+
}
11+
612
.jump-button {
713
@extend %button-shared;
814
width: 50px;
9-
visibility: hidden;
10-
}
11-
12-
.jump-button:focus {
13-
outline: 0;
14-
// make the text in the button not highlightable
15-
-webkit-user-select: none; /* Safari */
16-
-moz-user-select: none; /* Firefox */
17-
-ms-user-select: none; /* IE10+/Edge */
18-
user-select: none; /* Standard */
15+
opacity: 0;
16+
transform: rotateX(90deg);
17+
transition: opacity 300ms, transform 0.15s linear;
1918
}
2019

2120
.jump-button:hover {
@@ -68,4 +67,6 @@
6867
line-height: 1.5em;
6968
font: normal 13px monaco, Consolas, "Lucida Console", monospace, Arial, sans-serif;
7069
font-size: $button-text-size;
70+
71+
@extend %disable-highlight;
7172
}

src/app/styles/layout/_stateContainer.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
top: 0px;
2020
left: 0px;
2121
z-index: 1;
22+
@extend %disable-highlight
2223
}
2324

2425
.state-container {

src/app/styles/layout/_travelContainer.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
.react-select__control,
1616
.react-select__menu {
1717
background-color: $light-grey-one;
18+
@extend %disable-highlight;
1819
}
1920
.react-select__single-value {
2021
color: white;

src/extension/build/panel.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99

1010
<body>
1111
<div id="root"></div>
12-
<link rel="stylesheet" type="text/css" href="./styles/panel.css" />
1312
<script type="text/javascript" src="bundles/app.bundle.js"></script>
1413
</body>
1514
</html>

0 commit comments

Comments
 (0)