_page.scss 3.9 KB

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