_page.scss 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  1. // import diff2html styles
  2. @import "~diff2html/dist/diff2html.css";
  3. .main-container {
  4. // padding controll of .header-wrap and .content-main are moved to _layout and _form
  5. /*
  6. * header
  7. */
  8. header {
  9. // the container of h1
  10. div.title-container {
  11. margin-right: auto;
  12. }
  13. .btn-copy, .btn-copy-link, .btn-edit {
  14. @extend .text-muted;
  15. opacity: 0.3;
  16. border: none;
  17. &:not(:hover) {
  18. background-color: transparent;
  19. }
  20. }
  21. // change button opacity
  22. &:hover {
  23. .btn.btn-copy, .btn-copy-link, .btn.btn-edit {
  24. opacity: unset;
  25. }
  26. }
  27. .like-button, .bookmark-link {
  28. border: none;
  29. font-size: 1.2em;
  30. line-height: 0.8em;
  31. &:not(:hover):not(.active) {
  32. background-color: transparent;
  33. }
  34. }
  35. .like-button {
  36. &.active {
  37. @extend .btn-info;
  38. }
  39. }
  40. .bookmark-link {
  41. &.active {
  42. @extend .btn-warning;
  43. }
  44. }
  45. .url-line {
  46. color: #999;
  47. font-size: 1rem;
  48. }
  49. h1#revision-path {
  50. margin-top: 0;
  51. margin-bottom: 0;
  52. .d-flex {
  53. flex-wrap: wrap; // for long page path
  54. }
  55. // crowi layout only
  56. a.last-path {
  57. color: #ccc;
  58. &:hover {
  59. color: inherit;
  60. }
  61. }
  62. }
  63. }
  64. // alert component settings
  65. .alert-trash, .alert-moved, .alert-unlinked, .alert-grant {
  66. padding: 10px 15px;
  67. }
  68. // show PageStatusAlert in default
  69. #page-status-alert .myadmin-alert {
  70. display: block;
  71. }
  72. }
  73. .main-container .main .content-main .revision-history { // {{{
  74. .revision-history-list {
  75. .revision-history-outer {
  76. // add border-top except of first element
  77. &:not(:first-of-type) {
  78. border-top: 1px solid $border;
  79. }
  80. .revision-history-main {
  81. .picture-lg {
  82. width: 32px;
  83. height: 32px;
  84. }
  85. .revision-history-meta {
  86. a:hover {
  87. cursor: pointer;
  88. }
  89. }
  90. .caret {
  91. transform: rotate(-90deg);
  92. transition: 0.4s;
  93. &.caret-opened {
  94. transform: rotate(0deg);
  95. }
  96. }
  97. }
  98. .revision-history-main-nodiff {
  99. .picture-container {
  100. min-width: 32px;
  101. text-align: center; // centering .picture
  102. }
  103. }
  104. .revision-history-diff {
  105. padding-left: 40px;
  106. }
  107. }
  108. li {
  109. position: relative;
  110. list-style: none;
  111. }
  112. }
  113. // compacted list
  114. .revision-history-list-compact {
  115. .revision-history-outer-contiguous-nodiff {
  116. border-top: unset !important; // force unset border
  117. }
  118. }
  119. // adjust
  120. // this is for diff2html. hide page name from diff view
  121. .d2h-file-header {
  122. display: none;
  123. }
  124. .d2h-diff-tbody {
  125. background-color: white;
  126. }
  127. } // }}}
  128. /**
  129. * for table with handsontable modal button
  130. */
  131. .editable-with-handsontable {
  132. position: relative;
  133. .handsontable-modal-trigger {
  134. opacity: 0;
  135. position: absolute;
  136. top: 11px;
  137. right: 10px;
  138. padding: 0;
  139. border: none;
  140. background-color: transparent;
  141. font-size: 16px;
  142. line-height: 1;
  143. vertical-align: bottom;
  144. }
  145. .page-mobile & .handsontable-modal-trigger {
  146. opacity: 0.3;
  147. }
  148. &:hover .handsontable-modal-trigger {
  149. opacity: 1;
  150. }
  151. }
  152. /*
  153. * for Presentation
  154. */
  155. .fullscreen-layer {
  156. position: fixed;
  157. top: 0;
  158. left: 0;
  159. width: 100%;
  160. height: 0;
  161. background: rgba(0, 0, 0, .5);
  162. z-index: 9999;
  163. opacity: 0;
  164. transition: opacity .3s ease-out;
  165. & > * {
  166. box-shadow: 0 0 20px rgba(0, 0, 0, .8);
  167. }
  168. }
  169. .overlay-on {
  170. #wrapper {
  171. filter: blur(5px);
  172. }
  173. .fullscreen-layer {
  174. opacity: 1;
  175. height: 100%;
  176. }
  177. }
  178. #presentation-container {
  179. position: absolute;
  180. top: 5%;
  181. left: 5%;
  182. width: 90%;
  183. height: 90%;
  184. background: #000;
  185. iframe {
  186. width: 100%;
  187. height: 100%;
  188. border: 0;
  189. }
  190. }