From b75ebf03f04063afd16610397c8f12c908f84b0d Mon Sep 17 00:00:00 2001 From: Michael Chadwick Date: Wed, 24 Jul 2024 10:08:05 -0700 Subject: [PATCH] switched from using to \ No newline at end of file diff --git a/packages/frontend/app/components/user-guide-link.js b/packages/frontend/app/components/user-guide-link.js new file mode 100644 index 0000000000..bb3efa85c2 --- /dev/null +++ b/packages/frontend/app/components/user-guide-link.js @@ -0,0 +1,9 @@ +import Component from '@glimmer/component'; +import { action } from '@ember/object'; + +export default class UserGuideLinkComponent extends Component { + @action + openUserGuide() { + window.open('https://iliosproject.gitbook.io/ilios-user-guide', '_blank'); + } +} diff --git a/packages/frontend/app/styles/components/user-guide-link.scss b/packages/frontend/app/styles/components/user-guide-link.scss index a3493d52c2..b0f97963ca 100644 --- a/packages/frontend/app/styles/components/user-guide-link.scss +++ b/packages/frontend/app/styles/components/user-guide-link.scss @@ -1,29 +1,36 @@ @use "../ilios-common/mixins" as cm; @use "../ilios-common/colors" as c; +@use "sass:color"; + +$header-menu-background-color: color.adjust(c.$slightWhite, $lightness: -3%); + .user-guide-link { - margin-left: 0.5rem; + margin-right: 0.5rem; - @include cm.for-tablet-and-up { - margin-left: 0.25rem; - margin-right: 0.5rem; - } + button { + background-color: $header-menu-background-color; + border: 1px solid $header-menu-background-color; + border-radius: 0.2rem; + color: c.$raisinBlack; + font-weight: normal; + margin-left: 0.5rem; + padding: 0.25em; - a { - svg { - align-items: center; - color: c.$white; - display: flex; - height: 30px; - width: 30px; + &:hover, + &:focus { + background-color: c.$white; + } + + @include cm.for-tablet-and-up { + display: inline; + margin-left: 0; } - } - @include cm.for-phone-only { - a { + @include cm.for-phone-only { svg { - height: 24px; - width: 24px; + height: 4.25vw; + width: 4.25vw; } } }