_page.scss 6.2 KB

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