Enabled custom CSS to be applied
Enabled custom CSS to be applied to buttons on the LittleLink page. CSS that is entered in the database will be applied directly to buttons. See: https://blog.littlelink-custom.com/upcoming-features/
This commit is contained in:
parent
1884cd2ab2
commit
a53087f7a6
|
@ -195,8 +195,10 @@ function get_operating_system() {
|
|||
@if($link->button_id === 0)
|
||||
<div style="--delay: {{ $initial++ }}s" class="button-entrance"><a class="button button-title button hvr-grow hvr-icon-wobble-vertical" href="{{ route('clickNumber') . '/' . $link->id . '/' . $link->link}}" target="_blank">
|
||||
{{ $link->title }}</a></div>
|
||||
@elseif($link->name === "custom")
|
||||
@elseif($link->name === "custom" and $link->custom_css === "")
|
||||
<div style="--delay: {{ $initial++ }}s" class="button-entrance"><a class="button button-{{ $link->name }} button hvr-grow hvr-icon-wobble-vertical" href="{{ route('clickNumber') . '/' . $link->id . '/' . $link->link}}" target="_blank"><img class="icon hvr-icon" src="{{ asset('\/littlelink/icons\/') . $linkName }}.svg">{{ $link->title }}</a></div>
|
||||
@elseif($link->name === "custom" and $link->custom_css != "")
|
||||
<div style="--delay: {{ $initial++ }}s" class="button-entrance"><a class="button button hvr-grow hvr-icon-wobble-vertical" style="{{ $link->custom_css }}" href="{{ route('clickNumber') . '/' . $link->id . '/' . $link->link}}" target="_blank"><img class="icon hvr-icon" src="{{ asset('\/littlelink/icons\/') . $linkName }}.svg">{{ $link->title }}</a></div>
|
||||
@elseif($link->name === "buy me a coffee")
|
||||
<div style="--delay: {{ $initial++ }}s" class="button-entrance"><a class="button button-coffee button hvr-grow hvr-icon-wobble-vertical" href="{{ route('clickNumber') . '/' . $link->id . '/' . $link->link}}" target="_blank"><img class="icon hvr-icon" src="{{ asset('\/littlelink/icons\/')}}coffee.svg">Buy me a Coffee</a></div>
|
||||
@elseif($link->name === "custom_website")
|
||||
|
|
Loading…
Reference in New Issue