ysct.css 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204
  1. /* Blockquote: */
  2. blockquote {
  3. font-size: inherit;
  4. }
  5. /* Images */
  6. img.standard-image {
  7. max-width: 61.8%;
  8. min-width: 38.2%;
  9. height: auto;
  10. text-align: center;
  11. display: block;
  12. margin-left: auto;
  13. margin-right: auto;
  14. box-shadow: 10px 10px 20px #888888;
  15. -webkit-box-shadow: 10px 10px 20px #888888;
  16. -moz-box-shadow: 10px 10px 20px #888888;
  17. border-radius: 4px;
  18. margin-top: 1.5ex;
  19. margin-bottom: 2.5ex;
  20. }
  21. img.small {
  22. width: 38.2%;
  23. }
  24. img.full {
  25. width: 100%;
  26. max-width: 100%;
  27. }
  28. img.shadowless {
  29. box-shadow: none;
  30. margin-bottom: 0px;
  31. }
  32. img.inlinemediaobject {
  33. line-height: 1;
  34. vertical-align: middle;
  35. }
  36. /* Tables */
  37. /* The class "scedit" is used in tables describing working with the statechart editor.
  38. These tables typically consist of two columns with a textual description in the
  39. left column and a screenshot on the right. */
  40. table.scedit {
  41. width: 90%;
  42. border-collapse: collapse;
  43. }
  44. tr.scedit {
  45. vertical-align: top
  46. }
  47. table.scedit td {
  48. border-radius: 0%;
  49. border-style: solid;
  50. border-width: 0px;
  51. padding-bottom: 1ex;
  52. vertical-align: top;
  53. }
  54. table.scedit td:nth-child(1) {
  55. width: 75%;
  56. padding-right: 5%;
  57. }
  58. table.scedit td:nth-child(2) {
  59. width: 25%;
  60. }
  61. table.scedit img {
  62. max-width: 100%;
  63. margin-top: 0px;
  64. margin-left: 0px;
  65. margin-right: auto;
  66. margin-bottom: auto;
  67. box-shadow: 4px 4px 2px #bbb;
  68. }
  69. /* Counter */
  70. body {
  71. counter-reset: h1
  72. }
  73. h1 {
  74. counter-reset: h2
  75. }
  76. h2 {
  77. counter-reset: h3
  78. }
  79. h3 {
  80. counter-reset: h4
  81. }
  82. h4 {
  83. counter-reset: h5
  84. }
  85. h5 {
  86. counter-reset: h6
  87. }
  88. .body-container h1:before {
  89. counter-increment: h1;
  90. content: counter(h1) ". "
  91. }
  92. .body-container h2:before {
  93. counter-increment: h2;
  94. content: counter(h1) "." counter(h2) ". "
  95. }
  96. .body-container h3:before {
  97. counter-increment: h3;
  98. content: counter(h1) "." counter(h2) "." counter(h3) ". "
  99. }
  100. .body-container h4:before {
  101. counter-increment: h4;
  102. content: counter(h1) "." counter(h2) "." counter(h3) "." counter(h4)
  103. ". "
  104. }
  105. .body-container h5:before {
  106. counter-increment: h5;
  107. content: counter(h1) "." counter(h2) "." counter(h3) "." counter(h4) "."
  108. counter(h5) ". "
  109. }
  110. .body-container h6:before {
  111. counter-increment: h6;
  112. content: counter(h1) "." counter(h2) "." counter(h3) "." counter(h4) "."
  113. counter(h5) "." counter(h6) ". "
  114. }
  115. h1.nocount:before h2.nocount:before, h3.nocount:before, h4.nocount:before,
  116. h5.nocount:before, h6.nocount:before {
  117. content: "";
  118. counter-increment: none
  119. }
  120. @media ( max-width : 767px) {
  121. code {
  122. word-wrap: break-word;
  123. }
  124. }
  125. .pro-feature {
  126. border: 2px solid red;
  127. border-color: rgba(255, 0, 0, 0.75);
  128. border-width: 2px 0 0 2px;
  129. position: relative;
  130. overflow: hidden;
  131. padding: 10px 20px 0;
  132. margin-right: -20px;
  133. margin-bottom: 30px;
  134. }
  135. .pro-feature:before {
  136. content: "PRO";
  137. position: absolute;
  138. top: -10px;
  139. right: -34px;
  140. background: red;
  141. background: rgba(255, 0, 0, 0.75);
  142. color: white;
  143. padding: 20px 30px 2px;
  144. transform: rotate(45deg);
  145. z-index: 10
  146. }
  147. span.pro-feature {
  148. padding: 0;
  149. border-width: 0
  150. }
  151. span.pro-feature:before {
  152. transform: none;
  153. padding: 0 3px;
  154. position: relative;
  155. top: 0;
  156. left: 0
  157. }
  158. /* Edit on GitHub: */
  159. .sct-docs h1 {
  160. /* Make some room for the "Edit on GitHub link": */
  161. margin-right: 10rem;
  162. clear: left;
  163. }
  164. .sct-docs .edit-on-github {
  165. float: right;
  166. line-height: 45px;
  167. position: relative;
  168. margin: 0;
  169. }
  170. .eclipsehelp .edit-on-github {
  171. display: none
  172. }