Skip to content

Commit

Permalink
Fix header adaptive
Browse files Browse the repository at this point in the history
  • Loading branch information
farengeyt451 committed Aug 30, 2023
1 parent 79db16d commit 41583fa
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,24 @@ <h2 class="header__title">ngx-tippy-wrapper</h2>

<div class="header__actions">
<div class="header__support">

<a
class="header__support-link"
href="https://www.buymeacoffee.com/alexanderkislov"
target="_blank"
rel="noopener noreferrer"
>
<tui-svg
class="icon header__support-icon--coffee"
src="assets/icons/coffee.svg"
alt="Buy Me A Coffee"
ngxTippy="Buy Me A Coffee ☕"
[tippyProps]="{
arrow: false
}"
></tui-svg>
<img
class="header__support-icon"
class="header__support-icon--standard"
src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png"
alt="Buy Me A Coffee"
></a>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@import 'variables';
@import 'mixins';

$animation-time: 3s;

Expand Down Expand Up @@ -60,10 +61,29 @@ $animation-time: 3s;
align-items: center;
}

.header__support-icon {
.header__support-icon--standard {
height: 46px;
width: 162px;
border-radius: 1.5rem
border-radius: 1.5rem;

@include max-w($tablet) {
display: none;
}
}

.header__support-icon--coffee {
display: none;
color: var(--tui-text-02);
opacity: 0.8;
@include transition-opacity;

&:hover {
opacity: 1;
}

@include max-w($tablet) {
display: block;
}
}


Expand Down
1 change: 1 addition & 0 deletions projects/ngx-tippy-demo/src/assets/icons/coffee.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[ZoneTransfer]
ZoneId=3
HostUrl=https://feathericons.com/

0 comments on commit 41583fa

Please sign in to comment.