_layout.scss 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653
  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: 1040;
  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. } // }}}
  50. .layout-control { // {{{
  51. transition: .3s ease;
  52. -webkit-transition: .3s ease;
  53. position: fixed;
  54. display: block;
  55. text-align: center;
  56. right: 25%;
  57. bottom: 25px;
  58. padding: 5px 8px;
  59. border: solid 1px #ccc;
  60. border-right: none;
  61. background: $crowiAsideBackground;
  62. border-radius: 5px 0 0 5px;
  63. z-index: 1039;
  64. font-size: .8em;
  65. color: darken($link-color, 15%);
  66. &:hover {
  67. color: darken($link-color, 25%);
  68. background: darken($crowiAsideBackground, 10%);
  69. text-decoration: none;
  70. cursor: pointer;
  71. }
  72. } // }}}
  73. aside.sidebar { // {{{
  74. z-index: 1030;
  75. position: fixed;
  76. padding: 65px 0 0 0;
  77. margin-bottom: $crowiFooterHeight;
  78. color: #333;
  79. height: 100%;
  80. right: 0;
  81. top: 0;
  82. overflow: auto;
  83. border-left: solid 1px #ccc;
  84. background: $crowiAsideBackground;
  85. transition: .3s ease;
  86. -webkit-transition: .3s ease;
  87. .page-meta {
  88. padding: 15px 15px 5px 15px;
  89. color: #666;
  90. font-size: .9em;
  91. line-height: 1.4em;
  92. border-bottom: solid 1px #ccc;
  93. .creator-picture {
  94. text-align: center;
  95. img {
  96. width: 48px;
  97. height: 48px;
  98. box-shadow: 0 0 2px #333;
  99. }
  100. }
  101. .creator {
  102. font-size: 1.3em;
  103. font-weight: bold;
  104. }
  105. .created-at {
  106. }
  107. .like-box {
  108. padding-bottom: 0;
  109. .dl-horizontal {
  110. margin-bottom: 0;
  111. dt, dd {
  112. border-top: solid 1px #ccc;
  113. padding-top: 5px;
  114. padding-bottom: 5px;
  115. }
  116. dt {
  117. width: 80px;
  118. }
  119. dd {
  120. margin-left: 90px;
  121. text-align: right;
  122. }
  123. }
  124. .btn-bookmark {
  125. color: #e6b422;
  126. &.bookmarked {
  127. color: #fff;
  128. }
  129. }
  130. }
  131. .liker-list, .contributor-list, .seen-user-list {
  132. .picture-rounded {
  133. box-shadow: 0 0 2px #666;
  134. }
  135. }
  136. .liker-count, .contributor-count, .seen-user-count {
  137. font-size: 1.2em;
  138. font-weight: bold;
  139. margin-bottom: 5px;
  140. }
  141. .contributor-list, .seen-user-list {
  142. }
  143. }
  144. .side-content {
  145. margin-bottom: $crowiFooterHeight + $crowiHeaderHeight;
  146. padding: 15px;
  147. h3 {
  148. font-size: 1.1em;
  149. }
  150. a {
  151. color: #ccc;
  152. &:hover { color: #aaa;}
  153. }
  154. ul.revision-history {
  155. padding: 0;
  156. li {
  157. position: relative;
  158. list-style: none;
  159. a {
  160. color: #666;
  161. padding: 3px 5px 3px 40px;
  162. display: block;
  163. &:hover {
  164. background: darken($crowiAsideBackground, 10%);
  165. text-decoration: none;
  166. color: darken($link-color, 35%);
  167. }
  168. }
  169. }
  170. .picture {
  171. position: absolute;
  172. left: 5px;
  173. top: 12px;
  174. }
  175. }
  176. ul.fitted-list {
  177. padding-left: 0;
  178. li {
  179. margin-bottom: 2px;
  180. .input-group-addon {
  181. padding: 5px 6px;
  182. }
  183. }
  184. }
  185. }
  186. } // }}}
  187. .main { // {{{
  188. transition: .5s ease;
  189. -webkit-transition: .5s ease;
  190. background: #fff;
  191. padding: 20px;
  192. //margin-left: 10px;
  193. //padding: 10px;
  194. //
  195. article {
  196. background: #fff;
  197. }
  198. article header {
  199. background: #fff;
  200. width: 100%;
  201. p.stopper {
  202. display: none;
  203. }
  204. &.affix {
  205. width: 100%;
  206. top: 0;
  207. left: 0;
  208. padding: 5px 20px;
  209. z-index: 1039;
  210. background: rgba(255, 255, 255, .9);
  211. box-shadow: 0 0px 2px #999;
  212. h1 {
  213. font-size: 1.8em;
  214. }
  215. p.stopper {
  216. display: block;
  217. position: absolute;
  218. bottom: -30px;
  219. right: 10px;
  220. background: #fff;
  221. padding: 7px 14px;
  222. margin: 0;
  223. border: solid 1px #ccc;
  224. border-top: none;
  225. border-radius: 0 0 5px 5px;
  226. font-size: .8em;
  227. }
  228. }
  229. }
  230. &.col-md-12 article header.affix {
  231. width: 100%;
  232. }
  233. article header h1 {
  234. margin-top: 0;
  235. a:last-child {
  236. color: #D1E2E4;
  237. opacity: .7;
  238. &:hover {
  239. color: inherit;
  240. }
  241. }
  242. }
  243. } // }}}
  244. .main.grant-restricted,
  245. .main.grant-specified,
  246. .main.grant-owner {
  247. background: #333;
  248. padding: 20px 10px;
  249. .page-grant {
  250. color: #ccc;
  251. }
  252. article {
  253. border-radius: 5px;
  254. padding: 20px;
  255. }
  256. }
  257. .footer { // {{{
  258. position: fixed;
  259. width: 100%;
  260. bottom: 0px;
  261. height: 26px;
  262. padding: 4px;
  263. color: #444;
  264. background: $crowiAsideBackground;
  265. border-top-left-radius: 5px;
  266. z-index: 1055;
  267. a {
  268. color: #666;
  269. }
  270. } // }}}
  271. } // }}}
  272. &.main-container.aside-hidden { // {{{
  273. .layout-control {
  274. right: 0;
  275. i {
  276. transform: rotate(180deg);
  277. }
  278. }
  279. aside.sidebar { // {{{
  280. right: -25%;
  281. } // }}}
  282. .main { // {{{
  283. width: 100%;
  284. article header.affix {
  285. width: 100%;
  286. }
  287. } // }}}
  288. } // }}}
  289. // override bootstrap modals
  290. //.modal-backdrop {
  291. // z-index: 1052;
  292. //}
  293. //.modal {
  294. // z-index: 1055;
  295. //}
  296. } // }}}
  297. .crowi.main-container .main {
  298. .wiki-content {
  299. }
  300. .content-main {
  301. .tab-content {
  302. margin-top: 30px;
  303. }
  304. }
  305. .content-main .timeline-body { // {{{ timeline
  306. .revision-path {
  307. margin-top: 1.6em;
  308. margin-bottom: 0;
  309. border: solid 2px #ddd;
  310. border-bottom: none;
  311. padding: 16px;
  312. background: #ddd;
  313. }
  314. .revision-body {
  315. font-size: 14px;
  316. border: solid 2px #ddd;
  317. padding: 16px;
  318. background: #fdfdfd;
  319. }
  320. } // }}}
  321. // on-edit
  322. .content-main.on-edit {
  323. position: fixed;
  324. z-index: 1060;
  325. background: #fff;
  326. top: 0;
  327. left: 0;
  328. height: 100%;
  329. width: 100%;
  330. .nav {
  331. margin-top: 8px;
  332. height: 40px;
  333. }
  334. .tab-content {
  335. .alert-info {
  336. display: none;
  337. }
  338. top: 48px;
  339. bottom: 58px;
  340. padding: 0 12px;
  341. position: absolute;
  342. left: 0;
  343. right: 0;
  344. margin-top: 4px;
  345. .edit-form {
  346. height: 100%;
  347. .row {
  348. height: 100%;
  349. .col-md-6 {
  350. height: 100%;
  351. }
  352. form {
  353. padding: 0;
  354. border-right: solid 1px #ccc;
  355. &::after {
  356. position: absolute;
  357. top: 0;
  358. right: 15px;
  359. font-size: 10px;
  360. font-weight: 700;
  361. color: #959595;
  362. text-transform: uppercase;
  363. letter-spacing: 1px;
  364. content: "Input Content ...";
  365. }
  366. }
  367. textarea {
  368. height: 100%;
  369. padding-top: 18px;
  370. border: none;
  371. box-shadow: none;
  372. &.dragover {
  373. border: dashed 10px #ccc;
  374. }
  375. }
  376. .preview-body {
  377. height: 100%;
  378. padding-top: 18px;
  379. overflow: scroll;
  380. &::after {
  381. position: absolute;
  382. top: 0;
  383. right: 15px;
  384. font-size: 10px;
  385. font-weight: 700;
  386. color: #959595;
  387. text-transform: uppercase;
  388. letter-spacing: 1px;
  389. content: "Preview";
  390. }
  391. }
  392. }
  393. }
  394. }
  395. .form-group.form-submit-group {
  396. position: fixed;
  397. bottom: 0;
  398. width: 100%;
  399. left: 0;
  400. padding: 8px;
  401. height: 50px;
  402. background: rgba(255,255,255,.8);
  403. border-top: solid 1px #ccc;
  404. margin-bottom: 0;
  405. }
  406. }
  407. }
  408. .crowi.single { // {{{
  409. } // }}}
  410. .crowi.single.nologin { // {{{
  411. //background: lighten($crowiHeaderBackground, 15%);
  412. background: $crowiHeaderBackground;
  413. .installer-header {
  414. margin-top: 100px;
  415. text-align: center;
  416. h1 {
  417. margin: 40px 0 40px;
  418. color: #fff;
  419. font-size: 1.6em;
  420. }
  421. }
  422. .main {
  423. margin: 0;
  424. padding: 0;
  425. }
  426. h1.login-page {
  427. margin-top: 80px;
  428. color: #fff;
  429. font-size: 1.6em;
  430. padding: 10px;
  431. text-align: center;
  432. text-shadow: 0px 0px 6px rgba(0,0,0,.5);
  433. line-height: 100%;
  434. }
  435. .login-dialog-container {
  436. .facebook-info {
  437. border-radius: 4px;
  438. border: solid 1px #ccc;
  439. padding: 10px;
  440. margin-bottom: 15px;
  441. }
  442. margin: 40px auto;
  443. float: none;
  444. .login-dialog {
  445. position: relative;
  446. form {
  447. margin-top: 10px;
  448. .input-group {
  449. margin-bottom: 10px;
  450. }
  451. }
  452. .login-dialog-inner, .register-dialog-inner {
  453. top: 0;
  454. left: 0;
  455. padding: 42px 48px;
  456. background: #fff;
  457. position: absolute;
  458. margin-bottom: 40px;
  459. width: 100%;
  460. box-shadow: 0 1px 40px 0 rgba(0,0,0,0.3);
  461. border-radius: 3px;
  462. h2 {
  463. margin: 0 0 28px;
  464. font-size: 1.3em;
  465. text-align: center;
  466. }
  467. }
  468. p.bottom-text {
  469. text-align: right;
  470. margin: 20px 0 0;
  471. }
  472. }
  473. }
  474. } // }}}
  475. @media (min-width: $screen-sm-min) and (max-width: $screen-sm-max) { // {{{ tablet size
  476. .crowi.main-container { // {{{
  477. .main {
  478. article header {
  479. h1 {
  480. font-size: 1.4em;
  481. margin-bottom: 0;
  482. }
  483. &.affix {
  484. width: 100%;
  485. }
  486. }
  487. }
  488. }
  489. } // }}}
  490. @media (max-width: $screen-xs-max) { // {{{ iPhone size
  491. .crowi.main-container { // {{{
  492. .main {
  493. padding: 10px;
  494. article header {
  495. h1 {
  496. font-size: 1.1em;
  497. }
  498. &.affix {
  499. h1 {
  500. font-size: 1.1em;
  501. }
  502. width: 100%;
  503. padding: 5px;
  504. box-shadow: 0 0px 2px #999;
  505. p.stopper {
  506. right: 20px;
  507. }
  508. }
  509. }
  510. }
  511. }
  512. }
  513. @media print { // {{{ printable style
  514. .crowi.main-container { // {{{
  515. padding: 30px;
  516. a:after {
  517. display: none !important;
  518. }
  519. .main {
  520. article header {
  521. border-bottom: solid 1px #666;
  522. margin-bottom: 20px;
  523. h1 {
  524. font-size: 2em;
  525. color: #000;
  526. }
  527. }
  528. .revision-toc {
  529. float: none;
  530. font-size: .9em;
  531. border: solid 1px #aaa;
  532. border-radius: 5px;
  533. max-width: 100%;
  534. margin-bottom: 20px;
  535. .revision-toc-head {
  536. display: inline-block;
  537. float: none;
  538. }
  539. .revision-toc-content.collapse {
  540. display: block;
  541. height: auto;
  542. }
  543. }
  544. .meta {
  545. border-top: solid 1px #999;
  546. margin-top: 20px;
  547. color: #666;
  548. }
  549. }
  550. }
  551. } // }}}