_page.scss 6.1 KB

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