_page.scss 6.9 KB

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