utility.less 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263
  1. .lighter { font-weight: lighter; }
  2. .bolder { font-weight: bolder; }
  3. .inline { display: inline-block !important; }
  4. .block { display: block !important; }
  5. .center , .align-center{ text-align: center !important; }
  6. .align-left { text-align: left !important; }
  7. .align-right { text-align: right !important; }
  8. .middle { vertical-align: middle; }
  9. .align-middle { vertical-align: middle !important; }
  10. .align-top { vertical-align: top !important; }
  11. .align-bottom { vertical-align: bottom !important; }
  12. .position-relative, .pos-rel { position: relative; }
  13. .position-absolute, .pos-abs { position: absolute; }
  14. .no-float { float: none !important; }
  15. .line-height-normal { line-height: normal !important; }
  16. .line-height-0 { line-height: 0 !important; }
  17. .line-height-1 { line-height: 1 !important; }
  18. .line-height-125 { line-height: 1.25 !important; }
  19. .line-height-150 { line-height: 1.5 !important; }
  20. .dark { color: @ace-dark !important; }
  21. .white { color: @ace-white !important; }
  22. .red { color: @ace-red !important; }
  23. .red2 { color: @ace-red2 !important; }
  24. .light-red { color: @ace-light-red !important; }
  25. .blue { color: @ace-blue !important; }
  26. .light-blue { color: @ace-light-blue !important; }
  27. .green { color: @ace-green !important; }
  28. .light-green { color: @ace-light-green !important;}
  29. .orange { color: @ace-orange !important; }
  30. .orange2 { color: @ace-orange2 !important; }
  31. .light-orange {color: @ace-light-orange !important;}
  32. .purple { color: @ace-purple !important; }
  33. .pink { color: @ace-pink !important; }
  34. .pink2 { color: @ace-pink2 !important; }
  35. .brown { color: @ace-brown !important; }
  36. .grey { color: @ace-grey !important; }
  37. .light-grey { color: @ace-light-grey !important; }
  38. .biggerX (@index) when (@index < 310) {
  39. .bigger-@{index} { font-size: unit(@index,~"%") !important; }
  40. .biggerX(@index + 10);
  41. }
  42. .biggerX(110);
  43. .bigger-115 { font-size: 115% !important;}
  44. .bigger-125 { font-size: 125% !important;}
  45. .bigger-175 { font-size: 175% !important; }
  46. .bigger-225 { font-size: 225% !important; }
  47. .bigger-275 { font-size: 275% !important; }
  48. .smallerX (@index) when (@index > 10) {
  49. .smaller-@{index} { font-size: unit(@index,~"%") !important; }
  50. .smallerX(@index - 10);
  51. }
  52. .smallerX(90);
  53. .smaller-75 { font-size: 75% !important;}
  54. .widthX (@index) when (@index < 105) {
  55. .width-@{index} { width: unit(@index,~"%") !important; }
  56. .widthX(@index + 5);
  57. }
  58. .widthX(20);
  59. .width-75 { width: 75% !important;}
  60. .width-25 { width: 25% !important;}
  61. .width-auto { width: auto !important; }
  62. .height-auto { height: auto !important; }
  63. .no-padding { padding: 0 !important; }
  64. .no-padding-bottom { padding-bottom: 0 !important; }
  65. .no-padding-top { padding-top: 0 !important; }
  66. .no-padding-left { padding-left: 0 !important; }
  67. .no-padding-right { padding-right: 0 !important; }
  68. .no-margin { margin: 0 !important; }
  69. .no-margin-bottom { margin-bottom: 0 !important; }
  70. .no-margin-top { margin-top: 0 !important; }
  71. .no-margin-left { margin-left: 0 !important; }
  72. .no-margin-right { margin-right: 0 !important; }
  73. .no-border { border-width: 0; }
  74. .no-border-bottom { border-bottom-width: 0; }
  75. .no-border-top { border-top-width: 0; }
  76. .no-border-left { border-left-width: 0; }
  77. .no-border-right { border-right-width: 0; }
  78. /**
  79. .no-underline {
  80. text-decoration: none !important;
  81. }
  82. .no-hover-underline:hover {
  83. text-decoration: none !important;
  84. }
  85. .no-outline:focus {
  86. outline: none !important;
  87. }
  88. .no-box-shadow {
  89. .box-shadow(none) !important;
  90. }
  91. .overflow-auto {overflow: auto !important;}
  92. .overflow-visible {overflow: visible !important;}
  93. */
  94. .overflow-hidden {overflow: hidden !important;}
  95. .overflow-scroll {overflow-x: hidden !important; overflow-y: scroll !important;}
  96. .no-radius {
  97. .border-radius(0) !important;
  98. }
  99. .no-text-shadow {
  100. text-shadow:none !important;
  101. }
  102. //<hr /> like spacing by using div, e.g <div class="hr hr-32"></div>
  103. .hr {
  104. display:block;
  105. height: 0;
  106. overflow: hidden;
  107. font-size: 0;
  108. border-width: 1px 0 0 0;
  109. border-top: 1px solid #E3E3E3;
  110. margin: 12px 0;
  111. border-top-color: rgba(0,0,0,0.11);
  112. }
  113. .hr-double {
  114. height: 3px;
  115. border-top: 1px solid #E3E3E3;
  116. border-bottom: 1px solid #E3E3E3;
  117. border-top-color: rgba(0,0,0,0.11);
  118. border-bottom-color: rgba(0,0,0,0.11);
  119. }
  120. .hr.dotted, .hr-dotted { border-style: dotted;}
  121. .hrX (@index) when (@index > 0) {
  122. .hr-@{index}, .hr@{index} { margin:unit(@index,px) 0; }
  123. .hrX(@index - 2);
  124. }
  125. .hrX(32);
  126. //some spacing classes, use like <div class="space-24"></div>
  127. .space() {
  128. max-height: 1px;
  129. min-height: 1px;
  130. overflow: hidden;
  131. }
  132. .space { .space(); margin: 12px 0; }
  133. [class*="vspace-"] { display: none;} //visible only on smaller devices where columns are stacked on top of each other
  134. .spaceX (@index) when (@index > 0) {
  135. .space-@{index} { .space(); margin: unit(@index,px) 0 unit(@index - 1,px); }
  136. [class*="vspace-@{index}"]
  137. {
  138. .space();
  139. margin:unit(@index,px) 0 unit(@index - 1,px) 0;
  140. }
  141. .spaceX(@index - 2);
  142. }
  143. .spaceX(32);//produce spaces
  144. .space-0 , [class*="vspace-0"] { .space(); margin: 0; }
  145. @media only screen and (max-width: @screen-tiny-max) {
  146. [class*="vspace-"][class*="-xs"] {
  147. display: block;
  148. }
  149. }
  150. @media only screen and (max-width: @screen-xs-max) {
  151. [class*="vspace-"][class*="-sm"] {
  152. display: block;
  153. }
  154. }
  155. @media only screen and (max-width: @screen-sm-max) {
  156. [class*="vspace-"][class*="-md"] {
  157. display: block;
  158. }
  159. }
  160. @media only screen and (max-width: @screen-md-max) {
  161. [class*="vspace-"][class*="-lg"] {
  162. display: block;
  163. }
  164. }
  165. //headers
  166. .header {
  167. line-height: 28px;
  168. margin-bottom: 16px;
  169. margin-top: 18px;
  170. padding-bottom: 4px;
  171. border-bottom: 1px solid #CCC;
  172. &.blue {
  173. border-bottom-color: desaturate(lighten(@ace-blue, 35%), 10%);
  174. }
  175. &.green {
  176. border-bottom-color: desaturate(lighten(@ace-green, 35%), 6%);
  177. }
  178. &.purple {
  179. border-bottom-color: desaturate(lighten(@ace-purple, 28%), 5%);
  180. }
  181. &.orange {
  182. border-bottom-color: desaturate(lighten(@ace-orange, 25%), 5%);
  183. }
  184. &.orange2 {
  185. border-bottom-color: desaturate(lighten(@ace-orange2, 20%), 5%);
  186. }
  187. &.red {
  188. border-bottom-color: desaturate(lighten(@ace-red, 30%), 5%);
  189. }
  190. &.grey {
  191. border-bottom-color: desaturate(lighten(@ace-grey, 30%), 5%);
  192. }
  193. &.pink {
  194. border-bottom-color: desaturate(lighten(@ace-pink, 32%), 5%);
  195. }
  196. &.pink2 {
  197. border-bottom-color: desaturate(lighten(@ace-pink2, 20%), 5%);
  198. }
  199. &.light-blue {
  200. border-bottom-color: desaturate(lighten(@ace-light-blue, 15%), 5%);
  201. }
  202. &.light-red {
  203. border-bottom-color: desaturate(lighten(@ace-light-red, 15%), 5%);
  204. }
  205. &.light-green {
  206. border-bottom-color: desaturate(lighten(@ace-light-green, 15%), 5%);
  207. }
  208. &.brown {
  209. border-bottom-color: desaturate(lighten(@ace-brown, 32%), 5%);
  210. }
  211. > .@{icon} {
  212. margin-right: 2px;
  213. }
  214. }
  215. .action-buttons a {
  216. margin: 0 3px;
  217. display: inline-block;
  218. opacity: 0.85;
  219. .transition(~"all 0.1s");
  220. &:hover {
  221. text-decoration: none;
  222. opacity: 1;
  223. .transform(~"scale(1.2)");
  224. }
  225. }