_mailbox.scss 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560
  1. $color-light-grey: #EFEFEF;
  2. $color-dark-grey: #888;
  3. $color-red: #D23B3D;
  4. $color-orange: #E2A917;
  5. $color-blue: #1BC3E1;
  6. $color-green: #9AE14F;
  7. // MAILBOX GENERIC
  8. // -----------------------------------------------------------------------------
  9. .mailbox {
  10. .content-with-menu-container {
  11. background: #FFF;
  12. }
  13. .mailbox-bullets {
  14. .ball {
  15. border: 5px solid red;
  16. border-radius: 100px;
  17. display: block;
  18. float: right;
  19. margin-top: 6px;
  20. &.pink {
  21. border-color: #EA4C89;
  22. }
  23. &.green {
  24. border-color: #9AE14F;
  25. }
  26. &.blue {
  27. border-color: #1BC3E1;
  28. }
  29. &.orange {
  30. border-color: #E2A917;
  31. }
  32. }
  33. }
  34. }
  35. // MAILBOX MAIN
  36. // -----------------------------------------------------------------------------
  37. .mailbox .mailbox-folder {
  38. height: auto !important;
  39. padding: 0 0 $content-body-padding;
  40. }
  41. // MAILBOX HEADER
  42. // -----------------------------------------------------------------------------
  43. /* mailbox - main header */
  44. .mailbox .mailbox-folder .mailbox-header {
  45. padding: 38px 40px 43px;
  46. @media only screen and (max-width: 767px) {
  47. padding: 20px;
  48. }
  49. .mailbox-title {
  50. @media only screen and (max-width: 767px) {
  51. margin-bottom: 10px !important;
  52. }
  53. }
  54. .search {
  55. float: right;
  56. margin-top: 3px;
  57. max-width: 100px;
  58. input[type="text"] {
  59. @include transition-property( width, margin );
  60. @include transition-duration( .3s );
  61. @include transition-timing-function( cubic-bezier(.05, .91, .25, .99) );
  62. &:focus {
  63. margin-left: -150%;
  64. width: 250%;
  65. @media only screen and (max-width: 767px) {
  66. margin-left: 0;
  67. width: 100%;
  68. }
  69. }
  70. }
  71. @media only screen and (max-width: 767px) {
  72. max-width: none;
  73. }
  74. }
  75. }
  76. // MAILBOX ACTIONS
  77. // -----------------------------------------------------------------------------
  78. /* mailbox - actions */
  79. .mailbox .mailbox-actions {
  80. border: {
  81. top: 1px solid $color-light-grey;
  82. }
  83. padding: {
  84. left: 40px;
  85. right: 40px;
  86. }
  87. @media only screen and (max-width: 767px) {
  88. padding: {
  89. left: 20px;
  90. right: 20px;
  91. }
  92. text-align: center;
  93. }
  94. ul {
  95. a.item-action {
  96. background: #FFF;
  97. border-radius: 100px;
  98. box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.2);
  99. color: #B4BBC1;
  100. display: inline-block;
  101. @include font-size( 14 );
  102. height: 30px;
  103. @include line-height( 30 );
  104. position: relative;
  105. width: 30px;
  106. text-align: center;
  107. @include transition-property( color );
  108. @include transition-duration( .3s );
  109. @include transition-timing-function( cubic-bezier(.2, .6, .25, 1) );
  110. @include transition-delay( .1s );
  111. &:hover {
  112. color: #57636C;
  113. text-decoration: none;
  114. }
  115. @each $state in $states {
  116. &.text-#{nth($state,1)} {
  117. &:hover {
  118. color: darken(nth($state,2), 10%) !important;
  119. }
  120. }
  121. }
  122. }
  123. }
  124. }
  125. /* mailbox - mail list */
  126. .mailbox .mailbox-email-list {
  127. border: {
  128. top: 1px solid lighten($color-light-grey, 3%);
  129. }
  130. @include font-size( 15 );
  131. font-weight: 300;
  132. @media only screen and (max-width: 767px) {
  133. position: static !important;
  134. }
  135. li {
  136. border: {
  137. bottom: 1px solid lighten($color-light-grey, 3%);
  138. }
  139. height: 50px;
  140. line-height: 50px;
  141. padding: 0 40px;
  142. position: relative;
  143. @media only screen and (max-width: 767px) {
  144. height: 75px;
  145. padding: 0 20px;
  146. }
  147. a {
  148. color: #777;
  149. }
  150. &:hover {
  151. background: #FAFAFA;
  152. }
  153. &.unread {
  154. a {
  155. color: #555;
  156. font-weight: 500;
  157. }
  158. }
  159. &.active {
  160. background: $color-primary;
  161. a {
  162. color: $color-primary-inverse;
  163. }
  164. }
  165. }
  166. .mail-label {
  167. border: 4px solid transparent;
  168. border-radius: 10px;
  169. display: inline-block;
  170. left: 16px;
  171. position: absolute;
  172. top: 21px;
  173. @media only screen and (max-width: 767px) {
  174. border-radius: 0;
  175. border-width: 1px;
  176. bottom: 0;
  177. left: 0;
  178. top: 0;
  179. }
  180. }
  181. .col-sender {
  182. float: left;
  183. overflow: hidden;
  184. text-overflow: ellipsis;
  185. width: 250px;
  186. white-space: nowrap;
  187. @media only screen and (max-width: 767px) {
  188. width: 100%;
  189. }
  190. p {
  191. left: 80px;
  192. overflow: hidden;
  193. position: absolute;
  194. right: 0;
  195. text-overflow: ellipsis;
  196. top: 0;
  197. white-space: nowrap;
  198. @media only screen and (max-width: 767px) {
  199. left: 60px;
  200. }
  201. }
  202. }
  203. .col-mail {
  204. bottom: 0;
  205. left: 290px;
  206. position: absolute;
  207. right: 40px;
  208. top: 0;
  209. @media only screen and (max-width: 767px) {
  210. left: 60px;
  211. right: 20px;
  212. }
  213. .mail-content,
  214. .mail-date,
  215. .mail-attachment {
  216. position: absolute;
  217. top: 0;
  218. }
  219. .mail-content {
  220. left: 0;
  221. right: 140px;
  222. overflow: hidden;
  223. white-space: nowrap;
  224. text-overflow: ellipsis;
  225. @media only screen and (max-width: 767px) {
  226. right: 0;
  227. top: 25px;
  228. }
  229. }
  230. .mail-attachment {
  231. color: #BBB;
  232. right: 100px;
  233. line-height: 50px;
  234. @media only screen and (max-width: 767px) {
  235. @include font-size( 11 );
  236. @include line-height( 14 );
  237. right: 55px;
  238. top: 6px;
  239. }
  240. }
  241. .mail-date {
  242. padding-left: 80px;
  243. right: 0;
  244. width: 150px;
  245. @media only screen and (max-width: 767px) {
  246. @include font-size( 10 );
  247. @include line-height( 14 );
  248. padding-left: 0;
  249. text-align: right;
  250. top: 5px;
  251. width: 130px;
  252. }
  253. }
  254. }
  255. }
  256. /* Mailbox Mail List - Unstyle nano for non fixed layouts and responsive */
  257. html.scroll,
  258. html.boxed {
  259. .mailbox .mailbox-email-list {
  260. .nano {
  261. position: static;
  262. height: auto;
  263. overflow: visible;
  264. width: auto;
  265. .nano-content {
  266. position: static;
  267. overflow: visible;
  268. }
  269. }
  270. }
  271. }
  272. @media only screen and (max-width: 767px) {
  273. .mailbox .mailbox-email-list {
  274. .nano {
  275. position: static;
  276. height: auto;
  277. overflow: visible;
  278. width: auto;
  279. .nano-content {
  280. position: static;
  281. overflow: visible;
  282. }
  283. }
  284. }
  285. }
  286. /* Mailbox Mail List + Fixed Layout */
  287. @media only screen and (min-width: 768px) {
  288. html.fixed {
  289. .mailbox .mailbox-email-list {
  290. bottom: 0;
  291. left: 0;
  292. position: absolute;
  293. right: 0;
  294. overflow: hidden;
  295. top: 191px;
  296. }
  297. }
  298. }
  299. // MAILBOX MAIL
  300. // -----------------------------------------------------------------------------
  301. /* Mailbox - Email */
  302. .mailbox .mailbox-email {
  303. background: #FAFAFA;
  304. .mailbox-email-header {
  305. background: #FFF;
  306. box-shadow: 0 0 3px 0 rgba(0, 0, 0, 0.2);
  307. margin: (-($content-body-padding)) (-($content-body-padding)) 0 (-($content-body-padding));
  308. padding: 30px;
  309. @media only screen and (max-width: 767px) {
  310. margin-left: -15px;
  311. margin-right: -15px;
  312. }
  313. }
  314. .mailbox-close-mail {
  315. color: $color-primary;
  316. cursor: pointer;
  317. font-weight: 300;
  318. float: left;
  319. &:hover {
  320. color: lighten( $color-primary, 5% );
  321. }
  322. &,
  323. &:focus {
  324. text-decoration: none;
  325. }
  326. }
  327. .panel {
  328. .panel-heading {
  329. background: #FFF;
  330. border-bottom-color: #EFEFEF;
  331. .panel-actions {
  332. top: 17px;
  333. a {
  334. &:hover {
  335. background: #FFF;
  336. color: $color-primary;
  337. }
  338. }
  339. }
  340. }
  341. .panel-footer {
  342. background: #FFF;
  343. border-top-color: #EFEFEF;
  344. color: #BBB;
  345. }
  346. }
  347. }
  348. /* Mailbox - Showing Menu Toggle */
  349. @media only screen and (min-width: 768px) and (max-width: 1365px) {
  350. .mailbox .mailbox-folder .mailbox-header {
  351. .mailbox-title {
  352. position: relative;
  353. top: 28px;
  354. }
  355. }
  356. .mailbox .mailbox-email {
  357. .mailbox-email-header {
  358. padding-top: 80px;
  359. }
  360. }
  361. html.inner-menu-opened {
  362. .mailbox .mailbox-folder .mailbox-header {
  363. .mailbox-title {
  364. position: static;
  365. }
  366. }
  367. .mailbox .mailbox-email {
  368. .mailbox-email-header {
  369. padding-top: 30px;
  370. }
  371. }
  372. }
  373. }
  374. // MAILBOX COMPOSE
  375. // -----------------------------------------------------------------------------
  376. /* Mailbox Compose */
  377. .mailbox-compose {
  378. margin: (-($content-body-padding / 2)) (-($content-body-padding)) 0 (-($content-body-padding));
  379. padding: 0 15px;
  380. .compose {
  381. margin: 0 40px;
  382. .note-editable {
  383. min-height: 250px;
  384. }
  385. .note-editor,
  386. .note-toolbar {
  387. border: none;
  388. }
  389. .note-resizebar {
  390. display: none;
  391. }
  392. }
  393. }
  394. @media only screen and (max-width: 767px) {
  395. .mailbox-compose {
  396. margin: (-($content-body-padding / 2)) -15px 0 -15px;
  397. .compose {
  398. margin-left: 5px;
  399. margin-right: 5px;
  400. }
  401. }
  402. }
  403. // DARK
  404. // -----------------------------------------------------------------------------
  405. /* dark */
  406. html.dark {
  407. .mailbox {
  408. .mailbox-email,
  409. .content-with-menu-container {
  410. background: $dark-bg;
  411. }
  412. .mailbox-folder .mailbox-header .input-search .btn-default {
  413. background: transparent;
  414. }
  415. .mailbox-actions {
  416. border-top-color: lighten($dark-bg, 5%);
  417. ul {
  418. a.item-action {
  419. background: $dark-color-4;
  420. }
  421. }
  422. }
  423. .mailbox-email-list {
  424. border-top-color: lighten($dark-bg, 5%);
  425. li {
  426. border-bottom-color: lighten($dark-bg, 3%);
  427. &:hover {
  428. background: darken( $dark-bg, 3% );
  429. }
  430. a {
  431. color: $dark-default-text;
  432. }
  433. &.unread {
  434. a {
  435. color: lighten( $dark-default-text, 10% );
  436. }
  437. }
  438. }
  439. }
  440. .mailbox-email {
  441. .mailbox-email-header {
  442. background: $dark-color-2;
  443. }
  444. .panel {
  445. .panel-heading,
  446. .panel-footer {
  447. background-color: $dark-color-3;
  448. border-color: $dark-color-2;
  449. color: $dark-default-text;
  450. .panel-title {
  451. color: $dark-default-text;
  452. }
  453. }
  454. .panel-heading {
  455. .panel-actions {
  456. a:hover {
  457. background: $dark-color-1;
  458. }
  459. }
  460. }
  461. }
  462. }
  463. .mailbox-compose {
  464. .note-editor {
  465. .note-toolbar,
  466. .note-statusbar,
  467. .note-editable {
  468. background: $dark-bg;
  469. }
  470. .note-editable {
  471. color: $dark-default-text;
  472. }
  473. }
  474. }
  475. }
  476. }