intro.css 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218
  1. @charset "UTF-8";
  2. *, *:after, *:before {
  3. box-sizing: border-box; }
  4. body {
  5. position: relative; }
  6. .yellow-box {
  7. width: 100px;
  8. height: 100px;
  9. background-color: #fe8;
  10. pointer-events: none; }
  11. .green-box {
  12. margin-top: 65px;
  13. margin-left: 100px;
  14. width: 200px;
  15. height: 50px;
  16. background-color: #4e9; }
  17. .no-green .green-box {
  18. display: none; }
  19. .scroll-box {
  20. height: 150px;
  21. border: 10px solid #eee;
  22. background: #fbfbfb;
  23. overflow: auto;
  24. position: relative; }
  25. .scroll-content {
  26. height: 2000px;
  27. width: 2000px;
  28. padding: 910px 809px; }
  29. pre.pre-with-output {
  30. margin: 0;
  31. width: 50%;
  32. float: left; }
  33. pre.pre-with-output code mark {
  34. background: #b8daff;
  35. color: #000; }
  36. p, h2, h3 {
  37. clear: both; }
  38. output {
  39. display: block;
  40. position: relative;
  41. width: 50%;
  42. float: right;
  43. margin-bottom: 15px; }
  44. output.scroll-page .scroll-box {
  45. overflow: hidden; }
  46. output.scroll-page:after {
  47. content: "↕ scroll the page ↕"; }
  48. output:after {
  49. content: "↕ scroll this area ↕";
  50. position: absolute;
  51. bottom: 25px;
  52. width: 100%;
  53. text-align: center;
  54. font-size: 16px;
  55. font-variant: small-caps;
  56. color: #777;
  57. opacity: 1;
  58. -webkit-transition: opacity 0.2s;
  59. transition: opacity 0.2s; }
  60. output.scrolled:after {
  61. opacity: 0; }
  62. output[deactivated], output[activated] {
  63. cursor: pointer; }
  64. output[deactivated] .scroll-box, output[activated] .scroll-box {
  65. pointer-events: none; }
  66. output[deactivated]:after, output[activated]:after {
  67. position: absolute;
  68. top: 0;
  69. left: 0;
  70. right: 0;
  71. bottom: 0;
  72. opacity: 1;
  73. content: "Click To Show";
  74. background-color: #AAA;
  75. border-left: 10px solid #EEE;
  76. color: white;
  77. font-size: 24px;
  78. font-variant: normal;
  79. padding-top: 80px; }
  80. output[activated]:after {
  81. content: "Click To Hide"; }
  82. output[activated].visible-enabled:after {
  83. height: 35px;
  84. padding-top: 5px; }
  85. .attachment-mark, .tether-marker-dot {
  86. position: relative; }
  87. .attachment-mark:after, .tether-marker-dot:after {
  88. content: "A";
  89. width: 10px;
  90. height: 10px;
  91. background-color: red;
  92. display: inline-block;
  93. line-height: 10px;
  94. font-size: 9px;
  95. color: white;
  96. text-align: center;
  97. position: absolute; }
  98. span.attachment-mark:after, span.tether-marker-dot:after {
  99. position: relative;
  100. top: -1px;
  101. margin-right: 1px; }
  102. .tether-marker-dot {
  103. position: absolute; }
  104. .tether-marker-dot:after {
  105. top: -5px;
  106. left: -5px; }
  107. .tether-target-marker {
  108. position: absolute; }
  109. div.tether-target-attached-left .tether-target-marker {
  110. left: 0; }
  111. div.tether-target-attached-top .tether-target-marker {
  112. top: 0; }
  113. div.tether-target-attached-bottom .tether-target-marker {
  114. bottom: 0; }
  115. div.tether-target-attached-right .tether-target-marker {
  116. right: 0; }
  117. div.tether-target-attached-center .tether-target-marker {
  118. left: 50%; }
  119. .tether-element-marker {
  120. position: absolute; }
  121. div.tether-element-attached-left .tether-element-marker {
  122. left: 0; }
  123. div.tether-element-attached-top .tether-element-marker {
  124. top: 0; }
  125. div.tether-element-attached-bottom .tether-element-marker {
  126. bottom: 0; }
  127. div.tether-element-attached-right .tether-element-marker {
  128. right: 0; }
  129. div.tether-element-attached-center .tether-element-marker {
  130. left: 50%; }
  131. .tether-element-attached-middle .tether-element-marker {
  132. top: 50px; }
  133. .tether-target-attached-middle .tether-target-marker {
  134. top: 25px; }
  135. .tether-element {
  136. position: relative; }
  137. .tether-element.tether-pinned-left {
  138. box-shadow: inset 2px 0 0 0 red; }
  139. .tether-element.tether-pinned-right {
  140. box-shadow: inset -2px 0 0 0 red; }
  141. .tether-element.tether-pinned-top {
  142. box-shadow: inset 0 2px 0 0 red; }
  143. .tether-element.tether-pinned-bottom {
  144. box-shadow: inset 0 -2px 0 0 red; }
  145. .tether-target {
  146. position: relative; }
  147. .tether-element.tether-out-of-bounds[data-example="hide"] {
  148. display: none; }
  149. [data-example^="optimizer"].lang-javascript {
  150. /* This should just be a `code` selector, but sass doesn't allow that with & */
  151. min-height: 220px; }
  152. [data-example^="optimizer"].tether-element:before {
  153. margin-top: 26px;
  154. display: block;
  155. text-align: center;
  156. content: "I'm in the body";
  157. line-height: 1.2;
  158. font-size: 15px;
  159. padding: 4px;
  160. color: #666; }
  161. [data-example^="optimizer"] .scroll-box .tether-element:before {
  162. content: "I'm in my scroll parent!"; }
  163. .tether-element[data-example="scroll-visible"] {
  164. height: 30px; }
  165. .tether-element[data-example="scroll-visible"] .tether-marker-dot {
  166. display: none; }
  167. .hs-doc-content h2.projects-header {
  168. text-align: center;
  169. font-weight: 300; }
  170. .projects-paragraph {
  171. text-align: center; }
  172. .projects-paragraph a {
  173. display: inline-block;
  174. vertical-align: middle;
  175. *vertical-align: auto;
  176. *zoom: 1;
  177. *display: inline;
  178. text-align: center;
  179. margin-right: 30px;
  180. color: inherit; }
  181. .projects-paragraph a span {
  182. display: inline-block;
  183. vertical-align: middle;
  184. *vertical-align: auto;
  185. *zoom: 1;
  186. *display: inline;
  187. margin-bottom: 20px;
  188. font-size: 20px;
  189. color: inherit;
  190. font-weight: 300; }
  191. .projects-paragraph a img {
  192. display: block;
  193. max-width: 100%;
  194. width: 100px; }