_layout.scss 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712
  1. .crowi { // {{{
  2. font-family: 'Open Sans', '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. color: #666;
  147. padding: 15px;
  148. h3 {
  149. font-size: 1.1em;
  150. }
  151. a {
  152. color: #ccc;
  153. &:hover { color: #aaa;}
  154. }
  155. ul.fitted-list {
  156. padding-left: 0;
  157. li {
  158. margin-bottom: 2px;
  159. .input-group-addon {
  160. padding: 5px 6px;
  161. }
  162. }
  163. }
  164. }
  165. } // }}}
  166. .main { // {{{
  167. transition: .5s ease;
  168. -webkit-transition: .5s ease;
  169. background: #fff;
  170. padding: 20px;
  171. //margin-left: 10px;
  172. //padding: 10px;
  173. //
  174. article {
  175. background: #fff;
  176. }
  177. article header {
  178. background: #fff;
  179. width: 100%;
  180. p.stopper {
  181. display: none;
  182. }
  183. &.affix {
  184. width: 100%;
  185. top: 0;
  186. left: 0;
  187. padding: 5px 20px;
  188. z-index: 1039;
  189. background: rgba(255, 255, 255, .9);
  190. box-shadow: 0 0px 2px #999;
  191. h1 {
  192. font-size: 1.8em;
  193. }
  194. p.stopper {
  195. display: block;
  196. position: absolute;
  197. bottom: -30px;
  198. right: 10px;
  199. background: #fff;
  200. padding: 7px 14px;
  201. margin: 0;
  202. border: solid 1px #ccc;
  203. border-top: none;
  204. border-radius: 0 0 5px 5px;
  205. font-size: .8em;
  206. }
  207. }
  208. }
  209. &.col-md-12 article header.affix {
  210. width: 100%;
  211. }
  212. article header h1 {
  213. margin-top: 0;
  214. a:last-child {
  215. color: #D1E2E4;
  216. opacity: .7;
  217. &:hover {
  218. color: inherit;
  219. }
  220. }
  221. }
  222. } // }}}
  223. .page-list {
  224. .page-list-link {
  225. }
  226. .page-list-meta {
  227. font-size: .9em;
  228. color: #999;
  229. }
  230. }
  231. .main.grant-restricted,
  232. .main.grant-specified,
  233. .main.grant-owner {
  234. background: #333;
  235. padding: 20px 10px;
  236. .page-grant {
  237. color: #ccc;
  238. }
  239. article {
  240. border-radius: 5px;
  241. padding: 20px;
  242. }
  243. }
  244. .page-attachments {
  245. p {
  246. font-weight: bold;
  247. }
  248. ul {
  249. }
  250. }
  251. .footer { // {{{
  252. position: fixed;
  253. width: 100%;
  254. bottom: 0px;
  255. height: 26px;
  256. padding: 4px;
  257. color: #444;
  258. background: $crowiAsideBackground;
  259. border-top-left-radius: 5px;
  260. z-index: 1055;
  261. a {
  262. color: #666;
  263. }
  264. } // }}}
  265. } // }}}
  266. &.main-container.aside-hidden { // {{{
  267. .layout-control {
  268. right: 0;
  269. i {
  270. transform: rotate(180deg);
  271. }
  272. }
  273. aside.sidebar { // {{{
  274. right: -25%;
  275. } // }}}
  276. .main { // {{{
  277. width: 100%;
  278. article header.affix {
  279. width: 100%;
  280. }
  281. } // }}}
  282. } // }}}
  283. // override bootstrap modals
  284. //.modal-backdrop {
  285. // z-index: 1052;
  286. //}
  287. //.modal {
  288. // z-index: 1055;
  289. //}
  290. } // }}}
  291. .crowi.main-container .main {
  292. .wiki-content {
  293. }
  294. .content-main {
  295. .tab-content {
  296. margin-top: 30px;
  297. .revision-history {
  298. h1 {
  299. padding-bottom: 0.3em;
  300. font-size: 2.3em;
  301. font-weight: bold;
  302. border-bottom: solid 1px #ccc;
  303. }
  304. .revision-history-list {
  305. .revision-hisory-outer {
  306. margin-top: 8px;
  307. .picture {
  308. float: left;
  309. width: 32px;
  310. height: 32px;
  311. }
  312. .revision-history-main {
  313. margin-left: 40px;
  314. .revision-history-author {
  315. }
  316. .revision-history-comment {
  317. }
  318. .revision-history-meta {
  319. }
  320. }
  321. }
  322. li {
  323. position: relative;
  324. list-style: none;
  325. a {
  326. color: #666;
  327. padding: 3px 5px 3px 40px;
  328. display: block;
  329. &:hover {
  330. background: darken($crowiAsideBackground, 10%);
  331. text-decoration: none;
  332. color: darken($link-color, 35%);
  333. }
  334. }
  335. }
  336. }
  337. }
  338. }
  339. }
  340. .content-main .timeline-body { // {{{ timeline
  341. .revision-path {
  342. margin-top: 1.6em;
  343. margin-bottom: 0;
  344. border: solid 2px #ddd;
  345. border-bottom: none;
  346. padding: 16px;
  347. background: #ddd;
  348. }
  349. .revision-body {
  350. font-size: 14px;
  351. border: solid 2px #ddd;
  352. padding: 16px;
  353. background: #fdfdfd;
  354. }
  355. } // }}}
  356. // on-edit
  357. .content-main.on-edit {
  358. position: fixed;
  359. z-index: 1060;
  360. background: #fff;
  361. top: 0;
  362. left: 0;
  363. height: 100%;
  364. width: 100%;
  365. .nav {
  366. margin-top: 8px;
  367. height: 40px;
  368. }
  369. .tab-content {
  370. .alert-info {
  371. display: none;
  372. }
  373. top: 48px;
  374. bottom: 58px;
  375. padding: 0 12px;
  376. position: absolute;
  377. left: 0;
  378. right: 0;
  379. margin-top: 4px;
  380. .edit-form {
  381. height: 100%;
  382. .row {
  383. height: 100%;
  384. .col-md-6 {
  385. height: 100%;
  386. }
  387. form {
  388. padding: 0;
  389. border-right: solid 1px #ccc;
  390. &::after {
  391. position: absolute;
  392. top: 0;
  393. right: 15px;
  394. font-size: 10px;
  395. font-weight: 700;
  396. color: #959595;
  397. text-transform: uppercase;
  398. letter-spacing: 1px;
  399. content: "Input Content ...";
  400. }
  401. }
  402. textarea {
  403. height: 100%;
  404. padding-top: 18px;
  405. border: none;
  406. box-shadow: none;
  407. &.dragover {
  408. border: dashed 6px #ccc;
  409. padding: 12px 6px 0px;
  410. }
  411. }
  412. .preview-body {
  413. height: 100%;
  414. padding-top: 18px;
  415. overflow: scroll;
  416. &::after {
  417. position: absolute;
  418. top: 0;
  419. right: 15px;
  420. font-size: 10px;
  421. font-weight: 700;
  422. color: #959595;
  423. text-transform: uppercase;
  424. letter-spacing: 1px;
  425. content: "Preview";
  426. }
  427. }
  428. }
  429. }
  430. }
  431. .form-group.form-submit-group {
  432. position: fixed;
  433. z-index: 1054;
  434. bottom: 0;
  435. width: 100%;
  436. left: 0;
  437. padding: 8px;
  438. height: 50px;
  439. background: rgba(255,255,255,.8);
  440. border-top: solid 1px #ccc;
  441. margin-bottom: 0;
  442. }
  443. }
  444. }
  445. .crowi.single { // {{{
  446. } // }}}
  447. .crowi.single.nologin { // {{{
  448. //background: lighten($crowiHeaderBackground, 15%);
  449. background: $crowiHeaderBackground;
  450. .installer-header {
  451. margin-top: 100px;
  452. text-align: center;
  453. h1 {
  454. margin: 40px 0 40px;
  455. color: #fff;
  456. font-size: 1.6em;
  457. }
  458. }
  459. .main {
  460. margin: 0;
  461. padding: 0;
  462. }
  463. h1.login-page {
  464. margin-top: 80px;
  465. color: #fff;
  466. font-size: 1.6em;
  467. padding: 10px;
  468. text-align: center;
  469. text-shadow: 0px 0px 6px rgba(0,0,0,.5);
  470. line-height: 100%;
  471. }
  472. .login-dialog-container {
  473. .facebook-info {
  474. border-radius: 4px;
  475. border: solid 1px #ccc;
  476. padding: 10px;
  477. margin-bottom: 15px;
  478. }
  479. margin: 40px auto;
  480. float: none;
  481. .login-dialog {
  482. position: relative;
  483. form {
  484. margin-top: 10px;
  485. .input-group {
  486. margin-bottom: 10px;
  487. }
  488. }
  489. .login-dialog-inner, .register-dialog-inner {
  490. top: 0;
  491. left: 0;
  492. padding: 42px 48px;
  493. background: #fff;
  494. position: absolute;
  495. margin-bottom: 40px;
  496. width: 100%;
  497. box-shadow: 0 1px 40px 0 rgba(0,0,0,0.3);
  498. border-radius: 3px;
  499. h2 {
  500. margin: 0 0 28px;
  501. font-size: 1.3em;
  502. text-align: center;
  503. }
  504. }
  505. p.bottom-text {
  506. text-align: right;
  507. margin: 20px 0 0;
  508. }
  509. }
  510. }
  511. } // }}}
  512. @media (max-width: $screen-sm-max) { // {{{ less than tablet size
  513. .content-main.on-edit {
  514. .form-group.form-submit-group {
  515. select.form-control {
  516. display: inline-block;
  517. width: auto;
  518. }
  519. }
  520. }
  521. } // }}}
  522. @media (min-width: $screen-sm-min) and (max-width: $screen-sm-max) { // {{{ tablet size
  523. .crowi.main-container { // {{{
  524. .main {
  525. article header {
  526. h1 {
  527. font-size: 1.4em;
  528. margin-bottom: 0;
  529. }
  530. &.affix {
  531. width: 100%;
  532. }
  533. }
  534. }
  535. }
  536. } // }}}
  537. @media (max-width: $screen-xs-max) { // {{{ iPhone size
  538. .crowi.main-container { // {{{
  539. .main {
  540. padding: 10px;
  541. article header {
  542. h1 {
  543. font-size: 1.1em;
  544. }
  545. &.affix {
  546. h1 {
  547. font-size: 1.1em;
  548. }
  549. width: 100%;
  550. padding: 5px;
  551. box-shadow: 0 0px 2px #999;
  552. p.stopper {
  553. right: 20px;
  554. }
  555. }
  556. }
  557. }
  558. }
  559. }
  560. @media print { // {{{ printable style
  561. .crowi.main-container { // {{{
  562. padding: 30px;
  563. a:after {
  564. display: none !important;
  565. }
  566. .main {
  567. article header {
  568. border-bottom: solid 1px #666;
  569. margin-bottom: 20px;
  570. h1 {
  571. font-size: 2em;
  572. color: #000;
  573. }
  574. }
  575. .revision-toc {
  576. float: none;
  577. font-size: .9em;
  578. border: solid 1px #aaa;
  579. border-radius: 5px;
  580. max-width: 100%;
  581. margin-bottom: 20px;
  582. .revision-toc-head {
  583. display: inline-block;
  584. float: none;
  585. }
  586. .revision-toc-content.collapse {
  587. display: block;
  588. height: auto;
  589. }
  590. }
  591. .meta {
  592. border-top: solid 1px #ccc;
  593. margin-top: 32px;
  594. color: #666;
  595. }
  596. }
  597. }
  598. } // }}}