Files
Atay-Makhzan/web_src/less/_form.less
T

372 lines
7.5 KiB
Plaintext
Raw Normal View History

2020-11-12 16:59:33 +01:00
input,
textarea,
.ui.input > input,
.ui.form input:not([type]),
.ui.form select,
2020-11-12 16:59:33 +01:00
.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,
.ui.checkbox label::before,
.ui.checkbox input:checked ~ label::before,
2021-11-11 02:52:16 +01:00
.ui.checkbox input:not([type="radio"]):indeterminate ~ label::before {
2020-11-12 16:59:33 +01:00
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,
2020-11-12 16:59:33 +01:00
.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,
.ui.checkbox label:hover::before,
.ui.checkbox label:active::before,
.ui.radio.checkbox label::after,
.ui.radio.checkbox input:focus ~ label::before,
.ui.radio.checkbox input:checked ~ label::before {
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,
2020-11-12 16:59:33 +01:00
.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,
.ui.checkbox input:focus ~ label::before,
.ui.checkbox input:not([type="radio"]):indeterminate:focus ~ label::before,
.ui.checkbox input:checked:focus ~ label::before,
.ui.radio.checkbox input:focus:checked ~ label::before {
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,
.ui.checkbox label,
.ui.checkbox + label,
.ui.checkbox label:hover,
.ui.checkbox + label:hover,
.ui.checkbox input:focus ~ label,
.ui.checkbox input:active ~ label {
color: var(--color-text);
}
.ui.input,
.ui.checkbox input:focus ~ label::after,
.ui.checkbox input:checked ~ label::after,
.ui.checkbox label:active::after,
2021-11-11 02:52:16 +01:00
.ui.checkbox input:not([type="radio"]):indeterminate ~ label::after,
.ui.checkbox input:not([type="radio"]):indeterminate:focus ~ label::after,
2020-11-12 16:59:33 +01:00
.ui.checkbox input:checked:focus ~ label::after,
.ui.disabled.checkbox label,
.ui.checkbox input[disabled] ~ label {
color: var(--color-input-text);
}
.ui.radio.checkbox input:focus ~ label::after,
.ui.radio.checkbox input:checked ~ label::after,
.ui.radio.checkbox input:focus:checked ~ label::after {
background: var(--color-input-text);
}
.ui.toggle.checkbox label::before {
background: var(--color-input-background);
}
.ui.toggle.checkbox label,
.ui.toggle.checkbox input:checked ~ label,
.ui.toggle.checkbox input:focus:checked ~ label {
color: var(--color-text) !important;
}
.ui.toggle.checkbox input:checked ~ label::before,
.ui.toggle.checkbox input:focus:checked ~ label::before {
background: var(--color-primary) !important;
}
/* match <select> padding to <input> */
.ui.form select {
padding: .67857143em 1em;
}
2015-07-08 01:09:03 +08:00
.form {
2020-08-25 21:48:53 +02:00
.help {
color: #999999;
padding-bottom: .6em;
display: inline-block;
}
2015-08-06 22:48:11 +08:00
}
2019-05-13 08:26:32 +02:00
@create-page-form-input-padding: 250px !important;
#create-page-form {
2020-08-25 21:48:53 +02:00
form {
margin: auto;
2019-05-13 08:26:32 +02:00
2020-08-25 21:48:53 +02:00
.ui.message {
text-align: center;
}
2019-05-13 08:26:32 +02:00
2020-11-17 05:33:19 +00:00
@media @mediaMdAndUp {
2020-08-25 21:48:53 +02:00
width: 800px !important;
2019-05-14 02:54:23 +02:00
2020-08-25 21:48:53 +02:00
.header {
padding-left: @create-page-form-input-padding+30px;
}
2019-05-13 08:26:32 +02:00
2020-08-25 21:48:53 +02:00
.inline.field > label {
text-align: right;
width: @create-page-form-input-padding;
word-wrap: break-word;
}
2019-05-13 08:26:32 +02:00
2020-08-25 21:48:53 +02:00
.help {
margin-left: @create-page-form-input-padding+15px;
}
2019-05-13 08:26:32 +02:00
2020-08-25 21:48:53 +02:00
.optional .title {
margin-left: @create-page-form-input-padding;
}
2019-05-13 08:26:32 +02:00
2020-08-25 21:48:53 +02:00
input,
textarea {
width: 50% !important;
}
}
2019-05-14 02:54:23 +02:00
2020-11-17 05:33:19 +00:00
@media @mediaSm {
2020-08-25 21:48:53 +02:00
.optional .title {
margin-left: 15px;
}
2019-05-13 08:26:32 +02:00
2020-08-25 21:48:53 +02:00
.inline.field > label {
display: block;
}
2019-05-13 08:26:32 +02:00
}
2020-08-25 21:48:53 +02:00
}
}
2017-03-17 01:49:24 +01:00
.signin {
2020-08-25 21:48:53 +02:00
.oauth2 {
div {
display: inline-block;
p {
margin: 10px 5px 0 0;
float: left;
}
}
2019-05-13 08:26:32 +02:00
2020-08-25 21:48:53 +02:00
a {
margin-right: 3px;
2019-05-13 08:26:32 +02:00
2020-08-25 21:48:53 +02:00
&:last-child {
margin-right: 0;
}
}
2019-05-13 08:26:32 +02:00
2020-08-25 21:48:53 +02:00
img {
width: 32px;
height: 32px;
2019-05-13 08:26:32 +02:00
2020-08-25 21:48:53 +02:00
&.openidConnect {
width: auto;
}
}
2020-08-25 21:48:53 +02:00
}
2017-03-17 01:49:24 +01:00
}
2020-11-17 05:33:19 +00:00
@media @mediaMdAndUp {
2020-10-02 22:37:53 -05:00
.g-recaptcha,
.h-captcha {
2020-08-25 21:48:53 +02:00
margin: 0 auto !important;
width: 304px;
padding-left: 30px;
}
}
2019-05-13 08:26:32 +02:00
2020-11-17 05:33:19 +00:00
@media (max-height: 575px) {
2020-08-25 21:48:53 +02:00
#rc-imageselect,
2020-10-02 22:37:53 -05:00
.g-recaptcha,
.h-captcha {
2020-08-25 21:48:53 +02:00
transform: scale(.77);
transform-origin: 0 0;
}
}
.user.activate,
2015-09-17 14:57:24 -04:00
.user.forgot.password,
.user.reset.password,
2020-11-14 02:46:40 +00:00
.user.link-account,
2015-09-17 14:57:24 -04:00
.user.signin,
.user.signup {
2020-08-25 21:48:53 +02:00
@input-padding: 200px;
2020-12-27 15:24:27 +01:00
#create-page-form();
2020-08-25 21:48:53 +02:00
form {
width: 700px !important;
.header {
padding-left: 0 !important;
text-align: center;
}
.inline.field > label {
width: @input-padding;
}
.inline.field > label,
input {
2020-11-17 05:33:19 +00:00
@media @mediaSm {
2020-08-25 21:48:53 +02:00
width: 100% !important;
}
}
2021-11-11 02:52:16 +01:00
input[type="number"] {
2020-08-25 21:48:53 +02:00
-moz-appearance: textfield;
}
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
-webkit-appearance: none;
margin: 0;
}
}
}
2022-01-14 23:03:31 +08:00
.user.signin.webauthn-prompt {
margin-top: 15px;
}
2020-08-25 21:48:53 +02:00
.repository {
&.new.repo,
&.new.migrate,
&.new.fork {
2020-12-27 15:24:27 +01:00
#create-page-form();
2019-05-13 08:26:32 +02:00
form {
.dropdown .text {
margin-right: 0 !important;
2020-08-25 21:48:53 +02:00
}
2019-10-18 11:26:13 -05:00
2020-08-25 21:48:53 +02:00
.header {
padding-left: 0 !important;
text-align: center;
}
2019-10-18 11:26:13 -05:00
2020-08-27 20:36:37 -05:00
.selection.dropdown {
vertical-align: middle;
width: 50% !important;
}
2020-11-17 05:33:19 +00:00
@media @mediaSm {
2020-08-25 21:48:53 +02:00
label,
input,
.selection.dropdown {
width: 100% !important;
2019-10-18 11:26:13 -05:00
}
2020-08-25 21:48:53 +02:00
.field button,
.field a {
margin-bottom: 1em;
width: 100%;
}
2020-08-25 21:48:53 +02:00
}
}
2020-08-25 21:48:53 +02:00
}
2015-08-28 16:44:04 +08:00
2020-08-25 21:48:53 +02:00
&.new.repo {
.ui.form {
2020-11-17 05:33:19 +00:00
@media @mediaMdAndUp {
2020-08-25 21:48:53 +02:00
#auto-init {
margin-left: @create-page-form-input-padding+15px;
}
}
2019-05-13 08:26:32 +02:00
2020-08-25 21:48:53 +02:00
.selection.dropdown:not(.owner) {
width: 50% !important;
2019-05-13 08:26:32 +02:00
2020-11-17 05:33:19 +00:00
@media @mediaSm {
2020-08-25 21:48:53 +02:00
width: 100% !important;
2019-05-13 08:26:32 +02:00
}
2020-08-25 21:48:53 +02:00
}
2019-05-13 08:26:32 +02:00
}
2020-08-25 21:48:53 +02:00
}
2015-08-26 18:03:30 +08:00
}
2015-08-27 00:30:06 +08:00
.new.webhook {
2020-08-25 21:48:53 +02:00
form {
.help {
margin-left: 25px;
}
2020-08-25 21:48:53 +02:00
}
2015-08-28 23:36:13 +08:00
2020-08-25 21:48:53 +02:00
.events.fields {
.column {
padding-left: 40px;
}
2020-08-25 21:48:53 +02:00
}
2015-12-07 21:20:54 +01:00
}
.githook {
2020-08-25 21:48:53 +02:00
textarea {
font-family: var(--fonts-monospace);
2020-08-25 21:48:53 +02:00
}
}
2018-07-26 17:25:41 +02:00
.new.org .ui.form {
2020-11-17 05:33:19 +00:00
@media @mediaSm {
2020-08-25 21:48:53 +02:00
.field button,
.field a {
margin-bottom: 1em;
width: 100%;
}
2019-05-13 08:26:32 +02:00
2020-08-25 21:48:53 +02:00
.field input {
width: 100% !important;
2019-05-13 08:26:32 +02:00
}
2020-08-25 21:48:53 +02:00
}
2018-07-26 17:25:41 +02:00
}