_page.scss 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  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. }
  86. .main-container .main .content-main .revision-history { // {{{
  87. .revision-history-list {
  88. .revision-hisory-outer {
  89. .revision-history-main {
  90. .picture {
  91. width: 32px;
  92. height: 32px;
  93. }
  94. .revision-history-meta {
  95. a:hover {
  96. cursor: pointer;
  97. }
  98. }
  99. .caret {
  100. transform: rotate(-90deg);
  101. transition: 0.4s;
  102. &.caret-opened {
  103. transform: rotate(0deg);
  104. }
  105. }
  106. }
  107. .revision-history-diff {
  108. padding-left: 40px;
  109. }
  110. }
  111. li {
  112. position: relative;
  113. list-style: none;
  114. }
  115. }
  116. // adjust
  117. // this is for diff2html. hide page name from diff view
  118. .d2h-file-header {
  119. display: none;
  120. }
  121. .d2h-diff-tbody {
  122. background-color: white;
  123. }
  124. } // }}}
  125. /*
  126. * for Presentation
  127. */
  128. .fullscreen-layer {
  129. position: fixed;
  130. top: 0;
  131. left: 0;
  132. width: 100%;
  133. height: 0;
  134. background: rgba(0, 0, 0, .5);
  135. z-index: 9999;
  136. opacity: 0;
  137. transition: opacity .3s ease-out;
  138. & > * {
  139. box-shadow: 0 0 20px rgba(0, 0, 0, .8);
  140. }
  141. }
  142. .overlay-on {
  143. #wrapper {
  144. filter: blur(5px);
  145. }
  146. .fullscreen-layer {
  147. opacity: 1;
  148. height: 100%;
  149. }
  150. }
  151. #presentation-container {
  152. position: absolute;
  153. top: 5%;
  154. left: 5%;
  155. width: 90%;
  156. height: 90%;
  157. background: #000;
  158. iframe {
  159. width: 100%;
  160. height: 100%;
  161. border: 0;
  162. }
  163. }