12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025 |
- @import "globals";
- /* FORM ROWS */
- .form-row {
- overflow: hidden;
- padding: 10px;
- img, input {
- vertical-align: middle;
- }
- label input[type="checkbox"] {
- margin-top: 0;
- vertical-align: 0;
- }
- p {
- padding-left: 0;
- }
- .select2 {
- @include for-phone {
- width: auto !important;
- max-width: 100%;
- }
- }
- }
- .hidden {
- display: none;
- }
- /* FORM LABELS */
- label {
- .required &, &.required {
- font-weight: bold;
- &:after {
- content: "*";
- }
- }
- .form-row.errors & {
- color: $error-text-color;
- }
- }
- /* RADIO BUTTONS */
- form {
- ul.radiolist {
- li {
- list-style-type: none;
- }
- label {
- float: none;
- display: inline;
- }
- input[type="radio"] {
- margin: -2px 4px 0 0;
- padding: 0;
- }
- }
- ul.inline {
- margin-left: 0;
- padding: 0;
- li {
- float: left;
- padding-right: 7px;
- }
- }
- }
- /* ALIGNED FIELDSETS */
- .aligned {
- label {
- display: block;
- padding: 8px 10px 0 0;
- float: left;
- width: 160px;
- word-wrap: break-word;
- line-height: 1;
- @include for-mobile {
- display: block;
- padding: 0 0 0 2px;
- margin-bottom: 8px;
- float: none;
- width: auto;
- }
- }
- label + p {
- padding: 6px 0;
- margin-top: 0;
- margin-bottom: 0;
- margin-left: 170px;
- @include for-mobile {
- margin-left: 0;
- }
- }
- ul label {
- display: inline;
- float: none;
- width: auto;
- }
- .form-row input {
- margin-bottom: 0;
- }
- .vCheckboxLabel {
- float: none;
- width: auto;
- display: inline-block;
- vertical-align: -3px;
- padding: 0 0 5px 0;
- & + p.help {
- margin-top: -4px;
- }
- }
- }
- form .aligned {
- ul {
- margin-left: 160px;
- padding-left: 10px;
- @include for-mobile {
- margin-left: 0;
- padding-left: 0;
- }
- }
- ul.radiolist {
- display: inline-block;
- margin: 0;
- padding: 0;
- }
- p.help {
- clear: left;
- margin-top: 0;
- margin-left: 160px;
- padding-left: 10px;
- @include for-mobile {
- margin-left: 0;
- padding-left: 0;
- }
- }
- label + p.help {
- margin-left: 0;
- padding-left: 0;
- }
- p.help:last-child {
- margin-bottom: 0;
- padding-bottom: 0;
- }
- input + p.help,
- textarea + p.help,
- select + p.help {
- margin-left: 160px;
- padding-left: 10px;
- @include for-mobile {
- margin-left: 0;
- padding-left: 0;
- }
- }
- ul li {
- list-style: none;
- }
- table p {
- margin-left: 0;
- padding-left: 0;
- }
- }
- .colMS .aligned .vLargeTextField, .colMS .aligned .vXMLLargeTextField {
- width: 350px;
- @include for-mobile {
- width: 100%;
- }
- }
- .colM .aligned .vLargeTextField, .colM .aligned .vXMLLargeTextField {
- width: 510px;
- @include for-mobile {
- width: 100%;
- }
- }
- .checkbox-row p.help {
- margin-left: 0;
- padding-left: 0;
- }
- /* FIELDSETS */
- fieldset {
- .field-box {
- float: left;
- margin-right: 20px;
- }
- &.monospace textarea {
- font-family: "Bitstream Vera Sans Mono", Monaco, "Courier New", Courier, monospace;
- }
- }
- /* WIDE FIELDSETS */
- .wide label {
- width: 200px;
- }
- form .wide p, form .wide input + p.help {
- margin-left: 200px;
- @include for-mobile {
- margin-left: 0;
- }
- }
- form .wide p.help {
- padding-left: 38px;
- @include for-mobile {
- padding-left: 0;
- }
- }
- .colM fieldset.wide .vLargeTextField, .colM fieldset.wide .vXMLLargeTextField {
- width: 450px;
- @include for-mobile {
- width: 100%;
- }
- }
- /* COLLAPSED FIELDSETS */
- //fieldset.collapsed * {
- // display: none;
- //}
- //
- //fieldset.collapsed h2, fieldset.collapsed {
- // display: block;
- //}
- //
- //fieldset.collapsed {
- // border: 1px solid #eee;
- // border-radius: 4px;
- // overflow: hidden;
- //}
- //
- //fieldset.collapsed h2 {
- // background: #f8f8f8;
- // color: #666;
- //}
- //
- //fieldset .collapse-toggle {
- // color: #fff;
- //}
- //
- //fieldset.collapsed .collapse-toggle {
- // background: transparent;
- // display: inline;
- // color: #447e9b;
- //}
- /* MONOSPACE TEXTAREAS */
- fieldset.monospace textarea {
- font-family: "Bitstream Vera Sans Mono", Monaco, "Courier New", Courier, monospace;
- }
- /* SUBMIT ROW */
- .submit-row {
- margin: 20px 0;
- overflow: hidden;
- @include for-mobile {
- margin-bottom: 10px;
- }
- @include for-phone {
- padding: 0 10px;
- }
- input {
- &, &:visited, &:hover {
- margin: 0 5px 5px 0;
- padding: 0 20px;
- font-size: 12px;
- @include for-phone {
- display: block;
- width: 100%;
- margin: 0 0 8px 0;
- }
- }
- &.default {
- margin: 0 8px 5px 0;
- @include for-phone {
- display: block;
- width: 100%;
- margin: 0 0 20px 0;
- }
- }
- }
- p {
- margin: 0.3em;
- }
- p.deletelink-box {
- display: block;
- float: right;
- padding: 0;
- margin: 0 5px 5px 0;
- @include for-phone {
- float: none;
- display: block;
- margin: 0 0 8px 0;
- }
- }
- a.deletelink {
- &, &:visited, &:hover {
- display: inline-block;
- background-color: $danger-button-background-color;
- color: $danger-button-text-color;
- border: 0;
- border-radius: 4px;
- height: 32px;
- line-height: 32px;
- outline: 0;
- font-size: 12px;
- font-weight: lighter;
- text-align: center;
- padding: 0 20px;
- text-transform: uppercase;
- box-sizing: border-box;
- transition: background $transitions-duration, box-shadow $transitions-duration, border $transitions-duration;
- @include for-phone {
- display: block;
- width: 100%;
- }
- }
- &:hover, &:focus {
- background-color: $button-hover-background-color;
- color: $button-hover-text-color;
- }
- &:active {
- background-color: $button-active-background-color;
- color: $button-active-text-color;
- }
- }
- }
- body.popup .submit-row {
- overflow: auto;
- }
- /* CUSTOM FORM FIELDS */
- .vSelectMultipleField {
- vertical-align: top;
- }
- .vCheckboxField {
- border: none;
- }
- .vDateField, .vTimeField {
- margin-right: 2px;
- margin-bottom: 4px;
- border-radius: 4px 0 0 4px !important;
- border-right-width: 0 !important;
- #changelist & {
- border-radius: 4px !important;
- border-right-width: 1px !important;
- }
- @include for-width(374px) {
- border-radius: 4px !important;
- border-right-width: 1px !important;
- }
- &-link {
- vertical-align: top;
- display: inline-block;
- @include for-width(374px) {
- display: none;
- }
- span {
- width: 32px;
- height: 32px;
- line-height: 32px !important;
- background-color: $button-background-color;
- color: $button-text-color;
- display: inline-block;
- vertical-align: middle;
- text-align: center;
- border-radius: 0 4px 4px 0;
- }
- &:hover span {
- background-color: $button-hover-background-color;
- color: $button-hover-text-color;
- }
- }
- }
- .vDateField {
- min-width: 6.85em;
- }
- .vTimeField {
- min-width: 4.7em;
- }
- .vDateField-link + .vTimeField {
- margin-left: 10px;
- }
- .vURLField {
- width: 26em;
- @include for-phone {
- width: 100%;
- }
- }
- .vLargeTextField, .vXMLLargeTextField {
- width: 48em;
- @include for-mobile {
- width: 100%;
- }
- }
- .flatpages-flatpage #id_content {
- height: 40.2em;
- }
- .module table .vPositiveSmallIntegerField {
- width: 2.2em;
- }
- .vTextField {
- width: 20em;
- @include for-phone {
- width: 100%;
- }
- }
- .vIntegerField {
- width: 6em;
- }
- .vBigIntegerField {
- width: 10em;
- }
- .vForeignKeyRawIdAdminField {
- width: 5em;
- }
- /* INLINES */
- .inline-group {
- padding: 0;
- background-color: $content-background-color;
- border-radius: 4px;
- border: 0;
- &.compact {
- position: relative;
- min-height: 400px;
- @include for-mobile {
- position: static;
- min-height: 0;
- }
- }
- thead th {
- padding: 8px 10px;
- }
- .aligned label {
- width: 160px;
- }
- > fieldset.module {
- padding: 0;
- }
- }
- .inline-related {
- position: relative;
- h3 {
- margin: 0;
- background: linear-gradient(to top, $content-background-color 0%, $content-contrast-background-color 100%);
- font-weight: bold;
- color: $text-color;
- padding: 20px 30px 0 30px;
- @include for-mobile {
- padding: 20px 20px 0 20px;
- line-height: 2;
- }
- > b {
- margin-right: 10px;
- }
- .inline_label {
- display: inline-block;
- background: $content-contrast2-background-color;
- color: $content-contrast2-text-color;
- margin-right: 10px;
- padding: 4px 8px;
- border-radius: 5px;
- font-size: 10px;
- font-weight: normal;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- max-width: 100%;
- box-sizing: border-box;
- vertical-align: middle;
- @include for-mobile {
- line-height: normal;
- }
- ~ .inlinechangelink, ~ .inlineviewlink {
- font-size: 18px;
- margin-right: 10px;
- vertical-align: middle;
- &:before {
- margin: 0;
- }
- }
- }
- span.delete, .inline-deletelink {
- float: right;
- margin-left: 10px;
- display: inline-block;
- background: $danger-button-background-color;
- color: $danger-button-text-color;
- padding: 4px 8px;
- border-radius: 5px;
- font-size: 10px;
- font-weight: normal;
- vertical-align: middle;
- white-space: nowrap;
- @include for-mobile {
- float: none;
- margin-left: 0;
- line-height: normal;
- }
- label {
- font-size: 10px;
- vertical-align: middle;
- &:before {
- font-size: 10px;
- color: $danger-button-text-color;
- vertical-align: middle;
- }
- }
- }
- }
- fieldset {
- margin: 0;
- background: #fff;
- width: 100%;
- &.module {
- background-color: inherit;
- box-sizing: border-box;
- h3 {
- margin: 0;
- padding: 2px 5px 3px 5px;
- font-size: 11px;
- text-align: left;
- font-weight: bold;
- background: #bcd;
- color: #fff;
- }
- }
- }
- }
- .inline-group.compact .inline-related h3 {
- background: transparent;
- }
- .inline-related.tabular fieldset.module {
- padding: 0;
- table {
- width: 100%;
- }
- }
- .inline-navigation {
- position: absolute;
- top: 0;
- bottom: 0;
- left: 0;
- width: 200px;
- background: $content-contrast-background-color;
- @include for-mobile {
- position: relative;
- width: auto;
- top: auto;
- bottom: auto;
- left: auto;
- }
- &-top {
- position: absolute;
- top: 0;
- right: 0;
- left: 0;
- height: 50px;
- background: linear-gradient(to bottom, $content-background-color 25%, transparentize($content-contrast-background-color, 1) 100%);
- z-index: 1;
- }
- &-bottom {
- position: absolute;
- right: 0;
- bottom: 0;
- left: 0;
- height: 50px;
- background: linear-gradient(to top, $content-background-color 25%, transparentize($content-contrast-background-color, 1) 100%);
- z-index: 1;
- @include for-mobile {
- display: none;
- }
- }
- .add-row {
- position: absolute;
- top: 10px;
- right: 0;
- left: 0;
- padding: 0 16px !important;
- z-index: 1;
- }
- &-content {
- position: absolute;
- top: 0;
- right: 0;
- bottom: 0;
- left: 0;
- padding: 40px 0 20px 0;
- overflow-y: auto;
- -webkit-overflow-scrolling: touch;
- @include for-mobile {
- position: static;
- top: auto;
- right: auto;
- bottom: auto;
- left: auto;
- padding-bottom: 10px;
- max-height: 200px;
- }
- }
- &-item {
- &, &:visited, &:hover {
- display: block;
- white-space: nowrap;
- text-overflow: ellipsis;
- overflow: hidden;
- padding: 8px 10px 8px 20px;
- color: $dim-text-color;
- transition: background-color $transitions-duration, color $transitions-duration;
- }
- body.no-touchevents &:hover, &:active {
- background: $button-hover-background-color;
- color: $button-hover-text-color;
- }
- &.empty {
- display: none;
- }
- &.selected {
- background: transparent;
- color: $text-color;
- font-weight: bold;
- cursor: default;
- }
- &.delete {
- text-decoration: line-through;
- }
- }
- }
- .inline-group {
- .tabular {
- overflow-x: auto;
- -webkit-overflow-scrolling: touch;
- table {
- box-shadow: none;
- margin: 0;
- }
- thead th, thead td {
- background: linear-gradient(to top, $content-background-color 0%, $content-contrast-background-color 100%);
- font-weight: bold;
- color: $text-color;
- a:link, a:visited {
- color: $text-color;
- }
- }
- td.original {
- white-space: nowrap;
- width: 1px;
- padding-right: 0;
- &.empty {
- padding: 0;
- }
- p {
- padding: 0;
- .inlinechangelink, .inlineviewlink {
- font-size: 18px;
- margin: 0;
- vertical-align: middle;
- }
- }
- }
- tr.add-row td {
- padding: 8px 10px;
- border-bottom: 1px solid #eee;
- }
- }
- .compact {
- display: none;
- margin-left: 200px;
- @include for-mobile {
- margin-left: 0;
- }
- &.selected {
- display: block;
- }
- }
- ul.tools {
- padding: 0;
- margin: 0;
- list-style: none;
- li {
- display: inline;
- padding: 0 5px;
- }
- }
- div.add-row, .tabular tr.add-row td {
- padding: 16px;
- border: 0;
- }
- ul.tools a.add, div.add-row a, .tabular tr.add-row td a {
- font-size: 12px;
- font-weight: bold;
- vertical-align: middle;
- &:before {
- @include font-icon;
- content: $icon-add;
- vertical-align: middle;
- margin-right: 4px;
- }
- }
- }
- .empty-form {
- display: none;
- }
- /* RELATED FIELD ADD ONE / LOOKUP */
- form .related-widget-wrapper ul {
- display: inline-block;
- margin-left: 0;
- padding-left: 0;
- }
- .clearable-file-input input {
- margin-top: 0;
- }
- .changeform-navigation {
- display: none;
- float: left;
- margin-bottom: 20px;
- @include for-mobile {
- margin-bottom: 5px;
- margin-right: 10px;
- }
- &.initialized {
- display: block;
- }
- &-button {
- font-weight: bold;
- vertical-align: middle;
- }
- }
- .related-widget-wrapper-link {
- opacity: 0.5;
- transition: opacity $transitions-duration;
- &:link {
- opacity: 1;
- }
- }
- .add-related, .add-another, .change-related, .delete-related, .related-lookup {
- display: none;
- &.initialized {
- display: inline-block;
- }
- .form-row & {
- margin-top: 10px;
- }
- }
- .related-widget-wrapper-icon {
- &:before {
- @include font-icon;
- font-size: 20px;
- vertical-align: middle;
- }
- .add-related &, .add-another & {
- &:before {
- content: $icon-add3;
- }
- }
- .change-related & {
- &:before {
- content: $icon-edit;
- }
- }
- .delete-related & {
- &:before {
- content: $icon-cross;
- }
- }
- }
- .related-lookup {
- margin-left: 6px;
- &:before {
- @include font-icon;
- font-size: 20px;
- vertical-align: middle;
- content: $icon-search;
- }
- }
- /* TABS */
- .changeform-tabs {
- margin: 0;
- padding: 0 0 0 16px;
- border-bottom: 2px solid $background-color;
- background-color: $content-background-color;
- border-radius: 4px 4px 0 0;
- @include for-mobile {
- padding: 10px 10px 5px 10px;
- }
- &-item {
- display: inline-block;
- padding: 0;
- line-height: normal;
- a, a:hover, a:visited {
- display: inline-block;
- padding: 12px 4px;
- margin: 0 8px 0 0;
- border-bottom: 2px solid transparent;
- position: relative;
- top: 2px;
- color: $dim-text-color;
- font-weight: bold;
- font-size: 11px;
- text-transform: uppercase;
- transition: background-color $fast-transitions-duration,
- color $fast-transitions-duration,
- border-color $transitions-duration;
- @include for-mobile {
- margin: 0 5px 5px 0;
- padding: 8px 12px;
- top: auto;
- border: 0;
- border-radius: 5px;
- font-weight: normal;
- background: $button-background-color;
- color: $button-text-color;
- }
- }
- a:hover {
- color: $text-color;
- }
- &.errors {
- & a, & a:hover, & a:visited {
- border-color: $tab-error-border-color;
- @include for-mobile {
- background: $danger-button-background-color;
- color: $danger-button-text-color;
- }
- }
- }
- &.selected {
- & a, & a:hover, & a:visited {
- color: $text-color;
- border-color: $tab-selected-border-color;
- @include for-mobile {
- background: $button-hover-background-color;
- color: $button-hover-text-color;
- }
- }
- }
- }
- ~ .module, ~ .inline-group {
- display: none !important;
- border-radius: 0 0 4px 4px;
- &.selected {
- display: block !important;
- }
- }
- }
- body.change-form #content-main > form > div {
- > .module, > .inline-group {
- display: none;
- &.initialized {
- display: block;
- }
- }
- }
|