page.inbox.less 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736
  1. .enable_inbox() when(@enable-inbox = true) {
  2. .inbox-tabs.nav-tabs {
  3. > li {
  4. > a {
  5. background-color:#FAFAFA;
  6. }
  7. &.active:not(.open) > a {
  8. & , &:hover, &:focus {
  9. background-color:#F1F5FA;
  10. box-shadow:0 -2px 3px 0 rgba(0, 0, 0, 0.1);
  11. color:#48768E;
  12. }
  13. }
  14. > a.btn-new-mail {
  15. background-color:transparent;
  16. border:none !important;
  17. padding:0 !important;
  18. > .btn {
  19. border-width:0 !important;
  20. border-radius:3px !important;
  21. padding:0 6px !important;
  22. position:relative;
  23. transition:none !important;
  24. }
  25. }
  26. &.active > a.btn-new-mail {
  27. box-shadow:none !important;
  28. > .btn:before {
  29. content: "";
  30. display: block;
  31. position: absolute;
  32. top: 100%;
  33. left: 50%;
  34. margin-left: -6px;
  35. border-width:6px 8px;
  36. border-style:solid;
  37. border-color:transparent;
  38. border-top-color:inherit;
  39. }
  40. }
  41. }
  42. &.tab-size-bigger > li {
  43. > a {
  44. padding: 5px 15px 7px;
  45. font-size: @font-size-inbox-tab-large;
  46. > .@{icon}:first-child {
  47. margin-bottom: 5px;
  48. }
  49. &.btn-new-mail > .btn{
  50. padding: 10px !important;
  51. border-radius: 7px !important;
  52. }
  53. }
  54. &.active > a.btn-new-mail {
  55. margin-top:0 !important;
  56. top:1px;
  57. }
  58. &.active > a.btn-new-mail > .btn:before {
  59. left: 50%;
  60. margin-left: -8px;
  61. border-width:8px 10px;
  62. }
  63. }
  64. }
  65. @media only screen and (max-width: @screen-tiny-max) {//475px
  66. .inbox-tabs > .li-new-mail {
  67. display:block;
  68. text-align:right;
  69. margin-bottom:8px !important;
  70. float:none !important;
  71. }
  72. .inbox-tabs > .li-new-mail > .btn-new-mail {
  73. display:inline-block;
  74. width:auto;
  75. }
  76. }
  77. .message-container {
  78. position:relative;
  79. }
  80. .message-list {
  81. position:relative;
  82. }
  83. .message-item {
  84. border:1px solid #EAEDF1;
  85. border-bottom-width:0;
  86. padding:12px 12px 14px;
  87. line-height:18px;
  88. position:relative;
  89. background-color:#FFF;
  90. &:first-child {
  91. border-top-width:0;
  92. }
  93. &:hover {
  94. border-color:#E2EAF2;
  95. background-color:#F2F6F9;
  96. + .message-item {
  97. border-top-color:#E2EAF2;
  98. &.selected {
  99. border-top-color:#FFF;
  100. }
  101. }
  102. }
  103. &.selected {
  104. background-color:#EFF4F7;
  105. border-color:#FFF #E2EAF2;
  106. + .message-item{
  107. border-top-color:#FFF;
  108. &:hover + .message-item {
  109. border-top-color:#FFF;
  110. }
  111. }
  112. }
  113. }
  114. .message-navbar , .message-item {
  115. input.ace + .lbl::before {
  116. top: auto;
  117. }
  118. }
  119. .message-item {
  120. .sender {
  121. margin:0 6px 0 4px;
  122. vertical-align:middle;
  123. color:#467287;
  124. display:inline-block;
  125. width:110px; height:18px;
  126. text-overflow:ellipsis;
  127. overflow:hidden;
  128. white-space: nowrap;
  129. cursor:pointer;
  130. }
  131. &.message-unread .sender {
  132. color:#6A9CBA; font-weight:bold;
  133. }
  134. .summary {
  135. vertical-align:middle;
  136. display:inline-block;
  137. position:relative;
  138. margin-left:30px;
  139. max-width: 250px;
  140. max-width: ~"calc(100% - 300px)";
  141. min-width: 200px;
  142. white-space: nowrap;
  143. .text {
  144. color:#555;
  145. vertical-align:middle;
  146. display:inline-block;
  147. width:auto;
  148. max-width:100%;
  149. height:18px;
  150. text-overflow:ellipsis;
  151. overflow:hidden;
  152. white-space: nowrap;
  153. cursor:pointer;
  154. &:hover {
  155. text-decoration:underline;
  156. }
  157. }
  158. .message-flags {
  159. display:block;
  160. position:absolute;
  161. right: 100%;
  162. margin-right: 4px;
  163. height:18px;
  164. white-space: nowrap;
  165. }
  166. }
  167. &.message-unread .summary .text {
  168. color:#609FC4;
  169. font-weight:bold;
  170. }
  171. .time {
  172. float:right;
  173. width:60px;
  174. height:18px;
  175. text-overflow:ellipsis;
  176. overflow:hidden;
  177. white-space: nowrap;
  178. color:#666;
  179. }
  180. &.message-unread .time {
  181. font-weight: bold;
  182. color: #609FC4;
  183. }
  184. &.message-unread .message-content .time {
  185. font-weight: normal;
  186. }
  187. .attachment {
  188. color: #999;
  189. font-size: @font-size-inbox-attachment-icon;
  190. vertical-align: middle;
  191. float: right;
  192. margin: 0 12px;
  193. position: relative;
  194. }
  195. &.message-unread .attachment{
  196. color:#4F99C6;
  197. }
  198. }
  199. .message-content .time {
  200. font-weight: normal;
  201. }
  202. .message-star{
  203. vertical-align: middle;
  204. margin: 2px 4px 0 6px;
  205. font-size: @font-size-inbox-start-icon;
  206. cursor: pointer;
  207. &:hover {
  208. color: @ace-orange2 !important;
  209. text-decoration: none;
  210. }
  211. }
  212. .mail-tag:empty {
  213. display:inline-block;
  214. width:8px; height:11px;
  215. padding:0; line-height:normal;
  216. vertical-align:middle;
  217. margin:0 1px 0 0;
  218. }
  219. .badge.mail-tag{
  220. border-radius:2px;
  221. }
  222. .dropdown-menu > li > a >.mail-tag {
  223. vertical-align: inherit;
  224. }
  225. @media only screen and (max-width: @screen-sm-max) {
  226. .message-item .summary {
  227. min-width:0;
  228. }
  229. .message-item .sender {
  230. width:100px;
  231. }
  232. }
  233. @media only screen and (max-width: 550px) {
  234. .message-item .summary {
  235. margin:8px 0 0 32px;
  236. max-width:95%;
  237. min-width:0;
  238. display:block;
  239. }
  240. .message-item .sender {
  241. width:auto;
  242. max-width:150px;
  243. }
  244. .message-item .summary .text {
  245. max-width:95%;
  246. }
  247. }
  248. .btn-message , .btn-message:hover , .btn-message:focus, .btn-message:active, .open .btn-message.dropdown-toggle {
  249. background-color:#FFF !important;
  250. border:1px solid #94B9CE !important;
  251. color:#7CA3BA !important;
  252. text-shadow:none !important;
  253. }
  254. .message-content {
  255. padding:16px 12px;
  256. border:1px solid #E9E9E9;
  257. .box-shadow(~"0 0 1px 1px rgba(0,0,0,0.02)");
  258. background-color:rgba(255,255,255,0.8);
  259. border-top-width:0;
  260. .message-item & {
  261. margin-top:16px;
  262. border-top-width:1px;
  263. }
  264. }
  265. .message-body {
  266. padding:0 9px;
  267. color:#6A7177;
  268. }
  269. .message-navbar {
  270. line-height:24px;
  271. padding:10px 12px;
  272. border:1px solid #D6E1EA;
  273. border-color:#D6E1EA transparent;
  274. background-color:#F1F5FA;
  275. text-align: center;
  276. position:relative;
  277. }
  278. .message-navbar , .message-content {
  279. .dropdown-toggle {
  280. color:#777;
  281. &:hover, &:focus {
  282. text-decoration:none;
  283. color:#2283C5;
  284. }
  285. }
  286. }
  287. .message-bar {
  288. display:inline-block;
  289. min-height:28px;
  290. }
  291. @media only screen and (max-width: @screen-xs) {
  292. .message-bar {
  293. display:block;
  294. min-height:60px;
  295. }
  296. }
  297. .message-footer {
  298. background-color: #F1F1F1;
  299. padding: 12px 16px;
  300. border: 1px solid #E6E6E6;
  301. border-width: 1px 0;
  302. border-top: 1px solid #E4E9EE;
  303. .pagination {
  304. margin: 0;
  305. > li {
  306. margin: 0;
  307. padding: 0;
  308. > a , > span {
  309. color: #777;
  310. padding: 3px 6px;
  311. margin-left: 1px;
  312. margin-right: 1px;
  313. background-color: transparent;
  314. border: 1px solid transparent;
  315. }
  316. &.disabled > span {
  317. color: #BBBBBB;
  318. cursor: default;
  319. background-color: transparent;
  320. border-color: transparent;
  321. }
  322. > a:hover {
  323. border-color: lighten(desaturate(#2283C5 , 25%) , 25%);
  324. color: #2283C5;
  325. text-decoration: none;
  326. background-color: #FFF;
  327. }
  328. }
  329. }
  330. input[type=text] {
  331. font-size: @base-font-size - 1;
  332. width: 34px;
  333. height: 24px;
  334. line-height: 20px;
  335. margin-bottom: 0;
  336. padding: 3px;
  337. vertical-align: middle;
  338. text-align: center;
  339. }
  340. }
  341. .message-footer-style2 .pagination > li {
  342. > a , > span {
  343. border: 1px solid #B5B5B5;
  344. border-radius: 100% !important;
  345. width: 26px;
  346. height: 26px;
  347. line-height: 26px;
  348. display: inline-block;
  349. text-align: center;
  350. padding: 0;
  351. }
  352. > span , &.disabled > span {
  353. border-color:#CCC;
  354. }
  355. > a:hover {
  356. border-color: #84AFC9;
  357. background-color: #F7F7F7;
  358. }
  359. }
  360. .message-item.message-inline-open {
  361. background-color:#F2F6F9;
  362. border:1px solid #DDD;
  363. border-bottom-color:#CCC;
  364. &:first-child {
  365. border-top-color:#EEE;
  366. }
  367. &:last-child {
  368. border-bottom-color:#DDD;
  369. }
  370. + .message-item {
  371. border-bottom-color:transparent;
  372. }
  373. }
  374. .message-loading-overlay {
  375. position: absolute;
  376. z-index: 14;
  377. top: 0;
  378. bottom: 0;
  379. right: 0;
  380. left: 0;
  381. background-color: rgba(255,255,255,0.5);
  382. text-align: center;
  383. > .@{icon} {
  384. position: absolute;
  385. top: 15%;
  386. left: 0;
  387. right: 0;
  388. text-align: center;
  389. }
  390. }
  391. .message-content {
  392. .sender {
  393. color:#6A9CBA;
  394. font-weight:bold;
  395. width:auto;
  396. text-overflow:inherit;
  397. vertical-align:middle;
  398. margin:0;
  399. }
  400. .time {
  401. width:auto;
  402. text-overflow:inherit;
  403. white-space:normal;
  404. float:none;
  405. vertical-align:middle;
  406. }
  407. }
  408. ul.attachment-list {
  409. margin:6px 0 4px 8px;
  410. > li{
  411. margin-bottom:3px;
  412. }
  413. }
  414. .message-attachment {
  415. padding-left:10px;
  416. padding-right:10px;
  417. }
  418. .attached-file {
  419. color: #777;
  420. width: 200px;
  421. display: inline-block;
  422. > .@{icon} {
  423. display: inline-block;
  424. width: 16px;
  425. margin-right: 2px;
  426. vertical-align: middle;
  427. }
  428. &:hover {
  429. text-decoration: none;
  430. color: #438EB9;
  431. .attached-name {
  432. color: #2283C5;
  433. }
  434. }
  435. .attached-name {
  436. display: inline-block;
  437. max-width: 175px;
  438. text-overflow: ellipsis;
  439. overflow: hidden;
  440. white-space: nowrap;
  441. vertical-align: middle;
  442. }
  443. }
  444. .messagebar-item-left , .messagebar-item-right {
  445. position: absolute;
  446. bottom: 14px;
  447. left: 12px;
  448. text-align: left;
  449. }
  450. .messagebar-item-right {
  451. right: 12px;
  452. left: auto;
  453. }
  454. .message-navbar .nav-search {
  455. right: auto;
  456. left: 5px;
  457. top: auto;
  458. bottom: 11px;
  459. }
  460. .message-navbar .messagebar-item-left ~ .nav-search {
  461. left: 60px;
  462. }
  463. .message-form {
  464. border:1px solid #ddd;
  465. border-top:none;
  466. padding-top:22px;
  467. }
  468. @media only screen and (max-width: @screen-xs) {
  469. .message-form {
  470. padding-left:16px;
  471. padding-right:16px;
  472. }
  473. }
  474. .message-form {
  475. .form-actions {
  476. margin-bottom:0;
  477. }
  478. .wysiwyg-editor {
  479. overflow:auto;
  480. min-height:150px;
  481. max-height:250px;
  482. height:auto;
  483. }
  484. }
  485. .btn-send-message {
  486. position: relative;
  487. top: 6px;
  488. vertical-align: middle;
  489. }
  490. .btn-back-message-list {
  491. color: #777;
  492. &:hover {
  493. color: #478FCA;
  494. text-decoration: none;
  495. }
  496. }
  497. .message-condensed {
  498. .message-item {
  499. padding-top:8px;
  500. padding-bottom:9px;
  501. }
  502. .message-navbar , .message-footer {
  503. padding-top:7px;
  504. padding-bottom:7px;
  505. }
  506. .messagebar-item-left , .messagebar-item-right {
  507. bottom:9px;
  508. }
  509. .message-navbar .nav-search {
  510. bottom:7px;
  511. }
  512. }
  513. @media only screen and (max-width: @screen-xs) {
  514. .message-condensed .message-bar {
  515. min-height:42px;
  516. }
  517. }
  518. .enable_inbox_tabless() when(@enable-inbox-tabless = true) {
  519. //alternative to tabs
  520. .inbox-folders .btn-block {
  521. margin-top:0;
  522. }
  523. @media only screen and (max-width: @screen-xs-max) {
  524. .inbox-folders.inbox-folders-responsive .btn-block {
  525. width:24%;
  526. }
  527. }
  528. @media only screen and (max-width: 600px) {
  529. .inbox-folders.inbox-folders-responsive .btn-block {
  530. width:48%;
  531. }
  532. }
  533. @media only screen and (max-width: @screen-tiny) {
  534. .inbox-folders.inbox-folders-responsive .btn-block {
  535. width:99%;
  536. }
  537. }
  538. .inbox-folders .btn-lighter , .inbox-folders .btn-lighter.active {
  539. background-color:#F4F4F4 !important;
  540. text-shadow:none !important;
  541. color:#7C8395 !important;
  542. border:1px solid #FFF !important;
  543. padding:5px 11px;
  544. }
  545. .inbox-folders .btn-lighter.active {
  546. background-color:#EDF2F8 !important;
  547. color:#53617C !important;
  548. }
  549. .inbox-folders .btn-lighter:hover {
  550. background-color:#EFEFEF !important;
  551. color:#6092C4 !important;
  552. }
  553. .inbox-folders .btn > .@{icon}:first-child {
  554. display:inline-block;
  555. width:14px;
  556. text-align:left;
  557. }
  558. .inbox-folders .btn-lighter + .btn-lighter {
  559. border-top-width:0 !important;
  560. }
  561. .inbox-folders .btn.active:before{
  562. display:block;
  563. content:"";
  564. position:absolute;
  565. top:1px; bottom:1px; left:-1px;
  566. border-left:3px solid #4F99C6;
  567. }
  568. .inbox-folders .btn.active:after{
  569. display:none;
  570. }
  571. .inbox-folders .btn .counter {
  572. border-radius:3px;
  573. position:absolute;
  574. right: 8px;
  575. top:8px;
  576. padding-left:6px; padding-right:6px;
  577. .opacity(0.75);
  578. }
  579. .inbox-folders .btn:hover .badge{
  580. .opacity(1);
  581. }
  582. }
  583. .enable_inbox_tabless();
  584. }
  585. .enable_inbox();