Skip to content

Commit 8bedfb6

Browse files
committed
add --gap-label variable
1 parent 760e23b commit 8bedfb6

File tree

5 files changed

+8
-6
lines changed

5 files changed

+8
-6
lines changed

web_src/css/base.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@
3535
--z-index-modal: 1001; /* modal dialog, hard-coded from Fomantic modal.css */
3636
--z-index-toast: 1002; /* should be larger than modal */
3737

38-
--font-size-label: 12px;
38+
--font-size-label: 12px; /* font size of individual labels */
39+
--gap-label: .25rem; /* gap between labels */
3940
}
4041

4142
@media (min-width: 768px) and (max-width: 1200px) {

web_src/css/modules/label.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
.ui.label {
55
display: inline-flex;
66
align-items: center;
7-
gap: .25rem;
7+
gap: var(--gap-label);
88
min-width: 0;
99
max-width: 100%;
1010
background: var(--color-label-bg);
@@ -305,7 +305,7 @@ If the labels-list itself needs some layouts, use extra classes or "tw" helpers.
305305
}
306306

307307
.with-labels-list-inline .labels-list .ui.label + .ui.label {
308-
margin-left: 0.25em;
308+
margin-left: var(--gap-label);
309309
}
310310

311311
.with-labels-list-inline .labels-list .ui.label {

web_src/css/modules/list.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
list-style-type: none;
66
margin: 1em 0;
77
padding: 0;
8-
font-size: 1em;
98
}
109

1110
.ui.list:first-child {

web_src/css/repo.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484

8585
.issue-content-right .ui.list.labels-list {
8686
display: flex;
87-
gap: 0.25em;
87+
gap: var(--gap-label);
8888
flex-wrap: wrap;
8989
}
9090

web_src/css/shared/flex-list.css

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@
4646
display: inline-flex;
4747
flex-wrap: wrap;
4848
align-items: center;
49-
gap: .25rem;
49+
/* labels are under effect of this gap here because they are display:contents. Ideally we should make wrapping
50+
of labels work without display: contents and set this to a static value again. */
51+
gap: var(--gap-label);
5052
max-width: 100%;
5153
color: var(--color-text);
5254
font-size: 16px;

0 commit comments

Comments
 (0)