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.

63 lines
1.5 KiB

  1. /**********************************************************************************
  2. *
  3. * Copyright (C) 2017 MuK IT GmbH
  4. *
  5. * This program is free software: you can redistribute it and/or modify
  6. * it under the terms of the GNU Affero General Public License as
  7. * published by the Free Software Foundation, either version 3 of the
  8. * License, or (at your option) any later version.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU Affero General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU Affero General Public License
  16. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  17. *
  18. **********************************************************************************/
  19. .mk_preview_text {
  20. width: 100%;
  21. height: 100%;
  22. padding: 1rem;
  23. pre {
  24. padding-top: 0;
  25. padding-bottom: 0;
  26. }
  27. .code-lang {
  28. width: 100%;
  29. height: 32px;
  30. top: 5px;
  31. }
  32. .code-view {
  33. padding-top: 0;
  34. padding-bottom: 0;
  35. }
  36. td.hljs-ln-numbers {
  37. -webkit-touch-callout: none;
  38. -webkit-user-select: none;
  39. -khtml-user-select: none;
  40. -moz-user-select: none;
  41. -ms-user-select: none;
  42. user-select: none;
  43. text-align: center;
  44. color: #ccc;
  45. border-right: 1px solid #CCC;
  46. vertical-align: top;
  47. padding-right: 5px;
  48. }
  49. td.hljs-ln-code {
  50. padding-left: 10px;
  51. }
  52. }
  53. @media print {
  54. .mk_preview_text {
  55. .hljs-ln-numbers {
  56. display: none ! important;
  57. }
  58. }
  59. }