icingaweb2/public/css/icinga/forms.less

224 lines
3.7 KiB
Plaintext

// {{{ICINGA_LICENSE_HEADER}}}
// {{{ICINGA_LICENSE_HEADER}}}
div.config-form-buttons {
margin-top: 5px;
}
table.configTable {
border-spacing: 15px;
border-collapse: separate;
}
td.configTable {
border: solid;
border-width: thin;
padding: 10px;
min-width: 300px;
}
.form-element {
margin-bottom: 1em;
}
label {
display: block;
font-weight: bold;
}
input, select {
box-sizing: border-box;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
border: 1px solid #ddd;
font-size: 0.9em;
padding: 0.2em;
background: #fff;
font-family: Calibri, Helvetica, sans-serif;
}
input:focus, select:focus {
border-color: #333;
}
input[type=submit] {
font-weight: bold;
text-align: center;
color: #fff;
border: 2px solid #ddd;
border-color: @colorPetrol;
background: @colorPetrol;
outline: 0;
}
input[type=submit]:hover, a.button:hover, input[type=submit]:focus {
background-color: #333;
border-color: #333;
}
input[type=submit]:hover, a.button:hover {
cursor: pointer;
color: white;
}
input:focus, select:focus {
background: white;
outline: 0;
}
input::-moz-placeholder {
color: #333;
}
input::-webkit-input-placeholder {
color: #333;
}
input:-ms-input-placeholder {
color: #333;
}
input::-moz-focus-inner {
border: 0;
outline: 0;
}
button::-moz-focus-inner {
border: 0;
outline: 0;
}
select::-moz-focus-inner {
border: 0;
outline: 0;
}
input:disabled, select:disabled {
background-color: #fff;
border-color: white;
}
form.inline {
margin: 0;
padding: 0;
display: inline;
}
form.link-like input[type="submit"], form.link-like button[type="submit"], input.link-like, button.link-like {
color: @colorLinkDefault;
font-weight: normal;
border: none;
background: none;
padding: 0;
font-size: 1em;
cursor: pointer;
}
form.link-like input[type="submit"]:hover,
form.link-like input[type="submit"]:focus,
form.link-like button[type="submit"]:hover,
form.link-like button[type="submit"]:focus,
input.link-like:hover, button.link-like:focus {
text-decoration: underline;
background: none;
color: @colorLinkDefault;
}
.non-list-like-list {
list-style-type: none;
margin: 0;
padding: 0;
li {
margin: 0.5em;
}
}
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;
margin-bottom: 1em;
background-color: @colorCritical;
ul.errors {
.non-list-like-list;
}
li {
color: white;
font-weight: bold;
line-height: 1.5em;
}
}
form div.element {
margin: 0.5em 0;
}
form label {
display: inline-block;
margin-right: 1em;
font-size: 0.9em;
width: 10em;
}
select, input[type=text], textarea {
width: 20em;
display: inline-block;
}
textarea {
height: 4em;
}
form .description {
font-size: 0.8em;
margin: 0.3em 0 0 0.6em;
}
.description {
display: block;
}
form label.has-feedback:after {
content: '\e85b';
font-family: "ifont";
font-style: normal;
font-weight: normal;
speak: none;
text-decoration: inherit;
width: 1em;
margin-right: .2em;
text-align: center;
/* opacity: .8; */
/* For safety - reset parent styles, that can break glyph codes*/
font-variant: normal;
text-transform: none;
/* fix buttons height, for twitter bootstrap */
line-height: 1em;
/* Animation center compensation - margins should be symmetric */
/* remove if not needed */
margin-left: .2em;
/* you can be more comfortable with increased icons size */
/* font-size: 120%; */
/* Uncomment for 3D effect */
/* text-shadow: 1px 1px 1px rgba(127, 127, 127, 0.3); */
}