From 5f7601795aea8bd1ab1080f3004b142934981f53 Mon Sep 17 00:00:00 2001 From: Laila Los <44241786+ElectronicBlueberry@users.noreply.github.com> Date: Wed, 14 Sep 2022 15:56:24 +0200 Subject: [PATCH 01/25] add heading classes --- client/src/style/scss/ui.scss | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/client/src/style/scss/ui.scss b/client/src/style/scss/ui.scss index 4437da080b7..f018f87a339 100644 --- a/client/src/style/scss/ui.scss +++ b/client/src/style/scss/ui.scss @@ -477,3 +477,20 @@ $ui-margin-horizontal-large: $margin-v * 2; .flex-gapx-1 { column-gap: 0.25rem; } + +/* Heading Sizes */ +.h-large { + font-size: $h1-font-size; +} + +.h-medium { + font-size: $h2-font-size; +} + +.h-small { + font-size: $h3-font-size; +} + +.h-text { + font-size: $font-size-base; +} From 74ea3649ba3aa0fbc22b3c88a3119f0f96b08783 Mon Sep 17 00:00:00 2001 From: Laila Los <44241786+ElectronicBlueberry@users.noreply.github.com> Date: Wed, 14 Sep 2022 15:56:41 +0200 Subject: [PATCH 02/25] change heading default sizes --- client/src/style/scss/theme/blue.scss | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/client/src/style/scss/theme/blue.scss b/client/src/style/scss/theme/blue.scss index 3e0c3282cbf..b9a69531795 100644 --- a/client/src/style/scss/theme/blue.scss +++ b/client/src/style/scss/theme/blue.scss @@ -88,10 +88,10 @@ $font-size-base: 0.85rem; // default 1rem // Header font sizes $h1-font-size: $font-size-base * 2; // default 2.5 -$h2-font-size: $font-size-base * 1.75; // default 2 -$h3-font-size: $font-size-base * 1.5; // default 1.75 -$h4-font-size: $font-size-base * 1.25; // default 1.5 -$h5-font-size: $font-size-base; // default 1.25 +$h2-font-size: $font-size-base * 1.5; // default 2 +$h3-font-size: $font-size-base * 1.25; // default 1.75 +$h4-font-size: $font-size-base; // default 1.5 +$h5-font-size: $font-size-base * 0.9; // default 1.25 $h6-font-size: $font-size-base * 0.85; // default 1 // Increase contrast of dropdown items From 8b200f7b499ad04d56ee115d0f138a9114862b9c Mon Sep 17 00:00:00 2001 From: Laila Los <44241786+ElectronicBlueberry@users.noreply.github.com> Date: Wed, 14 Sep 2022 15:56:57 +0200 Subject: [PATCH 03/25] add heading component --- client/src/components/Common/Heading.vue | 81 ++++++++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100644 client/src/components/Common/Heading.vue diff --git a/client/src/components/Common/Heading.vue b/client/src/components/Common/Heading.vue new file mode 100644 index 00000000000..ae16bf2fae2 --- /dev/null +++ b/client/src/components/Common/Heading.vue @@ -0,0 +1,81 @@ + + + + + From 11b238dbd79ee44ef0965c657f7d4d0e9dfece35 Mon Sep 17 00:00:00 2001 From: Laila Los <44241786+ElectronicBlueberry@users.noreply.github.com> Date: Thu, 15 Sep 2022 10:54:46 +0200 Subject: [PATCH 04/25] add inline prop --- client/src/components/Common/Heading.vue | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/client/src/components/Common/Heading.vue b/client/src/components/Common/Heading.vue index ae16bf2fae2..2b0cc87eb22 100644 --- a/client/src/components/Common/Heading.vue +++ b/client/src/components/Common/Heading.vue @@ -13,11 +13,13 @@ const props = defineProps({ h6: Boolean, bold: Boolean, separator: Boolean, + inline: Boolean, // acceptable sizes are "large", "medium", "small", and "text" size: String, icon: String, }); +// apply heading element for (const key of ["h1", "h2", "h3", "h4", "h5", "h6"]) { if (props[key]) { element = key; @@ -25,6 +27,7 @@ for (const key of ["h1", "h2", "h3", "h4", "h5", "h6"]) { } } +// apply size class if (props.size) { sizeClass = "h-" + props.size; } @@ -39,7 +42,11 @@ if (props.size) {
- + @@ -57,6 +64,10 @@ h1, h2, h3, h4, h5, h6 { display: flex; align-items: center; gap: 0.25em; + + &.inline { + display: inline-flex; + } } .separator { From 339e7c3d95a6b12f981f2e1cc12ec27dddc30f2c Mon Sep 17 00:00:00 2001 From: Laila Los <44241786+ElectronicBlueberry@users.noreply.github.com> Date: Thu, 15 Sep 2022 10:54:58 +0200 Subject: [PATCH 05/25] add demo page --- client/src/components/HeadingsDemo.vue | 27 ++++++++++++++++++++++++++ client/src/entry/analysis/router.js | 5 +++++ lib/galaxy/webapps/galaxy/buildapp.py | 1 + 3 files changed, 33 insertions(+) create mode 100644 client/src/components/HeadingsDemo.vue diff --git a/client/src/components/HeadingsDemo.vue b/client/src/components/HeadingsDemo.vue new file mode 100644 index 00000000000..7e9f7fd70d5 --- /dev/null +++ b/client/src/components/HeadingsDemo.vue @@ -0,0 +1,27 @@ + + + diff --git a/client/src/entry/analysis/router.js b/client/src/entry/analysis/router.js index 3348ec04db1..a4f75b7f249 100644 --- a/client/src/entry/analysis/router.js +++ b/client/src/entry/analysis/router.js @@ -62,6 +62,7 @@ import { CloudAuth } from "components/User/CloudAuth"; import { ExternalIdentities } from "components/User/ExternalIdentities"; import { HistoryExport } from "components/HistoryExport/index"; import { StorageDashboardRouter } from "components/User/DiskUsage"; +import HeadingsDemo from "components/HeadingsDemo"; Vue.use(VueRouter); @@ -471,6 +472,10 @@ export function getRouter(Galaxy) { component: StoredWorkflowInvocations, props: true, }, + { + path: "headings_demo", + component: HeadingsDemo, + }, ], }, ], diff --git a/lib/galaxy/webapps/galaxy/buildapp.py b/lib/galaxy/webapps/galaxy/buildapp.py index ec91cd6cdf0..1ba742634a2 100644 --- a/lib/galaxy/webapps/galaxy/buildapp.py +++ b/lib/galaxy/webapps/galaxy/buildapp.py @@ -271,6 +271,7 @@ def app_pair(global_conf, load_app_kwds=None, wsgi_preflight=True, **kwargs): webapp.add_client_route("/interactivetool_entry_points/list") webapp.add_client_route("/libraries{path:.*?}") webapp.add_client_route("/storage{path:.*?}") + webapp.add_client_route("/headings_demo") # ==== Done # Indicate that all configuration settings have been provided From cb387ddbf61f91a3a584c2ce18f7356c14e57090 Mon Sep 17 00:00:00 2001 From: Laila Los <44241786+ElectronicBlueberry@users.noreply.github.com> Date: Thu, 15 Sep 2022 14:58:41 +0200 Subject: [PATCH 06/25] fix bold separator heading --- client/src/components/Common/Heading.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/components/Common/Heading.vue b/client/src/components/Common/Heading.vue index 2b0cc87eb22..0d4f8e2caf8 100644 --- a/client/src/components/Common/Heading.vue +++ b/client/src/components/Common/Heading.vue @@ -34,10 +34,10 @@ if (props.size) {