_layout.scss 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303
  1. * {
  2. box-sizing: border-box;
  3. }
  4. .clear {
  5. clear: both;
  6. }
  7. .clearfix {
  8. &:before, &:after {
  9. clear: both;
  10. display: table;
  11. content: "";
  12. }
  13. }
  14. .xcode .hide-in-xcode {
  15. display: none;
  16. }
  17. body {
  18. font: 62.5% $body-font;
  19. background: $body-background;
  20. }
  21. h1, h2, h3 {
  22. font-weight: 300;
  23. color: #808080;
  24. }
  25. h1 {
  26. font-size: 2em;
  27. color: #000;
  28. }
  29. h4 {
  30. font-size: 13px;
  31. line-height: 1.5;
  32. margin: 21px 0 0 0;
  33. }
  34. a {
  35. color: $tint-color;
  36. text-decoration: none;
  37. }
  38. pre, code {
  39. font-family: $code-font;
  40. word-wrap: break-word;
  41. }
  42. pre > code, .method-declaration code {
  43. display: inline-block;
  44. font-size: .85em;
  45. padding: 4px 0 4px 10px;
  46. border-left: 5px solid rgba(0, 155, 51, .2);
  47. &:before {
  48. content: "Objective-C";
  49. display: block;
  50. font: 9px/1 $body-font;
  51. color: #009b33;
  52. text-transform: uppercase;
  53. letter-spacing: 2px;
  54. padding-bottom: 6px;
  55. }
  56. }
  57. pre > code {
  58. font-size: inherit;
  59. }
  60. table, th, td {
  61. border: 1px solid #e9e9e9;
  62. }
  63. table {
  64. width: 100%;
  65. }
  66. th, td {
  67. padding: 7px;
  68. > :first-child {
  69. margin-top: 0;
  70. }
  71. > :last-child {
  72. margin-bottom: 0;
  73. }
  74. }
  75. .container {
  76. @extend .clearfix;
  77. max-width: 980px;
  78. padding: 0 10px;
  79. margin: 0 auto;
  80. @media (max-width: $mobile-max-width) {
  81. padding: 0;
  82. }
  83. }
  84. header {
  85. position: fixed;
  86. top: 0;
  87. left: 0;
  88. width: 100%;
  89. z-index: 2;
  90. background: #414141;
  91. color: #fff;
  92. font-size: 1.1em;
  93. line-height: 25px;
  94. letter-spacing: .05em;
  95. #library-title {
  96. float: left;
  97. }
  98. #developer-home {
  99. float: right;
  100. }
  101. h1 {
  102. font-size: inherit;
  103. font-weight: inherit;
  104. margin: 0;
  105. }
  106. p {
  107. margin: 0;
  108. }
  109. h1, a {
  110. color: inherit;
  111. }
  112. @media (max-width: $mobile-max-width) {
  113. position: absolute;
  114. .container {
  115. padding: 0 10px;
  116. }
  117. }
  118. }
  119. aside {
  120. position: fixed;
  121. top: 25px;
  122. left: 0;
  123. width: 100%;
  124. height: 25px;
  125. z-index: 2;
  126. font-size: 1.1em;
  127. @media (max-width: $mobile-max-width) {
  128. position: absolute;
  129. }
  130. #header-buttons {
  131. background: rgba(255, 255, 255, .8);
  132. margin: 0 1px;
  133. padding: 0;
  134. list-style: none;
  135. text-align: right;
  136. line-height: 32px;
  137. li {
  138. display: inline-block;
  139. cursor: pointer;
  140. padding: 0 10px;
  141. }
  142. label, select {
  143. cursor: inherit;
  144. }
  145. #on-this-page {
  146. position: relative;
  147. .chevron {
  148. display: inline-block;
  149. width: 14px;
  150. height: 4px;
  151. position: relative;
  152. .chevy {
  153. background: #878787;
  154. height: 2px;
  155. position: absolute;
  156. width: 10px;
  157. &.chevron-left {
  158. left: 0;
  159. transform: rotateZ(45deg) scale(0.6);
  160. }
  161. &.chevron-right {
  162. right: 0;
  163. transform: rotateZ(-45deg) scale(0.6);
  164. }
  165. }
  166. }
  167. #jump-to {
  168. opacity: 0;
  169. font-size: 16px;
  170. position: absolute;
  171. top: 5px;
  172. left: 0;
  173. width: 100%;
  174. height: 100%;
  175. }
  176. }
  177. }
  178. }
  179. article {
  180. margin-top: 25px;
  181. #content {
  182. @extend .clearfix;
  183. background: $content-background;
  184. border: 1px solid $content-border;
  185. padding: 15px 25px 30px 25px;
  186. font-size: 1.4em;
  187. line-height: 1.45;
  188. position: relative;
  189. @media (max-width: $mobile-max-width) {
  190. padding: 15px 10px 20px 10px;
  191. }
  192. .navigation-top {
  193. position: absolute;
  194. top: 15px;
  195. right: 25px;
  196. }
  197. .title {
  198. margin: 21px 0 0 0;
  199. padding: 15px 0;
  200. }
  201. p {
  202. color: #414141;
  203. margin: 0 0 15px 0;
  204. }
  205. th, td {
  206. p:last-child {
  207. margin-bottom: 0;
  208. }
  209. }
  210. main {
  211. ul {
  212. list-style: none;
  213. margin-left: 24px;
  214. margin-bottom: 12px;
  215. padding: 0;
  216. li {
  217. position: relative;
  218. padding-left: 1.3em;
  219. &:before {
  220. content: "\02022";
  221. color: #414141;
  222. font-size: 1.08em;
  223. line-height: 1;
  224. position: absolute;
  225. left: 0;
  226. padding-top: 2px;
  227. }
  228. }
  229. }
  230. }
  231. footer {
  232. @extend .clearfix;
  233. .footer-copyright {
  234. margin: 70px 25px 10px 0;
  235. }
  236. p {
  237. font-size: .71em;
  238. color: #a0a0a0;
  239. }
  240. }
  241. }
  242. }