mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-23 04:22:01 -06:00
fixed svg gradient scaling and css flickering issue
This commit is contained in:
parent
5aa17bc42a
commit
ea5c9df095
@ -88,6 +88,12 @@ text {
|
|||||||
.slot:hover+.add-device {
|
.slot:hover+.add-device {
|
||||||
fill: blue;
|
fill: blue;
|
||||||
}
|
}
|
||||||
|
.add-device:hover {
|
||||||
|
fill: blue;
|
||||||
|
}
|
||||||
|
.add-device:hover+.slot {
|
||||||
|
fill: #fff;
|
||||||
|
}
|
||||||
.reserved {
|
.reserved {
|
||||||
fill: url(#reserved);
|
fill: url(#reserved);
|
||||||
}
|
}
|
||||||
|
@ -470,11 +470,12 @@ class RackElevationHelperMixin:
|
|||||||
@staticmethod
|
@staticmethod
|
||||||
def _add_gradient(drawing, id_, color):
|
def _add_gradient(drawing, id_, color):
|
||||||
gradient = drawing.linearGradient(
|
gradient = drawing.linearGradient(
|
||||||
start=('0', '20%'),
|
start=('0', '0%'),
|
||||||
end=('0', '40%'),
|
end=('0', '5%'),
|
||||||
spreadMethod='repeat',
|
spreadMethod='repeat',
|
||||||
id_=id_,
|
id_=id_,
|
||||||
gradientTransform='rotate(80)'
|
gradientTransform='rotate(45, 0, 0)',
|
||||||
|
gradientUnits='userSpaceOnUse'
|
||||||
)
|
)
|
||||||
gradient.add_stop_color(offset='0%', color='#f7f7f7')
|
gradient.add_stop_color(offset='0%', color='#f7f7f7')
|
||||||
gradient.add_stop_color(offset='50%', color='#f7f7f7')
|
gradient.add_stop_color(offset='50%', color='#f7f7f7')
|
||||||
|
Loading…
Reference in New Issue
Block a user