| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188 |
-
-
- // The main form.
- // Most of the styles for display of the main form come from the display
- // controller (lightbox and envelope are the two built in options).
- div.DTE_Body {
- padding: 52px 0; // space for hte header and footer which are position: absolute
-
- div.DTE_Body_Content {
- position: relative;
- overflow: auto;
-
- div.DTE_Form_Info {
- padding: 1em 1em 0 1em;
- margin: 0;
- }
-
- div.DTE_Field {
- position: relative;
- zoom: 1;
-
- clear: both;
- padding: 5px 20%;
- border: 1px solid transparent;
-
- &:after {
- display: block;
- content: ".";
- height: 0;
- line-height: 0;
- clear: both;
- visibility: hidden;
- }
-
- &:hover {
- background-color: #f9f9f9;
- border: 1px solid #f3f3f3;
- }
-
- >label {
- float: left;
- width: 40%;
- padding-top: 6px;
- }
-
- >div.DTE_Field_Input {
- float: right;
- width: 60%;
- }
-
- // Field in error state
- &.DTE_Field_StateError { }
-
- &.full {
- padding: 5px 0 5px 20%;
-
- >label {
- width: 30%;
- }
-
- >div.DTE_Field_Input {
- width: 70%;
- }
- }
-
- &.block {
- >div.DTE_Field_Input {
- float: none;
- clear: both;
- width: 100%;
- }
- }
- }
- }
- }
-
- html[dir="rtl"] {
- div.DTE_Body div.DTE_Body_Content div.DTE_Field {
- > label {
- float: right;
- }
-
- >div.DTE_Field_Input {
- float: left;
- }
- }
-
- div.DTE div.DTE_Form_Buttons button {
- float: left;
- }
- }
-
- // iPad in portrait
- @media only screen
- and (max-width : 768px) {
- div.DTE_Body {
- div.DTE_Body_Content {
- div.DTE_Field {
- padding: 5px 10%;
-
- &.full {
- padding: 5px 0 5px 10%;
-
- >label {
- width: 35.5%;
- }
-
- >div.DTE_Field_Input {
- width: 64.5%;
- }
- }
-
- &.block {
- >div.DTE_Field_Input {
- width: 100%;
- }
- }
- }
- }
- }
- }
-
- @media only screen
- and (max-width : 640px) {
- div.DTE_Body {
- div.DTE_Body_Content {
- div.DTE_Field {
- padding: 5px 0;
-
- &.full {
- padding: 5px 0%;
-
- >label {
- width: 40%;
- }
-
- >div.DTE_Field_Input {
- width: 60%;
- }
- }
-
- &.block {
- >div.DTE_Field_Input {
- width: 100%;
- }
- }
- }
- }
- }
- }
-
- // For devices with smaller screens, the fields should be shown stacked
- @media only screen
- and (max-width : 580px) {
- div.DTE_Body {
- div.DTE_Body_Content {
- div.DTE_Field {
- position: relative;
- zoom: 1;
-
- clear: both;
- padding: 5px 0;
-
- >label {
- float: none;
- width: auto;
- padding-top: 0;
- }
-
- >div.DTE_Field_Input {
- float: none;
- width: auto;
- }
-
- &.full,
- &.block {
- padding: 5px 0;
-
- >label,
- >div.DTE_Field_Input {
- width: 100%;
- }
- }
- }
- }
- }
- }
|