Няма описание
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  1. // The main form.
  2. // Most of the styles for display of the main form come from the display
  3. // controller (lightbox and envelope are the two built in options).
  4. div.DTE_Body {
  5. padding: 52px 0; // space for hte header and footer which are position: absolute
  6. div.DTE_Body_Content {
  7. position: relative;
  8. overflow: auto;
  9. div.DTE_Form_Info {
  10. padding: 1em 1em 0 1em;
  11. margin: 0;
  12. }
  13. div.DTE_Field {
  14. position: relative;
  15. zoom: 1;
  16. clear: both;
  17. padding: 5px 20%;
  18. border: 1px solid transparent;
  19. &:after {
  20. display: block;
  21. content: ".";
  22. height: 0;
  23. line-height: 0;
  24. clear: both;
  25. visibility: hidden;
  26. }
  27. &:hover {
  28. background-color: #f9f9f9;
  29. border: 1px solid #f3f3f3;
  30. }
  31. >label {
  32. float: left;
  33. width: 40%;
  34. padding-top: 6px;
  35. }
  36. >div.DTE_Field_Input {
  37. float: right;
  38. width: 60%;
  39. }
  40. // Field in error state
  41. &.DTE_Field_StateError { }
  42. &.full {
  43. padding: 5px 0 5px 20%;
  44. >label {
  45. width: 30%;
  46. }
  47. >div.DTE_Field_Input {
  48. width: 70%;
  49. }
  50. }
  51. &.block {
  52. >div.DTE_Field_Input {
  53. float: none;
  54. clear: both;
  55. width: 100%;
  56. }
  57. }
  58. }
  59. }
  60. }
  61. html[dir="rtl"] {
  62. div.DTE_Body div.DTE_Body_Content div.DTE_Field {
  63. > label {
  64. float: right;
  65. }
  66. >div.DTE_Field_Input {
  67. float: left;
  68. }
  69. }
  70. div.DTE div.DTE_Form_Buttons button {
  71. float: left;
  72. }
  73. }
  74. // iPad in portrait
  75. @media only screen
  76. and (max-width : 768px) {
  77. div.DTE_Body {
  78. div.DTE_Body_Content {
  79. div.DTE_Field {
  80. padding: 5px 10%;
  81. &.full {
  82. padding: 5px 0 5px 10%;
  83. >label {
  84. width: 35.5%;
  85. }
  86. >div.DTE_Field_Input {
  87. width: 64.5%;
  88. }
  89. }
  90. &.block {
  91. >div.DTE_Field_Input {
  92. width: 100%;
  93. }
  94. }
  95. }
  96. }
  97. }
  98. }
  99. @media only screen
  100. and (max-width : 640px) {
  101. div.DTE_Body {
  102. div.DTE_Body_Content {
  103. div.DTE_Field {
  104. padding: 5px 0;
  105. &.full {
  106. padding: 5px 0%;
  107. >label {
  108. width: 40%;
  109. }
  110. >div.DTE_Field_Input {
  111. width: 60%;
  112. }
  113. }
  114. &.block {
  115. >div.DTE_Field_Input {
  116. width: 100%;
  117. }
  118. }
  119. }
  120. }
  121. }
  122. }
  123. // For devices with smaller screens, the fields should be shown stacked
  124. @media only screen
  125. and (max-width : 580px) {
  126. div.DTE_Body {
  127. div.DTE_Body_Content {
  128. div.DTE_Field {
  129. position: relative;
  130. zoom: 1;
  131. clear: both;
  132. padding: 5px 0;
  133. >label {
  134. float: none;
  135. width: auto;
  136. padding-top: 0;
  137. }
  138. >div.DTE_Field_Input {
  139. float: none;
  140. width: auto;
  141. }
  142. &.full,
  143. &.block {
  144. padding: 5px 0;
  145. >label,
  146. >div.DTE_Field_Input {
  147. width: 100%;
  148. }
  149. }
  150. }
  151. }
  152. }
  153. }