We currently have the CSS set up to give us a bar below our header instead of the shadow:
.d-header {
box-shadow: none;
border-bottom: solid var(--my_header_box_color)
}
If we wanted to make this a gradient, what would be the easiest way to accomplish that instead? We can get other things to be gradients, just not this line.
2 Likes
Don
November 17, 2021, 9:30am
2
Hello,
I think I would use mixin
for this.
Here is an example:
@mixin gradient-border() {
border-image: linear-gradient(to right, orange, black);
border-bottom: 5px solid;
border-image-slice: 1;
}
Then you can use it on .d-header
or where you want with @include gradient-border()
.d-header {
box-shadow: none;
@include gradient-border();
}
4 Likes
Any idea why that might cause this to happen on mobile?
Using the following for mobile only worked:
border-left: 0px solid;
border-right: 0px solid;
border-top: 0px solid;
system
(system)
Closed
December 17, 2021, 6:06pm
5
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.