icingaweb2/public/css/icinga/forms.less

206 lines
3.0 KiB
Plaintext
Raw Normal View History

// {{{ICINGA_LICENSE_HEADER}}}
// {{{ICINGA_LICENSE_HEADER}}}
2014-02-18 19:39:54 +01:00
div.config-form-buttons {
margin-top: 5px;
}
table.configTable {
2014-03-05 15:28:10 +01:00
border-spacing: 15px;
border-collapse: separate;
}
td.configTable {
border: solid;
border-width: thin;
padding: 10px;
min-width: 300px;
}
.form-element {
2014-02-18 19:39:54 +01:00
margin-bottom: 1em;
}
label {
display: block;
2014-02-18 19:39:54 +01:00
font-weight: bold;
}
input, select {
box-sizing: border-box;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
border: 1px solid #ddd;
padding: 0.2em;
background: #fff;
2014-02-18 19:39:54 +01:00
}
input:focus, select:focus {
border-color: #333;
}
2014-02-18 19:39:54 +01:00
input[type=submit] {
font-weight: bold;
text-align: center;
color: #eee;
2014-03-09 01:56:34 +01:00
border-color: #777;
background: #777;
outline: 0;
}
2014-02-18 19:39:54 +01:00
2014-03-09 01:56:34 +01:00
input[type=submit]:hover, a.button:hover, input[type=submit]:focus {
background-color: #333;
border-color: #333;
2014-03-09 01:56:34 +01:00
}
input[type=submit]:hover, a.button:hover {
cursor: pointer;
color: white;
}
input:focus, select:focus {
background: white;
outline: 0;
}
2014-02-18 19:39:54 +01:00
2014-03-09 01:56:34 +01:00
input::-moz-placeholder {
color: #333;
}
input::-webkit-input-placeholder {
color: #333;
}
input:-ms-input-placeholder {
color: #333;
}
2014-02-18 19:39:54 +01:00
input::-moz-focus-inner {
border: 0;
2014-03-09 01:56:34 +01:00
outline: 0;
}
2014-02-18 19:39:54 +01:00
select::-moz-focus-inner {
border: 0;
outline: 0;
2014-02-18 19:39:54 +01:00
}
input:disabled, select:disabled {
background-color: #fff;
border-color: white;
}
form.inline {
margin: 0;
padding: 0;
display: inline;
}
2014-09-24 07:43:33 +02:00
form.link-like input[type="submit"] {
color: @colorLinkDefault;
font-weight: normal;
border: none;
background: none;
padding: 0;
font-size: 1em;
cursor: pointer;
}
2014-09-24 07:43:33 +02:00
form.link-like input[type="submit"]:hover, form.link-like input[type="submit"]:focus {
text-decoration: underline;
background: none;
color: @colorLinkDefault;
}
.non-list-like-list {
list-style-type: none;
margin: 0;
padding: 0;
2014-02-18 19:39:54 +01:00
}
form div.element ul.errors {
.non-list-like-list;
margin: 0.3em 0 0 0.6em;
li {
color: @colorCritical;
font-weight: bold;
line-height: 1.5em;
}
}
form ul.form-errors {
.non-list-like-list;
display: inline-block;
padding: 0.5em 1em;
border-radius: 1em;
background-color: @colorCritical;
ul.errors {
.non-list-like-list;
}
li {
color: white;
font-weight: bold;
line-height: 1.5em;
}
2014-02-18 19:39:54 +01:00
}
2014-10-15 15:46:07 +02:00
form div.element {
margin: 0.5em 0;
}
2014-10-01 10:01:25 +02:00
form label {
display: inline-block;
margin-right: 1em;
font-size: 0.9em;
width: 10em;
}
2014-10-01 10:01:25 +02:00
select, input[type=text] {
width: 20em;
}
2014-10-01 10:01:25 +02:00
form .description {
font-size: 0.8em;
2014-10-15 15:46:07 +02:00
margin: 0.3em 0 0 0.6em;
}
2014-09-24 07:43:33 +02:00
.description {
display: block;
}
textarea {
height: 4em;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
width: 100%;
}
2014-09-24 07:43:33 +02:00
input, select, textarea {
display: inline;
}
.control-group {
display: -webkit-flex;
display: flex;
-webkit-flex-flow: row wrap;
flex-flow: row wrap;
}
.control-group > div {
width: 100%;
height: 100%;
overflow: auto;
}
@media (min-width: 480px) {
.control-group > div {
width: auto;
}
}