posting.less 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  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. .posting-options {
  24. .btn {
  25. margin-right: @padding-small-horizontal;
  26. padding: 2px 0px;
  27. }
  28. .material-icon {
  29. width: 28px;
  30. height: 28px;
  31. position: relative;
  32. top: 0px;
  33. left: 2px;
  34. font-size: 28px;
  35. line-height: 28px;
  36. text-align: center;
  37. }
  38. }
  39. }
  40. // Posting overlay used for messages and stuff
  41. .posting-overlay {
  42. position: absolute;
  43. width: 100%;
  44. height: 100%;
  45. min-height: 100%;
  46. top: 0px;
  47. left: 0px;
  48. right: 0px;
  49. bottom: 0px;
  50. }
  51. .posting-cover {
  52. display: table;
  53. width: 100%;
  54. height: 100%;
  55. min-height: 100%;
  56. }
  57. .posting-inner {
  58. display: table-cell;
  59. vertical-align: middle;
  60. overflow: auto;
  61. }
  62. // Hide filler behind overlay, so it keeps editor height constant
  63. // between states, but its hidden from user
  64. .posting-height-filler {
  65. visibility: hidden;
  66. }
  67. // Relatively position message and loader containers for overlay to work
  68. .posting-message, .posting-loader {
  69. position: relative;
  70. }
  71. // Posting ui preview
  72. .posting-ui-preview {
  73. padding: @line-height-computed 0px;
  74. position: relative;
  75. .form-control {
  76. box-shadow: none;
  77. resize: none;
  78. }
  79. }
  80. // Posting Loader
  81. .posting-loader {
  82. text-align: center;
  83. }
  84. .posting-loader .loader {
  85. height: 100px;
  86. .loader-spinning-wheel {
  87. width: 100px;
  88. height: 100px;
  89. }
  90. }
  91. // Posting message
  92. @posting-icon-width: 28px;
  93. .posting-message {
  94. text-align: center;
  95. .material-icon {
  96. margin-right: @line-height-computed / 3;
  97. position: relative;
  98. top: -1px;
  99. width: @posting-icon-width;
  100. height: @posting-icon-width;
  101. font-size: @posting-icon-width;
  102. line-height: @posting-icon-width;
  103. }
  104. .message-body {
  105. p {
  106. font-size: @font-size-large;
  107. }
  108. }
  109. }