_layout.scss 13 KB

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