_base.scss 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227
  1. /*
  2. DJANGO JET Admin styles
  3. */
  4. @import "globals";
  5. html, body {
  6. margin: 0;
  7. padding: 0;
  8. }
  9. body {
  10. height: 100%;
  11. background: $background-color;
  12. color: $text-color;
  13. font-family: $font;
  14. font-size: $font-size;
  15. text-size-adjust: 100%;
  16. &.non-scrollable {
  17. overflow: hidden;
  18. }
  19. @include for-mobile {
  20. padding-top: 60px;
  21. }
  22. }
  23. /* PAGE STRUCTURE */
  24. #container {
  25. padding: 0 0 0 $sidebar-width;
  26. min-height: 100%;
  27. @include for-mobile {
  28. padding-left: 0;
  29. }
  30. .popup & {
  31. padding-left: 0;
  32. }
  33. }
  34. #content {
  35. padding: 20px;
  36. @include for-phone {
  37. padding: 10px;
  38. }
  39. & > h1 {
  40. display: none;
  41. }
  42. }
  43. #content-main {
  44. float: left;
  45. width: 100%;
  46. @include for-mobile {
  47. float: none;
  48. }
  49. }
  50. #content-related {
  51. float: right;
  52. width: 260px;
  53. position: relative;
  54. margin-right: -300px;
  55. @include for-mobile {
  56. float: none;
  57. width: 100%;
  58. margin-left: 0;
  59. position: static;
  60. }
  61. }
  62. #footer {
  63. clear: both;
  64. padding: 10px;
  65. &:empty {
  66. display: none;
  67. }
  68. }
  69. .dialog-confirm {
  70. display: none;
  71. }
  72. /* COLUMN TYPES */
  73. .colMS {
  74. margin-right: 300px;
  75. @include for-mobile {
  76. margin-right: 0;
  77. }
  78. }
  79. .colSM {
  80. margin-left: 300px;
  81. @include for-mobile {
  82. margin-left: 0;
  83. }
  84. }
  85. .colSM #content-related {
  86. float: left;
  87. margin-right: 0;
  88. margin-left: -300px;
  89. @include for-mobile {
  90. float: none;
  91. margin-left: 0;
  92. }
  93. }
  94. .colSM #content-main {
  95. float: right;
  96. @include for-mobile {
  97. float: none;
  98. }
  99. }
  100. .popup .colM {
  101. width: auto;
  102. }
  103. /* SIDEBAR */
  104. //#content-related {
  105. // background: #f8f8f8;
  106. //}
  107. //
  108. //#content-related .module {
  109. // background: none;
  110. //}
  111. //
  112. //#content-related h3 {
  113. // font-size: 14px;
  114. // color: #666;
  115. // padding: 0 16px;
  116. // margin: 0 0 16px;
  117. //}
  118. //
  119. //#content-related h4 {
  120. // font-size: 13px;
  121. //}
  122. //
  123. //#content-related p {
  124. // padding-left: 16px;
  125. // padding-right: 16px;
  126. //}
  127. //
  128. //#content-related .actionlist {
  129. // padding: 0;
  130. // margin: 16px;
  131. //}
  132. //
  133. //#content-related .actionlist li {
  134. // line-height: 1.2;
  135. // margin-bottom: 10px;
  136. // padding-left: 18px;
  137. //}
  138. //
  139. //#content-related .module h2 {
  140. // background: none;
  141. // padding: 16px;
  142. // margin-bottom: 16px;
  143. // border-bottom: 1px solid #eaeaea;
  144. // font-size: 18px;
  145. // color: #333;
  146. //}
  147. //
  148. //.delete-confirmation form input[type="submit"] {
  149. // background: #ba2121;
  150. // border-radius: 4px;
  151. // padding: 10px 15px;
  152. // color: #fff;
  153. //}
  154. //
  155. //.delete-confirmation form input[type="submit"]:active,
  156. //.delete-confirmation form input[type="submit"]:focus,
  157. //.delete-confirmation form input[type="submit"]:hover {
  158. // background: #a41515;
  159. //}
  160. //
  161. //.delete-confirmation form .cancel-link {
  162. // display: inline-block;
  163. // vertical-align: middle;
  164. // height: 15px;
  165. // line-height: 15px;
  166. // background: #ddd;
  167. // border-radius: 4px;
  168. // padding: 10px 15px;
  169. // color: #333;
  170. // margin: 0 0 0 10px;
  171. //}
  172. //
  173. //.delete-confirmation form .cancel-link:active,
  174. //.delete-confirmation form .cancel-link:focus,
  175. //.delete-confirmation form .cancel-link:hover {
  176. // background: #ccc;
  177. //}
  178. //
  179. @import "jquery-ui/jquery-ui.theme";
  180. @import "select2/layout";
  181. @import "content";
  182. @import "forms";
  183. @import "tables";
  184. @import "messages";
  185. @import "header";
  186. @import "breadcrumbs";
  187. @import "modules";
  188. @import "object-tools";
  189. @import "changeform";
  190. @import "changelist";
  191. @import "sidebar";
  192. @import "relatedpopup";
  193. @import "dashboard";
  194. @import "delete-confirmation";
  195. @import "login";