mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-27 08:42:41 +01:00
8583b7f485
Fix regression from https://github.com/go-gitea/gitea/pull/30194 where right-aligned items would not display correctly. Before and After: <img width="285" alt="Screenshot 2024-04-06 at 01 12 11" src="https://github.com/go-gitea/gitea/assets/115237/f9168db5-0f69-4b5d-ba17-b60145ac4a09"> <img width="285" alt="Screenshot 2024-04-06 at 01 11 49" src="https://github.com/go-gitea/gitea/assets/115237/639ab6ed-d018-4e3a-9980-1f079e4ebe9d"> Frontpage search tweaked to accommodate (which was the reason for the changes that broken above): <img width="445" alt="Screenshot 2024-04-06 at 01 11 34" src="https://github.com/go-gitea/gitea/assets/115237/1919220b-390e-463a-8e3d-33a3556bf111"> <img width="438" alt="Screenshot 2024-04-06 at 01 11 39" src="https://github.com/go-gitea/gitea/assets/115237/fd94f8e4-1d56-4b04-99e3-1cd240bd7ab4"> (cherry picked from commit 94aad35a120b05897a0b6b97f0d9605a52ea9642)
197 lines
5.1 KiB
CSS
197 lines
5.1 KiB
CSS
/* based on Fomantic UI input module, with just the parts extracted that we use. If you find any
|
|
unused rules here after refactoring, please remove them. */
|
|
|
|
.ui.input {
|
|
position: relative;
|
|
font-weight: var(--font-weight-normal);
|
|
display: inline-flex;
|
|
color: var(--color-input-text);
|
|
}
|
|
.ui.input > input {
|
|
margin: 0;
|
|
max-width: 100%;
|
|
flex: 1 0 auto;
|
|
outline: none;
|
|
font-family: var(--fonts-regular);
|
|
padding: 0.67857143em 1em;
|
|
border: 1px solid var(--color-input-border);
|
|
color: var(--color-input-text);
|
|
border-radius: 0.28571429rem;
|
|
line-height: var(--line-height-default);
|
|
text-align: start;
|
|
}
|
|
|
|
.ui.disabled.input,
|
|
.ui.input:not(.disabled) input[disabled] {
|
|
opacity: var(--opacity-disabled);
|
|
}
|
|
.ui.disabled.input > input,
|
|
.ui.input:not(.disabled) input[disabled] {
|
|
pointer-events: none;
|
|
}
|
|
|
|
.ui.input.focus > input,
|
|
.ui.input > input:focus {
|
|
border-color: var(--color-primary);
|
|
}
|
|
|
|
.ui.input.error > input {
|
|
background: var(--color-error-bg);
|
|
border-color: var(--color-error-border);
|
|
color: var(--color-error-text);
|
|
}
|
|
|
|
.ui.icon.input > i.icon {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
cursor: default;
|
|
position: absolute;
|
|
text-align: center;
|
|
top: 0;
|
|
right: 0;
|
|
margin: 0;
|
|
height: 100%;
|
|
width: 2.67142857em;
|
|
opacity: 0.5;
|
|
border-radius: 0 0.28571429rem 0.28571429rem 0;
|
|
pointer-events: none;
|
|
padding: 4px;
|
|
}
|
|
|
|
.ui.icon.input > i.icon.is-loading {
|
|
position: absolute !important;
|
|
height: 28px;
|
|
top: 4px;
|
|
}
|
|
|
|
.ui.icon.input > i.icon.is-loading > * {
|
|
visibility: hidden;
|
|
}
|
|
|
|
.ui.ui.ui.ui.icon.input > textarea,
|
|
.ui.ui.ui.ui.icon.input > input {
|
|
padding-right: 2.67142857em;
|
|
}
|
|
.ui.icon.input > i.link.icon {
|
|
cursor: pointer;
|
|
}
|
|
.ui.icon.input > i.circular.icon {
|
|
top: 0.35em;
|
|
right: 0.5em;
|
|
}
|
|
|
|
.ui[class*="left icon"].input > i.icon {
|
|
right: auto;
|
|
left: 1px;
|
|
border-radius: 0.28571429rem 0 0 0.28571429rem;
|
|
}
|
|
.ui[class*="left icon"].input > i.circular.icon {
|
|
right: auto;
|
|
left: 0.5em;
|
|
}
|
|
.ui.ui.ui.ui[class*="left icon"].input > textarea,
|
|
.ui.ui.ui.ui[class*="left icon"].input > input {
|
|
padding-left: 2.67142857em;
|
|
padding-right: 1em;
|
|
}
|
|
|
|
.ui.icon.input > textarea:focus ~ .icon,
|
|
.ui.icon.input > input:focus ~ .icon {
|
|
opacity: 1;
|
|
}
|
|
|
|
.ui.icon.input > textarea ~ i.icon {
|
|
height: 3em;
|
|
}
|
|
|
|
.ui.form .field.error > .ui.action.input > .ui.button,
|
|
.ui.action.input.error > .ui.button {
|
|
border-top: 1px solid var(--color-error-border);
|
|
border-bottom: 1px solid var(--color-error-border);
|
|
}
|
|
|
|
.ui.action.input > .button,
|
|
.ui.action.input > .buttons {
|
|
display: flex;
|
|
align-items: center;
|
|
flex: 0 0 auto;
|
|
}
|
|
.ui.action.input > .button,
|
|
.ui.action.input > .buttons > .button {
|
|
padding-top: 0.78571429em;
|
|
padding-bottom: 0.78571429em;
|
|
margin: 0;
|
|
}
|
|
|
|
.ui.action.input:not([class*="left action"]) > input {
|
|
border-top-right-radius: 0;
|
|
border-bottom-right-radius: 0;
|
|
border-right-color: transparent;
|
|
}
|
|
|
|
.ui.action.input > .dropdown:first-child,
|
|
.ui.action.input > .button:first-child,
|
|
.ui.action.input > .buttons:first-child > .button {
|
|
border-radius: 0.28571429rem 0 0 0.28571429rem;
|
|
}
|
|
.ui.action.input > .dropdown:not(:first-child),
|
|
.ui.action.input > .button:not(:first-child),
|
|
.ui.action.input > .buttons:not(:first-child) > .button {
|
|
border-radius: 0;
|
|
}
|
|
.ui.action.input > .dropdown:last-child,
|
|
.ui.action.input > .button:last-child,
|
|
.ui.action.input > .buttons:last-child > .button {
|
|
border-radius: 0 0.28571429rem 0.28571429rem 0;
|
|
}
|
|
|
|
.ui.fluid.input {
|
|
display: flex;
|
|
}
|
|
.ui.fluid.input > input {
|
|
width: 0 !important;
|
|
}
|
|
|
|
.ui.tiny.input {
|
|
font-size: 0.85714286em;
|
|
}
|
|
.ui.small.input {
|
|
font-size: 0.92857143em;
|
|
}
|
|
|
|
.ui.action.input .ui.ui.button {
|
|
border-color: var(--color-input-border);
|
|
padding-top: 0; /* the ".action.input" is "flex + stretch", so let the buttons layout themselves */
|
|
padding-bottom: 0;
|
|
}
|
|
|
|
/* currently used for search bar dropdowns in repo search and explore code */
|
|
.ui.action.input:not([class*="left action"]) > .ui.dropdown.selection {
|
|
min-width: 10em;
|
|
}
|
|
.ui.action.input:not([class*="left action"]) > .ui.dropdown.selection:not(:focus) {
|
|
border-right: none;
|
|
}
|
|
.ui.action.input:not([class*="left action"]) > .ui.dropdown.selection:not(.active):hover {
|
|
border-color: var(--color-input-border);
|
|
}
|
|
.ui.action.input:not([class*="left action"]) .ui.dropdown.selection.upward.visible {
|
|
border-bottom-left-radius: 0 !important;
|
|
border-bottom-right-radius: 0 !important;
|
|
}
|
|
.ui.action.input:not([class*="left action"]) > input,
|
|
.ui.action.input:not([class*="left action"]) > input:hover {
|
|
border-right: none;
|
|
}
|
|
.ui.action.input:not([class*="left action"]) > input:focus + .ui.dropdown.selection,
|
|
.ui.action.input:not([class*="left action"]) > input:focus + .ui.dropdown.selection:hover,
|
|
.ui.action.input:not([class*="left action"]) > input:focus + .button,
|
|
.ui.action.input:not([class*="left action"]) > input:focus + .button:hover,
|
|
.ui.action.input:not([class*="left action"]) > input:focus + .icon + .button,
|
|
.ui.action.input:not([class*="left action"]) > input:focus + .icon + .button:hover {
|
|
border-left-color: var(--color-primary);
|
|
}
|
|
.ui.action.input:not([class*="left action"]) > input:focus {
|
|
border-right-color: var(--color-primary);
|
|
}
|