Files
nairobi/app/assets/stylesheets/annotator_overrides.scss
Javi Martín 6ddafd9827 Use percentages in hsla Sass function
After moving to Dart Sass, we were getting warnings like:

```
Deprecation Warning: $saturation: Passing a number without unit % (78)
is deprecated
Deprecation Warning: $lightness: Passing a number without unit % (93) is
deprecated
```

So we're passing percentages to the hsla function instead of passing
numbers without units.
2024-04-04 15:16:24 +02:00

57 lines
914 B
SCSS

// Overrides styles of annotator.min
//
.annotator-adder {
background-image: image-url("annotator_adder.png");
margin-top: -52px;
}
.annotator-hl {
cursor: pointer;
background: rgba(255, 249, 218, 0.75);
&.weight-1 {
background: hsla(50, 100%, 93%, 0.5);
.weight-1 {
background: hsla(50, 100%, 93%, 0.75);
}
}
&.weight-2 {
background: hsla(63, 78%, 86%, 0.5);
.weight-2 {
background: hsla(63, 78%, 86%, 0.75);
}
}
&.weight-3 {
background: hsla(52, 100%, 85%, 0.5);
.weight-3 {
background: hsla(52, 100%, 85%, 0.75);
}
}
&.weight-4 {
background: hsla(51, 91%, 75%, 0.5);
.weight-4 {
background: hsla(51, 91%, 75%, 0.75);
}
}
&.weight-5 {
background: hsla(46, 83%, 60%, 0.5);
.weight-5 {
background: hsla(46, 83%, 60%, 0.5);
}
}
}
.current-annotation {
text-decoration: underline;
}