_page.scss 6.4 KB

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