_form.scss 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  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. border-right: 1px solid #ccc;
  56. // override CodeMirror styles
  57. .CodeMirror pre {
  58. font-family: $font-family-monospace-not-strictly;
  59. }
  60. }
  61. .page-editor-preview-container {
  62. }
  63. .page-editor-preview-body {
  64. padding-top: 18px;
  65. padding-right: 15px;
  66. overflow-y: scroll;
  67. }
  68. .form-group.form-submit-group {
  69. position: fixed;
  70. z-index: 1054;
  71. bottom: 0;
  72. width: 100%;
  73. left: 0;
  74. padding: 8px;
  75. min-height: 50px;
  76. background: rgba(255,255,255,.8);
  77. border-top: solid 1px #ccc;
  78. margin-bottom: 0;
  79. }
  80. } // }}}
  81. .crowi.main-container .main .page-list.content-main { // {{{ Edit Form of Page List
  82. .close-button {
  83. display: none;
  84. }
  85. }
  86. .crowi.main-container .main .page-list.content-main.on-edit { // {{{ Edit Form of Page List
  87. .close-button {
  88. display: block;
  89. }
  90. .page-list-container {
  91. display: none;
  92. }
  93. .portal-form-header {
  94. height: 16px;
  95. padding: 8px;
  96. border-bottom: solid 1px #ccc;
  97. }
  98. } // }}}
  99. @media (max-width: $screen-sm-max) { // {{{ less than tablet size
  100. .content-main.on-edit {
  101. .form-group.form-submit-group {
  102. select.form-control {
  103. display: inline-block;
  104. max-width: 50%;
  105. }
  106. }
  107. }
  108. } // }}}
  109. @media (max-width: $screen-xs-max) { // {{{ less than smartphone size
  110. #edit-form-submit {
  111. float: right;
  112. }
  113. } // }}}