_form.scss 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  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. position: absolute;
  23. z-index: 1051;
  24. left: 0;
  25. right: 0;
  26. margin-top: 4px;
  27. .alert-info {
  28. display: none;
  29. }
  30. // layout (height: 100%)
  31. .edit-form {
  32. height: 100%;
  33. > form {
  34. height: 100%;
  35. > #page-editor {
  36. height: 100%;
  37. .row, .col-md-6, .col-sm-12,
  38. .react-codemirror2, .CodeMirror, .CodeMirror-scroll,
  39. .page-editor-preview-body
  40. {
  41. height: 100%;
  42. }
  43. }
  44. }
  45. }
  46. }
  47. .page-form-setting {
  48. .extended-setting {
  49. label {
  50. margin-bottom: 0;
  51. }
  52. }
  53. }
  54. .page-editor-editor-container {
  55. padding-right: 0;
  56. border-right: 1px solid #ccc;
  57. // override CodeMirror styles
  58. .CodeMirror pre {
  59. font-family: $font-family-monospace-not-strictly;
  60. }
  61. }
  62. .page-editor-preview-container {
  63. }
  64. .page-editor-preview-body {
  65. padding-top: 18px;
  66. padding-right: 15px;
  67. overflow-y: scroll;
  68. }
  69. .form-group.form-submit-group {
  70. position: fixed;
  71. z-index: 1054;
  72. bottom: 0;
  73. width: 100%;
  74. left: 0;
  75. padding: 8px;
  76. min-height: 50px;
  77. background: rgba(255,255,255,.8);
  78. border-top: solid 1px #ccc;
  79. margin-bottom: 0;
  80. }
  81. } // }}}
  82. .crowi.main-container .main .page-list.content-main { // {{{ Edit Form of Page List
  83. .close-button {
  84. display: none;
  85. }
  86. }
  87. .crowi.main-container .main .page-list.content-main.on-edit { // {{{ Edit Form of Page List
  88. .close-button {
  89. display: block;
  90. }
  91. .page-list-container {
  92. display: none;
  93. }
  94. .portal-form-header {
  95. height: 16px;
  96. padding: 8px;
  97. border-bottom: solid 1px #ccc;
  98. }
  99. } // }}}
  100. @media (max-width: $screen-sm-max) { // {{{ less than tablet size
  101. .content-main.on-edit {
  102. .form-group.form-submit-group {
  103. select.form-control {
  104. display: inline-block;
  105. max-width: 50%;
  106. }
  107. }
  108. }
  109. } // }}}
  110. @media (max-width: $screen-xs-max) { // {{{ less than smartphone size
  111. #edit-form-submit {
  112. float: right;
  113. }
  114. } // }}}