other.less 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226
  1. @ace-settings-box-border: #FFB34B;
  2. // other page sections
  3. //the button which scrolls page up
  4. .btn-scroll-up {
  5. border-width: 0;
  6. //position: absolute;
  7. position: fixed;
  8. right: 2px;
  9. z-index: 99;
  10. .transition-duration(0.3s);
  11. //.transition-property(opacity, bottom);
  12. .opacity(0);
  13. bottom: -24px;
  14. visibility: hidden;
  15. &.display {
  16. .opacity(0.7);
  17. bottom: 2px;
  18. visibility: visible;
  19. }
  20. &:hover {
  21. .opacity(1);
  22. }
  23. &:focus {
  24. outline: none;
  25. }
  26. }
  27. .enable_container_btn_scroll_up() when(@enable-container = true) {
  28. @media (min-width: @screen-sm-min) {
  29. .main-container.container > .btn-scroll-up {
  30. right: auto;
  31. margin-left: @container-sm - 30;
  32. }
  33. }
  34. @media (min-width: @screen-md-min) {
  35. .main-container.container > .btn-scroll-up {
  36. right: auto;
  37. margin-left: @container-md - 30;
  38. }
  39. }
  40. @media (min-width: @screen-lg-min) {
  41. .main-container.container > .btn-scroll-up {
  42. right: auto;
  43. margin-left: @container-lg - 30;
  44. }
  45. }
  46. }
  47. .enable_container_btn_scroll_up();
  48. .enable_settings_box() when(@enable-settings-box = true) {
  49. .ace-settings-container {
  50. position: absolute;
  51. right: 0;
  52. top: auto;
  53. z-index: 12;
  54. }
  55. .btn.btn-app.ace-settings-btn {
  56. float: left;
  57. display: block;
  58. text-align: center;
  59. border-radius: 6px 0 0 6px;
  60. opacity: 0.55;
  61. vertical-align: top;
  62. margin: 0;
  63. &:hover , &.open {
  64. opacity: 1;
  65. }
  66. &.btn-xs {
  67. width: 42px;
  68. }
  69. }
  70. .ace-settings-box {
  71. display: block;
  72. float: left;
  73. max-width: 0;
  74. max-height: 0;
  75. overflow: hidden;
  76. padding: 0;
  77. .transform(~"translate(0,0)");//needed, don't know why!
  78. background-color: #FFF;
  79. border: 0 solid @ace-settings-box-border;
  80. .transition(~"max-width 0.25s linear 0s, max-height 0s linear 0.25s, padding 0s linear 0.25s, border-width 0s linear 0.25s");
  81. &.open {
  82. max-width: 320px;
  83. max-height: 1000px;
  84. padding: 0 14px;
  85. border-width: 2px;
  86. -webkit-transition-delay: 0s;
  87. -moz-transition-delay: 0s;
  88. -o-transition-delay: 0s;
  89. transition-delay: 0s;
  90. .ace-settings-item {
  91. z-index: auto;
  92. min-width: 140px;
  93. }
  94. }
  95. .ace-settings-item {
  96. margin: 6px 0;
  97. color: #444;
  98. max-height: 24px;
  99. position: relative;
  100. z-index: -1;
  101. white-space: nowrap;
  102. > label.lbl {
  103. font-size: @base-font-size;
  104. }
  105. }
  106. }
  107. @media (max-width: @screen-xs) {
  108. .ace-settings-container {
  109. text-align: right;
  110. }
  111. .ace-settings-box {
  112. float: none !important;//to override .RTL's
  113. text-align: left;
  114. }
  115. .btn.ace-settings-btn {
  116. float: none !important;//to override .RTL's
  117. display: inline-block;
  118. }
  119. }
  120. @media (max-width: @screen-tiny) {
  121. .ace-settings-box > .clearfix > .pull-left, .ace-settings-box > .clearfix > .pull-right {
  122. float: none !important;
  123. }
  124. }
  125. }
  126. .enable_settings_box();
  127. .grid2, .grid3, .grid4 {
  128. .box-sizing(border-box);
  129. display: block;
  130. margin: 0 1%;
  131. padding: 0 2%;
  132. float: left;
  133. border-left: 1px solid #E3E3E3;
  134. &:first-child {
  135. border-left: none;
  136. }
  137. }
  138. .grid2 {
  139. width: 48%;
  140. }
  141. .grid3 {
  142. width: 31.33%;
  143. }
  144. .grid4 {
  145. width: 23%;
  146. padding: 0 1%;
  147. }
  148. .draggable-placeholder {
  149. //for when dragging items around
  150. border: 2px dashed #D9D9D9 !important;
  151. background-color: #F7F7F7 !important;
  152. }
  153. // scrollbar
  154. //.slimScrollBar { .border-radius(0) !important; }
  155. //.slimScrollRail { .border-radius(0) !important; }
  156. // a few small third party css files put here to reduce http file requests
  157. // jquery.easy-pie-chart.css
  158. .easyPieChart, .easy-pie-chart {
  159. position: relative;
  160. text-align: center;
  161. canvas {
  162. position: absolute;
  163. top: 0;
  164. left: 0;
  165. }
  166. }
  167. .knob-container {
  168. direction: ltr;
  169. text-align: left;
  170. }