_page.scss 5.9 KB

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