You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839
  1. /*----------------------------------------*\
  2. RESPONSIVE CSS
  3. \*----------------------------------------*/
  4. /*
  5. CONTENTS
  6. A) BASIC MOBILE RESETS
  7. B) HEADER & TOP MENUS
  8. C) MAIN CONTENT & SIDEBAR
  9. D) TOGGLE BUTTON & FLYOUT MENU
  10. E) UX ELEMENTS
  11. F) PAGE SPECIFIC STYLES
  12. G) FORMS
  13. */
  14. /* Hide new elements (toggle button and flyout menu) above 900px */
  15. .mobile-toggle-button,
  16. .flyout-menu {
  17. display: none;
  18. }
  19. /*
  20. redmine's body is set to min-width: 900px
  21. add first breakpoint here and start adding responsiveness
  22. */
  23. @media screen and (max-width: 899px)
  24. {
  25. /*----------------------------------------*\
  26. A) BASIC MOBILE RESETS
  27. \*----------------------------------------*/
  28. /*
  29. apply natural border box, see: http://www.paulirish.com/2012/box-sizing-border-box-ftw/
  30. this helps us to better deal with percentages and padding / margin
  31. */
  32. *,
  33. *:before,
  34. *:after {
  35. -webkit-box-sizing: border-box;
  36. -moz-box-sizing: border-box;
  37. box-sizing: border-box;
  38. }
  39. body,
  40. html {
  41. height: 100%;
  42. margin: 0;
  43. padding: 0;
  44. }
  45. html {
  46. overflow-y: auto; /* avoid 2nd scrollbar on desktop */
  47. -webkit-text-size-adjust: 100%; /* prevent font scaling in landscape mode on webkit */
  48. }
  49. body {
  50. min-width: 0; /* reset the min-width of 900px */
  51. -webkit-overflow-scrolling: touch;
  52. }
  53. body,
  54. input,
  55. select,
  56. textarea,
  57. button {
  58. font-size: 14px; /* Set font-size for standard elements to 14px */
  59. }
  60. select {
  61. max-width: 100%; /* prevent long names within select menues from breaking content */
  62. }
  63. #wrapper {
  64. position: relative;
  65. overflow-x: hidden; /* hide horizontal overflow */
  66. max-width: 100%;
  67. margin: 0;
  68. }
  69. /*----------------------------------------*\
  70. B) HEADER & TOP MENUS
  71. \*----------------------------------------*/
  72. #header {
  73. width: 100%;
  74. height: 64px; /* the height of our header on mobile */
  75. min-height: 0;
  76. margin: 0;
  77. padding: 0;
  78. border: none;
  79. background-color: #628db6;
  80. position: fixed;
  81. z-index: 9999;
  82. }
  83. /* Hide project name on mobile (project name is still visible in select menu) */
  84. #header h1 {
  85. display: none !important;
  86. }
  87. /* reset #header a color for mobile toggle button */
  88. #header a.mobile-toggle-button {
  89. color: #f8f8f8;
  90. }
  91. /* Hide top-menu and main-menu on mobile, because it's placed in our flyout menu */
  92. #top-menu,
  93. #header #main-menu {
  94. display: none;
  95. }
  96. /* the quick search within header holding search form and #project_quick_jump_box box*/
  97. #header #quick-search {
  98. float: none;
  99. clear: none; /* there are themes which set clear property, this resets it */
  100. max-width: 100%; /* reset max-width */
  101. margin: 0;
  102. background: inherit;
  103. }
  104. /* styles for combobox within quick-search (#project_quick_jump_box) */
  105. #project-jump.drdn {
  106. position: absolute;
  107. top: 0px;
  108. left: 0;
  109. width: 100%;
  110. max-width: 100%;
  111. height: 2em;
  112. height: 64px;
  113. padding: 5px;
  114. padding-right: 72px;
  115. padding-left: 20px;
  116. }
  117. #project-jump .drdn-trigger {
  118. font-size:1.5em;
  119. font-weight:bold;
  120. display:block;
  121. width:100%;
  122. color:#fff;
  123. padding-left:24px;
  124. background:transparent;
  125. height:50px;
  126. line-height:40px;
  127. border:0;
  128. }
  129. #project-jump .drdn-trigger:before {
  130. /* set a font-size in order to achive same result in different themes */
  131. font-family: Verdana, sans-serif;
  132. font-size: 1.5em;
  133. position: absolute;
  134. left: 0;
  135. padding: 0 8px;
  136. /* achieve dropdwon arrow by scaling a caret character */
  137. content: '^';
  138. -webkit-transform: scale(1,-.8);
  139. -ms-transform: scale(1,-.8);
  140. transform: scale(1,-.8);
  141. text-align: right;
  142. pointer-events: none;
  143. opacity: .6;
  144. }
  145. #project-jump.expanded .drdn-trigger:before {
  146. -webkit-transform: scale(1,.8);
  147. -ms-transform: scale(1,.8);
  148. transform: scale(1,.8);
  149. padding-top:8px;
  150. }
  151. #project-jump .drdn-content {
  152. position:absolute;
  153. left:0px;
  154. top:64px;
  155. width:100%;
  156. font-size:15px;
  157. font-weight:normal;
  158. }
  159. #project-jump .drdn-content .autocomplete {
  160. height:40px;
  161. font-size:20px;
  162. }
  163. #project-jump .drdn-content a {
  164. padding:8px;
  165. }
  166. #header #quick-search form {
  167. display: none;
  168. }
  169. /*----------------------------------------*\
  170. C) MAIN CONTENT & SIDEBAR
  171. \*----------------------------------------*/
  172. #main {
  173. padding: 64px 0 0; /* padding-top equals header height */
  174. }
  175. #main.nosidebar #content,
  176. div#content {
  177. width: 100%;
  178. min-height: 0; /* reset min-height of #content */
  179. margin: 0;
  180. }
  181. /* hide sidebar and sidebar switch panel, since it's placed in mobile flyout menu */
  182. #sidebar,
  183. #sidebar-switch-panel {
  184. display: none;
  185. }
  186. .splitcontentleft, .splitcontentright, .splitcontenttop {
  187. width: 100%;
  188. flex: auto;
  189. margin-right: 0;
  190. margin-left: 0;
  191. }
  192. /*----------------------------------------*\
  193. D) TOGGLE BUTTON & FLYOUT MENU
  194. \*----------------------------------------*/
  195. .mobile-toggle-button {
  196. font-size: 42px;
  197. line-height: 64px;
  198. position: relative;
  199. z-index: 10;
  200. display: block; /* remove display: none; of non-mobile version */
  201. float: right;
  202. width: 60px;
  203. height: 64px;
  204. margin-top: 0;
  205. text-align: center;
  206. border-left: 1px solid #ddd;
  207. }
  208. .mobile-toggle-button:hover,
  209. .mobile-toggle-button:active {
  210. text-decoration: none;
  211. }
  212. .mobile-toggle-button:after {
  213. font-family: Verdana, sans-serif;
  214. display: block;
  215. margin-top: -3px;
  216. content: '\2261';
  217. }
  218. /* search magnifier icon */
  219. .search-magnifier {
  220. font-family: Verdana, sans-serif;
  221. color: #bbb;
  222. cursor: pointer;
  223. -webkit-transform: rotate(-45deg);
  224. -moz-transform: rotate(45deg);
  225. -o-transform: rotate(45deg);
  226. }
  227. .search-magnifier--flyout {
  228. font-size: 25px;
  229. line-height: 54px;
  230. position: absolute;
  231. z-index: 1;
  232. left: 12px;
  233. }
  234. /* Flyout Menu */
  235. .flyout-menu {
  236. position: absolute;
  237. right: -250px;
  238. display: block; /* remove display: none; of non-mobile version */
  239. overflow-x: hidden;
  240. width: 250px;
  241. height: 100%;
  242. margin: 0; /* reset margin for themes that define it */
  243. padding: 0; /* reset padding for themes that define it */
  244. color: white;
  245. background-color: #3e5b76;
  246. }
  247. /* avoid zoom on search input focus for ios devices */
  248. .flyout-menu input[type='text'] {
  249. font-size: 16px;
  250. }
  251. .flyout-menu h3 {
  252. font-size: 11px;
  253. line-height: 19px;
  254. height: 20px;
  255. margin: 0;
  256. padding: 0;
  257. letter-spacing: .1em;
  258. text-transform: uppercase;
  259. color: white;
  260. border-top: 1px solid #506a83;
  261. border-bottom: 1px solid #506a83;
  262. background-color: #628db6;
  263. }
  264. .flyout-menu h4 {
  265. color: white;
  266. }
  267. .flyout-menu h3,
  268. .flyout-menu h4,
  269. .flyout-menu > p,
  270. .flyout-menu > a,
  271. .flyout-menu ul li a,
  272. .flyout-menu__search,
  273. .flyout-menu__sidebar > div,
  274. .flyout-menu__sidebar > p,
  275. .flyout-menu__sidebar > a,
  276. .flyout-menu__sidebar > form,
  277. .flyout-menu > div,
  278. .flyout-menu > form {
  279. padding-left: 8px;
  280. }
  281. .flyout-menu .flyout-menu__avatar {
  282. margin-top: -1px; /* move avatar up 1px */
  283. padding-left: 0;
  284. }
  285. .flyout-menu__sidebar > form {
  286. display: block;
  287. }
  288. .flyout-menu__sidebar > form h3 {
  289. margin-left: -8px;
  290. }
  291. .flyout-menu__sidebar > form label {
  292. display: inline-block;
  293. margin: 8px 0;
  294. }
  295. .flyout-menu__sidebar > form br br {
  296. display: none;
  297. }
  298. /* Targets list containing checkboxes (e.g. activities sidebar) in flyout menu */
  299. .flyout-menu__sidebar form > ul {
  300. margin-left: -8px;
  301. padding-left: 0;
  302. }
  303. .flyout-menu__sidebar form > ul li {
  304. line-height: 39px;
  305. display: block;
  306. padding-left: 8px;
  307. border-top: 1px solid rgba(255,255,255,.1);
  308. }
  309. .flyout-menu__sidebar form > ul li:first-child {
  310. border-top: none;
  311. }
  312. .flyout-menu__sidebar form > ul li label {
  313. margin: 0;
  314. }
  315. .flyout-menu__sidebar form > ul li label a {
  316. line-height: 1;
  317. display: inline;
  318. padding-left: 0;
  319. border: none;
  320. }
  321. .flyout-menu ul {
  322. margin: 0;
  323. padding: 0;
  324. list-style: none;
  325. }
  326. .flyout-menu #watchers {
  327. display: -webkit-flex;
  328. display: -ms-flexbox;
  329. display: -webkit-box;
  330. display: flex;
  331. flex-direction: column;
  332. -webkit-flex-direction: column;
  333. -ms-flex-direction: column;
  334. -webkit-box-orient: vertical;
  335. -webkit-box-direction: normal;
  336. }
  337. .flyout-menu #watchers .contextual {
  338. -webkit-box-ordinal-group: 4;
  339. -webkit-order: 3;
  340. -ms-flex-order: 3;
  341. order: 3;
  342. }
  343. .flyout-menu #watchers h3 {
  344. margin-left: -8px;
  345. }
  346. .flyout-menu #watchers ul li {
  347. display: -webkit-flex;
  348. display: -ms-flexbox;
  349. display: -webkit-box;
  350. display: flex;
  351. flex-direction: row;
  352. -webkit-flex-direction: row;
  353. -ms-flex-direction: row;
  354. -webkit-box-orient: horizontal;
  355. -webkit-box-direction: normal;
  356. -webkit-align-items: center;
  357. -ms-flex-align: center;
  358. -webkit-box-align: center;
  359. align-items: center;
  360. }
  361. .flyout-menu ul li a {
  362. line-height: 40px;
  363. display: block;
  364. overflow: hidden;
  365. height: 40px;
  366. white-space: nowrap;
  367. text-overflow: ellipsis;
  368. border-top: 1px solid rgba(255,255,255,.1);
  369. }
  370. .flyout-menu ul li:first-child a {
  371. line-height: 39px;
  372. height: 39px;
  373. border-top: none;
  374. }
  375. .flyout-menu a {
  376. color: white;
  377. }
  378. .flyout-menu ul li a:hover {
  379. text-decoration: none;
  380. }
  381. .flyout-menu ul li a.new-object,
  382. .new-object ~ .menu-children {
  383. display: none;
  384. }
  385. /* Left flyout search container */
  386. .flyout-menu__search {
  387. line-height: 54px;
  388. height: 64px;
  389. padding-top: 3px;
  390. padding-right: 8px;
  391. }
  392. .flyout-menu__search input[type='text'] {
  393. line-height: 2;
  394. width: 100%;
  395. height: 38px;
  396. padding-left: 27px;
  397. vertical-align: middle;
  398. border: none;
  399. -webkit-border-radius: 3px;
  400. border-radius: 3px;
  401. background-color: #fff;
  402. }
  403. .flyout-menu__avatar {
  404. display: -webkit-box;
  405. display: -webkit-flex;
  406. display: -ms-flexbox;
  407. display: flex;
  408. width: 100%;
  409. border-top: 1px solid rgba(255,255,255,.1);
  410. }
  411. .flyout-menu__avatar img.gravatar {
  412. width: 40px;
  413. height: 40px;
  414. padding: 0;
  415. vertical-align: top;
  416. border-width: 0;
  417. }
  418. .flyout-menu__avatar a {
  419. line-height: 40px;
  420. height: auto;
  421. height: 40px;
  422. text-decoration: none;
  423. color: white;
  424. }
  425. /* avatar */
  426. .flyout-menu__avatar a:first-child {
  427. line-height: 0;
  428. width: 40px;
  429. padding: 0;
  430. }
  431. .flyout-menu__avatar .user {
  432. padding-left: 15px;
  433. padding-right: 15px;
  434. text-overflow: ellipsis;
  435. overflow: hidden;
  436. white-space: nowrap;
  437. -webkit-flex-grow: 1;
  438. -ms-flex-grow: 1;
  439. flex-grow: 1;
  440. }
  441. /* user link when no avatar is present */
  442. .flyout-menu__avatar--no-avatar a.user {
  443. line-height: 40px;
  444. padding-left: 8px;
  445. }
  446. .flyout-is-active body {
  447. overflow: hidden; /* for body not to have scrollbars when left flyout menu is active */
  448. }
  449. html.flyout-is-active {
  450. overflow: hidden;
  451. }
  452. .flyout-is-active #wrapper, .flyout-is-active #header {
  453. right: 250px; /* when left flyout is active, move body and header to the right (same amount like flyout-menu's width) */
  454. }
  455. .flyout-is-active #wrapper {
  456. overflow: visible;
  457. height: 100%;
  458. }
  459. .flyout-is-active .mobile-toggle-button:after {
  460. content: '\00D7'; /* close glyph */
  461. }
  462. .flyout-is-active #main {
  463. /*
  464. * only relevant for devices with cursor when flyout it active, in order to show,
  465. * that whole wrapper content is clickable and closes flyout menu
  466. */
  467. cursor: pointer;
  468. }
  469. #admin-menu {
  470. padding-left: 0;
  471. }
  472. #admin-menu li {
  473. padding-bottom: 0;
  474. }
  475. #admin-menu a,
  476. #admin-menu a.selected {
  477. line-height: 40px;
  478. padding: 0;
  479. padding-left: 32px !important;
  480. background-position: 8px 50%;
  481. }
  482. /*----------------------------------------*\
  483. E) UX ELEMENTS
  484. \*----------------------------------------*/
  485. .mobile-hide {display:none;}
  486. .mobile-show {display:initial;}
  487. /* Contextual Buttons */
  488. #content>.contextual {
  489. width: 100%;
  490. margin-bottom: .5em;
  491. padding-left: 0; /* reset left padding in order to use whole space */
  492. white-space: normal;
  493. }
  494. #content>.contextual>a,
  495. #content>.contextual .drdn,
  496. p.buttons a {
  497. font-weight: bold;
  498. display: inline-block;
  499. margin: 5px 0;
  500. margin-right: 2px;
  501. padding: 9px 9px 9px 9px;
  502. border: 1px solid #ddd;
  503. -webkit-border-radius: 3px;
  504. border-radius: 3px;
  505. }
  506. #content>.contextual .drdn-content {
  507. right:initial;
  508. left:0px;
  509. top:40px;
  510. }
  511. #content>.contextual .drdn .drdn-content a {
  512. padding-top: 9px;
  513. padding-bottom: 9px;
  514. }
  515. #content>.contextual a.icon,
  516. p.buttons a.icon {
  517. background-position-x: 4px;
  518. padding-left: 25px;
  519. }
  520. .flyout-menu .contextual {
  521. float: none;
  522. }
  523. /* loading indicator */
  524. #ajax-indicator {
  525. width: 60%;
  526. left: 20%;
  527. }
  528. /* jquery ui dialogs */
  529. .ui-dialog {
  530. max-width: 98%;
  531. margin: 1%;
  532. }
  533. .ui-dialog .ui-dialog-content {
  534. padding-left: 0;
  535. padding-right: 0;
  536. }
  537. #filters-table {width:100%; float:none;}
  538. .add-filter {width:100%; float:none; text-align: left; margin-top: 8px;}
  539. /*----------------------------------------*\
  540. F) PAGE SPECIFIC STYLES
  541. \*----------------------------------------*/
  542. /* some themes add a margin to login page, remove it on mobile */
  543. .action-login #main {
  544. margin: 0;
  545. }
  546. div#activity dl, #search-results {margin-left: 0;}
  547. .version-overview table.progress {width:75%;}
  548. div#version-summary {float:none; width:100%; margin-left:0;}
  549. body.controller-versions.action-show div#roadmap .related-issues {width:100%;}
  550. /* History and Changeset */
  551. div#issue-changesets {
  552. float: none;
  553. width: auto;
  554. margin-left: 0;
  555. padding-left: 0;
  556. margin-bottom: 2em;
  557. }
  558. div#issue-changesets div.changeset {
  559. padding-top: 1em;
  560. }
  561. /* Gantt charts */
  562. /*
  563. * [1] override inline styles with important
  564. * [2] keep border between subjects and gantt area
  565. * [3] remove whitespace between subjects and gantt area
  566. * [4] maintain width due to [3]
  567. */
  568. .gantt_subjects_column {
  569. width: 60% !important; /* [1] */
  570. }
  571. .gantt_subjects_container {
  572. width: 100% !important;
  573. overflow: hidden;
  574. }
  575. .gantt_subjects_column .gantt_hdr {
  576. width: 100% !important;
  577. right: 0 !important; /* [2] */
  578. border-right: solid 1px #c0c0c0;
  579. }
  580. #gantt_area {
  581. left: -2px; /* [3] */
  582. margin-right: -2px; /* [4] */
  583. }
  584. /*----------------------------------------*\
  585. G) FORMS
  586. \*----------------------------------------*/
  587. input, select, textarea {
  588. max-width: 100%;
  589. }
  590. /* tabular forms resets for mobile */
  591. .tabular p, .tabular.settings p {
  592. padding-left: 0;
  593. }
  594. .tabular label, .tabular.settings label {
  595. display: block;
  596. width: 100%;
  597. margin-left: 0;
  598. text-align: left;
  599. }
  600. .tabular input, .tabular select, .tabular textarea {
  601. width: 100%;
  602. max-width: 100%;
  603. }
  604. .tabular input[type="checkbox"], .tabular input.date {
  605. width: auto;
  606. max-width: 95%;
  607. }
  608. /* new issue form */
  609. #all_attributes p:first-child {
  610. float: none !important;
  611. }
  612. #all_attributes #issue_tracker_id {
  613. width: 90%;
  614. }
  615. #issue_is_private_label {
  616. display: inline;
  617. }
  618. span#watchers_inputs {
  619. width: 100%;
  620. }
  621. /* issue edit form */
  622. label[for='issue_description'] ~ a .icon-edit {
  623. word-wrap: normal;
  624. }
  625. /* issues page */
  626. body.controller-issues p.query-totals {
  627. margin-top: 0px;
  628. text-align: left;
  629. }
  630. /* subtasks and related issues list on issue show */
  631. #issue_tree .issues, #relations .issues {
  632. border-collapse: separate;
  633. border-spacing: 0 1em; /* vertical space between tasks */
  634. }
  635. #issue_tree .issue > td:not(.checkbox), #relations .issue > td:not(.checkbox) {
  636. display: block;
  637. float: left;
  638. text-align: left;
  639. padding-right: 5px;
  640. }
  641. #issue_tree .issue > td, #relations .issue > td, #issue_tree .issue .user {
  642. text-overflow: ellipsis; /* if text exceeds its space, add ... */
  643. overflow: hidden;
  644. }
  645. #issue_tree .issue > td.subject, #relations .issue > td.subject {
  646. width: 100%; /* let subject have one full width column */
  647. word-break: break-word; /* break word if subject is too long */
  648. padding-right: 25px; /* this is the spaces that .buttons uses next to subject */
  649. }
  650. #issue_tree .issue > td:not(.subject), #relations .issue > td:not(.subject) {
  651. width: 20%; /* three columns for all cells that are not subject */
  652. }
  653. #issue_tree .issues, #issue_tree .issue,
  654. #relations .issues, #relations .issue {
  655. position: relative; /* needed for .buttons positioning */
  656. }
  657. /* positioniong of unline button */
  658. #issue_tree .issue > td.buttons,
  659. #relations .issue > td.buttons {
  660. text-align: right;
  661. position: absolute;
  662. right: 0;
  663. margin: 0;
  664. padding-right: 0;
  665. }
  666. #issue_tree .issue .buttons a,
  667. #relations .issue .buttons a {
  668. vertical-align: middle;
  669. }
  670. /* attachment upload form */
  671. .attachments_fields span {
  672. position: relative;
  673. clear: both;
  674. margin-bottom: 1em;
  675. white-space: normal;
  676. }
  677. .attachments_fields span a.remove-upload {
  678. position: absolute;
  679. top: 0;
  680. right: 0;
  681. }
  682. .attachments_fields input.description {
  683. margin-left: 0;
  684. width: 100%;
  685. }
  686. }
  687. @media all and (max-width: 599px) {
  688. span.pagination {text-align:center;}
  689. .pagination ul.pages li {display:none;}
  690. .pagination ul.pages li.current,
  691. .pagination ul.pages li.previous,
  692. .pagination ul.pages li.next {display:inline-block; width:32%; overflow:hidden;}
  693. #login-form {width:100%; margin-top:2em;}
  694. }