_form.scss 3.2 KB

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