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.

66 lines
1.6 KiB

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