_layout.scss 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549
  1. .crowi { // {{{
  2. font-family: 'Maven Pro', 'Helvetica Neue', 'Hiragino Kaku Gothic Pro', 'Meiryo', sans-serif;
  3. h1, h2, h3, h4, h5, h6 {
  4. font-weight: 500;
  5. }
  6. &.main-container { // {{{
  7. .crowi-header { // {{{
  8. z-index: 1050;
  9. background: $crowiHeaderBackground;
  10. height: $crowiHeaderHeight;
  11. border-radius: 0;
  12. border: none;
  13. margin-bottom: 0;
  14. box-shadow: 0 3px 10px 0px rgba(0,0,0,.3);
  15. .navbar-brand {
  16. font-weight: bold;
  17. }
  18. .navbar-collapse {
  19. background: $crowiHeaderBackground;
  20. }
  21. > div > a ,
  22. > div > ul > li > a {
  23. color: #ccc;
  24. &:hover {
  25. color: #aaa;
  26. }
  27. }
  28. .confidential {
  29. a {
  30. border: solid 2px #f00;
  31. background: #fff;
  32. color: #f00;
  33. font-weight: bold;
  34. height: 42px;
  35. margin-top: 5px;
  36. padding: 10px;
  37. margin-right: 5px;
  38. }
  39. }
  40. .navbar-toggle {
  41. position: absolute;
  42. top: 0;
  43. right: 0;
  44. }
  45. .navbar-collapse.collapse.in {
  46. .confidential {
  47. }
  48. }
  49. .layout-control.to-show {
  50. display: none;
  51. }
  52. } // }}}
  53. .layout-control.to-hide { // {{{
  54. transition: .3s ease;
  55. -webkit-transition: .3s ease;
  56. position: fixed;
  57. display: block;
  58. text-align: center;
  59. right: 25%;
  60. bottom: 25px;
  61. padding: 5px 8px;
  62. border: solid 1px #ccc;
  63. border-right: none;
  64. background: $crowiAsideBackground;
  65. border-radius: 5px 0 0 5px;
  66. z-index: 1055;
  67. font-size: .8em;
  68. color: darken($link-color, 15%);
  69. &:hover {
  70. color: darken($link-color, 25%);
  71. background: darken($crowiAsideBackground, 10%);
  72. text-decoration: none;
  73. }
  74. } // }}}
  75. aside.sidebar { // {{{
  76. z-index: 1040;
  77. position: fixed;
  78. padding: 65px 0 0 0;
  79. margin-bottom: $crowiFooterHeight;
  80. color: #333;
  81. height: 100%;
  82. right: 0;
  83. top: 0;
  84. overflow: auto;
  85. border-left: solid 1px #ccc;
  86. background: $crowiAsideBackground;
  87. transition: .3s ease;
  88. -webkit-transition: .3s ease;
  89. .page-meta {
  90. padding: 15px 15px 5px 15px;
  91. color: #666;
  92. font-size: .9em;
  93. line-height: 1.4em;
  94. border-bottom: solid 1px #ccc;
  95. .creator-picture {
  96. text-align: center;
  97. img {
  98. width: 48px;
  99. height: 48px;
  100. box-shadow: 0 0 2px #333;
  101. }
  102. }
  103. .creator {
  104. font-size: 1.3em;
  105. font-weight: bold;
  106. }
  107. .created-at {
  108. }
  109. .like-box {
  110. padding-bottom: 0;
  111. .dl-horizontal {
  112. margin-bottom: 0;
  113. dt, dd {
  114. border-top: solid 1px #ccc;
  115. padding-top: 5px;
  116. padding-bottom: 5px;
  117. }
  118. dt {
  119. width: 80px;
  120. }
  121. dd {
  122. margin-left: 90px;
  123. text-align: right;
  124. }
  125. }
  126. .btn-bookmark {
  127. color: #e6b422;
  128. &.bookmarked {
  129. color: #fff;
  130. }
  131. }
  132. }
  133. .liker-list, .contributor-list, .seen-user-list {
  134. .picture-rounded {
  135. box-shadow: 0 0 2px #666;
  136. }
  137. }
  138. .liker-count, .contributor-count, .seen-user-count {
  139. font-size: 1.2em;
  140. font-weight: bold;
  141. margin-bottom: 5px;
  142. }
  143. .contributor-list, .seen-user-list {
  144. }
  145. }
  146. .side-content {
  147. margin-bottom: $crowiFooterHeight + $crowiHeaderHeight;
  148. padding: 15px;
  149. h3 {
  150. font-size: 1.1em;
  151. }
  152. a {
  153. color: #ccc;
  154. &:hover { color: #aaa;}
  155. }
  156. ul.revision-history {
  157. padding: 0;
  158. li {
  159. position: relative;
  160. list-style: none;
  161. a {
  162. color: darken($link-color, 50%);
  163. padding: 3px 5px 3px 40px;
  164. display: block;
  165. &:hover {
  166. background: darken($crowiAsideBackground, 10%);
  167. text-decoration: none;
  168. color: darken($link-color, 35%);
  169. }
  170. }
  171. }
  172. .picture {
  173. position: absolute;
  174. left: 5px;
  175. top: 12px;
  176. }
  177. }
  178. ul.fitted-list {
  179. padding-left: 0;
  180. li {
  181. margin-bottom: 2px;
  182. .input-group-addon {
  183. padding: 5px 6px;
  184. }
  185. }
  186. }
  187. }
  188. } // }}}
  189. .main { // {{{
  190. transition: .5s ease;
  191. -webkit-transition: .5s ease;
  192. background: #fff;
  193. padding: 20px;
  194. //margin-left: 10px;
  195. //padding: 10px;
  196. //
  197. article {
  198. background: #fff;
  199. }
  200. article header {
  201. background: #fff;
  202. width: 100%;
  203. p.stopper {
  204. display: none;
  205. }
  206. &.affix {
  207. width: 100%;
  208. top: 0;
  209. left: 0;
  210. padding: 5px 20px;
  211. z-index: 1041;
  212. background: #fff;
  213. box-shadow: 0 0px 2px #999;
  214. transition: .5s ease;
  215. -webkit-transition: .5s ease;
  216. h1 {
  217. font-size: 1.8em;
  218. }
  219. p.stopper {
  220. display: block;
  221. position: absolute;
  222. bottom: -30px;
  223. right: 10px;
  224. background: #fff;
  225. padding: 7px 14px;
  226. margin: 0;
  227. border: solid 1px #ccc;
  228. border-top: none;
  229. border-radius: 0 0 5px 5px;
  230. font-size: .8em;
  231. }
  232. }
  233. }
  234. &.col-md-12 article header.affix {
  235. width: 100%;
  236. }
  237. article header h1 {
  238. margin-top: 0;
  239. a:last-child {
  240. color: #D1E2E4;
  241. opacity: .7;
  242. &:hover {
  243. color: inherit;
  244. }
  245. }
  246. }
  247. } // }}}
  248. .main.grant-restricted,
  249. .main.grant-specified,
  250. .main.grant-owner {
  251. background: #333;
  252. padding: 20px 10px;
  253. .page-grant {
  254. color: #ccc;
  255. }
  256. article {
  257. border-radius: 5px;
  258. padding: 20px;
  259. }
  260. }
  261. .footer { // {{{
  262. position: fixed;
  263. width: 100%;
  264. bottom: 0px;
  265. height: 26px;
  266. padding: 4px;
  267. color: #444;
  268. background: $crowiAsideBackground;
  269. border-top-left-radius: 5px;
  270. z-index: 1055;
  271. a {
  272. color: #666;
  273. }
  274. } // }}}
  275. } // }}}
  276. &.main-container.aside-hidden { // {{{
  277. .crowi-header .layout-control.to-show {
  278. display: block;
  279. }
  280. .layout-control.to-hide {
  281. right: 0;
  282. i {
  283. transform: rotate(180deg);
  284. }
  285. }
  286. aside.sidebar { // {{{
  287. right: -25%;
  288. } // }}}
  289. .main { // {{{
  290. width: 100%;
  291. article header.affix {
  292. width: 100%;
  293. }
  294. } // }}}
  295. } // }}}
  296. // override bootstrap modals
  297. .modal-backdrop {
  298. z-index: 1052;
  299. }
  300. .modal {
  301. z-index: 1055;
  302. }
  303. } // }}}
  304. .crowi.main-container .main {
  305. .wiki-content {
  306. }
  307. .tab-content {
  308. margin-top: 30px;
  309. .form-box {
  310. margin-top: 30px;
  311. }
  312. }
  313. }
  314. .crowi.single { // {{{
  315. } // }}}
  316. .crowi.single.nologin { // {{{
  317. //background: lighten($crowiHeaderBackground, 15%);
  318. background: $crowiHeaderBackground;
  319. .installer-header {
  320. margin-top: 100px;
  321. text-align: center;
  322. h1 {
  323. margin: 40px 0 40px;
  324. color: #fff;
  325. font-size: 1.6em;
  326. }
  327. }
  328. .main {
  329. margin: 0;
  330. padding: 0;
  331. }
  332. h1.login-page {
  333. margin-top: 80px;
  334. color: #fff;
  335. font-size: 1.6em;
  336. padding: 10px;
  337. text-align: center;
  338. text-shadow: 0px 0px 6px rgba(0,0,0,.5);
  339. line-height: 100%;
  340. }
  341. .login-dialog-container {
  342. .facebook-info {
  343. border-radius: 4px;
  344. border: solid 1px #ccc;
  345. padding: 10px;
  346. margin-bottom: 15px;
  347. }
  348. margin: 40px auto;
  349. float: none;
  350. .login-dialog {
  351. position: relative;
  352. form {
  353. margin-top: 10px;
  354. .input-group {
  355. margin-bottom: 10px;
  356. }
  357. }
  358. .login-dialog-inner, .register-dialog-inner {
  359. top: 0;
  360. left: 0;
  361. padding: 42px 48px;
  362. background: #fff;
  363. position: absolute;
  364. margin-bottom: 40px;
  365. width: 100%;
  366. box-shadow: 0 1px 40px 0 rgba(0,0,0,0.3);
  367. border-radius: 3px;
  368. h2 {
  369. margin: 0 0 28px;
  370. font-size: 1.3em;
  371. text-align: center;
  372. }
  373. }
  374. p.bottom-text {
  375. text-align: right;
  376. margin: 20px 0 0;
  377. }
  378. }
  379. }
  380. } // }}}
  381. @media (min-width: $screen-sm-min) and (max-width: $screen-sm-max) { // {{{ tablet size
  382. .crowi.main-container { // {{{
  383. .main {
  384. article header {
  385. h1 {
  386. font-size: 1.4em;
  387. margin-bottom: 0;
  388. }
  389. &.affix {
  390. width: 100%;
  391. }
  392. }
  393. }
  394. }
  395. } // }}}
  396. @media (max-width: $screen-xs-max) { // {{{ iPhone size
  397. .crowi.main-container { // {{{
  398. .main {
  399. padding: 10px;
  400. article header {
  401. h1 {
  402. font-size: 1.1em;
  403. }
  404. &.affix {
  405. h1 {
  406. font-size: 1.1em;
  407. }
  408. width: 100%;
  409. padding: 5px;
  410. box-shadow: 0 0px 2px #999;
  411. p.stopper {
  412. right: 20px;
  413. }
  414. }
  415. }
  416. }
  417. }
  418. }
  419. @media print { // {{{ printable style
  420. .crowi.main-container { // {{{
  421. padding: 30px;
  422. a:after {
  423. display: none !important;
  424. }
  425. .main {
  426. article header {
  427. border-bottom: solid 1px #666;
  428. margin-bottom: 20px;
  429. h1 {
  430. font-size: 2em;
  431. color: #000;
  432. }
  433. }
  434. .revision-toc {
  435. float: none;
  436. font-size: .9em;
  437. border: solid 1px #aaa;
  438. border-radius: 5px;
  439. max-width: 100%;
  440. margin-bottom: 20px;
  441. .revision-toc-head {
  442. display: inline-block;
  443. float: none;
  444. }
  445. .revision-toc-content.collapse {
  446. display: block;
  447. height: auto;
  448. }
  449. }
  450. .meta {
  451. border-top: solid 1px #999;
  452. margin-top: 20px;
  453. color: #666;
  454. }
  455. }
  456. }
  457. } // }}}