_form.scss 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  1. // import crowi variable
  2. @import 'utilities';
  3. .crowi.main-container .main .content-main.on-edit { // {{{ Edit Form of Page
  4. padding: 0;
  5. position: fixed;
  6. z-index: 1050;
  7. background: #fff;
  8. top: 0;
  9. left: 0;
  10. height: 100%;
  11. width: 100%;
  12. .nav {
  13. margin-top: 8px;
  14. height: 40px;
  15. .dropdown-menu {
  16. z-index: 1060;
  17. }
  18. }
  19. .tab-content {
  20. top: 48px;
  21. bottom: 58px;
  22. padding: 0 12px;
  23. position: absolute;
  24. z-index: 1051;
  25. left: 0;
  26. right: 0;
  27. margin-top: 4px;
  28. .alert-info {
  29. display: none;
  30. }
  31. .edit-form { // {{{
  32. height: 100%;
  33. > .row {
  34. height: 100%;
  35. .col-md-6 {
  36. height: 100%;
  37. }
  38. form {
  39. padding: 0;
  40. border-right: solid 1px #ccc;
  41. &::after {
  42. position: absolute;
  43. top: 0;
  44. right: 15px;
  45. font-size: 10px;
  46. font-weight: 700;
  47. color: #959595;
  48. text-transform: uppercase;
  49. letter-spacing: 1px;
  50. content: "Input Content ...";
  51. }
  52. }
  53. textarea {
  54. height: 100%;
  55. padding-top: 18px;
  56. border: none;
  57. box-shadow: none;
  58. &.dragover {
  59. border: dashed 6px #ccc;
  60. padding: 12px 6px 0px;
  61. }
  62. }
  63. .preview-body {
  64. height: 100%;
  65. padding-top: 18px;
  66. overflow: scroll;
  67. &::after {
  68. position: absolute;
  69. top: 0;
  70. right: 15px;
  71. font-size: 10px;
  72. font-weight: 700;
  73. color: #959595;
  74. text-transform: uppercase;
  75. letter-spacing: 1px;
  76. content: "Preview";
  77. }
  78. }
  79. .page-form-setting {
  80. .extended-setting {
  81. label {
  82. margin-bottom: 0;
  83. }
  84. }
  85. }
  86. }
  87. }
  88. } // }}}
  89. .form-group.form-submit-group {
  90. position: fixed;
  91. z-index: 1054;
  92. bottom: 0;
  93. width: 100%;
  94. left: 0;
  95. padding: 8px;
  96. min-height: 50px;
  97. background: rgba(255,255,255,.8);
  98. border-top: solid 1px #ccc;
  99. margin-bottom: 0;
  100. }
  101. } // }}}
  102. .crowi.main-container .main .page-list.content-main { // {{{ Edit Form of Page List
  103. .close-button {
  104. display: none;
  105. }
  106. }
  107. .crowi.main-container .main .page-list.content-main.on-edit { // {{{ Edit Form of Page List
  108. .close-button {
  109. display: block;
  110. }
  111. .page-list-container {
  112. display: none;
  113. }
  114. .portal-form-header,
  115. .portal-form {
  116. display: block;
  117. }
  118. .portal-form-header {
  119. height: 16px;
  120. padding: 8px;
  121. border-bottom: solid 1px #ccc;
  122. }
  123. } // }}}
  124. textarea {
  125. font-family: $font-family-monospace-not-strictly;
  126. line-height: 1.1em;
  127. }
  128. input::-webkit-input-placeholder {
  129. color: #ccc;
  130. }
  131. input:-moz-placeholder {
  132. color: #ccc;
  133. }
  134. @media (max-width: $screen-sm-max) { // {{{ less than tablet size
  135. .content-main.on-edit {
  136. .form-group.form-submit-group {
  137. select.form-control {
  138. display: inline-block;
  139. max-width: 50%;
  140. }
  141. }
  142. }
  143. } // }}}
  144. @media (max-width: $screen-xs-max) { // {{{ less than smartphone size
  145. #edit-form-submit {
  146. float: right;
  147. }
  148. } // }}}