portal.scss 19 KB

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