boxes.less 8.9 KB

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