_page.scss 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  1. // import diff2html styles
  2. @import '~diff2html/bundles/css/diff2html.min.css';
  3. .main-container {
  4. .url-line {
  5. font-size: 1rem;
  6. color: $gray-400;
  7. }
  8. h1.title {
  9. margin-top: 0;
  10. margin-bottom: 0;
  11. .d-flex {
  12. flex-wrap: wrap; // for long page path
  13. }
  14. // crowi layout only
  15. a.last-path {
  16. color: $gray-300;
  17. &:hover {
  18. color: inherit;
  19. }
  20. }
  21. }
  22. }
  23. .main .content-main .revision-history {
  24. .revision-history-list {
  25. .revision-history-outer {
  26. // add border-top except of first element
  27. &:not(:first-of-type) {
  28. @extend .border-top;
  29. }
  30. .revision-history-main {
  31. .picture-lg {
  32. width: 32px;
  33. height: 32px;
  34. }
  35. .revision-history-meta {
  36. a:hover {
  37. cursor: pointer;
  38. }
  39. }
  40. .caret {
  41. transition: 0.4s;
  42. transform: rotate(-90deg);
  43. &.caret-opened {
  44. transform: rotate(0deg);
  45. }
  46. }
  47. }
  48. .revision-history-main-nodiff {
  49. .picture-container {
  50. min-width: 32px;
  51. text-align: center; // centering .picture
  52. }
  53. }
  54. .revision-history-diff {
  55. padding-left: 40px;
  56. color: $gray-900;
  57. table-layout: fixed;
  58. }
  59. }
  60. li {
  61. position: relative;
  62. list-style: none;
  63. }
  64. }
  65. // compacted list
  66. .revision-history-list-compact {
  67. .revision-history-outer-contiguous-nodiff {
  68. border-top: unset !important; // force unset border
  69. }
  70. }
  71. // adjust
  72. // this is for diff2html. hide page name from diff view
  73. .d2h-file-header {
  74. display: none;
  75. }
  76. .d2h-diff-tbody {
  77. background-color: white;
  78. }
  79. }
  80. /**
  81. * for table with handsontable modal button
  82. */
  83. .editable-with-handsontable {
  84. position: relative;
  85. .handsontable-modal-trigger {
  86. position: absolute;
  87. top: 11px;
  88. right: 10px;
  89. padding: 0;
  90. font-size: 16px;
  91. line-height: 1;
  92. vertical-align: bottom;
  93. background-color: transparent;
  94. border: none;
  95. opacity: 0;
  96. }
  97. .page-mobile & .handsontable-modal-trigger {
  98. opacity: 0.3;
  99. }
  100. &:hover .handsontable-modal-trigger {
  101. opacity: 1;
  102. }
  103. }
  104. /**
  105. * for drawio with drawio iframe button
  106. */
  107. .editable-with-drawio {
  108. .drawio-iframe-trigger {
  109. top: 11px;
  110. right: 10px;
  111. z-index: 14;
  112. font-size: 12px;
  113. line-height: 1;
  114. }
  115. }
  116. .card.grw-page-status-alert {
  117. $margin-bottom: $grw-navbar-bottom-height + 10px;
  118. box-shadow: 0px 2px 4px #0000004d;
  119. opacity: 0.9;
  120. @include media-breakpoint-down(sm) {
  121. margin: 0 10px $margin-bottom;
  122. .grw-card-label-container {
  123. text-align: center;
  124. }
  125. .grw-card-btn-container {
  126. text-align: center;
  127. .btn {
  128. @include button-size($btn-padding-y-lg, $btn-padding-x-lg, $btn-font-size-lg, $btn-line-height-lg, $btn-border-radius-lg);
  129. }
  130. }
  131. }
  132. @include media-breakpoint-up(md) {
  133. width: 700px;
  134. margin: 0 auto $margin-bottom;
  135. .card-body {
  136. display: flex;
  137. align-items: center;
  138. justify-content: space-between;
  139. }
  140. .grw-card-label-container,
  141. .grw-card-btn-container {
  142. margin: 0;
  143. }
  144. }
  145. }