123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549
  1. @import "variables.less";
  2. @import "mixins.less";
  3. // Global Styles
  4. body {
  5. background-color: @gray-lightest;
  6. }
  7. // Wrappers
  8. #wrapper {
  9. width: 100%;
  10. }
  11. #page-wrapper {
  12. padding: 0 15px;
  13. min-height: 568px;
  14. background-color: white;
  15. }
  16. @media(min-width:768px) {
  17. #page-wrapper {
  18. position: inherit;
  19. margin: 0 0 0 250px;
  20. padding: 0 30px;
  21. border-left: 1px solid darken(@gray-lightest, 6.5%);
  22. }
  23. }
  24. // Navigation
  25. // --Topbar
  26. .navbar-top-links {
  27. margin-right: 0;
  28. }
  29. .navbar-top-links li {
  30. display: inline-block;
  31. }
  32. .navbar-top-links li:last-child {
  33. margin-right: 15px;
  34. }
  35. .navbar-top-links li a {
  36. padding: 15px;
  37. min-height: 50px;
  38. }
  39. .navbar-top-links .dropdown-menu li {
  40. display: block;
  41. }
  42. .navbar-top-links .dropdown-menu li:last-child {
  43. margin-right: 0;
  44. }
  45. .navbar-top-links .dropdown-menu li a {
  46. padding: 3px 20px;
  47. min-height: 0;
  48. }
  49. .navbar-top-links .dropdown-menu li a div {
  50. white-space: normal;
  51. }
  52. .navbar-top-links .dropdown-messages,
  53. .navbar-top-links .dropdown-tasks,
  54. .navbar-top-links .dropdown-alerts {
  55. width: 310px;
  56. min-width: 0;
  57. }
  58. .navbar-top-links .dropdown-messages {
  59. margin-left: 5px;
  60. }
  61. .navbar-top-links .dropdown-tasks {
  62. margin-left: -59px;
  63. }
  64. .navbar-top-links .dropdown-alerts {
  65. margin-left: -123px;
  66. }
  67. .navbar-top-links .dropdown-user {
  68. right: 0;
  69. left: auto;
  70. }
  71. // --Sidebar
  72. .sidebar {
  73. .sidebar-nav.navbar-collapse {
  74. padding-left: 0;
  75. padding-right: 0;
  76. }
  77. }
  78. .sidebar .sidebar-search {
  79. padding: 15px;
  80. }
  81. .sidebar ul li {
  82. border-bottom: 1px solid darken(@gray-lightest, 6.5%);
  83. a {
  84. &.active {
  85. background-color: @gray-lighter;
  86. }
  87. }
  88. }
  89. .sidebar .arrow {
  90. float: right;
  91. }
  92. .sidebar .fa.arrow:before {
  93. content: "\f104";
  94. }
  95. .sidebar .active > a > .fa.arrow:before {
  96. content: "\f107";
  97. }
  98. .sidebar .nav-second-level li,
  99. .sidebar .nav-third-level li {
  100. border-bottom: none !important;
  101. }
  102. .sidebar .nav-second-level li a {
  103. padding-left: 37px;
  104. }
  105. .sidebar .nav-third-level li a {
  106. padding-left: 52px;
  107. }
  108. @media(min-width:768px) {
  109. .sidebar {
  110. z-index: 1;
  111. position: absolute;
  112. width: 250px;
  113. margin-top: 51px;
  114. }
  115. .navbar-top-links .dropdown-messages,
  116. .navbar-top-links .dropdown-tasks,
  117. .navbar-top-links .dropdown-alerts {
  118. margin-left: auto;
  119. }
  120. }
  121. // Buttons
  122. .btn-outline {
  123. color: inherit;
  124. background-color: transparent;
  125. transition: all .5s;
  126. }
  127. .btn-primary.btn-outline {
  128. color: @brand-primary;
  129. }
  130. .btn-success.btn-outline {
  131. color: @brand-success;
  132. }
  133. .btn-info.btn-outline {
  134. color: @brand-info;
  135. }
  136. .btn-warning.btn-outline {
  137. color: @brand-warning;
  138. }
  139. .btn-danger.btn-outline {
  140. color: @brand-danger;
  141. }
  142. .btn-primary.btn-outline:hover,
  143. .btn-success.btn-outline:hover,
  144. .btn-info.btn-outline:hover,
  145. .btn-warning.btn-outline:hover,
  146. .btn-danger.btn-outline:hover {
  147. color: white;
  148. }
  149. // Chat Widget
  150. .chat {
  151. margin: 0;
  152. padding: 0;
  153. list-style: none;
  154. }
  155. .chat li {
  156. margin-bottom: 10px;
  157. padding-bottom: 5px;
  158. border-bottom: 1px dotted @gray-light;
  159. }
  160. .chat li.left .chat-body {
  161. margin-left: 60px;
  162. }
  163. .chat li.right .chat-body {
  164. margin-right: 60px;
  165. }
  166. .chat li .chat-body p {
  167. margin: 0;
  168. }
  169. .panel .slidedown .glyphicon,
  170. .chat .glyphicon {
  171. margin-right: 5px;
  172. }
  173. .chat-panel .panel-body {
  174. height: 350px;
  175. overflow-y: scroll;
  176. }
  177. // Login Page
  178. .login-panel {
  179. margin-top: 25%;
  180. }
  181. // Flot Charts Containers
  182. .flot-chart {
  183. display: block;
  184. height: 400px;
  185. }
  186. .flot-chart-content {
  187. width: 100%;
  188. height: 100%;
  189. }
  190. // DataTables Overrides
  191. table.dataTable thead .sorting,
  192. table.dataTable thead .sorting_asc,
  193. table.dataTable thead .sorting_desc,
  194. table.dataTable thead .sorting_asc_disabled,
  195. table.dataTable thead .sorting_desc_disabled {
  196. background: transparent;
  197. }
  198. table.dataTable thead .sorting_asc:after {
  199. content: "\f0de";
  200. float: right;
  201. font-family: fontawesome;
  202. }
  203. table.dataTable thead .sorting_desc:after {
  204. content: "\f0dd";
  205. float: right;
  206. font-family: fontawesome;
  207. }
  208. table.dataTable thead .sorting:after {
  209. content: "\f0dc";
  210. float: right;
  211. font-family: fontawesome;
  212. color: rgba(50,50,50,.5);
  213. }
  214. // Circle Buttons
  215. .btn-circle {
  216. width: 30px;
  217. height: 30px;
  218. padding: 6px 0;
  219. border-radius: 15px;
  220. text-align: center;
  221. font-size: 12px;
  222. line-height: 1.428571429;
  223. }
  224. .btn-circle.btn-lg {
  225. width: 50px;
  226. height: 50px;
  227. padding: 10px 16px;
  228. border-radius: 25px;
  229. font-size: 18px;
  230. line-height: 1.33;
  231. }
  232. .btn-circle.btn-xl {
  233. width: 70px;
  234. height: 70px;
  235. padding: 10px 16px;
  236. border-radius: 35px;
  237. font-size: 24px;
  238. line-height: 1.33;
  239. }
  240. // Grid Demo Elements
  241. .show-grid [class^="col-"] {
  242. padding-top: 10px;
  243. padding-bottom: 10px;
  244. border: 1px solid #ddd;
  245. background-color: #eee !important;
  246. }
  247. .show-grid {
  248. margin: 15px 0;
  249. }
  250. // Custom Colored Panels
  251. .huge {
  252. font-size: 40px;
  253. }
  254. .panel-green {
  255. border-color: @brand-success;
  256. > .panel-heading {
  257. border-color: @brand-success;
  258. color: white;
  259. background-color: @brand-success;
  260. }
  261. > a {
  262. color: @brand-success;
  263. &:hover {
  264. color: darken(@brand-success, 15%);
  265. }
  266. }
  267. }
  268. .panel-red {
  269. border-color: @brand-danger;
  270. > .panel-heading {
  271. border-color: @brand-danger;
  272. color: white;
  273. background-color: @brand-danger;
  274. }
  275. > a {
  276. color: @brand-danger;
  277. &:hover {
  278. color: darken(@brand-danger, 15%);
  279. }
  280. }
  281. }
  282. .panel-yellow {
  283. border-color: @brand-warning;
  284. > .panel-heading {
  285. border-color: @brand-warning;
  286. color: white;
  287. background-color: @brand-warning;
  288. }
  289. > a {
  290. color: @brand-warning;
  291. &:hover {
  292. color: darken(@brand-warning, 15%);
  293. }
  294. }
  295. }
  296. // Timeline
  297. .timeline {
  298. position: relative;
  299. padding: 20px 0 20px;
  300. list-style: none;
  301. }
  302. .timeline:before {
  303. content: " ";
  304. position: absolute;
  305. top: 0;
  306. bottom: 0;
  307. left: 50%;
  308. width: 3px;
  309. margin-left: -1.5px;
  310. background-color: #eeeeee;
  311. }
  312. .timeline > li {
  313. position: relative;
  314. margin-bottom: 20px;
  315. }
  316. .timeline > li:before,
  317. .timeline > li:after {
  318. content: " ";
  319. display: table;
  320. }
  321. .timeline > li:after {
  322. clear: both;
  323. }
  324. .timeline > li:before,
  325. .timeline > li:after {
  326. content: " ";
  327. display: table;
  328. }
  329. .timeline > li:after {
  330. clear: both;
  331. }
  332. .timeline > li > .timeline-panel {
  333. float: left;
  334. position: relative;
  335. width: 46%;
  336. padding: 20px;
  337. border: 1px solid #d4d4d4;
  338. border-radius: 2px;
  339. -webkit-box-shadow: 0 1px 6px rgba(0,0,0,0.175);
  340. box-shadow: 0 1px 6px rgba(0,0,0,0.175);
  341. }
  342. .timeline > li > .timeline-panel:before {
  343. content: " ";
  344. display: inline-block;
  345. position: absolute;
  346. top: 26px;
  347. right: -15px;
  348. border-top: 15px solid transparent;
  349. border-right: 0 solid #ccc;
  350. border-bottom: 15px solid transparent;
  351. border-left: 15px solid #ccc;
  352. }
  353. .timeline > li > .timeline-panel:after {
  354. content: " ";
  355. display: inline-block;
  356. position: absolute;
  357. top: 27px;
  358. right: -14px;
  359. border-top: 14px solid transparent;
  360. border-right: 0 solid #fff;
  361. border-bottom: 14px solid transparent;
  362. border-left: 14px solid #fff;
  363. }
  364. .timeline > li > .timeline-badge {
  365. z-index: 100;
  366. position: absolute;
  367. top: 16px;
  368. left: 50%;
  369. width: 50px;
  370. height: 50px;
  371. margin-left: -25px;
  372. border-radius: 50% 50% 50% 50%;
  373. text-align: center;
  374. font-size: 1.4em;
  375. line-height: 50px;
  376. color: #fff;
  377. background-color: #999999;
  378. }
  379. .timeline > li.timeline-inverted > .timeline-panel {
  380. float: right;
  381. }
  382. .timeline > li.timeline-inverted > .timeline-panel:before {
  383. right: auto;
  384. left: -15px;
  385. border-right-width: 15px;
  386. border-left-width: 0;
  387. }
  388. .timeline > li.timeline-inverted > .timeline-panel:after {
  389. right: auto;
  390. left: -14px;
  391. border-right-width: 14px;
  392. border-left-width: 0;
  393. }
  394. .timeline-badge.primary {
  395. background-color: #2e6da4 !important;
  396. }
  397. .timeline-badge.success {
  398. background-color: #3f903f !important;
  399. }
  400. .timeline-badge.warning {
  401. background-color: #f0ad4e !important;
  402. }
  403. .timeline-badge.danger {
  404. background-color: #d9534f !important;
  405. }
  406. .timeline-badge.info {
  407. background-color: #5bc0de !important;
  408. }
  409. .timeline-title {
  410. margin-top: 0;
  411. color: inherit;
  412. }
  413. .timeline-body > p,
  414. .timeline-body > ul {
  415. margin-bottom: 0;
  416. }
  417. .timeline-body > p + p {
  418. margin-top: 5px;
  419. }
  420. @media(max-width:767px) {
  421. ul.timeline:before {
  422. left: 40px;
  423. }
  424. ul.timeline > li > .timeline-panel {
  425. width: calc(100% - 90px);
  426. width: -moz-calc(100% - 90px);
  427. width: -webkit-calc(100% - 90px);
  428. }
  429. ul.timeline > li > .timeline-badge {
  430. top: 16px;
  431. left: 15px;
  432. margin-left: 0;
  433. }
  434. ul.timeline > li > .timeline-panel {
  435. float: right;
  436. }
  437. ul.timeline > li > .timeline-panel:before {
  438. right: auto;
  439. left: -15px;
  440. border-right-width: 15px;
  441. border-left-width: 0;
  442. }
  443. ul.timeline > li > .timeline-panel:after {
  444. right: auto;
  445. left: -14px;
  446. border-right-width: 14px;
  447. border-left-width: 0;
  448. }
  449. }