Skip to content

Commit

Permalink
style: move styles to elements, remove usage of ngdeep (DEV-4378) (#1907
Browse files Browse the repository at this point in the history
)
  • Loading branch information
domsteinbach authored Nov 26, 2024
1 parent 6533df3 commit 6150bbd
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 51 deletions.
38 changes: 38 additions & 0 deletions apps/dsp-app/src/styles/_elements.scss
Original file line number Diff line number Diff line change
Expand Up @@ -749,12 +749,50 @@ nav.mat-mdc-tab-nav-bar,
}

.annotation-tooltip {
display: none;
position: fixed;
background-color: $black-60-opacity;
color: $bright;
padding: 8px;
border-radius: $border-radius;
min-height: 24px;
max-height: 258px;
max-width: 256px;
box-sizing: border-box;
transition: 0.1s;
transform: translate(16px, 16px);
font-size: small;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
z-index: 1000;

p {
white-space: normal;
text-overflow: ellipsis;
}
}

.region {
filter: alpha(opacity=40);
opacity: 0.4;
fill: transparent;
stroke: #00695c;
stroke-width: 2px;
}

.region:hover,
.region:focus {
filter: alpha(opacity=100);
opacity: 1;
cursor: pointer;
}

.region.active {
filter: alpha(opacity=100);
opacity: 1;
}

// --------------------------------------

//
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,57 +65,6 @@
}


/*
Openseadragon styling
*/
.annotation-tooltip {
display: none;
position: fixed;
background-color: $black-60-opacity;
color: $bright;
padding: 8px;
border-radius: $border-radius;
min-height: 24px;
max-height: 258px;
max-width: 256px;
box-sizing: border-box;
transition: 0.1s;
transform: translate(16px, 16px);
font-size: small;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
z-index: 1000;
}

::ng-deep .openseadragon-container {
border-radius: 8px 8px 0 0;
}

/*
Overlay styling
*/

::ng-deep .region {
filter: alpha(opacity=40);
opacity: 0.4;
fill: transparent;
stroke: #00695c;
stroke-width: 2px;
}

::ng-deep .region:hover,
.region:focus {
filter: alpha(opacity=100);
opacity: 1;
cursor: pointer;
}

::ng-deep .region.active {
filter: alpha(opacity=100);
opacity: 1;
}

.arrow {
position: absolute;
z-index: 1;
Expand Down

0 comments on commit 6150bbd

Please sign in to comment.