_page.scss 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225
  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) {
  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. h1 {
  50. font-size: 28px;
  51. margin-top: 0;
  52. margin-bottom: 0;
  53. // crowi layout only
  54. a.last-path {
  55. color: #ccc;
  56. &:hover {
  57. color: inherit;
  58. }
  59. }
  60. }
  61. .url-line {
  62. color: #999;
  63. font-size: 1rem;
  64. }
  65. // affix
  66. &.affix {
  67. width: 100%;
  68. top: 0;
  69. left: 0;
  70. padding: 2px 20px;
  71. z-index: 15; // over the .sidebar
  72. background: rgba(white, .9);
  73. box-shadow: 0 0px 2px #999;
  74. h1 {
  75. font-size: 1.8em;
  76. }
  77. }
  78. }
  79. // alert component settings for trash page and moved page
  80. .alert-trash, .alert-moved, .alert-unlinked {
  81. padding: 10px 15px;
  82. }
  83. /*
  84. // {{{ grant related style
  85. .main.grant-restricted,
  86. .main.grant-specified,
  87. .main.grant-owner {
  88. background: #333;
  89. padding: 16px;
  90. .page-grant {
  91. color: #ccc;
  92. }
  93. article {
  94. border-radius: 5px;
  95. }
  96. }
  97. // }}}
  98. .footer { // {{{
  99. position: fixed;
  100. width: calc(25% - 18px);
  101. bottom: 0px;
  102. height: 26px;
  103. padding: 4px;
  104. color: #444;
  105. // background: $crowiAsideBackground;
  106. border-top-left-radius: 5px;
  107. z-index: 1055;
  108. a {
  109. color: #666;
  110. }
  111. } // }}}
  112. */
  113. }
  114. .main-container .main .content-main .revision-history { // {{{
  115. .revision-history-list {
  116. .revision-hisory-outer {
  117. .revision-history-main {
  118. .picture {
  119. width: 32px;
  120. height: 32px;
  121. }
  122. .revision-history-meta {
  123. a:hover {
  124. cursor: pointer;
  125. }
  126. }
  127. .caret {
  128. transform: rotate(-90deg);
  129. transition: 0.4s;
  130. &.caret-opened {
  131. transform: rotate(0deg);
  132. }
  133. }
  134. }
  135. .revision-history-diff {
  136. padding-left: 40px;
  137. }
  138. }
  139. li {
  140. position: relative;
  141. list-style: none;
  142. }
  143. }
  144. // adjust
  145. // this is for diff2html. hide page name from diff view
  146. .d2h-file-header {
  147. display: none;
  148. }
  149. } // }}}
  150. /*
  151. * for Presentation
  152. */
  153. .fullscreen-layer {
  154. position: fixed;
  155. top: 0;
  156. left: 0;
  157. width: 100%;
  158. height: 0;
  159. background: rgba(0, 0, 0, .5);
  160. z-index: 9999;
  161. opacity: 0;
  162. -webkit-transition: opacity .3s ease-out;
  163. -moz-transition: opacity .3s ease-out;
  164. transition: opacity .3s ease-out;
  165. & > * {
  166. box-shadow: 0 0 20px rgba(0, 0, 0, .8);
  167. }
  168. }
  169. .overlay-on {
  170. .container-fluid,
  171. .crowi-header {
  172. -webkit-filter: blur(5px);
  173. -moz-filter: blur(5px);
  174. filter: blur(5px);
  175. }
  176. .fullscreen-layer {
  177. opacity: 1;
  178. height: 100%;
  179. }
  180. }
  181. #presentation-container {
  182. position: absolute;
  183. top: 5%;
  184. left: 5%;
  185. width: 90%;
  186. height: 90%;
  187. background: #000;
  188. iframe {
  189. width: 100%;
  190. height: 100%;
  191. border: 0;
  192. }
  193. }