boxes.less 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397
  1. /*
  2. component: Boxes
  3. -------------------------
  4. */
  5. .box {
  6. position: relative;
  7. background: #ffffff;
  8. border-top: 2px solid darken(@box-border-color, 20%);
  9. margin-bottom: 20px;
  10. .border-radius(@box-border-radius);
  11. width: 100%;
  12. box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1);
  13. // Box color variations
  14. &.box-primary {
  15. border-top-color: @light-blue;
  16. }
  17. &.box-info {
  18. border-top-color: @aqua;
  19. }
  20. &.box-danger {
  21. border-top-color: @red;
  22. }
  23. &.box-warning {
  24. border-top-color: @yellow;
  25. }
  26. &.box-success {
  27. border-top-color: @green;
  28. }
  29. // fixed height to 300px
  30. &.height-control {
  31. .box-body {
  32. max-height: 300px;
  33. overflow: auto;
  34. }
  35. }
  36. // Box header
  37. .box-header {
  38. position: relative;
  39. .clearfix();
  40. //Add top left and top right border radius
  41. .border-radius(@box-border-radius; @box-border-radius; 0; 0);
  42. border-bottom: 0px solid @box-border-color;
  43. color: #444;
  44. padding-bottom: 10px;
  45. // Icons and box title
  46. > .fa, > .glyphicon, > .ion,
  47. .box-title {
  48. display: inline-block;
  49. padding: 10px 0px 10px 10px;
  50. margin: 0;
  51. font-size: 20px;
  52. font-weight: 400;
  53. float: left;
  54. cursor: default;
  55. //text-transform: capitalize;
  56. }
  57. a {
  58. color: #444;
  59. }
  60. // Box Tools
  61. > .box-tools {
  62. padding: 5px 10px 5px 5px;
  63. }
  64. }
  65. // Box body
  66. .box-body {
  67. padding: 10px;
  68. .border-radius(0; 0; @box-border-radius; @box-border-radius);
  69. // Tables within the box body
  70. > table, > .table {
  71. margin-bottom: 0;
  72. }
  73. &.chart-responsive {
  74. width: 100%;
  75. overflow: hidden;
  76. }
  77. // Charts
  78. > .chart {
  79. position: relative;
  80. overflow: hidden;
  81. width: 100%;
  82. svg, canvas { width: 100%!important;}
  83. }
  84. // Calendar within the box body
  85. .fc {
  86. margin-top: 5px;
  87. }
  88. // Calendar title
  89. .fc-header-title h2 {
  90. font-size: 15px;
  91. line-height: 1.6em;
  92. color: #666;
  93. margin-left: 10px;
  94. }
  95. .fc-header-right {
  96. padding-right: 10px;
  97. }
  98. .fc-header-left {
  99. padding-left: 10px;
  100. }
  101. // Calendar table header cells
  102. .fc-widget-header {
  103. background: #fafafa;
  104. box-shadow: inset 0px -3px 1px rgba(0,0,0,0.02);
  105. }
  106. .fc-grid {
  107. width: 100%;
  108. border: 0;
  109. }
  110. .fc-widget-header:first-of-type,
  111. .fc-widget-content:first-of-type {
  112. border-left: 0;
  113. border-right: 0;
  114. }
  115. .fc-widget-header:last-of-type,
  116. .fc-widget-content:last-of-type {
  117. border-right: 0;
  118. }
  119. // tables in the box body
  120. .table {
  121. margin-bottom: 0;
  122. }
  123. .full-width-chart {
  124. margin: -19px;
  125. }
  126. &.no-padding .full-width-chart {
  127. margin: -9px;
  128. }
  129. }
  130. // Box footer
  131. .box-footer {
  132. border-top: 1px solid @box-border-color;
  133. .border-radius(0; 0; @box-border-radius; @box-border-radius);
  134. padding: 10px;
  135. background-color: @box-footer-bg;
  136. }
  137. //
  138. // SOLID BOX:
  139. //------------------
  140. //use this class to get a colored header and borders
  141. //
  142. &.box-solid {
  143. border-top: 0px;
  144. > .box-header {
  145. padding-bottom: 0px!important;
  146. .btn.btn-default {
  147. background: transparent;
  148. }
  149. }
  150. // Box color variations
  151. &.box-primary {
  152. .box-solid-variant(@light-blue);
  153. }
  154. &.box-info {
  155. .box-solid-variant(@aqua);
  156. }
  157. &.box-danger {
  158. .box-solid-variant(@red);
  159. }
  160. &.box-warning {
  161. .box-solid-variant(@yellow);
  162. }
  163. &.box-success {
  164. .box-solid-variant(@green);
  165. }
  166. > .box-header > .box-tools > .btn {
  167. border: 0;
  168. box-shadow: none;
  169. }
  170. // collapsed mode
  171. &.collapsed-box {
  172. .box-header {
  173. .border-radius(@box-border-radius);
  174. }
  175. }
  176. // Fix font color for tiles
  177. &[class*='bg'] {
  178. > .box-header {
  179. color: #fff;
  180. }
  181. }
  182. }
  183. //BOX GROUP
  184. .box-group {
  185. > .box {
  186. margin-bottom: 5px;
  187. }
  188. }
  189. // jQuery Knob in a box
  190. .knob-label {
  191. text-align: center;
  192. color: #333;
  193. font-weight: 100;
  194. font-size: 12px;
  195. margin-bottom: 0.3em;
  196. }
  197. //
  198. // Widgets
  199. //-----------
  200. //
  201. // Widget: TODO LIST
  202. .todo-list {
  203. margin: 0;
  204. padding: 0px 0px;
  205. list-style: none;
  206. // Todo list element
  207. > li {
  208. .border-radius(2px);
  209. padding: 10px;
  210. background: @table-striped-color;
  211. margin-bottom: 2px;
  212. border-left: 2px solid #e6e7e8;
  213. color: #444;
  214. &:last-of-type {
  215. margin-bottom: 0;
  216. }
  217. // Color varaity
  218. &.danger {
  219. border-left-color: @red;
  220. }
  221. &.warning {
  222. border-left-color: @yellow;
  223. }
  224. &.info {
  225. border-left-color: @aqua;
  226. }
  227. &.success {
  228. border-left-color: @green;
  229. }
  230. &.primary {
  231. border-left-color: @light-blue;
  232. }
  233. > input[type='checkbox'] {
  234. margin: 0 10px 0 5px;
  235. }
  236. .text {
  237. display: inline-block;
  238. margin-left: 5px;
  239. font-weight: 600;
  240. }
  241. // Time labels
  242. .label {
  243. margin-left: 10px;
  244. font-size: 9px;
  245. }
  246. // Tools and options box
  247. .tools {
  248. display: none;
  249. float: right;
  250. color: @red;
  251. // icons
  252. > .fa, > .glyphicon, > .ion {
  253. margin-right: 5px;
  254. cursor: pointer;
  255. }
  256. }
  257. &:hover .tools {
  258. display: inline-block;
  259. }
  260. &.done {
  261. color: #999;
  262. .text {
  263. text-decoration: line-through;
  264. font-weight: 500;
  265. }
  266. .label {
  267. background: @gray!important;
  268. }
  269. }
  270. }
  271. .handle {
  272. display: inline-block;
  273. cursor: move;
  274. margin: 0 5px;
  275. }
  276. }
  277. // END TODO WIDGET
  278. // Chat widget
  279. .chat {
  280. padding: 5px 20px 5px 10px;
  281. .item {
  282. .clearfix();
  283. margin-bottom: 10px;
  284. // The image
  285. > img {
  286. //display: inline-block;
  287. width: 40px;
  288. height: 40px;
  289. border: 2px solid transparent;
  290. .border-radius(50%)!important;
  291. &.online {
  292. border: 2px solid @green;
  293. }
  294. &.offline {
  295. border: 2px solid @red;
  296. }
  297. }
  298. // The message body
  299. > .message {
  300. margin-left: 55px;
  301. margin-top: -40px;
  302. > .name {
  303. display: block;
  304. font-weight: 600;
  305. }
  306. }
  307. // The attachment
  308. > .attachment {
  309. .border-radius(@attachment-border-radius);
  310. background: #f0f0f0;
  311. margin-left: 65px;
  312. margin-right: 15px;
  313. padding: 10px;
  314. > h4 {
  315. margin: 0 0 5px 0;
  316. font-weight: 600;
  317. font-size: 14px;
  318. }
  319. > p, > .filename {
  320. font-weight: 600;
  321. font-size: 13px;
  322. font-style: italic;
  323. margin: 0;
  324. }
  325. .clearfix();
  326. }
  327. }
  328. }
  329. // END CHAT WIDGET
  330. // Box overlay for LOADING STATE effect
  331. > .overlay, > .loading-img {
  332. position: absolute;
  333. top: 0;
  334. left: 0;
  335. width: 100%;
  336. height: 100%;
  337. }
  338. > .overlay {
  339. z-index: 1010;
  340. background: rgba(255, 255, 255, 0.7);
  341. }
  342. > .overlay.dark {
  343. background: rgba(0, 0, 0, 0.5);
  344. }
  345. > .loading-img {
  346. z-index: 1020;
  347. background: transparent url('../img/ajax-loader1.gif') 50% 50% no-repeat;
  348. }
  349. }