portal.scss 23 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184
  1. @import 'variables.scss';
  2. /*!
  3. * Combodo portal template v1.0.0
  4. */
  5. /*******************/
  6. /* Global settings */
  7. /*******************/
  8. @media (max-width: 768px){
  9. body{
  10. padding-top: 60px;
  11. }
  12. body.home{
  13. padding-top: 70px;
  14. }
  15. }
  16. footer{
  17. margin: 5em 1em;
  18. }
  19. /* Environment banner */
  20. #envbanner{
  21. position: relative;
  22. z-index: 10;
  23. padding: 5px 15px;
  24. text-align: center;
  25. }
  26. #envbanner > button{
  27. margin-left: 5px;
  28. color: #000;
  29. }
  30. /* Navigation menu */
  31. .navbar-nav .dropdown-menu a .glyphicon,
  32. .user_infos .dropdown-menu a .glyphicon{
  33. margin-right: 15px;
  34. }
  35. .nav > li > a > span.brick_icon,
  36. .dropdown-menu > li > a > span.brick_icon{
  37. margin-right: 20px;
  38. vertical-align: sub;
  39. }
  40. /* Topbar */
  41. #topbar .navbar-header{
  42. position: relative;
  43. z-index: 2;
  44. }
  45. #topbar .navbar-collapse{
  46. position: relative;
  47. z-index: 1;
  48. overflow-y: auto;
  49. }
  50. #topbar .navbar-collapse > .navbar-nav{
  51. padding-top: 30px;
  52. }
  53. #topbar .navbar-brand > img{
  54. max-height: 100%;
  55. }
  56. #topbar .user_infos{
  57. text-decoration: none;
  58. }
  59. #topbar .user_photo{
  60. position: absolute;
  61. display: block;
  62. top: 5px;
  63. left: 10px;
  64. width: 65px;
  65. height: 65px;
  66. background-size: 100%;
  67. background-position: center center;
  68. background-color: #585653;
  69. border: 2px solid $white;
  70. border-radius: 100%;
  71. box-shadow: 0px 2px 3px rgba(0, 0, 0, 0.4);
  72. }
  73. #topbar .user_fullname{
  74. display: inline-block;
  75. position: absolute;
  76. padding-left: 85px;
  77. max-width: 55%;
  78. /*color: $white;*/
  79. white-space: nowrap;
  80. text-overflow: ellipsis;
  81. overflow-x: hidden;
  82. }
  83. /* Sidebar */
  84. @media (min-width: 768px){
  85. #sidebar{
  86. position: fixed;
  87. top: 0px;
  88. left: 0px;
  89. padding: 0px; /* Overriding BS */
  90. height: 100%;
  91. }
  92. #sidebar .user_card{
  93. padding: 30px 0px;
  94. text-align: center;
  95. }
  96. #sidebar .user_card .user_photo{
  97. margin: 0px auto 10px auto;
  98. width: 80px;
  99. height: 80px;
  100. background-size: 100%;
  101. background-position: center center;
  102. background-color: #585653;
  103. background-repeat: no-repeat;
  104. border: 2px solid $white;
  105. border-radius: 100%;
  106. }
  107. #sidebar .user_card .user_infos{
  108. font-size: 1em;
  109. color: $white;
  110. }
  111. #sidebar .user_card .user_infos .dropdown-toggle{
  112. color: $white;
  113. }
  114. #sidebar .user_card .user_options.dropdown-menu{
  115. width: 92%;
  116. left: 4%;
  117. }
  118. #sidebar .user_card .user_fullname{
  119. font-weight: 600;
  120. }
  121. #sidebar .menu{
  122. max-height: 59%;
  123. overflow-y: auto;
  124. overflow-x: hidden;
  125. }
  126. #sidebar .menu .navbar-nav > li{
  127. width: 100%;
  128. }
  129. #sidebar .menu .navbar-nav > li > a > .brick_icon{
  130. width: 1.2em;
  131. vertical-align: sub;
  132. text-align: center;
  133. margin-right: 10px;
  134. }
  135. #sidebar .logo{
  136. position: absolute;
  137. bottom: 15px;
  138. width: 100%;
  139. text-align: center;
  140. }
  141. #sidebar .logo img{
  142. width: 40%;
  143. max-width: 100%;
  144. }
  145. }
  146. @media (min-width: 992px){
  147. }
  148. /* Warning : Not a offical BS breakpoint */
  149. @media (min-width: 1600px){
  150. #sidebar .user_card .user_photo{
  151. width: 120px;
  152. height: 120px;
  153. }
  154. #sidebar .menu .nav > li > a > .brick_icon{
  155. margin-right: 20px;
  156. }
  157. }
  158. /* Main content */
  159. @media (min-width: 768px) {
  160. #main-wrapper{
  161. margin-top: 20px;
  162. }
  163. }
  164. /* Overlays*/
  165. .global_overlay{
  166. z-index: 9999;
  167. display: none;
  168. position: fixed;
  169. top: 0px;
  170. left: 0px;
  171. width: 100%;
  172. height: 100%;
  173. background-color: black;
  174. opacity: 0.5;
  175. }
  176. #page_overlay .overlay_content{
  177. margin-top: 20em;
  178. width: 100%;
  179. color: white;
  180. }
  181. .overlay_content{
  182. text-align: center;
  183. }
  184. .content_loader .icon{
  185. margin-bottom: 0.3em;
  186. /*width: 52px;*/
  187. height: 38px; /* 50px; *//* Hack to make loader circle perfectly */
  188. font-size: 3em; /* 4em; */
  189. animation: spin 1.2s linear infinite;
  190. -webkit-animation: spin 1.2s linear infinite;
  191. -moz-animation: spin 1.2s linear infinite;
  192. -ms-animation: spin 1.2s linear infinite;
  193. }
  194. .content_loader .message{
  195. font-size: 1.5em; /* 2em; */
  196. }
  197. .datatables_overlay{
  198. padding: 5% 0px !important;
  199. background-color: white;
  200. }
  201. /******************/
  202. /* Global classes */
  203. /******************/
  204. .vertical-center {
  205. /* Make it a flex container */
  206. display: -webkit-box;
  207. display: -moz-box;
  208. display: -ms-flexbox;
  209. display: -webkit-flex;
  210. display: flex;
  211. /* Align the bootstrap's container vertically */
  212. -webkit-box-align : center;
  213. -webkit-align-items : center;
  214. -moz-box-align : center;
  215. -ms-flex-align : center;
  216. align-items : center;
  217. /* Also 'margin: 0 auto' doesn't have any effect on flex items in such web browsers
  218. hence the bootstrap's container won't be aligned to the center anymore.
  219. Therefore, we should use the following declarations to get it centered again */
  220. -webkit-box-pack : center;
  221. -moz-box-pack : center;
  222. -ms-flex-pack : center;
  223. -webkit-justify-content : center;
  224. justify-content : center;
  225. }
  226. /*********************/
  227. /* Global animations */
  228. /*********************/
  229. /* Spin */
  230. @keyframes spin{
  231. 100% {
  232. transform: rotate(360deg);
  233. }
  234. }
  235. @-webkit-keyframes spin{
  236. 100% {
  237. -webkit-transform: rotate(360deg);
  238. }
  239. }
  240. @-moz-keyframes spin{
  241. 100% {
  242. -moz-transform: rotate(360deg);
  243. }
  244. }
  245. @-ms-keyframes spin{
  246. 100% {
  247. -ms-transform: rotate(360deg);
  248. }
  249. }
  250. /*********************/
  251. /* BS theme override */
  252. /*********************/
  253. .list-group.tree{
  254. margin-top: 11px;
  255. margin-bottom: -11px;
  256. }
  257. .list-group.tree .list-group-item{
  258. padding-right: 0px; /* To align all actions on the right without indent */
  259. }
  260. /* Custom "glyphicons" */
  261. .glyphicon-ext-hierarchy:before {
  262. content: url('../img/icons/hierarchy-white-13px.png');
  263. }
  264. /******************/
  265. /* Modal settings */
  266. /******************/
  267. .modal-content .content_loader{
  268. margin: 7em 0em;
  269. text-align: center;
  270. }
  271. /**************************/
  272. /* MagnificPopup settings */
  273. /**************************/
  274. .mfp-bg{
  275. z-index: 1200;
  276. }
  277. .mfp-wrap{
  278. z-index: 1210;
  279. }
  280. .mfp-img{
  281. cursor: pointer;
  282. cursor: zoom-out;
  283. }
  284. /********************/
  285. /* Typeahed setting */
  286. /********************/
  287. .twitter-typeahead .tt-menu{
  288. max-height: 200px;
  289. overflow-y: auto;
  290. }
  291. @media (min-width: 768px){
  292. .twitter-typeahead .tt-menu{
  293. max-height: 300px;
  294. }
  295. }
  296. .twitter-typeahead .tt-dataset > .content_loader{
  297. margin: 10px 0px;
  298. text-align: center;
  299. font-size: 0.6em;
  300. }
  301. .twitter-typeahead .tt-dataset > .content_loader .icon{
  302. height: 25px;
  303. }
  304. .twitter-typeahead .tt-dataset .no_result{
  305. text-align: center;
  306. font-style: italic;
  307. }
  308. /*****************/
  309. /* Home settings */
  310. /*****************/
  311. .home #main-wrapper{
  312. padding-top: 15px;
  313. }
  314. .home .tile{
  315. display: block;
  316. margin-bottom: 8px;
  317. padding: 0em 1em;
  318. min-height: 4em;
  319. background-color: $white;
  320. background-image: none;
  321. border: none;
  322. border-radius: 0px;
  323. text-align: center;
  324. text-decoration: none;
  325. white-space: normal;
  326. line-height: 4em;
  327. box-shadow: 0 1px 1px rgba(0, 0, 0, 0.15);
  328. }
  329. .home .tile .tile_decoration{
  330. position: absolute;
  331. top: 0.3em;
  332. left: 2.5em;
  333. }
  334. .home .tile .tile_title{
  335. font-weight: bold;
  336. color: #333;
  337. }
  338. .home .tile .tile_description{
  339. display: none;
  340. color: #555555;
  341. }
  342. @media (min-width: 768px) {
  343. .home .tile{
  344. display: block;
  345. margin-bottom: 25px;
  346. padding: 40px 40px 30px 40px;
  347. min-height: 10em;
  348. text-align: left;
  349. transition: all 0.2s linear;
  350. }
  351. .home .tile:hover{
  352. box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.10);
  353. }
  354. .home .tile .tile_decoration{
  355. display: block;
  356. position: relative;
  357. float: left;
  358. top: 1.5em;
  359. left: initial;
  360. margin: 0px 30px 15px 0px;
  361. }
  362. .home .tile .tile_body{
  363. display: block;
  364. padding-left: 4.3em;
  365. text-align: left;
  366. line-height: 1.5em;
  367. }
  368. .home .tile .tile_title{
  369. margin-bottom: 1em;
  370. font-size: 1.0em;
  371. }
  372. .home .tile .tile_description{
  373. display: block;
  374. text-align: left;
  375. }
  376. }
  377. @media (min-width: 992px) {
  378. .home .tile{
  379. min-height: 14em;
  380. padding: 30px 40px 30px 40px;
  381. }
  382. .home .tile .tile_decoration > span.icon{
  383. font-size: 4em;
  384. }
  385. .home .tile .tile_body{
  386. padding-left: 6.3em;
  387. }
  388. .home .tile .tile_title{
  389. font-size: 1.4em;
  390. }
  391. .home .tile .tile_description{
  392. font-size: 1.2em;
  393. }
  394. }
  395. @media (min-width: 1200px) {
  396. .home .tile{
  397. margin-bottom: 40px;
  398. min-height: 15em;
  399. padding: 40px 50px 30px 50px;
  400. }
  401. .home .tile .tile_decoration{
  402. margin: 0px 40px 15px 0px;
  403. top: 1.5em;
  404. }
  405. .home .tile .tile_decoration > span.icon{
  406. font-size: 6em;
  407. }
  408. .home .tile .tile_body{
  409. padding-left: 9.1em;
  410. }
  411. .home .tile .tile_title{
  412. font-size: 1.5em;
  413. }
  414. .home .tile .tile_description{
  415. font-size: 1.2em;
  416. }
  417. }
  418. /********************/
  419. /* Modules settings */
  420. /********************/
  421. #main-header{
  422. text-align: center;
  423. }
  424. #main-header-title{
  425. margin-bottom: 15px;
  426. }
  427. #main-header-actions{
  428. margin-bottom: 15px;
  429. }
  430. /* This is no longer necessary but we keep it just in case */
  431. /*#main-header-actions .btn-group .btn{
  432. padding: 0em 1.5em;
  433. line-height: 2.4em;
  434. font-size: 14px;
  435. background-image: none;
  436. }*/
  437. @media (min-width: 768px) {
  438. #main-header:after{
  439. clear: both;
  440. }
  441. #main-header-title{
  442. float: left;
  443. margin-bottom: 0px;
  444. min-height: 6em;
  445. text-align: left;
  446. }
  447. #main-header-actions{
  448. float: right;
  449. margin-bottom: 0px;
  450. }
  451. }
  452. .dataTables_wrapper{
  453. padding: 10px 10px;
  454. }
  455. .dataTable.table td img{
  456. max-width: 100%;
  457. height: initial !important;
  458. }
  459. #brick_content_toolbar{
  460. /* margin: 10px 0px 6px 0px; */
  461. padding: 10px;
  462. }
  463. #brick_content_toolbar > div label{
  464. font-weight: normal;
  465. white-space: nowrap;
  466. text-align: left;
  467. }
  468. #brick_content_toolbar > div label input{
  469. margin-left: 0.5em;
  470. display: inline-block;
  471. width: 130px;
  472. }
  473. /***********************/
  474. /* Brick communication */
  475. /***********************/
  476. /* Home tile */
  477. .home .tile.tile_communication{
  478. padding: 20px;
  479. background-color: #EDEDED;
  480. border: none;
  481. font-weight: initial;
  482. }
  483. .home .tile_communication .carousel{
  484. margin-bottom: 0px;
  485. width: 100%;
  486. height: 200px;
  487. }
  488. /**********************/
  489. /* Brick user profile */
  490. /**********************/
  491. #user-profile-wrapper .user_profile_picture .content_loader{
  492. position: absolute;
  493. z-index: 1;
  494. top: 0;
  495. left: 0;
  496. padding-top: 4em;
  497. width: 100%;
  498. height: 100%;
  499. text-align: center;
  500. color: white;
  501. background-color: black;
  502. opacity: 0.5;
  503. }
  504. #user-profile-wrapper .user_profile_picture .preview{
  505. display: inline-block;
  506. position: relative;
  507. max-width: 175px;
  508. max-height: 175px;
  509. overflow: hidden;
  510. }
  511. #user-profile-wrapper .user_profile_picture .preview img{
  512. max-width: 100%;
  513. max-height: 100%;
  514. }
  515. #user-profile-wrapper .user_profile_picture .actions{
  516. display: inline-block;
  517. vertical-align: top; /*middle;*/
  518. margin-left: 5px;
  519. }
  520. #user-profile-wrapper .user_profile_picture .actions .btn{
  521. display: block;
  522. position: relative;
  523. margin-bottom: 10px;
  524. }
  525. #user-profile-wrapper .user_profile_picture .actions .btn:last-child{
  526. margin-bottom: 0px;
  527. }
  528. #user-profile-wrapper .user_profile_picture .actions .btn.btn_edit{
  529. overflow: hidden;
  530. }
  531. #user-profile-wrapper .user_profile_picture .actions .btn.btn_edit input{
  532. position: absolute;
  533. top: 0px;
  534. left: 0px;
  535. width: 100%;
  536. height: 100%;
  537. opacity: 0;
  538. cursor: pointer;
  539. }
  540. /****************/
  541. /* Brick browse */
  542. /****************/
  543. /* - Tree mode */
  544. /****************/
  545. #brick_content_tree{
  546. position: relative;
  547. }
  548. .list-group-item > .list-group-item-actions{
  549. /*display: none; Displaying actions only when hovering was not unanimous in the team */
  550. position: absolute;
  551. top: 10px;
  552. right: 10px;
  553. }
  554. .list-group-item:hover > .list-group-item-actions,
  555. .grid-group-item:hover > .grid-group-item-actions{
  556. display: block;
  557. }
  558. .list-group-item .list-group-item-actions a:not(:first-child),
  559. .grid-group-item .grid-group-item-actions a:not(:first-child){
  560. margin-left: 10px;
  561. }
  562. .list-group-item .keep-spinning{
  563. animation: spin 1s linear infinite;
  564. -webkit-animation: spin 1s linear infinite;
  565. -moz-animation: spin 1s linear infinite;
  566. -ms-animation: spin 1s linear infinite;
  567. }
  568. .list-group.tree .list-group-item .list-group-item-description{
  569. display: block;
  570. margin-top: 3px;
  571. font-size: 0.8em;
  572. }
  573. /* Secondary actions */
  574. table .group-actions{
  575. position: relative;
  576. }
  577. .list-group-item-actions a.glyphicon-menu-hamburger,
  578. .grid-group-item-actions a.glyphicon-menu-hamburger,
  579. table .group-actions a.glyphicon-menu-hamburger{
  580. cursor: pointer;
  581. text-decoration: none;
  582. }
  583. .list-group-item-actions .item-action-wrapper,
  584. .grid-group-item-actions .item-action-wrapper,
  585. table .group-actions .item-action-wrapper
  586. {
  587. display: none;
  588. position: absolute;
  589. z-index: 5;
  590. bottom: 5px;
  591. right: 0px;
  592. -webkit-box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.15);
  593. -moz-box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.15);
  594. box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.15);
  595. }
  596. .list-group-item-actions .item-action-wrapper .glyphicon,
  597. .grid-group-item-actions .item-action-wrapper .glyphicon,
  598. table .group-actions .item-action-wrapper .glyphicon{
  599. margin-right: 0.6em;
  600. }
  601. .list-group-item-actions .item-action-wrapper.collapse.in,
  602. .grid-group-item-actions .item-action-wrapper.collapse.in,
  603. table .group-actions .item-action-wrapper.collapse.in{
  604. display: block;
  605. }
  606. .list-group-item-actions .item-action-wrapper .panel-body > p,
  607. .grid-group-item-actions .item-action-wrapper .panel-body > p,
  608. table .group-actions .item-action-wrapper .panel-body > p{
  609. white-space: nowrap;
  610. }
  611. .list-group-item-actions .item-action-wrapper .panel-body > p:last-child,
  612. .grid-group-item-actions .item-action-wrapper .panel-body > p:last-child,
  613. table .group-actions .item-action-wrapper .panel-body > p:last-child{
  614. margin-bottom: 0px;
  615. }
  616. #brick_content_empty{
  617. display: none;
  618. padding: 40px;
  619. font-size: 1.3em;
  620. font-style: italic;
  621. }
  622. /* Loader */
  623. #brick_tree_overlay,
  624. #brick_grid_overlay{
  625. display: none;
  626. padding: 8% 0px;
  627. border-radius: 0px 0px 4px 4px;
  628. font-size: 1em;
  629. }
  630. /****************/
  631. /* - Grid mode */
  632. /* Note: Some of the CSS is factorised in the "Tree mode" part */
  633. /****************/
  634. #brick_content_grid{
  635. position: relative;
  636. padding: 10px 10px 1px 10px;
  637. }
  638. .grid-group{
  639. display: none;
  640. }
  641. /* Only the first level is showed by default */
  642. .grid-group:first-child{
  643. display: block;
  644. }
  645. .grid-group-back,
  646. .grid-group-item{
  647. position: relative;
  648. height: 55px;
  649. margin-bottom: 10px;
  650. text-align: center;
  651. color: $white;
  652. }
  653. .grid-group-back{
  654. font-size: 25px;
  655. }
  656. .grid-item{
  657. display: table;
  658. width: 100%;
  659. height: 100%;
  660. overflow: hidden;
  661. background-color: $combodo-dark-gray;
  662. transition: background-color linear 0.3s;
  663. }
  664. .grid-item,
  665. .grid-item:hover,
  666. .grid-item:active,
  667. .grid-item:focus,
  668. .grid-item:visited{
  669. color: $white;
  670. text-decoration: none;
  671. }
  672. .grid-item:active{
  673. background-color: $combodo-orange-darker;
  674. }
  675. .grid-item-image,
  676. .grid-item-text{
  677. display: table-cell;
  678. text-align: center;
  679. vertical-align: middle;
  680. }
  681. .grid-item-image > img{
  682. max-width: 100%;
  683. }
  684. .grid-group-item > .grid-group-item-actions{
  685. position: absolute;
  686. top: 5px;
  687. right: 5px;
  688. }
  689. .grid-group-item-actions > a{
  690. color: $white;
  691. text-decoration: none;
  692. }
  693. .grid-group-item-actions > a:hover,
  694. .grid-group-item-actions > a:focus{
  695. color: #EEEEEE;
  696. }
  697. @media (max-width: 768px) {
  698. .grid-group-item > .grid-group-item-actions{
  699. top: 12px;
  700. right: 6px;
  701. }
  702. .grid-group-item > .grid-group-item-actions > .glyphicon{
  703. margin-top: 5px;
  704. }
  705. .grid-group-item-actions > a{
  706. font-size: 20px;
  707. }
  708. /* All layout */
  709. .grid-item-image{
  710. width: 55px;
  711. padding: 10px;
  712. }
  713. .grid-item-image > img{
  714. max-height: 30px;
  715. }
  716. .grid-item-name{
  717. font-size: 14px;
  718. }
  719. .grid-item-description{
  720. display: none;
  721. }
  722. /* Layout 2 */
  723. .grid-item-layout-2 .grid-item-description{
  724. display: block;
  725. }
  726. /* Layout 5/7 */
  727. .grid-item-layout-5 .grid-item-name,
  728. .grid-item-layout-7 .grid-item-name{
  729. padding-right: 40px;
  730. }
  731. }
  732. @media (min-width: 768px) {
  733. .grid-group-item{
  734. display: inline-block;
  735. width: 32%;
  736. height: 120px;
  737. margin-right: 1.95%; /* We don't put 2% to keep a margin in case of a bad browser rendering */
  738. }
  739. .grid-item{
  740. padding: 10px;
  741. }
  742. .grid-item:hover,
  743. .grid-item:focus{
  744. background-color: $combodo-orange;
  745. }
  746. /* All layout */
  747. .grid-item-name{
  748. font-weight: 600;
  749. font-size: 12px;
  750. }
  751. .grid-item-description{
  752. overflow: hidden;
  753. }
  754. /* Layout 1 */
  755. .grid-item-layout-1 .grid-item-name{
  756. font-weight: inherit;
  757. font-size: 14px;
  758. }
  759. /* Layout 7 */
  760. .grid-item-layout-7 .grid-item-image{
  761. display: none;
  762. }
  763. .grid-item-layout-3 .grid-item-description,
  764. .grid-item-layout-7 .grid-item-description{
  765. margin-top: 10px;
  766. max-height: 40px;
  767. font-size: 10px;
  768. }
  769. }
  770. @media (min-width: 992px) {
  771. .grid-item{
  772. padding: 10px 15px;
  773. }
  774. .grid-group-back{
  775. font-size: 40px;
  776. }
  777. /* Layout 7 */
  778. .grid-item-layout-7 .grid-item-image{
  779. display: table-cell;
  780. width: 105px;
  781. padding-left: 5px;
  782. padding-right: 18px;
  783. }
  784. .grid-item-layout-7 .grid-item-image > img{
  785. max-width: 100%;
  786. }
  787. .grid-item-layout-7 .grid-item-name{
  788. font-size: 12px;
  789. }
  790. }
  791. @media (min-width: 1200px) {
  792. .grid-group-item{
  793. width: 24%;
  794. height: 140px;
  795. margin-right: 1.3%;
  796. }
  797. }
  798. /* Helper classes to remove margin depending on the screen size */
  799. @media (min-width: 768px) and (max-width: 992px) {
  800. .grid-group-item:nth-child(3n){
  801. margin-right: 0px;
  802. }
  803. }
  804. @media (min-width: 992px) and (max-width: 1200px) {
  805. .grid-group-item:nth-child(3n){
  806. margin-right: 0px;
  807. }
  808. }
  809. @media (min-width: 1200px) {
  810. .grid-group-item:nth-child(4n){
  811. margin-right: 0px;
  812. }
  813. }
  814. /****************/
  815. /* - List mode */
  816. /****************/
  817. /*********/
  818. /* Forms */
  819. /*********/
  820. .form_field .form_mandatory .control-label:after{
  821. content: "\002a";
  822. position: relative;
  823. left: 3px;
  824. color: $brand-primary;
  825. font-size: 0.9em;
  826. }
  827. /* InlineImage */
  828. .inline-image{
  829. cursor: pointer;
  830. cursor: zoom-in;
  831. }
  832. /* CaseLog field */
  833. .caselog_field_entry{
  834. border: 1px solid $gray-lighter;
  835. border-top: none;
  836. }
  837. .caselog_field_entry_header{
  838. padding: 6px;
  839. font-size: 1em;
  840. border-bottom: 1px solid $white;
  841. background-color: #F2F2F2;
  842. }
  843. .caselog_field_entry_button{
  844. display: block;
  845. width: 15px;
  846. height: 15px;
  847. text-align: center;
  848. line-height: 15px;
  849. font-size: 16px;
  850. border: 1px solid #a6a6a6;
  851. border-bottom-color: #979797;
  852. cursor: pointer;
  853. }
  854. .caselog_field_entry_button:hover{
  855. background-color: #cccccc;
  856. }
  857. .caselog_field_entry_button:before{
  858. content: "▴";
  859. }
  860. .caselog_field_entry_button.collapsed:before{
  861. content: "▾";
  862. }
  863. .caselog_field_entry_content{
  864. margin: 10px;
  865. overflow-x: auto;
  866. }
  867. /* LinkedSet*/
  868. .form_linkedset_toggler,
  869. .form_linkedset_toggler:hover,
  870. .form_linkedset_toggler:focus{
  871. text-decoration: none;
  872. color: inherit;
  873. }
  874. .form_linkedset_toggler > .text{
  875. margin-left: 0.4em;
  876. }
  877. .form_linkedset_toggler > .text:before{
  878. content: "(";
  879. }
  880. .form_linkedset_toggler > .text:after{
  881. content: ")";
  882. }
  883. .form_linkedset_toggler > .glyphicon{
  884. margin-left: 0.5em;
  885. font-size: 0.85em;
  886. color: $combodo-orange;
  887. transition: transform 0.2s linear;
  888. }
  889. .form_linkedset_toggler > .glyphicon.collapsed{
  890. transform: rotateZ(-90deg);
  891. }
  892. /* - DataTables : Loader */
  893. .form_linkedset_wrapper .datatables_overlay{
  894. padding: 8px !important;
  895. }
  896. .form_linkedset_wrapper .overlay_content{
  897. font-size: 0.6em;
  898. }
  899. .form_linkedset_wrapper .content_loader{
  900. margin: 0px;
  901. }
  902. .form_linkedset_wrapper .content_loader .icon{
  903. height: 23px;
  904. }
  905. /* - DataTables : Fit the table in the form */
  906. .form_linkedset_wrapper .dataTables_wrapper{
  907. margin-bottom: 5px;
  908. padding: 0px;
  909. }
  910. /* FileUpload */
  911. .fileupload_field_content{
  912. padding: 8px 23px;
  913. border: 1px solid $gray-lighter;
  914. background-color: #F9F9F9;
  915. }
  916. .fileupload_field_content > div{
  917. margin-bottom: 15px;
  918. }
  919. .attachments_container .attachment {
  920. height: 95px;
  921. overflow-x: hidden;
  922. text-align: center;
  923. }
  924. .attachments_container .attachment:hover {
  925. background-color: #e0e0e0;
  926. }
  927. .attachments_container .attachment .attachment_name{
  928. overflow-x: hidden;
  929. text-overflow: ellipsis;
  930. white-space: nowrap;
  931. }
  932. .attachments_container .attachment .btn{
  933. margin-top: 3px;
  934. }
  935. .upload_container input{
  936. display: inline;
  937. }
  938. .upload_container .loader{
  939. visibility: hidden;
  940. margin-left: 7px;
  941. font-size: 1.2em;
  942. animation: spin 1.0s linear infinite;
  943. -webkit-animation: spin 1.0s linear infinite;
  944. -moz-animation: spin 1.0s linear infinite;
  945. -ms-animation: spin 1.0s linear infinite;
  946. }
  947. #drag_overlay{
  948. display: block;
  949. top: inherit;
  950. bottom: 0px;
  951. height: 0px;
  952. }
  953. #drag_overlay .overlay_content{
  954. margin-top: 5em;
  955. width: 100%;
  956. color: white;
  957. }
  958. #drag_overlay .overlay_content .icon{
  959. font-size: 3em;
  960. }
  961. #drag_overlay .overlay_content .message{
  962. font-size: 1.5em;
  963. }
  964. /* Attachments drag & drop zone, only for none mobile devices */
  965. @media (min-width: 768px){
  966. #drag_overlay.drag_in{
  967. animation: show-drop-zone 0.3s ease-out forwards;
  968. -webkit-animation: show-drop-zone 0.3s ease-out forwards;
  969. -moz-animation: show-drop-zone 0.3s ease-out forwards;
  970. -ms-animation: show-drop-zone 0.3s ease-out forwards;
  971. }
  972. #drag_overlay.drag_out{
  973. animation: hide-drop-zone 0.3s ease-out forwards;
  974. -webkit-animation: hide-drop-zone 0.3s ease-out forwards;
  975. -moz-animation: hide-drop-zone 0.3s ease-out forwards;
  976. -ms-animation: hide-drop-zone 0.3s ease-out forwards;
  977. }
  978. @keyframes show-drop-zone{
  979. 100% {
  980. height: 20%;
  981. }
  982. }
  983. @-webkit-keyframes show-drop-zone{
  984. 100% {
  985. height: 20%;
  986. }
  987. }
  988. @-moz-keyframes show-drop-zone{
  989. 100% {
  990. height: 20%;
  991. }
  992. }
  993. @-ms-keyframes show-drop-zone{
  994. 100% {
  995. height: 20%;
  996. }
  997. }
  998. @keyframes hide-drop-zone{
  999. 0% {
  1000. height: 20%;
  1001. }
  1002. 100% {
  1003. height: 0%;
  1004. }
  1005. }
  1006. @-webkit-keyframes hide-drop-zone{
  1007. 0% {
  1008. height: 20%;
  1009. }
  1010. 100% {
  1011. height: 0%;
  1012. }
  1013. }
  1014. @-moz-keyframes hide-drop-zone{
  1015. 0% {
  1016. height: 20%;
  1017. }
  1018. 100% {
  1019. height: 0%;
  1020. }
  1021. }
  1022. @-ms-keyframes hide-drop-zone{
  1023. 0% {
  1024. height: 20%;
  1025. }
  1026. 100% {
  1027. height: 0%;
  1028. }
  1029. }
  1030. }
  1031. /* BlobField */
  1032. .form_fields .file_open_link{
  1033. margin-left: 10px;
  1034. }
  1035. .form_field .form-control-static img{
  1036. max-width: 100% !important;
  1037. height: initial !important;
  1038. }
  1039. .form_buttons{
  1040. padding-top: 20px;
  1041. text-align: center;
  1042. }
  1043. .form_buttons .form_btn_transitions{
  1044. margin-bottom: 20px;
  1045. }
  1046. .form_buttons .btn .glyphicon{
  1047. margin-right: 0.5em;
  1048. }
  1049. .form_btn_regular.sticky{
  1050. display: none;
  1051. }
  1052. @media (min-width: 768px){
  1053. .form_buttons .form_btn_transitions{
  1054. float: right !important;
  1055. margin-left: 3px;
  1056. }
  1057. .form_buttons .form_btn_regular{
  1058. text-align: right;
  1059. }
  1060. .form_buttons .form_btn_regular btn{
  1061. width: inherit;
  1062. }
  1063. /* Making regular button sticky */
  1064. .form_btn_regular.sticky{
  1065. display: block;
  1066. position: fixed;
  1067. bottom: 5em;
  1068. right: -2px; /* TODO : SASS this to col-xs-12 padding */
  1069. padding: 15px;
  1070. background-color: $white;
  1071. border: 1px solid $gray-lighter;
  1072. border-radius: $border-radius-base;
  1073. transition: right 0.3s;
  1074. }
  1075. .form_btn_regular.sticky.closed{
  1076. right: -75px;
  1077. }
  1078. .form_btn_regular.sticky button{
  1079. display: block;
  1080. }
  1081. .form_btn_regular.sticky button:first-child{
  1082. margin-bottom: 4px;
  1083. }
  1084. }
  1085. /* CKEditor : Adding BS error feedback */
  1086. .form_field div.cke{
  1087. border: 1px solid $gray-lighter;
  1088. }
  1089. .form_field.has-error div.cke{
  1090. border: 1px solid $state-danger-text;
  1091. border-radius: $border-radius-base;
  1092. box-shadow: inset 0 1px 1px rgba(0,0,0,0.075);
  1093. }
  1094. /* CKEditor : Styling notifications based on BS alerts */
  1095. .cke_notification{
  1096. position: relative;
  1097. padding: 15px;
  1098. margin-bottom: 18px;
  1099. border: 1px solid transparent;
  1100. border-radius: 4px;
  1101. background-color: $white
  1102. }
  1103. .cke_notification_close{
  1104. position: absolute;
  1105. top: 2px;
  1106. right: 5px;
  1107. }
  1108. .cke_notification_message{
  1109. margin-bottom: 0px;
  1110. line-height: 1em;
  1111. font-size: 1em;
  1112. }
  1113. .cke_notification_success{
  1114. display: none;
  1115. background-color: $alert-success-bg;
  1116. border-color: $alert-success-border;
  1117. color: $alert-success-text;
  1118. }
  1119. .cke_notification_warning{
  1120. background-color: $alert-warning-bg;
  1121. border-color: $alert-warning-border;
  1122. color: $alert-warning-text;
  1123. }
  1124. /* CKEditor : Misc */
  1125. .cke_toolbox_collapser,
  1126. .cke_toolbox_collapser .cke_arrow{
  1127. cursor: pointer !important;
  1128. }
  1129. /* DataTables : Selection inputs */
  1130. .dataTable.table th span.row_input,
  1131. .dataTable.table td span.row_input{
  1132. display: inline-block;
  1133. width: 100%;
  1134. text-align: center;
  1135. }
  1136. /* Wiki text (hyperlinks) */
  1137. .wiki_broken_link {
  1138. text-decoration: line-through;
  1139. }