0
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-11-29 23:06:19 +01:00
gitea/web_src/less/_form.less

258 lines
4.0 KiB
Plaintext
Raw Normal View History

2015-07-07 19:09:03 +02:00
.form {
.help {
color: #999999;
padding-top: .6em;
padding-bottom: .6em;
display: inline-block;
}
2015-08-06 16:48:11 +02:00
}
2019-05-13 08:26:32 +02:00
2015-08-06 16:48:11 +02:00
.ui.attached.header {
background: #f0f0f0;
2019-05-13 08:26:32 +02:00
.right {
margin-top: -5px;
2019-05-13 08:26:32 +02:00
.button {
padding: 8px 10px;
font-weight: normal;
}
}
2015-08-08 11:10:34 +02:00
}
2015-08-26 12:03:30 +02:00
@create-page-form-input-padding: 250px !important;
#create-page-form {
form {
margin: auto;
2019-05-13 08:26:32 +02:00
.ui.message {
text-align: center;
}
2019-05-13 08:26:32 +02:00
@media only screen and (min-width: 768px) {
width: 800px !important;
2019-05-14 02:54:23 +02:00
.header {
padding-left: @create-page-form-input-padding+30px;
}
2019-05-13 08:26:32 +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
.help {
margin-left: @create-page-form-input-padding+15px;
}
2019-05-13 08:26:32 +02:00
.optional .title {
margin-left: @create-page-form-input-padding;
}
2019-05-13 08:26:32 +02:00
input,
textarea {
width: 50% !important;
}
}
2019-05-14 02:54:23 +02:00
@media only screen and (max-width: 767px) {
.optional .title {
margin-left: 15px;
}
2019-05-13 08:26:32 +02:00
.inline.field > label {
display: block;
}
2019-05-13 08:26:32 +02:00
}
}
}
.signin {
.oauth2 {
div {
display: inline-block;
p {
margin: 10px 5px 0 0;
float: left;
}
}
2019-05-13 08:26:32 +02:00
a {
margin-right: 3px;
2019-05-13 08:26:32 +02:00
&:last-child {
margin-right: 0;
}
}
2019-05-13 08:26:32 +02:00
img {
width: 32px;
height: 32px;
2019-05-13 08:26:32 +02:00
&.openidConnect {
width: auto;
}
}
}
}
@media only screen and (min-width: 768px) {
.g-recaptcha,
.h-captcha {
margin: 0 auto !important;
width: 304px;
padding-left: 30px;
}
}
2019-05-13 08:26:32 +02:00
@media screen and (max-height: 575px) {
#rc-imageselect,
.g-recaptcha,
.h-captcha {
transform: scale(.77);
transform-origin: 0 0;
}
}
.user.activate,
2015-09-17 20:57:24 +02:00
.user.forgot.password,
.user.reset.password,
.user.signin,
.user.signup {
@input-padding: 200px;
#create-page-form;
form {
width: 700px !important;
.header {
padding-left: 0 !important;
text-align: center;
}
.inline.field > label {
width: @input-padding;
}
.inline.field > label,
input {
@media only screen and (max-width: 768px) {
width: 100% !important;
}
}
input[type=number] {
-moz-appearance: textfield;
}
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
-webkit-appearance: none;
margin: 0;
}
}
}
.repository {
&.new.repo,
&.new.migrate,
&.new.fork {
#create-page-form;
2019-05-13 08:26:32 +02:00
form {
.dropdown {
.dropdown.icon {
margin-top: -7px !important;
padding-bottom: 5px;
}
2019-05-13 08:26:32 +02:00
.text {
margin-right: 0 !important;
i {
margin-right: 0 !important;
}
}
}
.header {
padding-left: 0 !important;
text-align: center;
}
.selection.dropdown {
vertical-align: middle;
width: 50% !important;
}
@media only screen and (max-width: 768px) {
label,
input,
.selection.dropdown {
width: 100% !important;
}
.field button,
.field a {
margin-bottom: 1em;
width: 100%;
}
}
}
}
&.new.repo {
.ui.form {
@media only screen and (min-width: 768px) {
#auto-init {
margin-left: @create-page-form-input-padding+15px;
}
}
2019-05-13 08:26:32 +02:00
.selection.dropdown:not(.owner) {
width: 50% !important;
2019-05-13 08:26:32 +02:00
@media only screen and (max-width: 768px) {
width: 100% !important;
2019-05-13 08:26:32 +02:00
}
}
2019-05-13 08:26:32 +02:00
}
}
2015-08-26 12:03:30 +02:00
}
2015-08-26 18:30:06 +02:00
.new.webhook {
form {
.help {
margin-left: 25px;
}
}
2015-08-28 17:36:13 +02:00
.events.fields {
.column {
padding-left: 40px;
}
}
}
.githook {
textarea {
font-family: @monospaced-fonts, monospace;
}
}
.new.org .ui.form {
@media only screen and (max-width: 768px) {
.field button,
.field a {
margin-bottom: 1em;
width: 100%;
}
2019-05-13 08:26:32 +02:00
.field input {
width: 100% !important;
2019-05-13 08:26:32 +02:00
}
}
}