_layout.scss 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537
  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. .main {
  319. margin: 0;
  320. padding: 0;
  321. }
  322. h1.login-page {
  323. margin-top: 80px;
  324. color: #fff;
  325. font-size: 1.6em;
  326. padding: 10px;
  327. text-align: center;
  328. text-shadow: 0px 0px 6px rgba(0,0,0,.5);
  329. line-height: 100%;
  330. }
  331. .login-dialog-container {
  332. .facebook-info {
  333. border-radius: 4px;
  334. border: solid 1px #ccc;
  335. padding: 10px;
  336. margin-bottom: 15px;
  337. }
  338. margin: 40px auto;
  339. float: none;
  340. .login-dialog {
  341. position: relative;
  342. form {
  343. margin-top: 10px;
  344. .input-group {
  345. margin-bottom: 10px;
  346. }
  347. }
  348. .login-dialog-inner, .register-dialog-inner {
  349. top: 0;
  350. left: 0;
  351. padding: 42px 48px;
  352. background: #fff;
  353. position: absolute;
  354. margin-bottom: 40px;
  355. width: 100%;
  356. box-shadow: 0 1px 40px 0 rgba(0,0,0,0.3);
  357. border-radius: 3px;
  358. h2 {
  359. margin: 0 0 28px;
  360. font-size: 1.3em;
  361. text-align: center;
  362. }
  363. }
  364. p.bottom-text {
  365. text-align: right;
  366. margin: 20px 0 0;
  367. }
  368. }
  369. }
  370. } // }}}
  371. @media (min-width: $screen-sm-min) and (max-width: $screen-sm-max) { // {{{ tablet size
  372. .crowi.main-container { // {{{
  373. .main {
  374. article header {
  375. h1 {
  376. font-size: 1.4em;
  377. margin-bottom: 0;
  378. }
  379. &.affix {
  380. width: 100%;
  381. }
  382. }
  383. }
  384. }
  385. } // }}}
  386. @media (max-width: $screen-xs-max) { // {{{ iPhone size
  387. .crowi.main-container { // {{{
  388. .main {
  389. padding: 10px;
  390. article header {
  391. h1 {
  392. font-size: 1.1em;
  393. }
  394. &.affix {
  395. h1 {
  396. font-size: 1.1em;
  397. }
  398. width: 100%;
  399. padding: 5px;
  400. box-shadow: 0 0px 2px #999;
  401. p.stopper {
  402. right: 20px;
  403. }
  404. }
  405. }
  406. }
  407. }
  408. }
  409. @media print { // {{{ printable style
  410. .crowi.main-container { // {{{
  411. padding: 30px;
  412. a:after {
  413. display: none !important;
  414. }
  415. .main {
  416. article header {
  417. border-bottom: solid 1px #666;
  418. margin-bottom: 20px;
  419. h1 {
  420. font-size: 2em;
  421. color: #000;
  422. }
  423. }
  424. .revision-toc {
  425. float: none;
  426. font-size: .9em;
  427. border: solid 1px #aaa;
  428. border-radius: 5px;
  429. max-width: 100%;
  430. margin-bottom: 20px;
  431. .revision-toc-head {
  432. display: inline-block;
  433. float: none;
  434. }
  435. .revision-toc-content.collapse {
  436. display: block;
  437. height: auto;
  438. }
  439. }
  440. .meta {
  441. border-top: solid 1px #999;
  442. margin-top: 20px;
  443. color: #666;
  444. }
  445. }
  446. }
  447. } // }}}