_page.scss 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  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. table-layout: fixed;
  61. }
  62. }
  63. li {
  64. position: relative;
  65. list-style: none;
  66. }
  67. }
  68. // compacted list
  69. .revision-history-list-compact {
  70. .revision-history-outer-contiguous-nodiff {
  71. border-top: unset !important; // force unset border
  72. }
  73. }
  74. // adjust
  75. // this is for diff2html. hide page name from diff view
  76. .d2h-file-header {
  77. display: none;
  78. }
  79. .d2h-diff-tbody {
  80. background-color: white;
  81. }
  82. }
  83. /**
  84. * for table with handsontable modal button
  85. */
  86. .editable-with-handsontable {
  87. position: relative;
  88. .handsontable-modal-trigger {
  89. position: absolute;
  90. top: 11px;
  91. right: 10px;
  92. padding: 0;
  93. font-size: 16px;
  94. line-height: 1;
  95. vertical-align: bottom;
  96. background-color: transparent;
  97. border: none;
  98. opacity: 0;
  99. }
  100. .page-mobile & .handsontable-modal-trigger {
  101. opacity: 0.3;
  102. }
  103. &:hover .handsontable-modal-trigger {
  104. opacity: 1;
  105. }
  106. }
  107. /**
  108. * for drawio with drawio iframe button
  109. */
  110. .editable-with-drawio {
  111. .drawio-iframe-trigger {
  112. top: 11px;
  113. right: 10px;
  114. z-index: 14;
  115. font-size: 12px;
  116. line-height: 1;
  117. color: $linktext;
  118. background-color: transparent;
  119. border: 1px solid $linktext;
  120. opacity: 1;
  121. &:hover {
  122. color: $white;
  123. background-color: $linktext;
  124. }
  125. }
  126. }
  127. /*
  128. * for Presentation
  129. */
  130. .fullscreen-layer {
  131. position: fixed;
  132. top: 0;
  133. left: 0;
  134. z-index: 9999;
  135. width: 100%;
  136. height: 0;
  137. background: rgba(0, 0, 0, 0.5);
  138. opacity: 0;
  139. transition: opacity 0.3s ease-out;
  140. & > * {
  141. box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
  142. }
  143. }
  144. .overlay-on {
  145. #wrapper {
  146. filter: blur(5px);
  147. }
  148. .fullscreen-layer {
  149. height: 100%;
  150. opacity: 1;
  151. }
  152. }
  153. #presentation-container {
  154. position: absolute;
  155. top: 5%;
  156. left: 5%;
  157. width: 90%;
  158. height: 90%;
  159. background: #000;
  160. iframe {
  161. width: 100%;
  162. height: 100%;
  163. border: 0;
  164. }
  165. }