From cf32f969ab02a8313b2a705c503bee0848b472f0 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 27 Mar 2024 08:37:46 +0000 Subject: [PATCH 1/4] Update dependency bulma to v1 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index d7e034c5..0b677ee8 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "structurizr-site-generatr", "dependencies": { - "bulma": "0.9.4", + "bulma": "1.0.0", "katex": "0.16.10", "lunr": "2.3.9", "lunr-languages": "1.14.0", From 16cbe8da17e14eafbd1d86f8abc206ebcbf9f492 Mon Sep 17 00:00:00 2001 From: LunarN0va Date: Thu, 23 May 2024 13:10:12 +0200 Subject: [PATCH 2/4] Fix following color scheme changes after upgrading Bulma to 1.0 --- .../site/generatr/site/views/Page.kt | 1 + src/main/resources/assets/css/style.css | 24 +++++++++++++++++++ 2 files changed, 25 insertions(+) diff --git a/src/main/kotlin/nl/avisi/structurizr/site/generatr/site/views/Page.kt b/src/main/kotlin/nl/avisi/structurizr/site/generatr/site/views/Page.kt index 6ade394d..5b63f6fc 100644 --- a/src/main/kotlin/nl/avisi/structurizr/site/generatr/site/views/Page.kt +++ b/src/main/kotlin/nl/avisi/structurizr/site/generatr/site/views/Page.kt @@ -6,6 +6,7 @@ import nl.avisi.structurizr.site.generatr.site.model.PageViewModel fun HTML.page(viewModel: PageViewModel, block: DIV.() -> Unit) { attributes["lang"] = "en" + attributes["data-theme"] = "light" classes = setOf("has-background-light") headFragment(viewModel) diff --git a/src/main/resources/assets/css/style.css b/src/main/resources/assets/css/style.css index a59bd36f..9ca03723 100644 --- a/src/main/resources/assets/css/style.css +++ b/src/main/resources/assets/css/style.css @@ -7,6 +7,10 @@ border-right: 1px solid #cccccc; } +.menu-list a { + background-color: transparent; +} + .is-front-centered { width: 40%; margin-left: 30%; @@ -41,6 +45,26 @@ svg a:hover { max-height: inherit; } +.content h1, +.content h1 a, +.content h2, +.content h2 a, +.content h3, +.content h3 a, +.content h4, +.content h4 a, +.content h5, +.content h5 a, +.content h6 , +.content h6 a { + color: #485fc7; /* Pre Bulma 1.x colour code for headers, tabs and links */ +} + .modal-image { object-fit: contain; } + +.tabs li.is-active a { + color: #485fc7; + border-bottom-color: #485fc7; +} From 790933886c4d6a0e8db06f2f4bf6dd3c74d51462 Mon Sep 17 00:00:00 2001 From: LunarN0va Date: Thu, 23 May 2024 13:10:27 +0200 Subject: [PATCH 3/4] Fix tables scaling to full width --- .../nl/avisi/structurizr/site/generatr/site/views/Table.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/nl/avisi/structurizr/site/generatr/site/views/Table.kt b/src/main/kotlin/nl/avisi/structurizr/site/generatr/site/views/Table.kt index fd68b386..21e24a1e 100644 --- a/src/main/kotlin/nl/avisi/structurizr/site/generatr/site/views/Table.kt +++ b/src/main/kotlin/nl/avisi/structurizr/site/generatr/site/views/Table.kt @@ -4,7 +4,7 @@ import kotlinx.html.* import nl.avisi.structurizr.site.generatr.site.model.TableViewModel fun FlowContent.table(viewModel: TableViewModel) { - table { + table (classes = "table is-fullwidth") { thead { viewModel.headerRows.forEach { row(it) From 57c22a80ff42e31b051661248729920298cb0cd4 Mon Sep 17 00:00:00 2001 From: LunarN0va Date: Thu, 23 May 2024 13:10:36 +0200 Subject: [PATCH 4/4] Fix hovering over link shows white box --- src/main/resources/assets/css/style.css | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/resources/assets/css/style.css b/src/main/resources/assets/css/style.css index 9ca03723..878474ca 100644 --- a/src/main/resources/assets/css/style.css +++ b/src/main/resources/assets/css/style.css @@ -64,6 +64,10 @@ svg a:hover { object-fit: contain; } +a.navbar-item:hover { + background-color: transparent; +} + .tabs li.is-active a { color: #485fc7; border-bottom-color: #485fc7;