+
+
+
(g::t(lang, K::PatternHelpA))"*"(g::t(lang, K::PatternHelpB))"**"(g::t(lang, K::PatternHelpC))"/"(g::t(lang, K::PatternHelpD))
+
+
+
+
+
+
+
+
+
(g::t(lang, K::RequiredChecksHelp))
+ if !contexts.is_empty() {
+
+ (g::t(lang, K::RecentContexts))
+ for context in contexts.iter() {
+
+ }
+
+ }
+
+
diff --git a/style/main.scss b/style/main.scss
index 7e93cb8..ef74f17 100644
--- a/style/main.scss
+++ b/style/main.scss
@@ -395,6 +395,15 @@ button {
cursor: not-allowed;
}
+ // Keyboard focus uses the same ring as text inputs (border + soft halo) instead of the
+ // global 2px outline, which sat apart from the border and squared off the corners.
+ &:focus-visible {
+ outline: none;
+ border-color: var(--focus);
+ border-radius: var(--radius-md);
+ box-shadow: 0 0 0 3px var(--accent-soft);
+ }
+
&.primary {
background: var(--accent);
border-color: var(--accent);
@@ -414,6 +423,11 @@ button {
&:hover {
background: var(--danger-bg);
}
+
+ &:focus-visible {
+ border-color: var(--danger);
+ box-shadow: 0 0 0 3px var(--danger-bg);
+ }
}
}
@@ -440,6 +454,13 @@ button.link-button {
background: none;
text-decoration: underline;
}
+
+ // Borderless, so it keeps the outline ring rather than the bordered button halo.
+ &:focus-visible {
+ outline: 2px solid var(--focus);
+ outline-offset: 2px;
+ box-shadow: none;
+ }
}
// Forms
@@ -809,6 +830,20 @@ code {
align-self: flex-start;
}
}
+
+ // A confirm opened on a row grows the row tall: keep the name and the Delete button on the top
+ // edge, and right-align the summary and its popover under the row's end.
+ &:has(> .confirm-inline[open]) {
+ align-items: flex-start;
+ }
+
+ > .confirm-inline {
+ text-align: right;
+
+ .confirm-pop {
+ margin-left: auto;
+ }
+ }
}
.branch-list li {
@@ -1135,9 +1170,11 @@ code {
border: 1px solid var(--border);
border-radius: var(--radius-md);
+ &:focus,
&:focus-visible {
- outline: 2px solid var(--focus);
- outline-offset: 1px;
+ outline: none;
+ border-color: var(--focus);
+ box-shadow: 0 0 0 3px var(--accent-soft);
}
}
@@ -1167,6 +1204,7 @@ code {
&:focus-visible {
outline: 2px solid var(--focus);
outline-offset: 1px;
+ box-shadow: none;
}
}
}
@@ -2538,8 +2576,26 @@ code {
// branch protection
// Settings page: rules table with a Remove form per row, then the add/update form.
.branch-rules {
+ // Data columns size to their content; the rule summary takes the slack and the action sits at the end.
+ th:nth-child(4),
+ td:nth-child(4) {
+ width: 100%;
+ }
+
+ th:last-child,
+ td:last-child {
+ text-align: right;
+ white-space: nowrap;
+ }
+
.remove-form {
margin: 0;
+ display: flex;
+ justify-content: flex-end;
+
+ button {
+ width: auto;
+ }
}
tr.muted td {
@@ -2547,11 +2603,36 @@ code {
}
}
+// Rule form: fields share one width, the approvals count is narrow, and each group of related
+// fields sits apart from the next. Help text stays under its field.
.branch-form {
max-width: 40rem;
+ gap: 24px;
input[type="text"] {
- max-width: 24rem;
+ max-width: 28rem;
+ }
+
+ input[type="number"] {
+ width: 8rem;
+ max-width: 8rem;
+ }
+
+ .rule-group {
+ display: flex;
+ flex-direction: column;
+ gap: 8px;
+
+ > p.muted.small {
+ max-width: 28rem;
+ margin: -4px 0 0;
+ }
+
+ // Help for a checkbox lines up with its label text, past the box.
+ > p.check-help {
+ margin-left: 24px;
+ max-width: 28rem;
+ }
}
}
@@ -4118,6 +4199,13 @@ span.reaction {
border-radius: 0;
cursor: pointer;
+ &:focus-visible {
+ outline: 2px solid var(--focus);
+ outline-offset: -2px;
+ border-radius: 0;
+ box-shadow: none;
+ }
+
&:hover {
background: var(--surface-2);
}
@@ -4767,9 +4855,14 @@ $ansi-colours: (
text-align: left;
font-weight: 400;
- &:hover:not(:disabled),
+ &:hover:not(:disabled) {
+ background: var(--code-bg);
+ }
+
&:focus-visible {
background: var(--code-bg);
+ outline: 2px solid var(--focus);
+ outline-offset: -2px;
}
&.danger {
@@ -5598,6 +5691,12 @@ form.runner-conc-form {
button.ci-job-last {
cursor: pointer;
+ &:focus-visible {
+ outline: 2px solid var(--focus);
+ outline-offset: -2px;
+ box-shadow: none;
+ }
+
&:hover {
color: var(--text-2);
}