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