ysct.css 3.2 KB

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