mirror of
https://github.com/go-gitea/gitea
synced 2025-01-19 06:04:26 +00:00
297 lines
8.4 KiB
CSS
297 lines
8.4 KiB
CSS
.ui .form .autofill-dummy {
|
|
position: absolute;
|
|
width: 1px;
|
|
height: 1px;
|
|
overflow: hidden;
|
|
z-index: -10000;
|
|
}
|
|
|
|
.ui .form .sub.field {
|
|
margin-left: 25px;
|
|
}
|
|
|
|
.ui.form .fields.error .field textarea,
|
|
.ui.form .fields.error .field select,
|
|
.ui.form .fields.error .field input:not([type]),
|
|
.ui.form .fields.error .field input[type="date"],
|
|
.ui.form .fields.error .field input[type="datetime-local"],
|
|
.ui.form .fields.error .field input[type="email"],
|
|
.ui.form .fields.error .field input[type="number"],
|
|
.ui.form .fields.error .field input[type="password"],
|
|
.ui.form .fields.error .field input[type="search"],
|
|
.ui.form .fields.error .field input[type="tel"],
|
|
.ui.form .fields.error .field input[type="time"],
|
|
.ui.form .fields.error .field input[type="text"],
|
|
.ui.form .fields.error .field input[type="file"],
|
|
.ui.form .fields.error .field input[type="url"],
|
|
.ui.form .fields.error .field .ui.dropdown,
|
|
.ui.form .fields.error .field .ui.dropdown .item,
|
|
.ui.form .field.error .ui.dropdown,
|
|
.ui.form .field.error .ui.dropdown .text,
|
|
.ui.form .field.error .ui.dropdown .item,
|
|
.ui.form .field.error textarea,
|
|
.ui.form .field.error select,
|
|
.ui.form .field.error input:not([type]),
|
|
.ui.form .field.error input[type="date"],
|
|
.ui.form .field.error input[type="datetime-local"],
|
|
.ui.form .field.error input[type="email"],
|
|
.ui.form .field.error input[type="number"],
|
|
.ui.form .field.error input[type="password"],
|
|
.ui.form .field.error input[type="search"],
|
|
.ui.form .field.error input[type="tel"],
|
|
.ui.form .field.error input[type="time"],
|
|
.ui.form .field.error input[type="text"],
|
|
.ui.form .field.error input[type="file"],
|
|
.ui.form .field.error input[type="url"],
|
|
.ui.form .field.error select:focus,
|
|
.ui.form .field.error input:not([type]):focus,
|
|
.ui.form .field.error input[type="date"]:focus,
|
|
.ui.form .field.error input[type="datetime-local"]:focus,
|
|
.ui.form .field.error input[type="email"]:focus,
|
|
.ui.form .field.error input[type="number"]:focus,
|
|
.ui.form .field.error input[type="password"]:focus,
|
|
.ui.form .field.error input[type="search"]:focus,
|
|
.ui.form .field.error input[type="tel"]:focus,
|
|
.ui.form .field.error input[type="time"]:focus,
|
|
.ui.form .field.error input[type="text"]:focus,
|
|
.ui.form .field.error input[type="file"]:focus,
|
|
.ui.form .field.error input[type="url"]:focus {
|
|
background-color: var(--color-error-bg);
|
|
border-color: var(--color-error-border);
|
|
color: var(--color-error-text);
|
|
}
|
|
|
|
.ui.form .fields.error .field .ui.dropdown,
|
|
.ui.form .field.error .ui.dropdown,
|
|
.ui.form .fields.error .field .ui.dropdown:hover,
|
|
.ui.form .field.error .ui.dropdown:hover {
|
|
border-color: var(--color-error-border) !important;
|
|
}
|
|
|
|
.ui.form .fields.error .field .ui.dropdown .menu .item:hover,
|
|
.ui.form .field.error .ui.dropdown .menu .item:hover {
|
|
background-color: var(--color-error-bg-hover);
|
|
}
|
|
|
|
.ui.form .fields.error .field .ui.dropdown .menu .active.item,
|
|
.ui.form .field.error .ui.dropdown .menu .active.item {
|
|
background-color: var(--color-error-bg-active) !important;
|
|
}
|
|
|
|
.ui.form .fields.error .dropdown .menu,
|
|
.ui.form .field.error .dropdown .menu {
|
|
border-color: var(--color-error-border) !important;
|
|
}
|
|
|
|
input:-webkit-autofill,
|
|
input:-webkit-autofill:focus,
|
|
input:-webkit-autofill:hover,
|
|
input:-webkit-autofill:active,
|
|
.ui.form .field.field input:-webkit-autofill,
|
|
.ui.form .field.field input:-webkit-autofill:focus,
|
|
.ui.form .field.field input:-webkit-autofill:hover,
|
|
.ui.form .field.field input:-webkit-autofill:active {
|
|
-webkit-background-clip: text;
|
|
-webkit-text-fill-color: var(--color-text);
|
|
box-shadow: 0 0 0 100px var(--color-primary-light-6) inset !important;
|
|
border-color: var(--color-primary-light-4) !important;
|
|
}
|
|
|
|
.ui.form .field.muted {
|
|
opacity: var(--opacity-disabled);
|
|
}
|
|
|
|
.ui.form textarea:not([rows]) {
|
|
height: var(--min-height-textarea); /* override fomantic default 12em */
|
|
min-height: var(--min-height-textarea); /* override fomantic default 8em */
|
|
}
|
|
|
|
.ui.input textarea,
|
|
.ui.form textarea,
|
|
.ui.form input:not([type]),
|
|
.ui.form input[type="date"],
|
|
.ui.form input[type="datetime-local"],
|
|
.ui.form input[type="email"],
|
|
.ui.form input[type="number"],
|
|
.ui.form input[type="password"],
|
|
.ui.form input[type="search"],
|
|
.ui.form input[type="tel"],
|
|
.ui.form input[type="time"],
|
|
.ui.form input[type="text"],
|
|
.ui.form input[type="file"],
|
|
.ui.form input[type="url"] {
|
|
transition: none;
|
|
}
|
|
|
|
input,
|
|
textarea,
|
|
.ui.input > input,
|
|
.ui.form input:not([type]),
|
|
.ui.form select,
|
|
.ui.form textarea,
|
|
.ui.form input[type="date"],
|
|
.ui.form input[type="datetime-local"],
|
|
.ui.form input[type="email"],
|
|
.ui.form input[type="file"],
|
|
.ui.form input[type="number"],
|
|
.ui.form input[type="password"],
|
|
.ui.form input[type="search"],
|
|
.ui.form input[type="tel"],
|
|
.ui.form input[type="text"],
|
|
.ui.form input[type="time"],
|
|
.ui.form input[type="url"],
|
|
.ui.selection.dropdown {
|
|
background: var(--color-input-background);
|
|
border-color: var(--color-input-border);
|
|
color: var(--color-input-text);
|
|
}
|
|
|
|
input:hover,
|
|
textarea:hover,
|
|
.ui.input input:hover,
|
|
.ui.form input:not([type]):hover,
|
|
.ui.form select:hover,
|
|
.ui.form textarea:hover,
|
|
.ui.form input[type="date"]:hover,
|
|
.ui.form input[type="datetime-local"]:hover,
|
|
.ui.form input[type="email"]:hover,
|
|
.ui.form input[type="file"]:hover,
|
|
.ui.form input[type="number"]:hover,
|
|
.ui.form input[type="password"]:hover,
|
|
.ui.form input[type="search"]:hover,
|
|
.ui.form input[type="tel"]:hover,
|
|
.ui.form input[type="text"]:hover,
|
|
.ui.form input[type="time"]:hover,
|
|
.ui.form input[type="url"]:hover,
|
|
.ui.selection.dropdown:hover {
|
|
background: var(--color-input-background);
|
|
border-color: var(--color-input-border-hover);
|
|
color: var(--color-input-text);
|
|
}
|
|
|
|
input:focus,
|
|
textarea:focus,
|
|
.ui.input input:focus,
|
|
.ui.form input:not([type]):focus,
|
|
.ui.form select:focus,
|
|
.ui.form textarea:focus,
|
|
.ui.form input[type="date"]:focus,
|
|
.ui.form input[type="datetime-local"]:focus,
|
|
.ui.form input[type="email"]:focus,
|
|
.ui.form input[type="file"]:focus,
|
|
.ui.form input[type="number"]:focus,
|
|
.ui.form input[type="password"]:focus,
|
|
.ui.form input[type="search"]:focus,
|
|
.ui.form input[type="tel"]:focus,
|
|
.ui.form input[type="text"]:focus,
|
|
.ui.form input[type="time"]:focus,
|
|
.ui.form input[type="url"]:focus,
|
|
.ui.selection.dropdown:focus {
|
|
background: var(--color-input-background);
|
|
border-color: var(--color-primary);
|
|
color: var(--color-input-text);
|
|
}
|
|
|
|
.ui.form .field > label,
|
|
.ui.form .inline.fields > label,
|
|
.ui.form .inline.fields .field > label,
|
|
.ui.form .inline.fields .field > p,
|
|
.ui.form .inline.field > label,
|
|
.ui.form .inline.field > p {
|
|
color: var(--color-text);
|
|
}
|
|
|
|
.ui.form .required.fields:not(.grouped) > .field > label::after,
|
|
.ui.form .required.fields.grouped > label::after,
|
|
.ui.form .required.field > label::after,
|
|
.ui.form label.required::after {
|
|
color: var(--color-red);
|
|
}
|
|
|
|
.ui.input {
|
|
color: var(--color-input-text);
|
|
}
|
|
|
|
.ui.form .field > .selection.dropdown {
|
|
min-width: 14em; /* matches the default min width */
|
|
}
|
|
|
|
.form .help {
|
|
color: var(--color-secondary-dark-5);
|
|
padding-bottom: 0.6em;
|
|
display: inline-block;
|
|
}
|
|
|
|
.m-captcha-style {
|
|
width: 100%;
|
|
height: 5em;
|
|
vertical-align: middle;
|
|
display: inline-block;
|
|
}
|
|
|
|
@media (min-width: 768px) {
|
|
.g-recaptcha-style,
|
|
.h-captcha-style {
|
|
margin: 0 auto !important;
|
|
width: 304px;
|
|
padding-left: 30px;
|
|
}
|
|
.g-recaptcha-style iframe,
|
|
.h-captcha-style iframe {
|
|
border-radius: var(--border-radius) !important;
|
|
width: 302px !important;
|
|
height: 76px !important;
|
|
}
|
|
.m-captcha-style {
|
|
width: 50%;
|
|
}
|
|
}
|
|
|
|
@media (max-height: 575px) {
|
|
#rc-imageselect, /* google recaptcha */
|
|
.g-recaptcha-style,
|
|
.h-captcha-style {
|
|
transform: scale(0.77);
|
|
transform-origin: 0 0;
|
|
}
|
|
}
|
|
|
|
.ui.form.left-right-form .inline.field > label {
|
|
text-align: right;
|
|
width: 250px;
|
|
margin-right: 10px;
|
|
}
|
|
|
|
.ui.form.left-right-form .inline.field > .help {
|
|
display: block;
|
|
margin-left: calc(250px + 15px);
|
|
}
|
|
|
|
.ui.form.left-right-form .inline.field input:not([type="checkbox"], [type="radio"]),
|
|
.ui.form.left-right-form .inline.field .ui.dropdown,
|
|
.ui.form.left-right-form .inline.field textarea {
|
|
width: 50%;
|
|
}
|
|
|
|
.ui.form.left-right-form .inline.field .inline-right {
|
|
display: inline-flex;
|
|
flex-direction: column;
|
|
gap: 0.5em;
|
|
}
|
|
|
|
@media (max-width: 767.98px) {
|
|
.ui.form.left-right-form .inline.field > label {
|
|
width: 100%;
|
|
margin: 0;
|
|
text-align: left;
|
|
}
|
|
.ui.form.left-right-form .inline.field > .help {
|
|
margin: 0;
|
|
}
|
|
.ui.form.left-right-form .inline.field input:not([type="checkbox"], [type="radio"]),
|
|
.ui.form.left-right-form .inline.field .ui.dropdown,
|
|
.ui.form.left-right-form .inline.field textarea {
|
|
width: 100%;
|
|
}
|
|
}
|