This repository has been archived on 2025-06-21. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
suitedesk/themes/zuitedesk/css/forms.css

403 lines
7.4 KiB
CSS

/**
* @file
* Form Styling.
*/
label {
margin-bottom: 0;
white-space: normal;
}
.form-item {
margin-top: .6em;
max-width: 100% !important;
white-space: nowrap;
}
/* Form items styles exceptions */
.container-inline-date label {
display: block;
}
#book-outline .form-item,
#storm-attribute-list-form .form-item,
form[id="node-form"] div.container-inline .form-item,
form[id$="-list-filter"] div.container-inline .form-item {
margin-top: 0;
}
.form-item input.error,
.form-item textarea.error,
.form-item select.error {
color: #a94442;
border: 2px solid #a94442;
background-color: #f2dede !important;
}
.form-item .description {
margin-bottom: 0;
white-space: normal;
}
.form-required {
color: #f00;
}
/*
* Buttons.
*/
.btn {
word-wrap: normal;
margin-top: .5em;
margin-right: 1em;
}
.btn span {
margin-left: -10px;
}
.popover .btn {
margin: 0;
}
/*
* Forms and fieldsets with inner tables.
*/
body[class*=" section-node-"] form table.table td:not(.content-multiple-drag),
form[id$="-list-filter"] fieldset table.table td {
border-width: 0 !important;
padding: 0 1em 0 0 !important;
float: left;
}
/* Exceptions */
form table#upload-attachments td,
form table#webform-components td,
form#diff-node-revisions table.table td {
border-top-width: 1px !important;
padding: 5px !important;
float: none;
}
body.section-admin form table.table td {
padding: 5px !important;
} /*
.form-item .description {
font-size: 75%;
line-height: 150%;
margin-bottom: 0.75em;
color: #898989;
}
.form-item .description p {
text-align: justify;
}
.form-item label {
display: block;
font-weight: bold;
}
.form-item label.option {
display: inline;
font-weight: normal;
}
.form-checkboxes,
.form-radios {
margin: 1em 0;
}
.form-checkboxes,
.form-radios {
margin-left: 1em;
} */
.form-radios .form-item,
.form-checkboxes .form-item {
margin: 0;
}
.form-radios .form-item label,
.form-checkboxes .form-item label {
font-weight: normal;
white-space: normal;
}
.form-radios .form-item input,
.form-checkboxes .form-item input {
margin: 0 .15em;
}
/*
* Drupal new user form.
*/ /*
body.page-admin-user-user-create #page-title,
body.page-admin-user-user-create #page-title + div.help,
body.page-admin-user-user-notify #page-title,
body.page-admin-user-user-notify #page-title + div.help {
display: none;
} */
#edit-pass-pass1,
#edit-pass-pass2 {
width: auto;
}
/* Password strength indicator */
span.password-strength {
visibility: hidden;
font-size: 0.85em;
} /*
input.password-field {
margin-right: 10px;
}
div.password-description {
padding: 0 2px;
margin: 4px 0 0 0;
font-size: 0.85em;
max-width: 500px;
}
div.password-description ul {
margin-bottom: 0;
}
.password-parent {
margin: 0 0 0 0;
} */
/* Password confirmation checker */ /*
input.password-confirm {
margin-right: 10px;
}
.confirm-parent {
margin: 5px 0 0 0;
} */
span.password-confirm {
visibility: hidden;
font-size: 0.85em;
} /*
span.password-confirm span {
font-weight: normal;
} */
#edit-notify-wrapper {
padding-left: 70px;
background: transparent url(../images/notify.png) no-repeat 8px 4px;
min-height: 52px;
}
/*
* Node form.
*/
.node-form .content-add-more {
margin-top: -1em;
} /*
.node-form .form-text {
display: block;
width: 95%;
}
.node-form .container-inline .form-text {
display: inline;
width: auto;
}
.node-form .standard {
clear: both;
}
.node-form textarea {
display: block;
width: 95%;
}
.node-form .attachments fieldset {
float: none;
display: block;
} */
/*
* Teaser checkbox.
*/
.teaser-checkbox {
padding-top: 1px;
} /*
div.teaser-button-wrapper {
float: right;
padding-right: 5%;
margin: 0;
} */
.teaser-checkbox div.form-item {
float: right;
margin: .45em 1em 0;
padding: 0;
}
.teaser-checkbox div.form-item label {
font-weight: normal;
} /*
textarea.teaser {
display: none;
} */
/*
* Fieldsets.
*/
fieldset {
margin: 1em 0;
padding: .5em 1em;
border: 2px solid #ddd;
}
form > div > fieldset {
margin-top: 0;
}
fieldset legend {
width: auto;
padding: 0 .3em;
border: 0;
font-size: 1.2em;
color: #3c8dbc;
margin: 0;
display: block;
max-width: 94%;
}
fieldset legend a {
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
}
/*
* Collapsible fieldsets.
*/
html.js fieldset.collapsed {
border-bottom-color: transparent;
border-left-color: transparent;
border-right-color: transparent;
}
html.ie.js fieldset.collapsed {
height: 2em;
}
html.js fieldset.collapsed * {
display: none;
}
html.js fieldset.collapsed legend {
display: block;
}
html.js fieldset.collapsible legend a {
padding-left: .7em;
background: url(../images/menu-expanded.gif) no-repeat 0 50%;
}
html.js fieldset.collapsed legend a {
background: url(../images/menu-collapsed.gif) no-repeat 0 50%;
}
/* Note: IE-only fix due to '* html' (breaks Konqueror otherwise). */
* html.js fieldset.collapsed legend,
* html.js fieldset.collapsed legend *,
* html.js fieldset.collapsed table * {
display: inline;
}
/* For Safari 2 to prevent collapsible fieldsets containing tables from dissapearing due to tableheader.js. */
html.js fieldset.collapsible {
position: relative;
}
html.js fieldset.collapsible legend a {
display: block;
}
/* Avoid jumping around due to margins collapsing into collapsible fieldset border */
html.js fieldset.collapsible .fieldset-wrapper {
overflow: hidden;
}
/*
* Autocomplete styles (suggestion list and animated throbber).
*/
#autocomplete {
position: absolute;
border: 1px solid;
overflow: hidden;
z-index: 100;
}
#autocomplete ul {
margin: 0;
padding: 0;
list-style: none;
}
#autocomplete li {
background: #fff;
color: #000;
white-space: pre;
cursor: default;
}
#autocomplete li.selected {
background: #0072b9;
color: #fff;
}
html.js input.form-autocomplete {
background-image: url(../images/throbber.gif);
background-repeat: no-repeat;
background-position: 99% 9px;
}
html.js input.throbbing {
background-position: 99% -121px;
}
/* Input autocomplete in CKEditor dialog */
html.js .cke_dialog_body input.form-autocomplete {
background-position: 99% 4px;
}
html.js .cke_dialog_body input.throbbing {
background-position: 99% -126px;
}
/*
* Resizable text areas.
*/
.resizable-textarea {
width: 99.9%;
}
.resizable-textarea .grippie {
height: 9px;
overflow: hidden;
background: #eee url(../images/grippie.png) no-repeat center 2px;
border: 1px solid #ddd;
border-top-width: 0;
cursor: s-resize;
}
html.js .resizable-textarea textarea {
margin-bottom: 0;
width: 100%;
display: block;
}
/*
* Text form fields.
*/
.node-form .text {
width: 100%;
}
/*
* File form fields.
*/
.filefield-element {
margin: -5px 0 0;
}
.filefield-element .form-item {
float: right;
}
.filefield-element .filesize {
float: left;
margin-right: 1em;
}
.filefield-element .filemime {
font-family: Menlo,Monaco,Consolas,"Courier New",monospace;
display: inline;
}
.filefield-element .widget-preview {
width: 72%;
max-width: 100%;
}
.filefield-element .widget-preview .filefield-file {
word-break: break-all;
}
@media (max-width: 899px) {
.filefield-element .widget-preview {
width: 92%;
}
.filefield-element .widget-edit {
max-width: 90%;
}
}
.filefield-element .widget-edit .form-item,
.filefield-element .description {
margin-bottom: 0;
}
div.filefield-upload input[type="file"] {
display: block;
width: 140%;
overflow: hidden;
}
/*
* "Autosave" module.
*/
#autosave-status {
font-size: 85%;
line-height: 2em;
text-align: center;
}