Skip to content

Commit 96e3b7f

Browse files
committed
Adapt several Bootstrap components to Jenkins design language.
Tippy tooltips via Bootstrap are now correctly styled. Pagination (used by DataTables) also uses Jenkins colors now. The new styling isa adapted for light and dark themes.
1 parent ae7ba49 commit 96e3b7f

File tree

1 file changed

+31
-17
lines changed

1 file changed

+31
-17
lines changed

src/main/webapp/css/jenkins-style.css

Lines changed: 31 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,20 @@
77
--bs-nav-tabs-border-width: 0;
88
}
99

10+
.pagination {
11+
--bs-pagination-active-color: var(--text-color);
12+
--bs-pagination-active-bg: var(--item-background--active);
13+
--bs-pagination-active-border-color: var(--item-background--active);
14+
15+
--bs-pagination-hover-color: var(--link-color);
16+
--bs-pagination-hover-bg: var(--item-background--hover);
17+
--bs-pagination-hover-border-color: var(--item-background--hover);
18+
19+
--bs-link-color: var(--link-color);
20+
--bs-pagination-bg: var(--background);
21+
--bs-pagination-border-color: var(--item-background--hover);
22+
}
23+
1024
.modal {
1125
--bs-modal-color: var(--text-color);
1226
--bs-modal-bg: var(--background);
@@ -106,23 +120,23 @@ pre {
106120
display: flex;
107121
}
108122

109-
.tooltip-inner {
110-
color: #fff;
111-
background-color: rgba(0, 0, 0, 0.8);
112-
}
113-
114-
.tooltip.bs-tooltip-auto[x-placement^=top] .arrow::before, .tooltip.bs-tooltip-top .arrow::before {
115-
border-top-color: rgba(0, 0, 0, 0.8);
123+
.tooltip {
124+
--bs-tooltip-opacity: 1;
125+
--bs-tooltip-arrow-width: 0px;
126+
--bs-tooltip-arrow-height: 0px;
127+
--bs-tooltip-font-size: 550;
128+
--bs-tooltip-color: var(--text-color);
129+
--bs-tooltip-padding-x: 0.8rem;
130+
--bs-tooltip-padding-y: 0.45rem;
131+
--bs-tooltip-max-width: min(50vw, 1000px) !important;
132+
--bs-tooltip-border-radius: 0.66rem;
133+
--bs-tooltip-bg: #f8f9fa;
116134
}
117135

118-
.tooltip.bs-tooltip-auto[x-placement^=right] .arrow::before, .tooltip.bs-tooltip-right .arrow::before {
119-
border-right-color: rgba(0, 0, 0, 0.8);
120-
}
121-
122-
.tooltip.bs-tooltip-auto[x-placement^=bottom] .arrow::before, .tooltip.bs-tooltip-bottom .arrow::before {
123-
border-bottom-color: rgba(0, 0, 0, 0.8);
124-
}
125-
126-
.tooltip.bs-tooltip-auto[x-placement^=left] .arrow::before, .tooltip.bs-tooltip-left .arrow::before {
127-
border-left-color: rgba(0, 0, 0, 0.8);
136+
.tooltip-inner {
137+
background-color: var(--background);
138+
font-weight: 550;
139+
font-size: 0.75rem;
140+
backdrop-filter: contrast(0.6) brightness(2.4) saturate(2) blur(15px);
141+
box-shadow: 0 0 8px 2px rgba(0,0,30,.05), 0 0 1px 1px rgba(0,0,20,.025), 0 10px 20px rgba(0,0,20,.15);
128142
}

0 commit comments

Comments
 (0)