general.less 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. //some page-content variables
  2. @content-bg: #FFF;
  3. @content-header-border: #E2E2E2;
  4. @content-header-color: #2679B5;
  5. @content-header-small-color: #8089A0;
  6. html {
  7. min-height: 100%;
  8. position: relative;
  9. }
  10. body {
  11. background-color: @body-background;
  12. min-height: 100%;
  13. padding-bottom: 0;
  14. font-family: 'Open Sans';
  15. font-size: @base-font-size;
  16. color: @text-color;
  17. line-height: 1.5;
  18. }
  19. .main-container {
  20. //this is the white page background, used especially when inside ".container"
  21. //it will expand all the way down to fill all the page space
  22. &:before {
  23. display: block;
  24. content: "";
  25. position: absolute;
  26. z-index: -2;
  27. width: 100%;
  28. max-width: inherit;
  29. bottom: 0;
  30. top: 0;
  31. background-color: #FFF;
  32. }
  33. &.container {
  34. &, .rtl & {padding-left: 0; padding-right: 0;}
  35. &:before {
  36. .box-shadow(~"0 0 0 1px rgba(0,0,0,0.1)");
  37. width: inherit;
  38. //we use above+this instead of min-width, for better results when we disable responsiveness
  39. @media (max-width: @screen-xs-max) {
  40. .box-shadow(~"none");
  41. width: 100%;
  42. }
  43. }
  44. }
  45. }
  46. .main-content {
  47. .clearfix;
  48. margin-left: 0;
  49. min-height: 100%;
  50. padding: 0;
  51. .sidebar + & {
  52. margin-left: @sidebar-width;
  53. }
  54. }
  55. .page-content {
  56. background-color: @content-bg;
  57. position: relative;
  58. margin: 0;
  59. padding: @page-content-padding-top 20px 24px;
  60. }
  61. .page-header {
  62. margin:0 0 12px;
  63. border-bottom:1px dotted @content-header-border;
  64. padding-bottom: 16px;
  65. padding-top: 7px;
  66. h1 {
  67. padding: 0;
  68. margin: 0 8px;
  69. font-size: @font-size-content-header;
  70. font-weight: lighter;
  71. color: @content-header-color;
  72. small {
  73. margin: 0 6px;
  74. font-size: @font-size-content-header-small;
  75. font-weight: normal;
  76. color: @content-header-small-color;
  77. }//small
  78. }//h1
  79. }
  80. .ajax-loading-overlay {
  81. position: absolute;
  82. z-index: 1999;
  83. left: 0;
  84. right: 0;
  85. top: 0;
  86. bottom: 0;
  87. background-color: rgba(255, 255, 255, 0.5);
  88. filter: ~"progid:DXImageTransform.Microsoft.gradient( startColorstr='#80FFFFFF', endColorstr='#80FFFFFF',GradientType=0 )";
  89. > .ajax-loading-icon {
  90. position: relative;
  91. left: 8px;
  92. top: 8px;
  93. }
  94. &.content-loaded {
  95. background-color: rgba(255, 255, 255, 0.4);
  96. filter: ~"progid:DXImageTransform.Microsoft.gradient( startColorstr='#66FFFFFF', endColorstr='#66FFFFFF',GradientType=0 )";
  97. }
  98. &.almost-loaded {//just waiting for scripts
  99. background-color: rgba(255, 255, 255, 0.3);
  100. filter: ~"progid:DXImageTransform.Microsoft.gradient( startColorstr='#4CFFFFFF', endColorstr='#4CFFFFFF',GradientType=0 )";
  101. }
  102. &.ajax-overlay-body {
  103. position: fixed;
  104. z-index: 2999;
  105. > .ajax-loading-icon {
  106. left: 8px;
  107. top: 8px;
  108. }
  109. }
  110. }