Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependency bulma to v1 #508

Merged
merged 4 commits into from
May 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
28 changes: 28 additions & 0 deletions src/main/resources/assets/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
border-right: 1px solid #cccccc;
}

.menu-list a {
background-color: transparent;
}

.is-front-centered {
width: 40%;
margin-left: 30%;
Expand Down Expand Up @@ -41,6 +45,30 @@ 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;
}

a.navbar-item:hover {
background-color: transparent;
}

.tabs li.is-active a {
color: #485fc7;
border-bottom-color: #485fc7;
}
Loading