portal.scss 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245
  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. margin-top: 0px;
  548. }
  549. #brick_content_tree .list-group-item{
  550. padding-top: 0px;
  551. }
  552. #brick_content_tree .list-group-item > .tree-item-wrapper{
  553. display: block;
  554. padding-top: 10px;
  555. color: inherit;
  556. text-decoration: inherit;
  557. cursor: pointer;
  558. }
  559. .list-group-item > .list-group-item-actions{
  560. /*display: none; Displaying actions only when hovering was not unanimous in the team */
  561. position: absolute;
  562. top: 10px;
  563. right: 10px;
  564. }
  565. .list-group-item:hover > .list-group-item-actions,
  566. .grid-group-item:hover > .grid-group-item-actions{
  567. display: block;
  568. }
  569. .list-group-item .list-group-item-actions a:not(:first-child),
  570. .grid-group-item .grid-group-item-actions a:not(:first-child){
  571. margin-left: 10px;
  572. }
  573. .list-group-item .keep-spinning{
  574. animation: spin 1s linear infinite;
  575. -webkit-animation: spin 1s linear infinite;
  576. -moz-animation: spin 1s linear infinite;
  577. -ms-animation: spin 1s linear infinite;
  578. }
  579. .list-group.tree .list-group-item .list-group-item-description{
  580. display: block;
  581. margin-top: 3px;
  582. font-size: 0.8em;
  583. }
  584. /* Secondary actions */
  585. table .group-actions{
  586. position: relative;
  587. }
  588. .list-group-item-actions a.glyphicon-menu-hamburger,
  589. .grid-group-item-actions a.glyphicon-menu-hamburger,
  590. table .group-actions a.glyphicon-menu-hamburger{
  591. cursor: pointer;
  592. text-decoration: none;
  593. }
  594. .list-group-item-actions .item-action-wrapper,
  595. .grid-group-item-actions .item-action-wrapper,
  596. table .group-actions .item-action-wrapper
  597. {
  598. display: none;
  599. position: absolute;
  600. z-index: 5;
  601. bottom: -7px;
  602. right: 15px;
  603. -webkit-box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.15);
  604. -moz-box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.15);
  605. box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.15);
  606. }
  607. .list-group-item-actions .item-action-wrapper .glyphicon,
  608. .grid-group-item-actions .item-action-wrapper .glyphicon,
  609. table .group-actions .item-action-wrapper .glyphicon{
  610. margin-right: 0.6em;
  611. }
  612. .list-group-item-actions .item-action-wrapper.collapse.in,
  613. .grid-group-item-actions .item-action-wrapper.collapse.in,
  614. table .group-actions .item-action-wrapper.collapse.in{
  615. display: block;
  616. }
  617. .list-group-item-actions .item-action-wrapper .panel-body > p,
  618. .grid-group-item-actions .item-action-wrapper .panel-body > p,
  619. table .group-actions .item-action-wrapper .panel-body > p{
  620. text-align: left;
  621. white-space: nowrap;
  622. }
  623. .list-group-item-actions .item-action-wrapper .panel-body > p:last-child,
  624. .grid-group-item-actions .item-action-wrapper .panel-body > p:last-child,
  625. table .group-actions .item-action-wrapper .panel-body > p:last-child{
  626. margin-bottom: 0px;
  627. }
  628. #brick_content_empty{
  629. display: none;
  630. padding: 40px;
  631. font-size: 1.3em;
  632. font-style: italic;
  633. }
  634. /* Loader */
  635. #brick_tree_overlay,
  636. #brick_grid_overlay{
  637. display: none;
  638. padding: 8% 0px;
  639. border-radius: 0px 0px 4px 4px;
  640. font-size: 1em;
  641. }
  642. /****************/
  643. /* - Grid mode */
  644. /* Note: Some of the CSS is factorised in the "Tree mode" part */
  645. /****************/
  646. #brick_content_grid{
  647. position: relative;
  648. padding: 10px 10px 1px 10px;
  649. }
  650. /* Breadcrumb */
  651. #grid-breadcrumb{
  652. margin-bottom: 5px;
  653. padding-left: 0px;
  654. font-size: 12px;
  655. white-space: nowrap;
  656. overflow-x: hidden;
  657. text-overflow: ellipsis;
  658. }
  659. .grid-group{
  660. display: none;
  661. }
  662. /* Only the first level is showed by default */
  663. .grid-group:first-of-type{
  664. display: block;
  665. }
  666. .grid-group-back,
  667. .grid-group-item{
  668. position: relative;
  669. height: 55px;
  670. margin-bottom: 10px;
  671. text-align: center;
  672. color: $white;
  673. }
  674. .grid-group-back{
  675. font-size: 25px;
  676. }
  677. .grid-item{
  678. display: table;
  679. width: 100%;
  680. height: 100%;
  681. overflow: hidden;
  682. background-color: $combodo-dark-gray;
  683. transition: all linear 0.3s;
  684. }
  685. .grid-item,
  686. .grid-item:hover,
  687. .grid-item:active,
  688. .grid-item:focus,
  689. .grid-item:visited{
  690. color: $white;
  691. text-decoration: none;
  692. }
  693. .grid-item:active{
  694. background-color: $combodo-orange-darker;
  695. }
  696. .grid-item-image,
  697. .grid-item-text{
  698. display: table-cell;
  699. text-align: center;
  700. vertical-align: middle;
  701. }
  702. .grid-item-image > img{
  703. max-width: 85%;
  704. }
  705. .grid-group-item > .grid-group-item-actions{
  706. position: absolute;
  707. top: 5px;
  708. right: 5px;
  709. }
  710. .grid-group-item-actions > a{
  711. color: $white;
  712. text-decoration: none;
  713. }
  714. .grid-group-item-actions > a:hover,
  715. .grid-group-item-actions > a:focus{
  716. color: #EEEEEE;
  717. }
  718. @media (max-width: 768px) {
  719. .grid-group-item > .grid-group-item-actions{
  720. top: 12px;
  721. right: 6px;
  722. }
  723. .grid-group-item > .grid-group-item-actions > .glyphicon{
  724. margin-top: 5px;
  725. }
  726. .grid-group-item-actions > a{
  727. font-size: 20px;
  728. }
  729. /* All layout */
  730. .grid-item-image{
  731. width: 55px;
  732. padding: 10px;
  733. }
  734. .grid-item-image > img{
  735. max-height: 30px;
  736. }
  737. .grid-item-name{
  738. font-size: 14px;
  739. }
  740. .grid-item-description{
  741. display: none;
  742. }
  743. /* Layout 2 */
  744. .grid-item-layout-2 .grid-item-description{
  745. display: block;
  746. }
  747. /* Layout 5/7 */
  748. .grid-item-layout-5 .grid-item-name,
  749. .grid-item-layout-7 .grid-item-name{
  750. padding-right: 40px;
  751. }
  752. }
  753. @media (min-width: 768px) {
  754. .grid-group-item{
  755. display: inline-block;
  756. width: 32%;
  757. height: 120px;
  758. margin-right: 1.95%; /* We don't put 2% to keep a margin in case of a bad browser rendering */
  759. }
  760. .grid-item{
  761. padding: 10px;
  762. }
  763. .grid-item:hover,
  764. .grid-item:focus{
  765. background-color: $combodo-orange;
  766. box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.20);
  767. }
  768. /* All layout */
  769. .grid-item-name{
  770. font-weight: 600;
  771. font-size: 12px;
  772. }
  773. .grid-item-description{
  774. overflow: hidden;
  775. }
  776. /* Layout 1 */
  777. .grid-item-layout-1 .grid-item-name{
  778. font-weight: inherit;
  779. font-size: 14px;
  780. }
  781. /* Layout 7 */
  782. .grid-item-layout-7 .grid-item-image{
  783. display: none;
  784. }
  785. .grid-item-layout-3 .grid-item-description,
  786. .grid-item-layout-7 .grid-item-description{
  787. margin-top: 10px;
  788. max-height: 40px;
  789. font-size: 10px;
  790. }
  791. }
  792. @media (min-width: 992px) {
  793. .grid-item{
  794. padding: 10px 15px;
  795. }
  796. .grid-group-back{
  797. font-size: 40px;
  798. }
  799. /* Layout 7 */
  800. .grid-item-layout-7 .grid-item-image{
  801. display: table-cell;
  802. width: 105px;
  803. padding-left: 5px;
  804. padding-right: 18px;
  805. }
  806. .grid-item-layout-7 .grid-item-image > img{
  807. max-width: 100%;
  808. }
  809. .grid-item-layout-7 .grid-item-name{
  810. font-size: 12px;
  811. }
  812. }
  813. @media (min-width: 1200px) {
  814. .grid-group-item{
  815. width: 24%;
  816. height: 140px;
  817. margin-right: 1.3%;
  818. }
  819. }
  820. /* Helper classes to remove margin depending on the screen size */
  821. @media (min-width: 768px) and (max-width: 992px) {
  822. .grid-group-item:nth-child(3n){
  823. margin-right: 0px;
  824. }
  825. }
  826. @media (min-width: 992px) and (max-width: 1200px) {
  827. .grid-group-item:nth-child(3n){
  828. margin-right: 0px;
  829. }
  830. }
  831. @media (min-width: 1200px) {
  832. .grid-group-item:nth-child(4n){
  833. margin-right: 0px;
  834. }
  835. }
  836. /****************/
  837. /* - List mode */
  838. /****************/
  839. /****************/
  840. /* Filter brick */
  841. /****************/
  842. .tile.tile-filter-brick .tile_filterbox .form-group:first-child{
  843. width: 100%;
  844. }
  845. .tile.tile-filter-brick .tile_filterbox input[type="text"]{
  846. width: 100%;
  847. }
  848. @media (max-width: 768px){
  849. .tile.tile-filter-brick .tile_filterbox .form-group:first-child{
  850. margin-bottom: 5px;
  851. }
  852. }
  853. @media (min-width: 768px){
  854. .tile.tile-filter-brick .tile_filterbox form{
  855. display: table;
  856. }
  857. .tile.tile-filter-brick .tile_filterbox .form-group:first-child{
  858. display: table-cell;
  859. }
  860. .tile.tile-filter-brick .tile_filterbox button[type="submit"]{
  861. margin-left: 5px;
  862. }
  863. }
  864. @media (min-width: 992px)
  865. {
  866. .tile.tile-filter-brick .tile_filterbox .form-group:first-child{
  867. display: table-cell;
  868. }
  869. }
  870. /*********/
  871. /* Forms */
  872. /*********/
  873. .form_field .form_mandatory .control-label:after{
  874. content: "\002a";
  875. position: relative;
  876. left: 3px;
  877. color: $brand-primary;
  878. font-size: 0.9em;
  879. }
  880. /* InlineImage */
  881. .inline-image{
  882. cursor: pointer;
  883. cursor: zoom-in;
  884. }
  885. /* CaseLog field */
  886. .caselog_field_entry{
  887. border: 1px solid $gray-lighter;
  888. border-top: none;
  889. }
  890. .caselog_field_entry_header{
  891. padding: 6px;
  892. font-size: 1em;
  893. border-bottom: 1px solid $white;
  894. background-color: #F2F2F2;
  895. }
  896. .caselog_field_entry_button{
  897. display: block;
  898. width: 15px;
  899. height: 15px;
  900. text-align: center;
  901. line-height: 15px;
  902. font-size: 16px;
  903. border: 1px solid #a6a6a6;
  904. border-bottom-color: #979797;
  905. cursor: pointer;
  906. }
  907. .caselog_field_entry_button:hover{
  908. background-color: #cccccc;
  909. }
  910. .caselog_field_entry_button:before{
  911. content: "▴";
  912. }
  913. .caselog_field_entry_button.collapsed:before{
  914. content: "▾";
  915. }
  916. .caselog_field_entry_content{
  917. margin: 10px;
  918. overflow-x: auto;
  919. }
  920. /* LinkedSet*/
  921. .form_linkedset_toggler,
  922. .form_linkedset_toggler:hover,
  923. .form_linkedset_toggler:focus{
  924. text-decoration: none;
  925. color: inherit;
  926. }
  927. .form_linkedset_toggler > .text{
  928. margin-left: 0.4em;
  929. }
  930. .form_linkedset_toggler > .text:before{
  931. content: "(";
  932. }
  933. .form_linkedset_toggler > .text:after{
  934. content: ")";
  935. }
  936. .form_linkedset_toggler > .glyphicon{
  937. margin-left: 0.5em;
  938. font-size: 0.85em;
  939. color: $combodo-orange;
  940. transition: transform 0.2s linear;
  941. }
  942. .form_linkedset_toggler > .glyphicon.collapsed{
  943. transform: rotateZ(-90deg);
  944. }
  945. /* - DataTables : Loader */
  946. .form_linkedset_wrapper .datatables_overlay{
  947. padding: 8px !important;
  948. }
  949. .form_linkedset_wrapper .overlay_content{
  950. font-size: 0.6em;
  951. }
  952. .form_linkedset_wrapper .content_loader{
  953. margin: 0px;
  954. }
  955. .form_linkedset_wrapper .content_loader .icon{
  956. height: 23px;
  957. }
  958. /* - DataTables : Fit the table in the form */
  959. .form_linkedset_wrapper .dataTables_wrapper{
  960. margin-bottom: 5px;
  961. padding: 0px;
  962. }
  963. /* FileUpload */
  964. .fileupload_field_content{
  965. padding: 8px 23px;
  966. border: 1px solid $gray-lighter;
  967. background-color: #F9F9F9;
  968. }
  969. .fileupload_field_content > div{
  970. margin-bottom: 15px;
  971. }
  972. .attachments_container .attachment {
  973. height: 95px;
  974. overflow-x: hidden;
  975. text-align: center;
  976. }
  977. .attachments_container .attachment:hover {
  978. background-color: #e0e0e0;
  979. }
  980. .attachments_container .attachment .attachment_name{
  981. overflow-x: hidden;
  982. text-overflow: ellipsis;
  983. white-space: nowrap;
  984. }
  985. .attachments_container .attachment .btn{
  986. margin-top: 3px;
  987. }
  988. .upload_container input{
  989. display: inline;
  990. }
  991. .upload_container .loader{
  992. visibility: hidden;
  993. margin-left: 7px;
  994. font-size: 1.2em;
  995. animation: spin 1.0s linear infinite;
  996. -webkit-animation: spin 1.0s linear infinite;
  997. -moz-animation: spin 1.0s linear infinite;
  998. -ms-animation: spin 1.0s linear infinite;
  999. }
  1000. #drag_overlay{
  1001. display: block;
  1002. top: inherit;
  1003. bottom: 0px;
  1004. height: 0px;
  1005. }
  1006. #drag_overlay .overlay_content{
  1007. margin-top: 5em;
  1008. width: 100%;
  1009. color: white;
  1010. }
  1011. #drag_overlay .overlay_content .icon{
  1012. font-size: 3em;
  1013. }
  1014. #drag_overlay .overlay_content .message{
  1015. font-size: 1.5em;
  1016. }
  1017. /* Attachments drag & drop zone, only for none mobile devices */
  1018. @media (min-width: 768px){
  1019. #drag_overlay.drag_in{
  1020. animation: show-drop-zone 0.3s ease-out forwards;
  1021. -webkit-animation: show-drop-zone 0.3s ease-out forwards;
  1022. -moz-animation: show-drop-zone 0.3s ease-out forwards;
  1023. -ms-animation: show-drop-zone 0.3s ease-out forwards;
  1024. }
  1025. #drag_overlay.drag_out{
  1026. animation: hide-drop-zone 0.3s ease-out forwards;
  1027. -webkit-animation: hide-drop-zone 0.3s ease-out forwards;
  1028. -moz-animation: hide-drop-zone 0.3s ease-out forwards;
  1029. -ms-animation: hide-drop-zone 0.3s ease-out forwards;
  1030. }
  1031. @keyframes show-drop-zone{
  1032. 100% {
  1033. height: 20%;
  1034. }
  1035. }
  1036. @-webkit-keyframes show-drop-zone{
  1037. 100% {
  1038. height: 20%;
  1039. }
  1040. }
  1041. @-moz-keyframes show-drop-zone{
  1042. 100% {
  1043. height: 20%;
  1044. }
  1045. }
  1046. @-ms-keyframes show-drop-zone{
  1047. 100% {
  1048. height: 20%;
  1049. }
  1050. }
  1051. @keyframes hide-drop-zone{
  1052. 0% {
  1053. height: 20%;
  1054. }
  1055. 100% {
  1056. height: 0%;
  1057. }
  1058. }
  1059. @-webkit-keyframes hide-drop-zone{
  1060. 0% {
  1061. height: 20%;
  1062. }
  1063. 100% {
  1064. height: 0%;
  1065. }
  1066. }
  1067. @-moz-keyframes hide-drop-zone{
  1068. 0% {
  1069. height: 20%;
  1070. }
  1071. 100% {
  1072. height: 0%;
  1073. }
  1074. }
  1075. @-ms-keyframes hide-drop-zone{
  1076. 0% {
  1077. height: 20%;
  1078. }
  1079. 100% {
  1080. height: 0%;
  1081. }
  1082. }
  1083. }
  1084. /* BlobField */
  1085. .form_fields .file_open_link{
  1086. margin-left: 10px;
  1087. }
  1088. .form_field .form-control-static img{
  1089. max-width: 100% !important;
  1090. height: initial !important;
  1091. }
  1092. .form_buttons{
  1093. padding-top: 20px;
  1094. text-align: center;
  1095. }
  1096. .form_buttons .form_btn_misc {
  1097. margin-bottom: 20px;
  1098. }
  1099. .form_buttons .form_btn_transitions{
  1100. margin-bottom: 20px;
  1101. }
  1102. .form_buttons .btn .glyphicon{
  1103. margin-right: 0.5em;
  1104. }
  1105. .form_btn_regular.sticky{
  1106. display: none;
  1107. }
  1108. @media (min-width: 768px){
  1109. .form_buttons .form_btn_misc{
  1110. float: left !important;
  1111. }
  1112. .form_buttons .form_btn_transitions{
  1113. float: right !important;
  1114. margin-left: 3px;
  1115. }
  1116. .form_buttons .form_btn_regular{
  1117. text-align: right;
  1118. }
  1119. .form_buttons .form_btn_regular btn{
  1120. width: inherit;
  1121. }
  1122. /* Making regular button sticky */
  1123. .form_btn_regular.sticky{
  1124. display: block;
  1125. position: fixed;
  1126. bottom: 5em;
  1127. right: -2px; /* TODO : SASS this to col-xs-12 padding */
  1128. padding: 15px;
  1129. background-color: $white;
  1130. border: 1px solid $gray-lighter;
  1131. border-radius: $border-radius-base;
  1132. transition: right 0.3s;
  1133. }
  1134. .form_btn_regular.sticky.closed{
  1135. right: -75px;
  1136. }
  1137. .form_btn_regular.sticky button{
  1138. display: block;
  1139. }
  1140. .form_btn_regular.sticky button:first-child{
  1141. margin-bottom: 4px;
  1142. }
  1143. }
  1144. /* CKEditor : Adding BS error feedback */
  1145. .form_field div.cke{
  1146. border: 1px solid $gray-lighter;
  1147. }
  1148. .form_field.has-error div.cke{
  1149. border: 1px solid $state-danger-text;
  1150. border-radius: $border-radius-base;
  1151. box-shadow: inset 0 1px 1px rgba(0,0,0,0.075);
  1152. }
  1153. /* CKEditor : Styling notifications based on BS alerts */
  1154. .cke_notification{
  1155. position: relative;
  1156. padding: 15px;
  1157. margin-bottom: 18px;
  1158. border: 1px solid transparent;
  1159. border-radius: 4px;
  1160. background-color: $white
  1161. }
  1162. .cke_notification_close{
  1163. position: absolute;
  1164. top: 2px;
  1165. right: 5px;
  1166. }
  1167. .cke_notification_message{
  1168. margin-bottom: 0px;
  1169. line-height: 1em;
  1170. font-size: 1em;
  1171. }
  1172. .cke_notification_success{
  1173. display: none;
  1174. background-color: $alert-success-bg;
  1175. border-color: $alert-success-border;
  1176. color: $alert-success-text;
  1177. }
  1178. .cke_notification_warning{
  1179. background-color: $alert-warning-bg;
  1180. border-color: $alert-warning-border;
  1181. color: $alert-warning-text;
  1182. }
  1183. /* CKEditor : Misc */
  1184. .cke_toolbox_collapser,
  1185. .cke_toolbox_collapser .cke_arrow{
  1186. cursor: pointer !important;
  1187. }
  1188. /* DataTables : Selection inputs */
  1189. .dataTable.table th span.row_input,
  1190. .dataTable.table td span.row_input{
  1191. display: inline-block;
  1192. width: 100%;
  1193. text-align: center;
  1194. }
  1195. /* Wiki text (hyperlinks) */
  1196. .wiki_broken_link {
  1197. text-decoration: line-through;
  1198. }