_page.scss 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349
  1. // import diff2html styles
  2. @import "~diff2html/dist/diff2html.css";
  3. .crowi.main-container {
  4. // padding controll of .header-wrap and .content-main are moved to _layout and _form
  5. .main { // {{{ .main of layout related
  6. transition: .5s ease;
  7. -webkit-transition: .5s ease;
  8. background: #fff;
  9. article {
  10. background: #fff;
  11. }
  12. article header {
  13. background: #fff;
  14. width: 100%;
  15. p.stopper {
  16. display: none;
  17. }
  18. &.affix {
  19. width: 100%;
  20. top: 0;
  21. left: 0;
  22. padding: 5px 20px;
  23. z-index: 1039;
  24. background: rgba(255, 255, 255, .9);
  25. box-shadow: 0 0px 2px #999;
  26. h1 {
  27. font-size: 1.8em;
  28. }
  29. p.stopper {
  30. display: block;
  31. position: absolute;
  32. bottom: -30px;
  33. right: 10px;
  34. background: #fff;
  35. padding: 7px 14px;
  36. margin: 0;
  37. border: solid 1px #ccc;
  38. border-top: none;
  39. border-radius: 0 0 5px 5px;
  40. font-size: .8em;
  41. }
  42. }
  43. }
  44. &.col-md-12 article header.affix {
  45. width: 100%;
  46. }
  47. article header { // not affixed
  48. .bookmark-link {
  49. color: #e6b422;
  50. font-size: 2em;
  51. &.bookmarked {
  52. //color: #fff;
  53. }
  54. }
  55. .flex-title-line {
  56. line-height: 1;
  57. display: -webkit-flex;
  58. display: flex;
  59. -webkit-align-items: center;
  60. align-items: center;
  61. .flex-item-title {
  62. -webkit-flex-basis: auto;
  63. flex-basis: auto;
  64. margin-right: auto;
  65. }
  66. .flex-item-action {
  67. -webkit-flex-basis: 2em;
  68. flex-basis: 2em;
  69. text-align: center;
  70. padding: 0 2px;
  71. }
  72. }
  73. h1 {
  74. font-size: 28px;
  75. margin-top: 0;
  76. margin-bottom: 0;
  77. .btn-copy-container {
  78. font-size: 0.65em;
  79. }
  80. a.last-path {
  81. color: #D1E2E4;
  82. opacity: .4;
  83. &:hover {
  84. color: inherit;
  85. }
  86. }
  87. }
  88. .url-line {
  89. color: #999;
  90. font-size: 1rem;
  91. }
  92. }
  93. .content-main {
  94. .tab-content {
  95. margin-top: 30px;
  96. }
  97. }
  98. } // }}}
  99. // {{{ grant related style
  100. .main.grant-restricted,
  101. .main.grant-specified,
  102. .main.grant-owner {
  103. background: #333;
  104. padding: 16px;
  105. .page-grant {
  106. color: #ccc;
  107. }
  108. article {
  109. border-radius: 5px;
  110. }
  111. }
  112. // }}}
  113. .page-attachments { // {{{
  114. p {
  115. font-weight: bold;
  116. }
  117. ul {
  118. }
  119. } // }}}
  120. aside.sidebar { // {{{
  121. z-index: 1030;
  122. position: fixed;
  123. padding: 65px 0 0 0;
  124. margin-bottom: $crowiFooterHeight;
  125. color: #333;
  126. height: 100%;
  127. right: 0;
  128. top: 0;
  129. overflow: auto;
  130. border-left: solid 1px #ccc;
  131. background: $crowiAsideBackground;
  132. transition: .3s ease;
  133. -webkit-transition: .3s ease;
  134. .page-meta {
  135. padding: 15px 15px 5px 15px;
  136. color: #666;
  137. font-size: .9em;
  138. line-height: 1.4em;
  139. border-bottom: solid 1px #ccc;
  140. .creator-picture {
  141. text-align: center;
  142. img {
  143. width: 48px;
  144. height: 48px;
  145. box-shadow: 0 0 1px #666;
  146. }
  147. }
  148. .creator {
  149. font-size: 1.3em;
  150. font-weight: bold;
  151. }
  152. .created-at {
  153. }
  154. .like-box {
  155. padding-bottom: 0;
  156. .dl-horizontal {
  157. margin-bottom: 0;
  158. dt, dd {
  159. border-top: solid 1px #ccc;
  160. padding-top: 5px;
  161. padding-bottom: 5px;
  162. }
  163. dt {
  164. width: 80px;
  165. }
  166. dd {
  167. margin-left: 90px;
  168. text-align: right;
  169. }
  170. }
  171. }
  172. .liker-count, .contributor-count, .seen-user-count {
  173. font-size: 1.2em;
  174. font-weight: bold;
  175. margin-bottom: 5px;
  176. }
  177. .contributor-list, .seen-user-list {
  178. }
  179. }
  180. .side-content {
  181. margin-bottom: $crowiFooterHeight + $crowiHeaderHeight;
  182. color: #666;
  183. padding: 15px;
  184. h3 {
  185. font-size: 1.1em;
  186. }
  187. a {
  188. color: #ccc;
  189. &:hover { color: #aaa;}
  190. }
  191. ul.fitted-list {
  192. padding-left: 0;
  193. li {
  194. margin-bottom: 2px;
  195. .input-group-addon {
  196. padding: 5px 6px;
  197. }
  198. }
  199. }
  200. }
  201. } // }}}
  202. .footer { // {{{
  203. position: fixed;
  204. width: 100%;
  205. bottom: 0px;
  206. height: 26px;
  207. padding: 4px;
  208. color: #444;
  209. background: $crowiAsideBackground;
  210. border-top-left-radius: 5px;
  211. z-index: 1055;
  212. a {
  213. color: #666;
  214. }
  215. } // }}}
  216. &.aside-hidden { // {{{
  217. .layout-control {
  218. right: 0;
  219. i {
  220. transform: rotate(180deg);
  221. }
  222. }
  223. aside.sidebar { // {{{
  224. right: -25%;
  225. } // }}}
  226. .main { // {{{
  227. width: 100%;
  228. article header.affix {
  229. width: 100%;
  230. }
  231. } // }}}
  232. } // }}}
  233. }
  234. .crowi.main-container .main .content-main .revision-history { // {{{
  235. h1 {
  236. padding-bottom: 0.3em;
  237. font-size: 2.3em;
  238. font-weight: bold;
  239. border-bottom: solid 1px #ccc;
  240. }
  241. .revision-history-list {
  242. .revision-hisory-outer {
  243. margin-top: 8px;
  244. .revision-history-main {
  245. .picture {
  246. float: left;
  247. width: 32px;
  248. height: 32px;
  249. }
  250. .revision-history-author {
  251. margin-left: 40px;
  252. color: #666;
  253. }
  254. .revision-history-comment {
  255. margin-left: 40px;
  256. }
  257. .revision-history-meta {
  258. margin-left: 40px;
  259. p {
  260. margin-bottom: 8px;
  261. }
  262. a {
  263. margin-right: 8px;
  264. }
  265. a:hover {
  266. cursor: pointer;
  267. }
  268. }
  269. }
  270. .revision-history-diff {
  271. margin-left: 40px;
  272. }
  273. }
  274. li {
  275. position: relative;
  276. list-style: none;
  277. a {
  278. color: #666;
  279. padding: 3px 5px 3px 40px;
  280. display: block;
  281. &:hover {
  282. background: darken($crowiAsideBackground, 10%);
  283. text-decoration: none;
  284. color: darken($link-color, 35%);
  285. }
  286. }
  287. }
  288. }
  289. } // }}}