_page.scss 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  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. } // }}}
  145. // for not_found.html
  146. /*
  147. .main-container {
  148. .message-not-found {
  149. margin-top: 10px;
  150. margin-left: 16px;
  151. }
  152. .content-main.content-main-not-found {
  153. .nav {
  154. margin-top: 16px;
  155. }
  156. }
  157. }
  158. */