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