_page.scss 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193
  1. // import diff2html styles
  2. @import '~diff2html/bundles/css/diff2html.min.css';
  3. .main-container {
  4. .url-line {
  5. font-size: 1rem;
  6. color: #999;
  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: #ccc;
  17. &:hover {
  18. color: inherit;
  19. }
  20. }
  21. }
  22. .tag-labels.new-page {
  23. display: none;
  24. }
  25. }
  26. .main .content-main .revision-history {
  27. .revision-history-list {
  28. .revision-history-outer {
  29. // add border-top except of first element
  30. &:not(:first-of-type) {
  31. border-top: 1px solid $border;
  32. }
  33. .revision-history-main {
  34. .picture-lg {
  35. width: 32px;
  36. height: 32px;
  37. }
  38. .revision-history-meta {
  39. a:hover {
  40. cursor: pointer;
  41. }
  42. }
  43. .caret {
  44. transition: 0.4s;
  45. transform: rotate(-90deg);
  46. &.caret-opened {
  47. transform: rotate(0deg);
  48. }
  49. }
  50. }
  51. .revision-history-main-nodiff {
  52. .picture-container {
  53. min-width: 32px;
  54. text-align: center; // centering .picture
  55. }
  56. }
  57. .revision-history-diff {
  58. padding-left: 40px;
  59. color: #333;
  60. }
  61. }
  62. li {
  63. position: relative;
  64. list-style: none;
  65. }
  66. }
  67. // compacted list
  68. .revision-history-list-compact {
  69. .revision-history-outer-contiguous-nodiff {
  70. border-top: unset !important; // force unset border
  71. }
  72. }
  73. // adjust
  74. // this is for diff2html. hide page name from diff view
  75. .d2h-file-header {
  76. display: none;
  77. }
  78. .d2h-diff-tbody {
  79. background-color: white;
  80. }
  81. }
  82. /**
  83. * for table with handsontable modal button
  84. */
  85. .editable-with-handsontable {
  86. position: relative;
  87. .handsontable-modal-trigger {
  88. position: absolute;
  89. top: 11px;
  90. right: 10px;
  91. padding: 0;
  92. font-size: 16px;
  93. line-height: 1;
  94. vertical-align: bottom;
  95. background-color: transparent;
  96. border: none;
  97. opacity: 0;
  98. }
  99. .page-mobile & .handsontable-modal-trigger {
  100. opacity: 0.3;
  101. }
  102. &:hover .handsontable-modal-trigger {
  103. opacity: 1;
  104. }
  105. }
  106. /**
  107. * for drawio with drawio iframe button
  108. */
  109. .editable-with-drawio {
  110. .drawio-iframe-trigger {
  111. top: 11px;
  112. right: 10px;
  113. z-index: 14;
  114. font-size: 12px;
  115. line-height: 1;
  116. color: $linktext;
  117. background-color: transparent;
  118. border: 1px solid $linktext;
  119. opacity: 1;
  120. &:hover {
  121. color: $white;
  122. background-color: $linktext;
  123. }
  124. }
  125. }
  126. /*
  127. * for Presentation
  128. */
  129. .fullscreen-layer {
  130. position: fixed;
  131. top: 0;
  132. left: 0;
  133. z-index: 9999;
  134. width: 100%;
  135. height: 0;
  136. background: rgba(0, 0, 0, 0.5);
  137. opacity: 0;
  138. transition: opacity 0.3s ease-out;
  139. & > * {
  140. box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
  141. }
  142. }
  143. .overlay-on {
  144. #wrapper {
  145. filter: blur(5px);
  146. }
  147. .fullscreen-layer {
  148. height: 100%;
  149. opacity: 1;
  150. }
  151. }
  152. #presentation-container {
  153. position: absolute;
  154. top: 5%;
  155. left: 5%;
  156. width: 90%;
  157. height: 90%;
  158. background: #000;
  159. iframe {
  160. width: 100%;
  161. height: 100%;
  162. border: 0;
  163. }
  164. }