_page.scss 3.2 KB

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