_base.scss 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. /*
  2. DJANGO JET Admin styles
  3. */
  4. @import "globals";
  5. html, body {
  6. margin: 0;
  7. padding: 0;
  8. }
  9. html {
  10. font-size: 87.5%;
  11. @include for-mobile {
  12. font-size: 100%;
  13. }
  14. }
  15. body {
  16. height: 100%;
  17. background: $background-color;
  18. color: $text-color;
  19. font-family: $font;
  20. text-size-adjust: 100%;
  21. @include for-mobile {
  22. padding-top: $sidebar-header-height;
  23. }
  24. &.non-scrollable {
  25. overflow: hidden;
  26. }
  27. &.popup {
  28. @include for-mobile {
  29. padding-top: 0;
  30. }
  31. }
  32. }
  33. /* PAGE STRUCTURE */
  34. #container {
  35. padding: 0 0 0 $sidebar-width;
  36. min-height: 100%;
  37. @include for-mobile {
  38. padding-left: 0;
  39. }
  40. .popup & {
  41. padding-left: 0;
  42. }
  43. }
  44. #content {
  45. padding: 20px;
  46. @include for-phone {
  47. padding: 10px;
  48. }
  49. & > h1 {
  50. display: none;
  51. }
  52. }
  53. #content-main {
  54. float: left;
  55. width: 100%;
  56. @include for-mobile {
  57. float: none;
  58. }
  59. }
  60. #content-related {
  61. float: right;
  62. width: 260px;
  63. position: relative;
  64. margin-right: -300px;
  65. @include for-mobile {
  66. float: none;
  67. width: 100%;
  68. margin-left: 0;
  69. position: static;
  70. }
  71. }
  72. #footer {
  73. clear: both;
  74. padding: 10px;
  75. &:empty {
  76. display: none;
  77. }
  78. }
  79. .dialog-confirm {
  80. display: none;
  81. }
  82. /* COLUMN TYPES */
  83. .colMS {
  84. margin-right: 300px;
  85. @include for-mobile {
  86. margin-right: 0;
  87. }
  88. }
  89. .colSM {
  90. margin-left: 300px;
  91. @include for-mobile {
  92. margin-left: 0;
  93. }
  94. }
  95. .colSM #content-related {
  96. float: left;
  97. margin-right: 0;
  98. margin-left: -300px;
  99. @include for-mobile {
  100. float: none;
  101. margin-left: 0;
  102. }
  103. }
  104. .colSM #content-main {
  105. float: right;
  106. @include for-mobile {
  107. float: none;
  108. }
  109. }
  110. .popup .colM {
  111. width: auto;
  112. }
  113. @import "jquery-ui/jquery-ui.theme";
  114. @import "select2/layout";
  115. @import "content";
  116. @import "forms";
  117. @import "tables";
  118. @import "messages";
  119. @import "header";
  120. @import "breadcrumbs";
  121. @import "modules";
  122. @import "object-tools";
  123. @import "changeform";
  124. @import "changelist";
  125. @import "sidebar";
  126. @import "relatedpopup";
  127. @import "dashboard";
  128. @import "delete-confirmation";
  129. @import "login";