posting.less 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. //
  2. // Posting
  3. // --------------------------------------------------
  4. // Affix and style placeholder
  5. #posting-placeholder {
  6. background-color: @gray-lighter;
  7. padding: @line-height-computed 0px;
  8. position: fixed;
  9. bottom: -100%;
  10. width: 100%;
  11. transition: bottom 300ms, box-shadow 300ms;
  12. &.slide-in {
  13. .box-shadow(0px 0px 8px @gray-light);
  14. bottom: 0px;
  15. }
  16. }
  17. // First row
  18. #posting-placeholder .first-row {
  19. margin-bottom: @line-height-computed;
  20. .form-control {
  21. border: 1px solid darken(@gray-lighter, 15%);
  22. }
  23. }
  24. // Posting overlay used for messages and stuff
  25. .posting-overlay {
  26. position: absolute;
  27. width: 100%;
  28. height: 100%;
  29. min-height: 100%;
  30. top: 0px;
  31. left: 0px;
  32. right: 0px;
  33. bottom: 0px;
  34. }
  35. .posting-cover {
  36. display: table;
  37. width: 100%;
  38. height: 100%;
  39. min-height: 100%;
  40. }
  41. .posting-inner {
  42. display: table-cell;
  43. vertical-align: middle;
  44. overflow: auto;
  45. }
  46. // Hide filler behind overlay, so it keeps editor height constant
  47. // between states, but its hidden from user
  48. .posting-height-filler {
  49. visibility: hidden;
  50. }
  51. // Relatively position message and loader containers for overlay to work
  52. .posting-message, .posting-loader {
  53. position: relative;
  54. }
  55. // Posting ui preview
  56. .posting-ui-preview {
  57. padding: @line-height-computed 0px;
  58. position: relative;
  59. .form-control {
  60. box-shadow: none;
  61. resize: none;
  62. }
  63. }
  64. // Posting Loader
  65. .posting-loader {
  66. text-align: center;
  67. }
  68. .posting-loader .loader {
  69. height: 100px;
  70. .loader-spinning-wheel {
  71. width: 100px;
  72. height: 100px;
  73. }
  74. }
  75. // Posting message
  76. @posting-icon-width: 28px;
  77. .posting-message {
  78. text-align: center;
  79. .material-icon {
  80. margin-right: @line-height-computed / 3;
  81. position: relative;
  82. top: -1px;
  83. width: @posting-icon-width;
  84. height: @posting-icon-width;
  85. font-size: @posting-icon-width;
  86. line-height: @posting-icon-width;
  87. }
  88. .message-body {
  89. p {
  90. font-size: @font-size-large;
  91. }
  92. }
  93. }