diff --git a/platform/ui/src/assets/styles/styles.css b/platform/ui/src/assets/styles/styles.css new file mode 100644 index 000000000..050c08d7a --- /dev/null +++ b/platform/ui/src/assets/styles/styles.css @@ -0,0 +1,28 @@ +/* CUSTOM OHIF SCROLLBAR */ +.ohif-scrollbar::-webkit-scrollbar { + @apply w-2; +} + +.ohif-scrollbar::-webkit-scrollbar-track { + @apply rounded; +} + +.ohif-scrollbar::-webkit-scrollbar-thumb { + @apply rounded; + @apply bg-primary-main; +} + +.ohif-scrollbar::-webkit-scrollbar-thumb:window-inactive { + @apply bg-primary-main; +} + +/* TOOLTIP WORKAROUND FOR ARROW UP */ +.tooltip::before { + @apply bg-primary-dark absolute z-10; + content: ''; + width: 14px; + height: 1px; + top: -1px; + left: 50%; + transform: translateX(-50%); +} diff --git a/platform/ui/src/components/StudyListTable/StudyListTableRow.js b/platform/ui/src/components/StudyListTable/StudyListTableRow.js index d7205fbb9..a6e42f39d 100644 --- a/platform/ui/src/components/StudyListTable/StudyListTableRow.js +++ b/platform/ui/src/components/StudyListTable/StudyListTableRow.js @@ -14,9 +14,12 @@ const StudyListTableRow = (props) => { })} >
diff --git a/platform/ui/src/components/ThemeWrapper/ThemeWrapper.js b/platform/ui/src/components/ThemeWrapper/ThemeWrapper.js index adb899db6..311870e0a 100644 --- a/platform/ui/src/components/ThemeWrapper/ThemeWrapper.js +++ b/platform/ui/src/components/ThemeWrapper/ThemeWrapper.js @@ -1,5 +1,6 @@ import React from 'react'; import '../../gatsby-theme-docz/tailwind.css'; +import '../../assets/styles/styles.css'; const ThemeWrapper = ({ children }) => ( {children} diff --git a/platform/ui/src/gatsby-theme-docz/tailwind.css b/platform/ui/src/gatsby-theme-docz/tailwind.css index 071307a31..2857865e6 100644 --- a/platform/ui/src/gatsby-theme-docz/tailwind.css +++ b/platform/ui/src/gatsby-theme-docz/tailwind.css @@ -4,32 +4,3 @@ /* IMPORT CUSTOM FONT */ @import url('https://fonts.googleapis.com/css?family=Lato:300,400,700&display=swap'); - -/* CUSTOM OHIF SCROLLBAR */ -.ohif-scrollbar::-webkit-scrollbar { - @apply w-2; -} - -.ohif-scrollbar::-webkit-scrollbar-track { - @apply rounded; -} - -.ohif-scrollbar::-webkit-scrollbar-thumb { - @apply rounded; - @apply bg-primary-main; -} - -.ohif-scrollbar::-webkit-scrollbar-thumb:window-inactive { - @apply bg-primary-main; -} - -/* TOOLTIP WORKAROUND FOR ARROW UP */ -.tooltip::before { - @apply bg-primary-dark absolute z-10; - content: ''; - width: 14px; - height: 1px; - top: -1px; - left: 50%; - transform: translateX(-50%); -} diff --git a/platform/ui/src/views/StudyList/StudyList.mdx b/platform/ui/src/views/StudyList/StudyList.mdx index ed7bf0365..8240ee0f5 100644 --- a/platform/ui/src/views/StudyList/StudyList.mdx +++ b/platform/ui/src/views/StudyList/StudyList.mdx @@ -197,8 +197,8 @@ components. content: ( <>