2
0

_page.scss 5.9 KB

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