print.css.scss 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. @charset "utf-8";
  2. @import 'normalize';
  3. @import 'variables';
  4. @import 'icon-font';
  5. /*
  6. Copyright 2008-2013 Concur Technologies, Inc.
  7. Licensed under the Apache License, Version 2.0 (the "License"); you may
  8. not use this file except in compliance with the License. You may obtain
  9. a copy of the License at
  10. http://www.apache.org/licenses/LICENSE-2.0
  11. Unless required by applicable law or agreed to in writing, software
  12. distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  13. WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  14. License for the specific language governing permissions and limitations
  15. under the License.
  16. */
  17. $print-color: #999;
  18. $print-color-light: #ccc;
  19. $print-font-size: 12px;
  20. body {
  21. @extend %default-font;
  22. }
  23. .tocify, .toc-footer, .lang-selector, .search, #nav-button {
  24. display: none;
  25. }
  26. .tocify-wrapper>img {
  27. margin: 0 auto;
  28. display: block;
  29. }
  30. .content {
  31. font-size: 12px;
  32. pre, code {
  33. @extend %code-font;
  34. @extend %break-words;
  35. border: 1px solid $print-color;
  36. border-radius: 5px;
  37. font-size: 0.8em;
  38. }
  39. pre {
  40. code {
  41. border: 0;
  42. }
  43. }
  44. pre {
  45. padding: 1.3em;
  46. }
  47. code {
  48. padding: 0.2em;
  49. }
  50. table {
  51. border: 1px solid $print-color;
  52. tr {
  53. border-bottom: 1px solid $print-color;
  54. }
  55. td,th {
  56. padding: 0.7em;
  57. }
  58. }
  59. p {
  60. line-height: 1.5;
  61. }
  62. a {
  63. text-decoration: none;
  64. color: #000;
  65. }
  66. h1 {
  67. @extend %header-font;
  68. font-size: 2.5em;
  69. padding-top: 0.5em;
  70. padding-bottom: 0.5em;
  71. margin-top: 1em;
  72. margin-bottom: $h1-margin-bottom;
  73. border: 2px solid $print-color-light;
  74. border-width: 2px 0;
  75. text-align: center;
  76. }
  77. h2 {
  78. @extend %header-font;
  79. font-size: 1.8em;
  80. margin-top: 2em;
  81. border-top: 2px solid $print-color-light;
  82. padding-top: 0.8em;
  83. }
  84. h1+h2, h1+div+h2 {
  85. border-top: none;
  86. padding-top: 0;
  87. margin-top: 0;
  88. }
  89. h3, h4 {
  90. @extend %header-font;
  91. font-size: 0.8em;
  92. margin-top: 1.5em;
  93. margin-bottom: 0.8em;
  94. text-transform: uppercase;
  95. }
  96. h5, h6 {
  97. text-transform: uppercase;
  98. }
  99. aside {
  100. padding: 1em;
  101. border: 1px solid $print-color-light;
  102. border-radius: 5px;
  103. margin-top: 1.5em;
  104. margin-bottom: 1.5em;
  105. line-height: 1.6;
  106. }
  107. aside:before {
  108. vertical-align: middle;
  109. padding-right: 0.5em;
  110. font-size: 14px;
  111. }
  112. aside.notice:before {
  113. @extend %icon-info-sign;
  114. }
  115. aside.warning:before {
  116. @extend %icon-exclamation-sign;
  117. }
  118. aside.success:before {
  119. @extend %icon-ok-sign;
  120. }
  121. }
  122. .copy-clipboard {
  123. @media print {
  124. display: none
  125. }
  126. }