_page.scss 4.1 KB

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