_page.scss 6.7 KB

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